FileDocCategorySizeDatePackage
IActivityManager.javaAPI DocAndroid 1.5 API20274Wed May 06 22:41:54 BST 2009android.app

IActivityManager

public interface IActivityManager implements android.os.IInterface
System private API for talking with the activity manager service. This provides calls from the application back to the activity manager. {@hide}

Fields Summary
public static final int
START_DELIVERED_TO_TOP
public static final int
START_TASK_TO_FRONT
public static final int
START_RETURN_INTENT_TO_CALLER
public static final int
START_SUCCESS
public static final int
START_INTENT_NOT_RESOLVED
public static final int
START_CLASS_NOT_FOUND
public static final int
START_FORWARD_AND_REQUEST_CONFLICT
public static final int
START_PERMISSION_DENIED
public static final int
BROADCAST_SUCCESS
public static final int
BROADCAST_STICKY_CANT_HAVE_PERMISSION
public static final int
INTENT_SENDER_BROADCAST
public static final int
INTENT_SENDER_ACTIVITY
public static final int
INTENT_SENDER_ACTIVITY_RESULT
public static final int
INTENT_SENDER_SERVICE
String
descriptor
int
START_RUNNING_TRANSACTION
int
HANDLE_APPLICATION_ERROR_TRANSACTION
int
START_ACTIVITY_TRANSACTION
int
UNHANDLED_BACK_TRANSACTION
int
OPEN_CONTENT_URI_TRANSACTION
int
FINISH_ACTIVITY_TRANSACTION
int
REGISTER_RECEIVER_TRANSACTION
int
UNREGISTER_RECEIVER_TRANSACTION
int
BROADCAST_INTENT_TRANSACTION
int
UNBROADCAST_INTENT_TRANSACTION
int
FINISH_RECEIVER_TRANSACTION
int
ATTACH_APPLICATION_TRANSACTION
int
ACTIVITY_IDLE_TRANSACTION
int
ACTIVITY_PAUSED_TRANSACTION
int
ACTIVITY_STOPPED_TRANSACTION
int
GET_CALLING_PACKAGE_TRANSACTION
int
GET_CALLING_ACTIVITY_TRANSACTION
int
GET_TASKS_TRANSACTION
int
MOVE_TASK_TO_FRONT_TRANSACTION
int
MOVE_TASK_TO_BACK_TRANSACTION
int
MOVE_TASK_BACKWARDS_TRANSACTION
int
GET_TASK_FOR_ACTIVITY_TRANSACTION
int
REPORT_THUMBNAIL_TRANSACTION
int
GET_CONTENT_PROVIDER_TRANSACTION
int
PUBLISH_CONTENT_PROVIDERS_TRANSACTION
int
SET_PERSISTENT_TRANSACTION
int
FINISH_SUB_ACTIVITY_TRANSACTION
int
SYSTEM_READY_TRANSACTION
int
START_SERVICE_TRANSACTION
int
STOP_SERVICE_TRANSACTION
int
BIND_SERVICE_TRANSACTION
int
UNBIND_SERVICE_TRANSACTION
int
PUBLISH_SERVICE_TRANSACTION
int
FINISH_OTHER_INSTANCES_TRANSACTION
int
GOING_TO_SLEEP_TRANSACTION
int
WAKING_UP_TRANSACTION
int
SET_DEBUG_APP_TRANSACTION
int
SET_ALWAYS_FINISH_TRANSACTION
int
START_INSTRUMENTATION_TRANSACTION
int
FINISH_INSTRUMENTATION_TRANSACTION
int
GET_CONFIGURATION_TRANSACTION
int
UPDATE_CONFIGURATION_TRANSACTION
int
STOP_SERVICE_TOKEN_TRANSACTION
int
GET_ACTIVITY_CLASS_FOR_TOKEN_TRANSACTION
int
GET_PACKAGE_FOR_TOKEN_TRANSACTION
int
SET_PROCESS_LIMIT_TRANSACTION
int
GET_PROCESS_LIMIT_TRANSACTION
int
CHECK_PERMISSION_TRANSACTION
int
CHECK_URI_PERMISSION_TRANSACTION
int
GRANT_URI_PERMISSION_TRANSACTION
int
REVOKE_URI_PERMISSION_TRANSACTION
int
SET_ACTIVITY_WATCHER_TRANSACTION
int
SHOW_WAITING_FOR_DEBUGGER_TRANSACTION
int
SIGNAL_PERSISTENT_PROCESSES_TRANSACTION
int
GET_RECENT_TASKS_TRANSACTION
int
SERVICE_DONE_EXECUTING_TRANSACTION
int
ACTIVITY_DESTROYED_TRANSACTION
int
GET_INTENT_SENDER_TRANSACTION
int
CANCEL_INTENT_SENDER_TRANSACTION
int
GET_PACKAGE_FOR_INTENT_SENDER_TRANSACTION
int
ENTER_SAFE_MODE_TRANSACTION
int
START_NEXT_MATCHING_ACTIVITY_TRANSACTION
int
NOTE_WAKEUP_ALARM_TRANSACTION
int
REMOVE_CONTENT_PROVIDER_TRANSACTION
int
SET_REQUESTED_ORIENTATION_TRANSACTION
int
GET_REQUESTED_ORIENTATION_TRANSACTION
int
UNBIND_FINISHED_TRANSACTION
int
SET_PROCESS_FOREGROUND_TRANSACTION
int
SET_SERVICE_FOREGROUND_TRANSACTION
int
MOVE_ACTIVITY_TASK_TO_BACK_TRANSACTION
int
GET_MEMORY_INFO_TRANSACTION
int
GET_PROCESSES_IN_ERROR_STATE_TRANSACTION
int
CLEAR_APP_DATA_TRANSACTION
int
RESTART_PACKAGE_TRANSACTION
int
KILL_PIDS_FOR_MEMORY_TRANSACTION
int
GET_SERVICES_TRANSACTION
int
REPORT_PSS_TRANSACTION
int
GET_RUNNING_APP_PROCESSES_TRANSACTION
int
GET_DEVICE_CONFIGURATION_TRANSACTION
int
PEEK_SERVICE_TRANSACTION
int
PROFILE_CONTROL_TRANSACTION
Constructors Summary
Methods Summary
public voidactivityDestroyed(android.os.IBinder token)

public voidactivityIdle(android.os.IBinder token)

public voidactivityPaused(android.os.IBinder token, android.os.Bundle state)

public voidactivityStopped(android.os.IBinder token, android.graphics.Bitmap thumbnail, java.lang.CharSequence description)

public voidattachApplication(IApplicationThread app)

public intbindService(IApplicationThread caller, android.os.IBinder token, android.content.Intent service, java.lang.String resolvedType, IServiceConnection connection, int flags)

public intbroadcastIntent(IApplicationThread caller, android.content.Intent intent, java.lang.String resolvedType, IIntentReceiver resultTo, int resultCode, java.lang.String resultData, android.os.Bundle map, java.lang.String requiredPermission, boolean serialized, boolean sticky)

public voidcancelIntentSender(IIntentSender sender)

public intcheckPermission(java.lang.String permission, int pid, int uid)

public intcheckUriPermission(android.net.Uri uri, int pid, int uid, int mode)

public booleanclearApplicationUserData(java.lang.String packageName, android.content.pm.IPackageDataObserver observer)

public voidenterSafeMode()

public booleanfinishActivity(android.os.IBinder token, int code, android.content.Intent data)

public voidfinishInstrumentation(IApplicationThread target, int resultCode, android.os.Bundle results)

public voidfinishOtherInstances(android.os.IBinder token, android.content.ComponentName className)

public voidfinishReceiver(android.os.IBinder who, int resultCode, java.lang.String resultData, android.os.Bundle map, boolean abortBroadcast)

public voidfinishSubActivity(android.os.IBinder token, java.lang.String resultWho, int requestCode)

public android.content.ComponentNamegetActivityClassForToken(android.os.IBinder token)

public android.content.ComponentNamegetCallingActivity(android.os.IBinder token)

public java.lang.StringgetCallingPackage(android.os.IBinder token)

public android.content.res.ConfigurationgetConfiguration()

public android.app.IActivityManager$ContentProviderHoldergetContentProvider(IApplicationThread caller, java.lang.String name)

public android.content.pm.ConfigurationInfogetDeviceConfigurationInfo()

public IIntentSendergetIntentSender(int type, java.lang.String packageName, android.os.IBinder token, java.lang.String resultWho, int requestCode, android.content.Intent intent, java.lang.String resolvedType, int flags)

public voidgetMemoryInfo(android.app.ActivityManager.MemoryInfo outInfo)

public java.lang.StringgetPackageForIntentSender(IIntentSender sender)

public java.lang.StringgetPackageForToken(android.os.IBinder token)

public intgetProcessLimit()

public java.util.ListgetProcessesInErrorState()

public java.util.ListgetRecentTasks(int maxNum, int flags)

public intgetRequestedOrientation(android.os.IBinder token)

public java.util.ListgetRunningAppProcesses()

public java.util.ListgetServices(int maxNum, int flags)

public intgetTaskForActivity(android.os.IBinder token, boolean onlyRoot)

public java.util.ListgetTasks(int maxNum, int flags, IThumbnailReceiver receiver)

public voidgoingToSleep()

public voidgrantUriPermission(IApplicationThread caller, java.lang.String targetPkg, android.net.Uri uri, int mode)

public inthandleApplicationError(android.os.IBinder app, int flags, java.lang.String tag, java.lang.String shortMsg, java.lang.String longMsg, byte[] crashData)

public booleankillPidsForMemory(int[] pids)

public booleanmoveActivityTaskToBack(android.os.IBinder token, boolean nonRoot)

public voidmoveTaskBackwards(int task)

public voidmoveTaskToBack(int task)

public voidmoveTaskToFront(int task)

public voidnoteWakeupAlarm(IIntentSender sender)

public android.os.ParcelFileDescriptoropenContentUri(android.net.Uri uri)

public android.os.IBinderpeekService(android.content.Intent service, java.lang.String resolvedType)

public booleanprofileControl(java.lang.String process, boolean start, java.lang.String path)

public voidpublishContentProviders(IApplicationThread caller, java.util.List providers)

public voidpublishService(android.os.IBinder token, android.content.Intent intent, android.os.IBinder service)

public android.content.IntentregisterReceiver(IApplicationThread caller, IIntentReceiver receiver, android.content.IntentFilter filter, java.lang.String requiredPermission)

public voidremoveContentProvider(IApplicationThread caller, java.lang.String name)

public voidreportPss(IApplicationThread caller, int pss)

public voidreportThumbnail(android.os.IBinder token, android.graphics.Bitmap thumbnail, java.lang.CharSequence description)

public voidrestartPackage(java.lang.String packageName)

public voidrevokeUriPermission(IApplicationThread caller, android.net.Uri uri, int mode)

public voidserviceDoneExecuting(android.os.IBinder token)

public voidsetActivityWatcher(IActivityWatcher watcher)

public voidsetAlwaysFinish(boolean enabled)

public voidsetDebugApp(java.lang.String packageName, boolean waitForDebugger, boolean persistent)

public voidsetPersistent(android.os.IBinder token, boolean isPersistent)

public voidsetProcessForeground(android.os.IBinder token, int pid, boolean isForeground)

public voidsetProcessLimit(int max)

public voidsetRequestedOrientation(android.os.IBinder token, int requestedOrientation)

public voidsetServiceForeground(android.content.ComponentName className, android.os.IBinder token, boolean isForeground)

public voidshowWaitingForDebugger(IApplicationThread who, boolean waiting)

public voidsignalPersistentProcesses(int signal)

public intstartActivity(IApplicationThread caller, android.content.Intent intent, java.lang.String resolvedType, android.net.Uri[] grantedUriPermissions, int grantedMode, android.os.IBinder resultTo, java.lang.String resultWho, int requestCode, boolean onlyIfNeeded, boolean debug)

public booleanstartInstrumentation(android.content.ComponentName className, java.lang.String profileFile, int flags, android.os.Bundle arguments, IInstrumentationWatcher watcher)

public booleanstartNextMatchingActivity(android.os.IBinder callingActivity, android.content.Intent intent)

public voidstartRunning(java.lang.String pkg, java.lang.String cls, java.lang.String action, java.lang.String data)

public android.content.ComponentNamestartService(IApplicationThread caller, android.content.Intent service, java.lang.String resolvedType)

public intstopService(IApplicationThread caller, android.content.Intent service, java.lang.String resolvedType)

public booleanstopServiceToken(android.content.ComponentName className, android.os.IBinder token, int startId)

public voidsystemReady()

public booleantestIsSystemReady()

public voidunbindFinished(android.os.IBinder token, android.content.Intent service, boolean doRebind)

public booleanunbindService(IServiceConnection connection)

public voidunbroadcastIntent(IApplicationThread caller, android.content.Intent intent)

public voidunhandledBack()

public voidunregisterReceiver(IIntentReceiver receiver)

public voidupdateConfiguration(android.content.res.Configuration values)

public voidwakingUp()