FileDocCategorySizeDatePackage
IApplicationThread.javaAPI DocAndroid 5.1 API12730Thu Mar 12 22:22:10 GMT 2015android.app

IApplicationThread

public interface IApplicationThread implements android.os.IInterface
System private API for communicating with the application. This is given to the activity manager by an application when it starts up, for the activity manager to tell the application about things it needs to do. {@hide}

Fields Summary
static final int
BACKUP_MODE_INCREMENTAL
static final int
BACKUP_MODE_FULL
static final int
BACKUP_MODE_RESTORE
static final int
BACKUP_MODE_RESTORE_FULL
static final int
DEBUG_OFF
static final int
DEBUG_ON
static final int
DEBUG_WAIT
static final int
PACKAGE_REMOVED
static final int
EXTERNAL_STORAGE_UNAVAILABLE
String
descriptor
int
SCHEDULE_PAUSE_ACTIVITY_TRANSACTION
int
SCHEDULE_STOP_ACTIVITY_TRANSACTION
int
SCHEDULE_WINDOW_VISIBILITY_TRANSACTION
int
SCHEDULE_RESUME_ACTIVITY_TRANSACTION
int
SCHEDULE_SEND_RESULT_TRANSACTION
int
SCHEDULE_LAUNCH_ACTIVITY_TRANSACTION
int
SCHEDULE_NEW_INTENT_TRANSACTION
int
SCHEDULE_FINISH_ACTIVITY_TRANSACTION
int
SCHEDULE_RECEIVER_TRANSACTION
int
SCHEDULE_CREATE_SERVICE_TRANSACTION
int
SCHEDULE_STOP_SERVICE_TRANSACTION
int
BIND_APPLICATION_TRANSACTION
int
SCHEDULE_EXIT_TRANSACTION
int
SCHEDULE_CONFIGURATION_CHANGED_TRANSACTION
int
SCHEDULE_SERVICE_ARGS_TRANSACTION
int
UPDATE_TIME_ZONE_TRANSACTION
int
PROCESS_IN_BACKGROUND_TRANSACTION
int
SCHEDULE_BIND_SERVICE_TRANSACTION
int
SCHEDULE_UNBIND_SERVICE_TRANSACTION
int
DUMP_SERVICE_TRANSACTION
int
SCHEDULE_REGISTERED_RECEIVER_TRANSACTION
int
SCHEDULE_LOW_MEMORY_TRANSACTION
int
SCHEDULE_ACTIVITY_CONFIGURATION_CHANGED_TRANSACTION
int
SCHEDULE_RELAUNCH_ACTIVITY_TRANSACTION
int
SCHEDULE_SLEEPING_TRANSACTION
int
PROFILER_CONTROL_TRANSACTION
int
SET_SCHEDULING_GROUP_TRANSACTION
int
SCHEDULE_CREATE_BACKUP_AGENT_TRANSACTION
int
SCHEDULE_DESTROY_BACKUP_AGENT_TRANSACTION
int
SCHEDULE_ON_NEW_ACTIVITY_OPTIONS_TRANSACTION
int
SCHEDULE_SUICIDE_TRANSACTION
int
DISPATCH_PACKAGE_BROADCAST_TRANSACTION
int
SCHEDULE_CRASH_TRANSACTION
int
DUMP_HEAP_TRANSACTION
int
DUMP_ACTIVITY_TRANSACTION
int
CLEAR_DNS_CACHE_TRANSACTION
int
SET_HTTP_PROXY_TRANSACTION
int
SET_CORE_SETTINGS_TRANSACTION
int
UPDATE_PACKAGE_COMPATIBILITY_INFO_TRANSACTION
int
SCHEDULE_TRIM_MEMORY_TRANSACTION
int
DUMP_MEM_INFO_TRANSACTION
int
DUMP_GFX_INFO_TRANSACTION
int
DUMP_PROVIDER_TRANSACTION
int
DUMP_DB_INFO_TRANSACTION
int
UNSTABLE_PROVIDER_DIED_TRANSACTION
int
REQUEST_ASSIST_CONTEXT_EXTRAS_TRANSACTION
int
SCHEDULE_TRANSLUCENT_CONVERSION_COMPLETE_TRANSACTION
int
SET_PROCESS_STATE_TRANSACTION
int
SCHEDULE_INSTALL_PROVIDER_TRANSACTION
int
UPDATE_TIME_PREFS_TRANSACTION
int
CANCEL_VISIBLE_BEHIND_TRANSACTION
int
BACKGROUND_VISIBLE_BEHIND_CHANGED_TRANSACTION
int
ENTER_ANIMATION_COMPLETE_TRANSACTION
Constructors Summary
Methods Summary
public voidbindApplication(java.lang.String packageName, android.content.pm.ApplicationInfo info, java.util.List providers, android.content.ComponentName testName, ProfilerInfo profilerInfo, android.os.Bundle testArguments, IInstrumentationWatcher testWatcher, IUiAutomationConnection uiAutomationConnection, int debugMode, boolean openGlTrace, boolean restrictedBackupMode, boolean persistent, android.content.res.Configuration config, android.content.res.CompatibilityInfo compatInfo, java.util.Map services, android.os.Bundle coreSettings)

public voidclearDnsCache()

public voiddispatchPackageBroadcast(int cmd, java.lang.String[] packages)

public voiddumpActivity(java.io.FileDescriptor fd, android.os.IBinder servicetoken, java.lang.String prefix, java.lang.String[] args)

public voiddumpDbInfo(java.io.FileDescriptor fd, java.lang.String[] args)

public voiddumpGfxInfo(java.io.FileDescriptor fd, java.lang.String[] args)

public voiddumpHeap(boolean managed, java.lang.String path, android.os.ParcelFileDescriptor fd)

public voiddumpMemInfo(java.io.FileDescriptor fd, Debug.MemoryInfo mem, boolean checkin, boolean dumpInfo, boolean dumpDalvik, java.lang.String[] args)

public voiddumpProvider(java.io.FileDescriptor fd, android.os.IBinder servicetoken, java.lang.String[] args)

public voiddumpService(java.io.FileDescriptor fd, android.os.IBinder servicetoken, java.lang.String[] args)

public voidprocessInBackground()

public voidprofilerControl(boolean start, ProfilerInfo profilerInfo, int profileType)

public voidrequestAssistContextExtras(android.os.IBinder activityToken, android.os.IBinder requestToken, int requestType)

public voidscheduleActivityConfigurationChanged(android.os.IBinder token)

public voidscheduleBackgroundVisibleBehindChanged(android.os.IBinder token, boolean enabled)

public voidscheduleBindService(android.os.IBinder token, android.content.Intent intent, boolean rebind, int processState)

public voidscheduleCancelVisibleBehind(android.os.IBinder token)

public voidscheduleConfigurationChanged(android.content.res.Configuration config)

public voidscheduleCrash(java.lang.String msg)

public voidscheduleCreateBackupAgent(android.content.pm.ApplicationInfo app, android.content.res.CompatibilityInfo compatInfo, int backupMode)

public voidscheduleCreateService(android.os.IBinder token, android.content.pm.ServiceInfo info, android.content.res.CompatibilityInfo compatInfo, int processState)

public voidscheduleDestroyActivity(android.os.IBinder token, boolean finished, int configChanges)

public voidscheduleDestroyBackupAgent(android.content.pm.ApplicationInfo app, android.content.res.CompatibilityInfo compatInfo)

public voidscheduleEnterAnimationComplete(android.os.IBinder token)

public voidscheduleExit()

public voidscheduleInstallProvider(android.content.pm.ProviderInfo provider)

public voidscheduleLaunchActivity(android.content.Intent intent, android.os.IBinder token, int ident, android.content.pm.ActivityInfo info, android.content.res.Configuration curConfig, android.content.res.CompatibilityInfo compatInfo, java.lang.String referrer, com.android.internal.app.IVoiceInteractor voiceInteractor, int procState, android.os.Bundle state, android.os.PersistableBundle persistentState, java.util.List pendingResults, java.util.List pendingNewIntents, boolean notResumed, boolean isForward, ProfilerInfo profilerInfo)

public voidscheduleLowMemory()

public voidscheduleNewIntent(java.util.List intent, android.os.IBinder token)

public voidscheduleOnNewActivityOptions(android.os.IBinder token, ActivityOptions options)

public voidschedulePauseActivity(android.os.IBinder token, boolean finished, boolean userLeaving, int configChanges, boolean dontReport)

public voidscheduleReceiver(android.content.Intent intent, android.content.pm.ActivityInfo info, android.content.res.CompatibilityInfo compatInfo, int resultCode, java.lang.String data, android.os.Bundle extras, boolean sync, int sendingUser, int processState)

public voidscheduleRegisteredReceiver(android.content.IIntentReceiver receiver, android.content.Intent intent, int resultCode, java.lang.String data, android.os.Bundle extras, boolean ordered, boolean sticky, int sendingUser, int processState)

public voidscheduleRelaunchActivity(android.os.IBinder token, java.util.List pendingResults, java.util.List pendingNewIntents, int configChanges, boolean notResumed, android.content.res.Configuration config)

public voidscheduleResumeActivity(android.os.IBinder token, int procState, boolean isForward, android.os.Bundle resumeArgs)

public voidscheduleSendResult(android.os.IBinder token, java.util.List results)

public voidscheduleServiceArgs(android.os.IBinder token, boolean taskRemoved, int startId, int flags, android.content.Intent args)

public voidscheduleSleeping(android.os.IBinder token, boolean sleeping)

public voidscheduleStopActivity(android.os.IBinder token, boolean showWindow, int configChanges)

public voidscheduleStopService(android.os.IBinder token)

public voidscheduleSuicide()

public voidscheduleTranslucentConversionComplete(android.os.IBinder token, boolean timeout)

public voidscheduleTrimMemory(int level)

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

public voidscheduleWindowVisibility(android.os.IBinder token, boolean showWindow)

public voidsetCoreSettings(android.os.Bundle coreSettings)

public voidsetHttpProxy(java.lang.String proxy, java.lang.String port, java.lang.String exclList, android.net.Uri pacFileUrl)

public voidsetProcessState(int state)

public voidsetSchedulingGroup(int group)

public voidunstableProviderDied(android.os.IBinder provider)

public voidupdatePackageCompatibilityInfo(java.lang.String pkg, android.content.res.CompatibilityInfo info)

public voidupdateTimePrefs(boolean is24Hour)

public voidupdateTimeZone()