Build 1.0_r1(from source)

android.app
Interface IActivityManager

All Superinterfaces:
IInterface
All Known Implementing Classes:
ActivityManagerNative, ActivityManagerProxy

public interface IActivityManager
extends IInterface

System private API for talking with the activity manager service. This provides calls from the application back to the activity manager.


Nested Class Summary
static class IActivityManager.ContentProviderHolder
          Information you can retrieve about a particular application.
 
Field Summary
static int ACTIVITY_DESTROYED_TRANSACTION
           
static int ACTIVITY_IDLE_TRANSACTION
           
static int ACTIVITY_PAUSED_TRANSACTION
           
static int ACTIVITY_STOPPED_TRANSACTION
           
static int ATTACH_APPLICATION_TRANSACTION
           
static int BIND_SERVICE_TRANSACTION
           
static int BROADCAST_INTENT_TRANSACTION
           
static int BROADCAST_STICKY_CANT_HAVE_PERMISSION
           
static int BROADCAST_SUCCESS
           
static int CANCEL_INTENT_SENDER_TRANSACTION
           
static int CHECK_PERMISSION_TRANSACTION
           
static int CHECK_URI_PERMISSION_TRANSACTION
           
static int CLEAR_APP_DATA_TRANSACTION
           
static String descriptor
           
static int ENTER_SAFE_MODE_TRANSACTION
           
static int FINISH_ACTIVITY_TRANSACTION
           
static int FINISH_INSTRUMENTATION_TRANSACTION
           
static int FINISH_OTHER_INSTANCES_TRANSACTION
           
static int FINISH_RECEIVER_TRANSACTION
           
static int FINISH_SUB_ACTIVITY_TRANSACTION
           
static int GET_ACTIVITY_CLASS_FOR_TOKEN_TRANSACTION
           
static int GET_CALLING_ACTIVITY_TRANSACTION
           
static int GET_CALLING_PACKAGE_TRANSACTION
           
static int GET_CONFIGURATION_TRANSACTION
           
static int GET_CONTENT_PROVIDER_TRANSACTION
           
static int GET_INTENT_SENDER_TRANSACTION
           
static int GET_MEMORY_INFO_TRANSACTION
           
static int GET_PACKAGE_FOR_INTENT_SENDER_TRANSACTION
           
static int GET_PACKAGE_FOR_TOKEN_TRANSACTION
           
static int GET_PROCESS_LIMIT_TRANSACTION
           
static int GET_PROCESSES_IN_ERROR_STATE_TRANSACTION
           
static int GET_RECENT_TASKS_TRANSACTION
           
static int GET_REQUESTED_ORIENTATION_TRANSACTION
           
static int GET_SERVICES_TRANSACTION
           
static int GET_TASK_FOR_ACTIVITY_TRANSACTION
           
static int GET_TASKS_TRANSACTION
           
static int GOING_TO_SLEEP_TRANSACTION
           
static int GRANT_URI_PERMISSION_TRANSACTION
           
static int HANDLE_APPLICATION_ERROR_TRANSACTION
           
static int INTENT_SENDER_ACTIVITY
           
static int INTENT_SENDER_ACTIVITY_RESULT
           
static int INTENT_SENDER_BROADCAST
           
static int INTENT_SENDER_SERVICE
           
static int KILL_PIDS_FOR_MEMORY_TRANSACTION
           
static int MOVE_ACTIVITY_TASK_TO_BACK_TRANSACTION
           
static int MOVE_TASK_BACKWARDS_TRANSACTION
           
static int MOVE_TASK_TO_BACK_TRANSACTION
           
static int MOVE_TASK_TO_FRONT_TRANSACTION
           
static int NOTE_WAKEUP_ALARM_TRANSACTION
           
static int OPEN_CONTENT_URI_TRANSACTION
           
static int PUBLISH_CONTENT_PROVIDERS_TRANSACTION
           
static int PUBLISH_SERVICE_TRANSACTION
           
static int REGISTER_RECEIVER_TRANSACTION
           
static int REMOVE_CONTENT_PROVIDER_TRANSACTION
           
static int REPORT_PSS_TRANSACTION
           
static int REPORT_THUMBNAIL_TRANSACTION
           
static int RESTART_PACKAGE_TRANSACTION
           
static int REVOKE_URI_PERMISSION_TRANSACTION
           
static int SERVICE_DONE_EXECUTING_TRANSACTION
           
static int SET_ACTIVITY_WATCHER_TRANSACTION
           
static int SET_ALWAYS_FINISH_TRANSACTION
           
static int SET_DEBUG_APP_TRANSACTION
           
static int SET_PERSISTENT_TRANSACTION
           
static int SET_PROCESS_FOREGROUND_TRANSACTION
           
static int SET_PROCESS_LIMIT_TRANSACTION
           
static int SET_REQUESTED_ORIENTATION_TRANSACTION
           
static int SET_SERVICE_FOREGROUND_TRANSACTION
           
static int SHOW_WAITING_FOR_DEBUGGER_TRANSACTION
           
static int SIGNAL_PERSISTENT_PROCESSES_TRANSACTION
           
static int START_ACTIVITY_TRANSACTION
           
static int START_CLASS_NOT_FOUND
           
static int START_DELIVERED_TO_TOP
           
static int START_FORWARD_AND_REQUEST_CONFLICT
           
static int START_INSTRUMENTATION_TRANSACTION
           
static int START_INTENT_NOT_RESOLVED
           
static int START_NEXT_MATCHING_ACTIVITY_TRANSACTION
           
static int START_PERMISSION_DENIED
           
static int START_RETURN_INTENT_TO_CALLER
           
static int START_RUNNING_TRANSACTION
           
static int START_SERVICE_TRANSACTION
           
static int START_SUCCESS
           
static int START_TASK_TO_FRONT
           
static int STOP_SERVICE_TOKEN_TRANSACTION
           
static int STOP_SERVICE_TRANSACTION
           
static int SYSTEM_READY_TRANSACTION
           
static int UNBIND_FINISHED_TRANSACTION
           
static int UNBIND_SERVICE_TRANSACTION
           
static int UNBROADCAST_INTENT_TRANSACTION
           
static int UNHANDLED_BACK_TRANSACTION
           
static int UNREGISTER_RECEIVER_TRANSACTION
           
static int UPDATE_CONFIGURATION_TRANSACTION
           
static int WAKING_UP_TRANSACTION
           
 
Method Summary
 void activityDestroyed(IBinder token)
           
 void activityIdle(IBinder token)
           
 void activityPaused(IBinder token, Bundle state)
           
 void activityStopped(IBinder token, Bitmap thumbnail, CharSequence description)
           
 void attachApplication(IApplicationThread app)
           
 int bindService(IApplicationThread caller, IBinder token, Intent service, String resolvedType, IServiceConnection connection, int flags)
           
 int broadcastIntent(IApplicationThread caller, Intent intent, String resolvedType, IIntentReceiver resultTo, int resultCode, String resultData, Bundle map, String requiredPermission, boolean serialized, boolean sticky)
           
 void cancelIntentSender(IIntentSender sender)
           
 int checkPermission(String permission, int pid, int uid)
           
 int checkUriPermission(Uri uri, int pid, int uid, int mode)
           
 boolean clearApplicationUserData(String packageName, IPackageDataObserver observer)
           
 void enterSafeMode()
           
 boolean finishActivity(IBinder token, int code, Intent data)
           
 void finishInstrumentation(IApplicationThread target, int resultCode, Bundle results)
           
 void finishOtherInstances(IBinder token, ComponentName className)
           
 void finishReceiver(IBinder who, int resultCode, String resultData, Bundle map, boolean abortBroadcast)
           
 void finishSubActivity(IBinder token, String resultWho, int requestCode)
           
 ComponentName getActivityClassForToken(IBinder token)
           
 ComponentName getCallingActivity(IBinder token)
           
 String getCallingPackage(IBinder token)
           
 Configuration getConfiguration()
           
 IActivityManager.ContentProviderHolder getContentProvider(IApplicationThread caller, String name)
           
 IIntentSender getIntentSender(int type, String packageName, IBinder token, String resultWho, int requestCode, Intent intent, String resolvedType, int flags)
           
 void getMemoryInfo(ActivityManager.MemoryInfo outInfo)
           
 String getPackageForIntentSender(IIntentSender sender)
           
 String getPackageForToken(IBinder token)
           
 List<ActivityManager.ProcessErrorStateInfo> getProcessesInErrorState()
           
 int getProcessLimit()
           
 List<ActivityManager.RecentTaskInfo> getRecentTasks(int maxNum, int flags)
           
 int getRequestedOrientation(IBinder token)
           
 List getServices(int maxNum, int flags)
           
 int getTaskForActivity(IBinder token, boolean onlyRoot)
           
 List getTasks(int maxNum, int flags, IThumbnailReceiver receiver)
           
 void goingToSleep()
           
 void grantUriPermission(IApplicationThread caller, String targetPkg, Uri uri, int mode)
           
 int handleApplicationError(IBinder app, int flags, String tag, String shortMsg, String longMsg, byte[] crashData)
           
 boolean killPidsForMemory(int[] pids)
           
 boolean moveActivityTaskToBack(IBinder token, boolean nonRoot)
           
 void moveTaskBackwards(int task)
           
 void moveTaskToBack(int task)
           
 void moveTaskToFront(int task)
           
 void noteWakeupAlarm(IIntentSender sender)
           
 ParcelFileDescriptor openContentUri(Uri uri)
           
 void publishContentProviders(IApplicationThread caller, List<IActivityManager.ContentProviderHolder> providers)
           
 void publishService(IBinder token, Intent intent, IBinder service)
           
 Intent registerReceiver(IApplicationThread caller, IIntentReceiver receiver, IntentFilter filter, String requiredPermission)
           
 void removeContentProvider(IApplicationThread caller, String name)
           
 void reportPss(IApplicationThread caller, int pss)
           
 void reportThumbnail(IBinder token, Bitmap thumbnail, CharSequence description)
           
 void restartPackage(String packageName)
           
 void revokeUriPermission(IApplicationThread caller, Uri uri, int mode)
           
 void serviceDoneExecuting(IBinder token)
           
 void setActivityWatcher(IActivityWatcher watcher)
           
 void setAlwaysFinish(boolean enabled)
           
 void setDebugApp(String packageName, boolean waitForDebugger, boolean persistent)
           
 void setPersistent(IBinder token, boolean isPersistent)
           
 void setProcessForeground(IBinder token, int pid, boolean isForeground)
           
 void setProcessLimit(int max)
           
 void setRequestedOrientation(IBinder token, int requestedOrientation)
           
 void setServiceForeground(ComponentName className, IBinder token, boolean isForeground)
           
 void showWaitingForDebugger(IApplicationThread who, boolean waiting)
           
 void signalPersistentProcesses(int signal)
           
 int startActivity(IApplicationThread caller, Intent intent, String resolvedType, Uri[] grantedUriPermissions, int grantedMode, IBinder resultTo, String resultWho, int requestCode, boolean onlyIfNeeded, boolean debug)
           
 boolean startInstrumentation(ComponentName className, String profileFile, int flags, Bundle arguments, IInstrumentationWatcher watcher)
           
 boolean startNextMatchingActivity(IBinder callingActivity, Intent intent)
           
 void startRunning(String pkg, String cls, String action, String data)
           
 ComponentName startService(IApplicationThread caller, Intent service, String resolvedType)
           
 int stopService(IApplicationThread caller, Intent service, String resolvedType)
           
 boolean stopServiceToken(ComponentName className, IBinder token, int startId)
           
 void systemReady()
           
 void unbindFinished(IBinder token, Intent service, boolean doRebind)
           
 boolean unbindService(IServiceConnection connection)
           
 void unbroadcastIntent(IApplicationThread caller, Intent intent)
           
 void unhandledBack()
           
 void unregisterReceiver(IIntentReceiver receiver)
           
 void updateConfiguration(Configuration values)
           
 void wakingUp()
           
 
Methods inherited from interface android.os.IInterface
asBinder
 

Field Detail

START_DELIVERED_TO_TOP

static final int START_DELIVERED_TO_TOP
See Also:
Constant Field Values

START_TASK_TO_FRONT

static final int START_TASK_TO_FRONT
See Also:
Constant Field Values

START_RETURN_INTENT_TO_CALLER

static final int START_RETURN_INTENT_TO_CALLER
See Also:
Constant Field Values

START_SUCCESS

static final int START_SUCCESS
See Also:
Constant Field Values

START_INTENT_NOT_RESOLVED

static final int START_INTENT_NOT_RESOLVED
See Also:
Constant Field Values

START_CLASS_NOT_FOUND

static final int START_CLASS_NOT_FOUND
See Also:
Constant Field Values

START_FORWARD_AND_REQUEST_CONFLICT

static final int START_FORWARD_AND_REQUEST_CONFLICT
See Also:
Constant Field Values

START_PERMISSION_DENIED

static final int START_PERMISSION_DENIED
See Also:
Constant Field Values

BROADCAST_SUCCESS

static final int BROADCAST_SUCCESS
See Also:
Constant Field Values

BROADCAST_STICKY_CANT_HAVE_PERMISSION

static final int BROADCAST_STICKY_CANT_HAVE_PERMISSION
See Also:
Constant Field Values

INTENT_SENDER_BROADCAST

static final int INTENT_SENDER_BROADCAST
See Also:
Constant Field Values

INTENT_SENDER_ACTIVITY

static final int INTENT_SENDER_ACTIVITY
See Also:
Constant Field Values

INTENT_SENDER_ACTIVITY_RESULT

static final int INTENT_SENDER_ACTIVITY_RESULT
See Also:
Constant Field Values

INTENT_SENDER_SERVICE

static final int INTENT_SENDER_SERVICE
See Also:
Constant Field Values

descriptor

static final String descriptor
See Also:
Constant Field Values

START_RUNNING_TRANSACTION

static final int START_RUNNING_TRANSACTION
See Also:
Constant Field Values

HANDLE_APPLICATION_ERROR_TRANSACTION

static final int HANDLE_APPLICATION_ERROR_TRANSACTION
See Also:
Constant Field Values

START_ACTIVITY_TRANSACTION

static final int START_ACTIVITY_TRANSACTION
See Also:
Constant Field Values

UNHANDLED_BACK_TRANSACTION

static final int UNHANDLED_BACK_TRANSACTION
See Also:
Constant Field Values

OPEN_CONTENT_URI_TRANSACTION

static final int OPEN_CONTENT_URI_TRANSACTION
See Also:
Constant Field Values

FINISH_ACTIVITY_TRANSACTION

static final int FINISH_ACTIVITY_TRANSACTION
See Also:
Constant Field Values

REGISTER_RECEIVER_TRANSACTION

static final int REGISTER_RECEIVER_TRANSACTION
See Also:
Constant Field Values

UNREGISTER_RECEIVER_TRANSACTION

static final int UNREGISTER_RECEIVER_TRANSACTION
See Also:
Constant Field Values

BROADCAST_INTENT_TRANSACTION

static final int BROADCAST_INTENT_TRANSACTION
See Also:
Constant Field Values

UNBROADCAST_INTENT_TRANSACTION

static final int UNBROADCAST_INTENT_TRANSACTION
See Also:
Constant Field Values

FINISH_RECEIVER_TRANSACTION

static final int FINISH_RECEIVER_TRANSACTION
See Also:
Constant Field Values

ATTACH_APPLICATION_TRANSACTION

static final int ATTACH_APPLICATION_TRANSACTION
See Also:
Constant Field Values

ACTIVITY_IDLE_TRANSACTION

static final int ACTIVITY_IDLE_TRANSACTION
See Also:
Constant Field Values

ACTIVITY_PAUSED_TRANSACTION

static final int ACTIVITY_PAUSED_TRANSACTION
See Also:
Constant Field Values

ACTIVITY_STOPPED_TRANSACTION

static final int ACTIVITY_STOPPED_TRANSACTION
See Also:
Constant Field Values

GET_CALLING_PACKAGE_TRANSACTION

static final int GET_CALLING_PACKAGE_TRANSACTION
See Also:
Constant Field Values

GET_CALLING_ACTIVITY_TRANSACTION

static final int GET_CALLING_ACTIVITY_TRANSACTION
See Also:
Constant Field Values

GET_TASKS_TRANSACTION

static final int GET_TASKS_TRANSACTION
See Also:
Constant Field Values

MOVE_TASK_TO_FRONT_TRANSACTION

static final int MOVE_TASK_TO_FRONT_TRANSACTION
See Also:
Constant Field Values

MOVE_TASK_TO_BACK_TRANSACTION

static final int MOVE_TASK_TO_BACK_TRANSACTION
See Also:
Constant Field Values

MOVE_TASK_BACKWARDS_TRANSACTION

static final int MOVE_TASK_BACKWARDS_TRANSACTION
See Also:
Constant Field Values

GET_TASK_FOR_ACTIVITY_TRANSACTION

static final int GET_TASK_FOR_ACTIVITY_TRANSACTION
See Also:
Constant Field Values

REPORT_THUMBNAIL_TRANSACTION

static final int REPORT_THUMBNAIL_TRANSACTION
See Also:
Constant Field Values

GET_CONTENT_PROVIDER_TRANSACTION

static final int GET_CONTENT_PROVIDER_TRANSACTION
See Also:
Constant Field Values

PUBLISH_CONTENT_PROVIDERS_TRANSACTION

static final int PUBLISH_CONTENT_PROVIDERS_TRANSACTION
See Also:
Constant Field Values

SET_PERSISTENT_TRANSACTION

static final int SET_PERSISTENT_TRANSACTION
See Also:
Constant Field Values

FINISH_SUB_ACTIVITY_TRANSACTION

static final int FINISH_SUB_ACTIVITY_TRANSACTION
See Also:
Constant Field Values

SYSTEM_READY_TRANSACTION

static final int SYSTEM_READY_TRANSACTION
See Also:
Constant Field Values

START_SERVICE_TRANSACTION

static final int START_SERVICE_TRANSACTION
See Also:
Constant Field Values

STOP_SERVICE_TRANSACTION

static final int STOP_SERVICE_TRANSACTION
See Also:
Constant Field Values

BIND_SERVICE_TRANSACTION

static final int BIND_SERVICE_TRANSACTION
See Also:
Constant Field Values

UNBIND_SERVICE_TRANSACTION

static final int UNBIND_SERVICE_TRANSACTION
See Also:
Constant Field Values

PUBLISH_SERVICE_TRANSACTION

static final int PUBLISH_SERVICE_TRANSACTION
See Also:
Constant Field Values

FINISH_OTHER_INSTANCES_TRANSACTION

static final int FINISH_OTHER_INSTANCES_TRANSACTION
See Also:
Constant Field Values

GOING_TO_SLEEP_TRANSACTION

static final int GOING_TO_SLEEP_TRANSACTION
See Also:
Constant Field Values

WAKING_UP_TRANSACTION

static final int WAKING_UP_TRANSACTION
See Also:
Constant Field Values

SET_DEBUG_APP_TRANSACTION

static final int SET_DEBUG_APP_TRANSACTION
See Also:
Constant Field Values

SET_ALWAYS_FINISH_TRANSACTION

static final int SET_ALWAYS_FINISH_TRANSACTION
See Also:
Constant Field Values

START_INSTRUMENTATION_TRANSACTION

static final int START_INSTRUMENTATION_TRANSACTION
See Also:
Constant Field Values

FINISH_INSTRUMENTATION_TRANSACTION

static final int FINISH_INSTRUMENTATION_TRANSACTION
See Also:
Constant Field Values

GET_CONFIGURATION_TRANSACTION

static final int GET_CONFIGURATION_TRANSACTION
See Also:
Constant Field Values

UPDATE_CONFIGURATION_TRANSACTION

static final int UPDATE_CONFIGURATION_TRANSACTION
See Also:
Constant Field Values

STOP_SERVICE_TOKEN_TRANSACTION

static final int STOP_SERVICE_TOKEN_TRANSACTION
See Also:
Constant Field Values

GET_ACTIVITY_CLASS_FOR_TOKEN_TRANSACTION

static final int GET_ACTIVITY_CLASS_FOR_TOKEN_TRANSACTION
See Also:
Constant Field Values

GET_PACKAGE_FOR_TOKEN_TRANSACTION

static final int GET_PACKAGE_FOR_TOKEN_TRANSACTION
See Also:
Constant Field Values

SET_PROCESS_LIMIT_TRANSACTION

static final int SET_PROCESS_LIMIT_TRANSACTION
See Also:
Constant Field Values

GET_PROCESS_LIMIT_TRANSACTION

static final int GET_PROCESS_LIMIT_TRANSACTION
See Also:
Constant Field Values

CHECK_PERMISSION_TRANSACTION

static final int CHECK_PERMISSION_TRANSACTION
See Also:
Constant Field Values

CHECK_URI_PERMISSION_TRANSACTION

static final int CHECK_URI_PERMISSION_TRANSACTION
See Also:
Constant Field Values

GRANT_URI_PERMISSION_TRANSACTION

static final int GRANT_URI_PERMISSION_TRANSACTION
See Also:
Constant Field Values

REVOKE_URI_PERMISSION_TRANSACTION

static final int REVOKE_URI_PERMISSION_TRANSACTION
See Also:
Constant Field Values

SET_ACTIVITY_WATCHER_TRANSACTION

static final int SET_ACTIVITY_WATCHER_TRANSACTION
See Also:
Constant Field Values

SHOW_WAITING_FOR_DEBUGGER_TRANSACTION

static final int SHOW_WAITING_FOR_DEBUGGER_TRANSACTION
See Also:
Constant Field Values

SIGNAL_PERSISTENT_PROCESSES_TRANSACTION

static final int SIGNAL_PERSISTENT_PROCESSES_TRANSACTION
See Also:
Constant Field Values

GET_RECENT_TASKS_TRANSACTION

static final int GET_RECENT_TASKS_TRANSACTION
See Also:
Constant Field Values

SERVICE_DONE_EXECUTING_TRANSACTION

static final int SERVICE_DONE_EXECUTING_TRANSACTION
See Also:
Constant Field Values

ACTIVITY_DESTROYED_TRANSACTION

static final int ACTIVITY_DESTROYED_TRANSACTION
See Also:
Constant Field Values

GET_INTENT_SENDER_TRANSACTION

static final int GET_INTENT_SENDER_TRANSACTION
See Also:
Constant Field Values

CANCEL_INTENT_SENDER_TRANSACTION

static final int CANCEL_INTENT_SENDER_TRANSACTION
See Also:
Constant Field Values

GET_PACKAGE_FOR_INTENT_SENDER_TRANSACTION

static final int GET_PACKAGE_FOR_INTENT_SENDER_TRANSACTION
See Also:
Constant Field Values

ENTER_SAFE_MODE_TRANSACTION

static final int ENTER_SAFE_MODE_TRANSACTION
See Also:
Constant Field Values

START_NEXT_MATCHING_ACTIVITY_TRANSACTION

static final int START_NEXT_MATCHING_ACTIVITY_TRANSACTION
See Also:
Constant Field Values

NOTE_WAKEUP_ALARM_TRANSACTION

static final int NOTE_WAKEUP_ALARM_TRANSACTION
See Also:
Constant Field Values

REMOVE_CONTENT_PROVIDER_TRANSACTION

static final int REMOVE_CONTENT_PROVIDER_TRANSACTION
See Also:
Constant Field Values

SET_REQUESTED_ORIENTATION_TRANSACTION

static final int SET_REQUESTED_ORIENTATION_TRANSACTION
See Also:
Constant Field Values

GET_REQUESTED_ORIENTATION_TRANSACTION

static final int GET_REQUESTED_ORIENTATION_TRANSACTION
See Also:
Constant Field Values

UNBIND_FINISHED_TRANSACTION

static final int UNBIND_FINISHED_TRANSACTION
See Also:
Constant Field Values

SET_PROCESS_FOREGROUND_TRANSACTION

static final int SET_PROCESS_FOREGROUND_TRANSACTION
See Also:
Constant Field Values

SET_SERVICE_FOREGROUND_TRANSACTION

static final int SET_SERVICE_FOREGROUND_TRANSACTION
See Also:
Constant Field Values

MOVE_ACTIVITY_TASK_TO_BACK_TRANSACTION

static final int MOVE_ACTIVITY_TASK_TO_BACK_TRANSACTION
See Also:
Constant Field Values

GET_MEMORY_INFO_TRANSACTION

static final int GET_MEMORY_INFO_TRANSACTION
See Also:
Constant Field Values

GET_PROCESSES_IN_ERROR_STATE_TRANSACTION

static final int GET_PROCESSES_IN_ERROR_STATE_TRANSACTION
See Also:
Constant Field Values

CLEAR_APP_DATA_TRANSACTION

static final int CLEAR_APP_DATA_TRANSACTION
See Also:
Constant Field Values

RESTART_PACKAGE_TRANSACTION

static final int RESTART_PACKAGE_TRANSACTION
See Also:
Constant Field Values

KILL_PIDS_FOR_MEMORY_TRANSACTION

static final int KILL_PIDS_FOR_MEMORY_TRANSACTION
See Also:
Constant Field Values

GET_SERVICES_TRANSACTION

static final int GET_SERVICES_TRANSACTION
See Also:
Constant Field Values

REPORT_PSS_TRANSACTION

static final int REPORT_PSS_TRANSACTION
See Also:
Constant Field Values
Method Detail

startActivity

int startActivity(IApplicationThread caller,
                  Intent intent,
                  String resolvedType,
                  Uri[] grantedUriPermissions,
                  int grantedMode,
                  IBinder resultTo,
                  String resultWho,
                  int requestCode,
                  boolean onlyIfNeeded,
                  boolean debug)
                  throws RemoteException
Throws:
RemoteException

startNextMatchingActivity

boolean startNextMatchingActivity(IBinder callingActivity,
                                  Intent intent)
                                  throws RemoteException
Throws:
RemoteException

finishActivity

boolean finishActivity(IBinder token,
                       int code,
                       Intent data)
                       throws RemoteException
Throws:
RemoteException

finishSubActivity

void finishSubActivity(IBinder token,
                       String resultWho,
                       int requestCode)
                       throws RemoteException
Throws:
RemoteException

registerReceiver

Intent registerReceiver(IApplicationThread caller,
                        IIntentReceiver receiver,
                        IntentFilter filter,
                        String requiredPermission)
                        throws RemoteException
Throws:
RemoteException

unregisterReceiver

void unregisterReceiver(IIntentReceiver receiver)
                        throws RemoteException
Throws:
RemoteException

broadcastIntent

int broadcastIntent(IApplicationThread caller,
                    Intent intent,
                    String resolvedType,
                    IIntentReceiver resultTo,
                    int resultCode,
                    String resultData,
                    Bundle map,
                    String requiredPermission,
                    boolean serialized,
                    boolean sticky)
                    throws RemoteException
Throws:
RemoteException

unbroadcastIntent

void unbroadcastIntent(IApplicationThread caller,
                       Intent intent)
                       throws RemoteException
Throws:
RemoteException

finishReceiver

void finishReceiver(IBinder who,
                    int resultCode,
                    String resultData,
                    Bundle map,
                    boolean abortBroadcast)
                    throws RemoteException
Throws:
RemoteException

setPersistent

void setPersistent(IBinder token,
                   boolean isPersistent)
                   throws RemoteException
Throws:
RemoteException

attachApplication

void attachApplication(IApplicationThread app)
                       throws RemoteException
Throws:
RemoteException

activityIdle

void activityIdle(IBinder token)
                  throws RemoteException
Throws:
RemoteException

activityPaused

void activityPaused(IBinder token,
                    Bundle state)
                    throws RemoteException
Throws:
RemoteException

activityStopped

void activityStopped(IBinder token,
                     Bitmap thumbnail,
                     CharSequence description)
                     throws RemoteException
Throws:
RemoteException

activityDestroyed

void activityDestroyed(IBinder token)
                       throws RemoteException
Throws:
RemoteException

getCallingPackage

String getCallingPackage(IBinder token)
                         throws RemoteException
Throws:
RemoteException

getCallingActivity

ComponentName getCallingActivity(IBinder token)
                                 throws RemoteException
Throws:
RemoteException

getTasks

List getTasks(int maxNum,
              int flags,
              IThumbnailReceiver receiver)
              throws RemoteException
Throws:
RemoteException

getRecentTasks

List<ActivityManager.RecentTaskInfo> getRecentTasks(int maxNum,
                                                    int flags)
                                                    throws RemoteException
Throws:
RemoteException

getServices

List getServices(int maxNum,
                 int flags)
                 throws RemoteException
Throws:
RemoteException

getProcessesInErrorState

List<ActivityManager.ProcessErrorStateInfo> getProcessesInErrorState()
                                                                     throws RemoteException
Throws:
RemoteException

moveTaskToFront

void moveTaskToFront(int task)
                     throws RemoteException
Throws:
RemoteException

moveTaskToBack

void moveTaskToBack(int task)
                    throws RemoteException
Throws:
RemoteException

moveActivityTaskToBack

boolean moveActivityTaskToBack(IBinder token,
                               boolean nonRoot)
                               throws RemoteException
Throws:
RemoteException

moveTaskBackwards

void moveTaskBackwards(int task)
                       throws RemoteException
Throws:
RemoteException

getTaskForActivity

int getTaskForActivity(IBinder token,
                       boolean onlyRoot)
                       throws RemoteException
Throws:
RemoteException

finishOtherInstances

void finishOtherInstances(IBinder token,
                          ComponentName className)
                          throws RemoteException
Throws:
RemoteException

reportThumbnail

void reportThumbnail(IBinder token,
                     Bitmap thumbnail,
                     CharSequence description)
                     throws RemoteException
Throws:
RemoteException

getContentProvider

IActivityManager.ContentProviderHolder getContentProvider(IApplicationThread caller,
                                                          String name)
                                                          throws RemoteException
Throws:
RemoteException

removeContentProvider

void removeContentProvider(IApplicationThread caller,
                           String name)
                           throws RemoteException
Throws:
RemoteException

publishContentProviders

void publishContentProviders(IApplicationThread caller,
                             List<IActivityManager.ContentProviderHolder> providers)
                             throws RemoteException
Throws:
RemoteException

startService

ComponentName startService(IApplicationThread caller,
                           Intent service,
                           String resolvedType)
                           throws RemoteException
Throws:
RemoteException

stopService

int stopService(IApplicationThread caller,
                Intent service,
                String resolvedType)
                throws RemoteException
Throws:
RemoteException

stopServiceToken

boolean stopServiceToken(ComponentName className,
                         IBinder token,
                         int startId)
                         throws RemoteException
Throws:
RemoteException

setServiceForeground

void setServiceForeground(ComponentName className,
                          IBinder token,
                          boolean isForeground)
                          throws RemoteException
Throws:
RemoteException

bindService

int bindService(IApplicationThread caller,
                IBinder token,
                Intent service,
                String resolvedType,
                IServiceConnection connection,
                int flags)
                throws RemoteException
Throws:
RemoteException

unbindService

boolean unbindService(IServiceConnection connection)
                      throws RemoteException
Throws:
RemoteException

publishService

void publishService(IBinder token,
                    Intent intent,
                    IBinder service)
                    throws RemoteException
Throws:
RemoteException

unbindFinished

void unbindFinished(IBinder token,
                    Intent service,
                    boolean doRebind)
                    throws RemoteException
Throws:
RemoteException

serviceDoneExecuting

void serviceDoneExecuting(IBinder token)
                          throws RemoteException
Throws:
RemoteException

startInstrumentation

boolean startInstrumentation(ComponentName className,
                             String profileFile,
                             int flags,
                             Bundle arguments,
                             IInstrumentationWatcher watcher)
                             throws RemoteException
Throws:
RemoteException

finishInstrumentation

void finishInstrumentation(IApplicationThread target,
                           int resultCode,
                           Bundle results)
                           throws RemoteException
Throws:
RemoteException

getConfiguration

Configuration getConfiguration()
                               throws RemoteException
Throws:
RemoteException

updateConfiguration

void updateConfiguration(Configuration values)
                         throws RemoteException
Throws:
RemoteException

setRequestedOrientation

void setRequestedOrientation(IBinder token,
                             int requestedOrientation)
                             throws RemoteException
Throws:
RemoteException

getRequestedOrientation

int getRequestedOrientation(IBinder token)
                            throws RemoteException
Throws:
RemoteException

getActivityClassForToken

ComponentName getActivityClassForToken(IBinder token)
                                       throws RemoteException
Throws:
RemoteException

getPackageForToken

String getPackageForToken(IBinder token)
                          throws RemoteException
Throws:
RemoteException

getIntentSender

IIntentSender getIntentSender(int type,
                              String packageName,
                              IBinder token,
                              String resultWho,
                              int requestCode,
                              Intent intent,
                              String resolvedType,
                              int flags)
                              throws RemoteException
Throws:
RemoteException

cancelIntentSender

void cancelIntentSender(IIntentSender sender)
                        throws RemoteException
Throws:
RemoteException

clearApplicationUserData

boolean clearApplicationUserData(String packageName,
                                 IPackageDataObserver observer)
                                 throws RemoteException
Throws:
RemoteException

getPackageForIntentSender

String getPackageForIntentSender(IIntentSender sender)
                                 throws RemoteException
Throws:
RemoteException

setProcessLimit

void setProcessLimit(int max)
                     throws RemoteException
Throws:
RemoteException

getProcessLimit

int getProcessLimit()
                    throws RemoteException
Throws:
RemoteException

setProcessForeground

void setProcessForeground(IBinder token,
                          int pid,
                          boolean isForeground)
                          throws RemoteException
Throws:
RemoteException

checkPermission

int checkPermission(String permission,
                    int pid,
                    int uid)
                    throws RemoteException
Throws:
RemoteException

checkUriPermission

int checkUriPermission(Uri uri,
                       int pid,
                       int uid,
                       int mode)
                       throws RemoteException
Throws:
RemoteException

grantUriPermission

void grantUriPermission(IApplicationThread caller,
                        String targetPkg,
                        Uri uri,
                        int mode)
                        throws RemoteException
Throws:
RemoteException

revokeUriPermission

void revokeUriPermission(IApplicationThread caller,
                         Uri uri,
                         int mode)
                         throws RemoteException
Throws:
RemoteException

showWaitingForDebugger

void showWaitingForDebugger(IApplicationThread who,
                            boolean waiting)
                            throws RemoteException
Throws:
RemoteException

getMemoryInfo

void getMemoryInfo(ActivityManager.MemoryInfo outInfo)
                   throws RemoteException
Throws:
RemoteException

restartPackage

void restartPackage(String packageName)
                    throws RemoteException
Throws:
RemoteException

goingToSleep

void goingToSleep()
                  throws RemoteException
Throws:
RemoteException

wakingUp

void wakingUp()
              throws RemoteException
Throws:
RemoteException

unhandledBack

void unhandledBack()
                   throws RemoteException
Throws:
RemoteException

openContentUri

ParcelFileDescriptor openContentUri(Uri uri)
                                    throws RemoteException
Throws:
RemoteException

setDebugApp

void setDebugApp(String packageName,
                 boolean waitForDebugger,
                 boolean persistent)
                 throws RemoteException
Throws:
RemoteException

setAlwaysFinish

void setAlwaysFinish(boolean enabled)
                     throws RemoteException
Throws:
RemoteException

setActivityWatcher

void setActivityWatcher(IActivityWatcher watcher)
                        throws RemoteException
Throws:
RemoteException

enterSafeMode

void enterSafeMode()
                   throws RemoteException
Throws:
RemoteException

noteWakeupAlarm

void noteWakeupAlarm(IIntentSender sender)
                     throws RemoteException
Throws:
RemoteException

killPidsForMemory

boolean killPidsForMemory(int[] pids)
                          throws RemoteException
Throws:
RemoteException

reportPss

void reportPss(IApplicationThread caller,
               int pss)
               throws RemoteException
Throws:
RemoteException

startRunning

void startRunning(String pkg,
                  String cls,
                  String action,
                  String data)
                  throws RemoteException
Throws:
RemoteException

systemReady

void systemReady()
                 throws RemoteException
Throws:
RemoteException

handleApplicationError

int handleApplicationError(IBinder app,
                           int flags,
                           String tag,
                           String shortMsg,
                           String longMsg,
                           byte[] crashData)
                           throws RemoteException
Throws:
RemoteException

signalPersistentProcesses

void signalPersistentProcesses(int signal)
                               throws RemoteException
Throws:
RemoteException

Build 1.0_r1(from source)

Please submit a feedback, bug or feature