public interface IActivityManager extends IInterface
Modifier and Type | Interface and Description |
---|---|
static class |
IActivityManager.ContentProviderHolder
Information you can retrieve about a particular application.
|
static class |
IActivityManager.WaitResult
Information returned after waiting for an activity start.
|
Modifier and Type | Method and Description |
---|---|
void |
activityDestroyed(IBinder token) |
void |
activityIdle(IBinder token,
Configuration config,
boolean stopProfiling) |
void |
activityPaused(IBinder token) |
void |
activityRelaunched(IBinder token) |
void |
activityResumed(IBinder token) |
void |
activitySlept(IBinder token) |
void |
activityStopped(IBinder token,
Bundle state,
PersistableBundle persistentState,
CharSequence description) |
int |
addAppTask(IBinder activityToken,
Intent intent,
ActivityManager.TaskDescription description,
Bitmap thumbnail) |
void |
addPackageDependency(String packageName) |
void |
appNotRespondingViaProvider(IBinder connection) |
void |
attachApplication(IApplicationThread app) |
void |
backgroundResourcesReleased(IBinder token) |
void |
backupAgentCreated(String packageName,
IBinder agent) |
boolean |
bindBackupAgent(String packageName,
int backupRestoreMode,
int userId) |
int |
bindService(IApplicationThread caller,
IBinder token,
Intent service,
String resolvedType,
IServiceConnection connection,
int flags,
String callingPackage,
int userId) |
void |
bootAnimationComplete() |
int |
broadcastIntent(IApplicationThread caller,
Intent intent,
String resolvedType,
IIntentReceiver resultTo,
int resultCode,
String resultData,
Bundle map,
String[] requiredPermissions,
int appOp,
Bundle options,
boolean serialized,
boolean sticky,
int userId) |
boolean |
canBypassWorkChallenge(PendingIntent intent)
Returns if the target of the PendingIntent can be fired directly, without triggering
a work profile challenge.
|
void |
cancelIntentSender(IIntentSender sender) |
int |
checkGrantUriPermission(int callingUid,
String targetPkg,
Uri uri,
int modeFlags,
int userId) |
int |
checkPermission(String permission,
int pid,
int uid) |
int |
checkPermissionWithToken(String permission,
int pid,
int uid,
IBinder callerToken) |
int |
checkUriPermission(Uri uri,
int pid,
int uid,
int mode,
int userId,
IBinder callerToken) |
boolean |
clearApplicationUserData(String packageName,
IPackageDataObserver observer,
int userId) |
void |
clearGrantedUriPermissions(String packageName,
int userId) |
void |
clearPendingBackup() |
void |
closeSystemDialogs(String reason) |
boolean |
convertFromTranslucent(IBinder token) |
boolean |
convertToTranslucent(IBinder token,
ActivityOptions options) |
void |
crashApplication(int uid,
int initialPid,
String packageName,
String message) |
IActivityContainer |
createStackOnDisplay(int displayId) |
IActivityContainer |
createVirtualActivityContainer(IBinder parentActivityToken,
IActivityContainerCallback callback) |
void |
deleteActivityContainer(IActivityContainer container) |
boolean |
dumpHeap(String process,
int userId,
boolean managed,
String path,
ParcelFileDescriptor fd) |
void |
dumpHeapFinished(String path) |
void |
enterPictureInPictureMode(IBinder token) |
void |
enterSafeMode() |
void |
exitFreeformMode(IBinder token) |
boolean |
finishActivity(IBinder token,
int code,
Intent data,
int finishTask) |
boolean |
finishActivityAffinity(IBinder token) |
void |
finishHeavyWeightApp() |
void |
finishInstrumentation(IApplicationThread target,
int resultCode,
Bundle results) |
void |
finishReceiver(IBinder who,
int resultCode,
String resultData,
Bundle map,
boolean abortBroadcast,
int flags) |
void |
finishSubActivity(IBinder token,
String resultWho,
int requestCode) |
void |
finishVoiceTask(IVoiceInteractionSession session) |
void |
forceStopPackage(String packageName,
int userId) |
ComponentName |
getActivityClassForToken(IBinder token) |
int |
getActivityDisplayId(IBinder activityToken) |
ActivityOptions |
getActivityOptions(IBinder token) |
int |
getActivityStackId(IBinder token) |
List<ActivityManager.StackInfo> |
getAllStackInfos() |
int |
getAppStartMode(int uid,
String packageName) |
List<IAppTask> |
getAppTasks(String callingPackage) |
Point |
getAppTaskThumbnailSize() |
Bundle |
getAssistContextExtras(int requestType) |
ComponentName |
getCallingActivity(IBinder token) |
String |
getCallingPackage(IBinder token) |
Configuration |
getConfiguration() |
IActivityManager.ContentProviderHolder |
getContentProvider(IApplicationThread caller,
String name,
int userId,
boolean stable) |
IActivityManager.ContentProviderHolder |
getContentProviderExternal(String name,
int userId,
IBinder token) |
UserInfo |
getCurrentUser() |
ConfigurationInfo |
getDeviceConfigurationInfo() |
int |
getFocusedStackId() |
int |
getFrontActivityScreenCompatMode() |
ParceledListSlice<UriPermission> |
getGrantedUriPermissions(String packageName,
int userId) |
Intent |
getIntentForIntentSender(IIntentSender sender) |
IIntentSender |
getIntentSender(int type,
String packageName,
IBinder token,
String resultWho,
int requestCode,
Intent[] intents,
String[] resolvedTypes,
int flags,
Bundle options,
int userId) |
String |
getLaunchedFromPackage(IBinder activityToken) |
int |
getLaunchedFromUid(IBinder activityToken) |
int |
getLockTaskModeState() |
void |
getMemoryInfo(ActivityManager.MemoryInfo outInfo) |
int |
getMemoryTrimLevel() |
void |
getMyMemoryState(ActivityManager.RunningAppProcessInfo outInfo) |
boolean |
getPackageAskScreenCompat(String packageName) |
String |
getPackageForIntentSender(IIntentSender sender) |
String |
getPackageForToken(IBinder token) |
int |
getPackageProcessState(String packageName,
String callingPackage) |
int |
getPackageScreenCompatMode(String packageName) |
ParceledListSlice<UriPermission> |
getPersistedUriPermissions(String packageName,
boolean incoming) |
List<ActivityManager.ProcessErrorStateInfo> |
getProcessesInErrorState() |
int |
getProcessLimit() |
Debug.MemoryInfo[] |
getProcessMemoryInfo(int[] pids) |
long[] |
getProcessPss(int[] pids) |
String |
getProviderMimeType(Uri uri,
int userId) |
ParceledListSlice<ActivityManager.RecentTaskInfo> |
getRecentTasks(int maxNum,
int flags,
int userId) |
int |
getRequestedOrientation(IBinder token) |
List<ActivityManager.RunningAppProcessInfo> |
getRunningAppProcesses() |
List<ApplicationInfo> |
getRunningExternalApplications() |
PendingIntent |
getRunningServiceControlPanel(ComponentName service) |
int[] |
getRunningUserIds() |
List<ActivityManager.RunningServiceInfo> |
getServices(int maxNum,
int flags) |
ActivityManager.StackInfo |
getStackInfo(int stackId) |
String |
getTagForIntentSender(IIntentSender sender,
String prefix) |
Rect |
getTaskBounds(int taskId) |
Bitmap |
getTaskDescriptionIcon(String filename,
int userId) |
int |
getTaskForActivity(IBinder token,
boolean onlyRoot) |
List<ActivityManager.RunningTaskInfo> |
getTasks(int maxNum,
int flags) |
ActivityManager.TaskThumbnail |
getTaskThumbnail(int taskId) |
int |
getUidForIntentSender(IIntentSender sender) |
IBinder |
getUriPermissionOwnerForActivity(IBinder activityToken) |
void |
grantUriPermission(IApplicationThread caller,
String targetPkg,
Uri uri,
int mode,
int userId) |
void |
grantUriPermissionFromOwner(IBinder owner,
int fromUid,
String targetPkg,
Uri uri,
int mode,
int sourceUserId,
int targetUserId) |
void |
handleApplicationCrash(IBinder app,
ApplicationErrorReport.CrashInfo crashInfo) |
void |
handleApplicationStrictModeViolation(IBinder app,
int violationMask,
StrictMode.ViolationInfo crashInfo) |
boolean |
handleApplicationWtf(IBinder app,
String tag,
boolean system,
ApplicationErrorReport.CrashInfo crashInfo) |
int |
handleIncomingUser(int callingPid,
int callingUid,
int userId,
boolean allowAll,
boolean requireFull,
String name,
String callerPackage) |
void |
hang(IBinder who,
boolean allowRestart) |
long |
inputDispatchingTimedOut(int pid,
boolean aboveSystem,
String reason) |
boolean |
isAppForeground(int uid) |
boolean |
isAssistDataAllowedOnCurrentActivity() |
boolean |
isBackgroundVisibleBehind(IBinder token) |
boolean |
isImmersive(IBinder token) |
boolean |
isInHomeStack(int taskId) |
boolean |
isInLockTaskMode() |
boolean |
isInMultiWindowMode(IBinder token) |
boolean |
isInPictureInPictureMode(IBinder token) |
boolean |
isIntentSenderAnActivity(IIntentSender sender) |
boolean |
isIntentSenderTargetedToPackage(IIntentSender sender) |
boolean |
isRootVoiceInteraction(IBinder token) |
boolean |
isTopActivityImmersive() |
boolean |
isTopOfTask(IBinder token) |
boolean |
isUserAMonkey() |
boolean |
isUserRunning(int userid,
int flags) |
boolean |
isVrModePackageEnabled(ComponentName packageName) |
void |
keyguardGoingAway(int flags)
Notify the system that the keyguard is going away.
|
void |
keyguardWaitingForActivityDrawn() |
void |
killAllBackgroundProcesses() |
void |
killApplication(String pkg,
int appId,
int userId,
String reason) |
void |
killApplicationProcess(String processName,
int uid) |
void |
killBackgroundProcesses(String packageName,
int userId) |
void |
killPackageDependents(String packageName,
int userId) |
boolean |
killPids(int[] pids,
String reason,
boolean secure) |
boolean |
killProcessesBelowForeground(String reason) |
void |
killUid(int appId,
int userId,
String reason) |
boolean |
launchAssistIntent(Intent intent,
int requestType,
String hint,
int userHandle,
Bundle args) |
boolean |
moveActivityTaskToBack(IBinder token,
boolean nonRoot) |
void |
moveTaskBackwards(int task) |
void |
moveTasksToFullscreenStack(int fromStackId,
boolean onTop) |
boolean |
moveTaskToDockedStack(int taskId,
int createMode,
boolean toTop,
boolean animate,
Rect initialBounds,
boolean moveHomeStackFront) |
void |
moveTaskToFront(int task,
int flags,
Bundle options) |
void |
moveTaskToStack(int taskId,
int stackId,
boolean toTop) |
boolean |
moveTopActivityToPinnedStack(int stackId,
Rect bounds) |
boolean |
navigateUpTo(IBinder token,
Intent target,
int resultCode,
Intent resultData) |
IBinder |
newUriPermissionOwner(String name) |
void |
noteAlarmFinish(IIntentSender sender,
int sourceUid,
String tag) |
void |
noteAlarmStart(IIntentSender sender,
int sourceUid,
String tag) |
void |
noteWakeupAlarm(IIntentSender sender,
int sourceUid,
String sourcePkg,
String tag) |
void |
notifyActivityDrawn(IBinder token) |
void |
notifyCleartextNetwork(int uid,
byte[] firstPacket) |
void |
notifyEnterAnimationComplete(IBinder token) |
void |
notifyLaunchTaskBehindComplete(IBinder token) |
void |
notifyLockedProfile(int userId) |
void |
notifyPinnedStackAnimationEnded() |
ParcelFileDescriptor |
openContentUri(Uri uri) |
void |
overridePendingTransition(IBinder token,
String packageName,
int enterAnim,
int exitAnim) |
IBinder |
peekService(Intent service,
String resolvedType,
String callingPackage) |
void |
performIdleMaintenance() |
void |
positionTaskInStack(int taskId,
int stackId,
int position) |
boolean |
profileControl(String process,
int userId,
boolean start,
ProfilerInfo profilerInfo,
int profileType) |
void |
publishContentProviders(IApplicationThread caller,
List<IActivityManager.ContentProviderHolder> providers) |
void |
publishService(IBinder token,
Intent intent,
IBinder service) |
boolean |
refContentProvider(IBinder connection,
int stableDelta,
int unstableDelta) |
void |
registerProcessObserver(IProcessObserver observer) |
Intent |
registerReceiver(IApplicationThread caller,
String callerPackage,
IIntentReceiver receiver,
IntentFilter filter,
String requiredPermission,
int userId) |
void |
registerTaskStackListener(ITaskStackListener listener) |
void |
registerUidObserver(IUidObserver observer,
int which) |
void |
registerUserSwitchObserver(IUserSwitchObserver observer,
String name) |
boolean |
releaseActivityInstance(IBinder token) |
void |
releasePersistableUriPermission(Uri uri,
int modeFlags,
int userId) |
void |
releaseSomeActivities(IApplicationThread app) |
void |
removeContentProvider(IBinder connection,
boolean stable) |
void |
removeContentProviderExternal(String name,
IBinder token) |
void |
removeStack(int stackId) |
boolean |
removeTask(int taskId) |
void |
reportActivityFullyDrawn(IBinder token) |
void |
reportAssistContextExtras(IBinder token,
Bundle extras,
AssistStructure structure,
AssistContent content,
Uri referrer) |
void |
reportSizeConfigurations(IBinder token,
int[] horizontalSizeConfiguration,
int[] verticalSizeConfigurations,
int[] smallestWidthConfigurations) |
boolean |
requestAssistContextExtras(int requestType,
IResultReceiver receiver,
Bundle receiverExtras,
IBinder activityToken,
boolean focused,
boolean newSessionId) |
void |
requestBugReport(int bugreportType) |
boolean |
requestVisibleBehind(IBinder token,
boolean visible) |
void |
resizeDockedStack(Rect dockedBounds,
Rect tempDockedTaskBounds,
Rect tempDockedTaskInsetBounds,
Rect tempOtherTaskBounds,
Rect tempOtherTaskInsetBounds)
Resizes the docked stack, and all other stacks as the result of the dock stack bounds change.
|
void |
resizePinnedStack(Rect pinnedBounds,
Rect tempPinnedTaskBounds)
Resizes the pinned stack.
|
void |
resizeStack(int stackId,
Rect bounds,
boolean allowResizeInDockedMode,
boolean preserveWindows,
boolean animate,
int animationDuration)
Resizes the input stack id to the given bounds.
|
void |
resizeTask(int taskId,
Rect bounds,
int resizeMode) |
void |
restart() |
void |
resumeAppSwitches() |
void |
revokeUriPermission(IApplicationThread caller,
Uri uri,
int mode,
int userId) |
void |
revokeUriPermissionFromOwner(IBinder owner,
Uri uri,
int mode,
int userId) |
void |
sendIdleJobTrigger() |
int |
sendIntentSender(IIntentSender target,
int code,
Intent intent,
String resolvedType,
IIntentReceiver finishedReceiver,
String requiredPermission,
Bundle options) |
void |
serviceDoneExecuting(IBinder token,
int type,
int startId,
int res) |
void |
setActivityController(IActivityController watcher,
boolean imAMonkey) |
void |
setAlwaysFinish(boolean enabled) |
void |
setDebugApp(String packageName,
boolean waitForDebugger,
boolean persistent) |
void |
setDumpHeapDebugLimit(String processName,
int uid,
long maxMemSize,
String reportPackage) |
void |
setFocusedStack(int stackId) |
void |
setFocusedTask(int taskId) |
void |
setFrontActivityScreenCompatMode(int mode) |
void |
setHasTopUi(boolean hasTopUi)
Lets activity manager know whether the calling process is currently showing "top-level" UI
that is not an activity, i.e. windows on the screen the user is currently interacting with.
|
void |
setImmersive(IBinder token,
boolean immersive) |
void |
setLenientBackgroundCheck(boolean enabled) |
void |
setLockScreenShown(boolean showing,
boolean occluded) |
void |
setPackageAskScreenCompat(String packageName,
boolean ask) |
void |
setPackageScreenCompatMode(String packageName,
int mode) |
void |
setProcessForeground(IBinder token,
int pid,
boolean isForeground) |
void |
setProcessLimit(int max) |
boolean |
setProcessMemoryTrimLevel(String process,
int uid,
int level) |
void |
setRenderThread(int tid) |
void |
setRequestedOrientation(IBinder token,
int requestedOrientation) |
void |
setServiceForeground(ComponentName className,
IBinder token,
int id,
Notification notification,
int flags) |
void |
setTaskDescription(IBinder token,
ActivityManager.TaskDescription values) |
void |
setTaskResizeable(int taskId,
int resizeableMode) |
void |
setUserIsMonkey(boolean monkey) |
void |
setVoiceKeepAwake(IVoiceInteractionSession session,
boolean keepAwake) |
int |
setVrMode(IBinder token,
boolean enabled,
ComponentName packageName) |
void |
setVrThread(int tid) |
boolean |
shouldUpRecreateTask(IBinder token,
String destAffinity) |
boolean |
showAssistFromActivity(IBinder token,
Bundle args) |
void |
showBootMessage(CharSequence msg,
boolean always) |
void |
showLockTaskEscapeMessage(IBinder token) |
void |
showWaitingForDebugger(IApplicationThread who,
boolean waiting) |
boolean |
shutdown(int timeout) |
void |
signalPersistentProcesses(int signal) |
int |
startActivities(IApplicationThread caller,
String callingPackage,
Intent[] intents,
String[] resolvedTypes,
IBinder resultTo,
Bundle options,
int userId) |
int |
startActivity(IApplicationThread caller,
String callingPackage,
Intent intent,
String resolvedType,
IBinder resultTo,
String resultWho,
int requestCode,
int flags,
ProfilerInfo profilerInfo,
Bundle options) |
IActivityManager.WaitResult |
startActivityAndWait(IApplicationThread caller,
String callingPackage,
Intent intent,
String resolvedType,
IBinder resultTo,
String resultWho,
int requestCode,
int flags,
ProfilerInfo profilerInfo,
Bundle options,
int userId) |
int |
startActivityAsCaller(IApplicationThread caller,
String callingPackage,
Intent intent,
String resolvedType,
IBinder resultTo,
String resultWho,
int requestCode,
int flags,
ProfilerInfo profilerInfo,
Bundle options,
boolean ignoreTargetSecurity,
int userId) |
int |
startActivityAsUser(IApplicationThread caller,
String callingPackage,
Intent intent,
String resolvedType,
IBinder resultTo,
String resultWho,
int requestCode,
int flags,
ProfilerInfo profilerInfo,
Bundle options,
int userId) |
int |
startActivityFromRecents(int taskId,
Bundle options) |
int |
startActivityIntentSender(IApplicationThread caller,
IntentSender intent,
Intent fillInIntent,
String resolvedType,
IBinder resultTo,
String resultWho,
int requestCode,
int flagsMask,
int flagsValues,
Bundle options) |
int |
startActivityWithConfig(IApplicationThread caller,
String callingPackage,
Intent intent,
String resolvedType,
IBinder resultTo,
String resultWho,
int requestCode,
int startFlags,
Configuration newConfig,
Bundle options,
int userId) |
boolean |
startBinderTracking() |
void |
startConfirmDeviceCredentialIntent(Intent intent) |
void |
startInPlaceAnimationOnFrontMostApplication(ActivityOptions opts) |
boolean |
startInstrumentation(ComponentName className,
String profileFile,
int flags,
Bundle arguments,
IInstrumentationWatcher watcher,
IUiAutomationConnection connection,
int userId,
String abiOverride) |
void |
startLocalVoiceInteraction(IBinder token,
Bundle options) |
void |
startLockTaskMode(IBinder token) |
void |
startLockTaskMode(int taskId) |
boolean |
startNextMatchingActivity(IBinder callingActivity,
Intent intent,
Bundle options) |
ComponentName |
startService(IApplicationThread caller,
Intent service,
String resolvedType,
String callingPackage,
int userId) |
void |
startSystemLockTaskMode(int taskId) |
boolean |
startUserInBackground(int userid) |
int |
startVoiceActivity(String callingPackage,
int callingPid,
int callingUid,
Intent intent,
String resolvedType,
IVoiceInteractionSession session,
IVoiceInteractor interactor,
int flags,
ProfilerInfo profilerInfo,
Bundle options,
int userId) |
void |
stopAppSwitches() |
boolean |
stopBinderTrackingAndDump(ParcelFileDescriptor fd) |
void |
stopLocalVoiceInteraction(IBinder token) |
void |
stopLockTaskMode() |
int |
stopService(IApplicationThread caller,
Intent service,
String resolvedType,
int userId) |
boolean |
stopServiceToken(ComponentName className,
IBinder token,
int startId) |
void |
stopSystemLockTaskMode() |
int |
stopUser(int userid,
boolean force,
IStopUserCallback callback) |
boolean |
supportsLocalVoiceInteraction() |
void |
suppressResizeConfigChanges(boolean suppress) |
void |
swapDockedAndFullscreenStack()
Moves all tasks from the docked stack in the fullscreen stack and puts the top task of the
fullscreen stack into the docked stack.
|
boolean |
switchUser(int userid) |
void |
takePersistableUriPermission(Uri uri,
int modeFlags,
int userId) |
boolean |
testIsSystemReady() |
void |
unbindBackupAgent(ApplicationInfo appInfo) |
void |
unbindFinished(IBinder token,
Intent service,
boolean doRebind) |
boolean |
unbindService(IServiceConnection connection) |
void |
unbroadcastIntent(IApplicationThread caller,
Intent intent,
int userId) |
void |
unhandledBack() |
boolean |
unlockUser(int userid,
byte[] token,
byte[] secret,
IProgressListener listener) |
void |
unregisterProcessObserver(IProcessObserver observer) |
void |
unregisterReceiver(IIntentReceiver receiver) |
void |
unregisterUidObserver(IUidObserver observer) |
void |
unregisterUserSwitchObserver(IUserSwitchObserver observer) |
void |
unstableProviderDied(IBinder connection) |
void |
updateConfiguration(Configuration values) |
void |
updateDeviceOwner(String packageName) |
void |
updateLockTaskPackages(int userId,
String[] packages) |
void |
updatePersistentConfiguration(Configuration values) |
boolean |
willActivityBeVisible(IBinder token) |
asBinder
static final String descriptor
static final int HANDLE_APPLICATION_CRASH_TRANSACTION
static final int START_ACTIVITY_TRANSACTION
static final int UNHANDLED_BACK_TRANSACTION
static final int OPEN_CONTENT_URI_TRANSACTION
static final int FINISH_ACTIVITY_TRANSACTION
static final int REGISTER_RECEIVER_TRANSACTION
static final int UNREGISTER_RECEIVER_TRANSACTION
static final int BROADCAST_INTENT_TRANSACTION
static final int UNBROADCAST_INTENT_TRANSACTION
static final int FINISH_RECEIVER_TRANSACTION
static final int ATTACH_APPLICATION_TRANSACTION
static final int ACTIVITY_IDLE_TRANSACTION
static final int ACTIVITY_PAUSED_TRANSACTION
static final int ACTIVITY_STOPPED_TRANSACTION
static final int GET_CALLING_PACKAGE_TRANSACTION
static final int GET_CALLING_ACTIVITY_TRANSACTION
static final int GET_TASKS_TRANSACTION
static final int MOVE_TASK_TO_FRONT_TRANSACTION
static final int MOVE_TASK_BACKWARDS_TRANSACTION
static final int GET_TASK_FOR_ACTIVITY_TRANSACTION
static final int GET_CONTENT_PROVIDER_TRANSACTION
static final int PUBLISH_CONTENT_PROVIDERS_TRANSACTION
static final int REF_CONTENT_PROVIDER_TRANSACTION
static final int FINISH_SUB_ACTIVITY_TRANSACTION
static final int GET_RUNNING_SERVICE_CONTROL_PANEL_TRANSACTION
static final int START_SERVICE_TRANSACTION
static final int STOP_SERVICE_TRANSACTION
static final int BIND_SERVICE_TRANSACTION
static final int UNBIND_SERVICE_TRANSACTION
static final int PUBLISH_SERVICE_TRANSACTION
static final int ACTIVITY_RESUMED_TRANSACTION
static final int SET_DEBUG_APP_TRANSACTION
static final int SET_ALWAYS_FINISH_TRANSACTION
static final int START_INSTRUMENTATION_TRANSACTION
static final int FINISH_INSTRUMENTATION_TRANSACTION
static final int GET_CONFIGURATION_TRANSACTION
static final int UPDATE_CONFIGURATION_TRANSACTION
static final int STOP_SERVICE_TOKEN_TRANSACTION
static final int GET_ACTIVITY_CLASS_FOR_TOKEN_TRANSACTION
static final int GET_PACKAGE_FOR_TOKEN_TRANSACTION
static final int SET_PROCESS_LIMIT_TRANSACTION
static final int GET_PROCESS_LIMIT_TRANSACTION
static final int CHECK_PERMISSION_TRANSACTION
static final int CHECK_URI_PERMISSION_TRANSACTION
static final int GRANT_URI_PERMISSION_TRANSACTION
static final int REVOKE_URI_PERMISSION_TRANSACTION
static final int SET_ACTIVITY_CONTROLLER_TRANSACTION
static final int SHOW_WAITING_FOR_DEBUGGER_TRANSACTION
static final int SIGNAL_PERSISTENT_PROCESSES_TRANSACTION
static final int GET_RECENT_TASKS_TRANSACTION
static final int SERVICE_DONE_EXECUTING_TRANSACTION
static final int ACTIVITY_DESTROYED_TRANSACTION
static final int GET_INTENT_SENDER_TRANSACTION
static final int CANCEL_INTENT_SENDER_TRANSACTION
static final int GET_PACKAGE_FOR_INTENT_SENDER_TRANSACTION
static final int ENTER_SAFE_MODE_TRANSACTION
static final int START_NEXT_MATCHING_ACTIVITY_TRANSACTION
static final int NOTE_WAKEUP_ALARM_TRANSACTION
static final int REMOVE_CONTENT_PROVIDER_TRANSACTION
static final int SET_REQUESTED_ORIENTATION_TRANSACTION
static final int GET_REQUESTED_ORIENTATION_TRANSACTION
static final int UNBIND_FINISHED_TRANSACTION
static final int SET_PROCESS_FOREGROUND_TRANSACTION
static final int SET_SERVICE_FOREGROUND_TRANSACTION
static final int MOVE_ACTIVITY_TASK_TO_BACK_TRANSACTION
static final int GET_MEMORY_INFO_TRANSACTION
static final int GET_PROCESSES_IN_ERROR_STATE_TRANSACTION
static final int CLEAR_APP_DATA_TRANSACTION
static final int FORCE_STOP_PACKAGE_TRANSACTION
static final int KILL_PIDS_TRANSACTION
static final int GET_SERVICES_TRANSACTION
static final int GET_TASK_THUMBNAIL_TRANSACTION
static final int GET_RUNNING_APP_PROCESSES_TRANSACTION
static final int GET_DEVICE_CONFIGURATION_TRANSACTION
static final int PEEK_SERVICE_TRANSACTION
static final int PROFILE_CONTROL_TRANSACTION
static final int SHUTDOWN_TRANSACTION
static final int STOP_APP_SWITCHES_TRANSACTION
static final int RESUME_APP_SWITCHES_TRANSACTION
static final int START_BACKUP_AGENT_TRANSACTION
static final int BACKUP_AGENT_CREATED_TRANSACTION
static final int UNBIND_BACKUP_AGENT_TRANSACTION
static final int GET_UID_FOR_INTENT_SENDER_TRANSACTION
static final int HANDLE_INCOMING_USER_TRANSACTION
static final int ADD_PACKAGE_DEPENDENCY_TRANSACTION
static final int KILL_APPLICATION_TRANSACTION
static final int CLOSE_SYSTEM_DIALOGS_TRANSACTION
static final int GET_PROCESS_MEMORY_INFO_TRANSACTION
static final int KILL_APPLICATION_PROCESS_TRANSACTION
static final int START_ACTIVITY_INTENT_SENDER_TRANSACTION
static final int OVERRIDE_PENDING_TRANSITION_TRANSACTION
static final int HANDLE_APPLICATION_WTF_TRANSACTION
static final int KILL_BACKGROUND_PROCESSES_TRANSACTION
static final int IS_USER_A_MONKEY_TRANSACTION
static final int START_ACTIVITY_AND_WAIT_TRANSACTION
static final int WILL_ACTIVITY_BE_VISIBLE_TRANSACTION
static final int START_ACTIVITY_WITH_CONFIG_TRANSACTION
static final int GET_RUNNING_EXTERNAL_APPLICATIONS_TRANSACTION
static final int FINISH_HEAVY_WEIGHT_APP_TRANSACTION
static final int HANDLE_APPLICATION_STRICT_MODE_VIOLATION_TRANSACTION
static final int IS_IMMERSIVE_TRANSACTION
static final int SET_IMMERSIVE_TRANSACTION
static final int IS_TOP_ACTIVITY_IMMERSIVE_TRANSACTION
static final int CRASH_APPLICATION_TRANSACTION
static final int GET_PROVIDER_MIME_TYPE_TRANSACTION
static final int NEW_URI_PERMISSION_OWNER_TRANSACTION
static final int GRANT_URI_PERMISSION_FROM_OWNER_TRANSACTION
static final int REVOKE_URI_PERMISSION_FROM_OWNER_TRANSACTION
static final int CHECK_GRANT_URI_PERMISSION_TRANSACTION
static final int DUMP_HEAP_TRANSACTION
static final int START_ACTIVITIES_TRANSACTION
static final int IS_USER_RUNNING_TRANSACTION
static final int ACTIVITY_SLEPT_TRANSACTION
static final int GET_FRONT_ACTIVITY_SCREEN_COMPAT_MODE_TRANSACTION
static final int SET_FRONT_ACTIVITY_SCREEN_COMPAT_MODE_TRANSACTION
static final int GET_PACKAGE_SCREEN_COMPAT_MODE_TRANSACTION
static final int SET_PACKAGE_SCREEN_COMPAT_MODE_TRANSACTION
static final int GET_PACKAGE_ASK_SCREEN_COMPAT_TRANSACTION
static final int SET_PACKAGE_ASK_SCREEN_COMPAT_TRANSACTION
static final int SWITCH_USER_TRANSACTION
static final int SET_FOCUSED_TASK_TRANSACTION
static final int REMOVE_TASK_TRANSACTION
static final int REGISTER_PROCESS_OBSERVER_TRANSACTION
static final int UNREGISTER_PROCESS_OBSERVER_TRANSACTION
static final int IS_INTENT_SENDER_TARGETED_TO_PACKAGE_TRANSACTION
static final int UPDATE_PERSISTENT_CONFIGURATION_TRANSACTION
static final int GET_PROCESS_PSS_TRANSACTION
static final int SHOW_BOOT_MESSAGE_TRANSACTION
static final int KILL_ALL_BACKGROUND_PROCESSES_TRANSACTION
static final int GET_CONTENT_PROVIDER_EXTERNAL_TRANSACTION
static final int REMOVE_CONTENT_PROVIDER_EXTERNAL_TRANSACTION
static final int GET_MY_MEMORY_STATE_TRANSACTION
static final int KILL_PROCESSES_BELOW_FOREGROUND_TRANSACTION
static final int GET_CURRENT_USER_TRANSACTION
static final int SHOULD_UP_RECREATE_TASK_TRANSACTION
static final int NAVIGATE_UP_TO_TRANSACTION
static final int SET_LOCK_SCREEN_SHOWN_TRANSACTION
static final int FINISH_ACTIVITY_AFFINITY_TRANSACTION
static final int GET_LAUNCHED_FROM_UID_TRANSACTION
static final int UNSTABLE_PROVIDER_DIED_TRANSACTION
static final int IS_INTENT_SENDER_AN_ACTIVITY_TRANSACTION
static final int START_ACTIVITY_AS_USER_TRANSACTION
static final int STOP_USER_TRANSACTION
static final int REGISTER_USER_SWITCH_OBSERVER_TRANSACTION
static final int UNREGISTER_USER_SWITCH_OBSERVER_TRANSACTION
static final int GET_RUNNING_USER_IDS_TRANSACTION
static final int REQUEST_BUG_REPORT_TRANSACTION
static final int INPUT_DISPATCHING_TIMED_OUT_TRANSACTION
static final int CLEAR_PENDING_BACKUP_TRANSACTION
static final int GET_INTENT_FOR_INTENT_SENDER_TRANSACTION
static final int GET_ASSIST_CONTEXT_EXTRAS_TRANSACTION
static final int REPORT_ASSIST_CONTEXT_EXTRAS_TRANSACTION
static final int GET_LAUNCHED_FROM_PACKAGE_TRANSACTION
static final int KILL_UID_TRANSACTION
static final int SET_USER_IS_MONKEY_TRANSACTION
static final int HANG_TRANSACTION
static final int CREATE_VIRTUAL_ACTIVITY_CONTAINER_TRANSACTION
static final int MOVE_TASK_TO_STACK_TRANSACTION
static final int RESIZE_STACK_TRANSACTION
static final int GET_ALL_STACK_INFOS_TRANSACTION
static final int SET_FOCUSED_STACK_TRANSACTION
static final int GET_STACK_INFO_TRANSACTION
static final int CONVERT_FROM_TRANSLUCENT_TRANSACTION
static final int CONVERT_TO_TRANSLUCENT_TRANSACTION
static final int NOTIFY_ACTIVITY_DRAWN_TRANSACTION
static final int REPORT_ACTIVITY_FULLY_DRAWN_TRANSACTION
static final int RESTART_TRANSACTION
static final int PERFORM_IDLE_MAINTENANCE_TRANSACTION
static final int TAKE_PERSISTABLE_URI_PERMISSION_TRANSACTION
static final int RELEASE_PERSISTABLE_URI_PERMISSION_TRANSACTION
static final int GET_PERSISTED_URI_PERMISSIONS_TRANSACTION
static final int APP_NOT_RESPONDING_VIA_PROVIDER_TRANSACTION
static final int GET_TASK_BOUNDS_TRANSACTION
static final int GET_ACTIVITY_DISPLAY_ID_TRANSACTION
static final int DELETE_ACTIVITY_CONTAINER_TRANSACTION
static final int SET_PROCESS_MEMORY_TRIM_TRANSACTION
static final int GET_TAG_FOR_INTENT_SENDER_TRANSACTION
static final int START_USER_IN_BACKGROUND_TRANSACTION
static final int IS_IN_HOME_STACK_TRANSACTION
static final int START_LOCK_TASK_BY_TASK_ID_TRANSACTION
static final int START_LOCK_TASK_BY_TOKEN_TRANSACTION
static final int STOP_LOCK_TASK_MODE_TRANSACTION
static final int IS_IN_LOCK_TASK_MODE_TRANSACTION
static final int SET_TASK_DESCRIPTION_TRANSACTION
static final int START_VOICE_ACTIVITY_TRANSACTION
static final int GET_ACTIVITY_OPTIONS_TRANSACTION
static final int GET_APP_TASKS_TRANSACTION
static final int START_SYSTEM_LOCK_TASK_TRANSACTION
static final int STOP_SYSTEM_LOCK_TASK_TRANSACTION
static final int FINISH_VOICE_TASK_TRANSACTION
static final int IS_TOP_OF_TASK_TRANSACTION
static final int REQUEST_VISIBLE_BEHIND_TRANSACTION
static final int IS_BACKGROUND_VISIBLE_BEHIND_TRANSACTION
static final int BACKGROUND_RESOURCES_RELEASED_TRANSACTION
static final int NOTIFY_LAUNCH_TASK_BEHIND_COMPLETE_TRANSACTION
static final int START_ACTIVITY_FROM_RECENTS_TRANSACTION
static final int NOTIFY_ENTER_ANIMATION_COMPLETE_TRANSACTION
static final int KEYGUARD_WAITING_FOR_ACTIVITY_DRAWN_TRANSACTION
static final int START_ACTIVITY_AS_CALLER_TRANSACTION
static final int ADD_APP_TASK_TRANSACTION
static final int GET_APP_TASK_THUMBNAIL_SIZE_TRANSACTION
static final int RELEASE_ACTIVITY_INSTANCE_TRANSACTION
static final int RELEASE_SOME_ACTIVITIES_TRANSACTION
static final int BOOT_ANIMATION_COMPLETE_TRANSACTION
static final int GET_TASK_DESCRIPTION_ICON_TRANSACTION
static final int LAUNCH_ASSIST_INTENT_TRANSACTION
static final int START_IN_PLACE_ANIMATION_TRANSACTION
static final int CHECK_PERMISSION_WITH_TOKEN_TRANSACTION
static final int REGISTER_TASK_STACK_LISTENER_TRANSACTION
static final int NOTIFY_CLEARTEXT_NETWORK_TRANSACTION
static final int CREATE_STACK_ON_DISPLAY
static final int GET_FOCUSED_STACK_ID_TRANSACTION
static final int SET_TASK_RESIZEABLE_TRANSACTION
static final int REQUEST_ASSIST_CONTEXT_EXTRAS_TRANSACTION
static final int RESIZE_TASK_TRANSACTION
static final int GET_LOCK_TASK_MODE_STATE_TRANSACTION
static final int SET_DUMP_HEAP_DEBUG_LIMIT_TRANSACTION
static final int DUMP_HEAP_FINISHED_TRANSACTION
static final int SET_VOICE_KEEP_AWAKE_TRANSACTION
static final int UPDATE_LOCK_TASK_PACKAGES_TRANSACTION
static final int NOTE_ALARM_START_TRANSACTION
static final int NOTE_ALARM_FINISH_TRANSACTION
static final int GET_PACKAGE_PROCESS_STATE_TRANSACTION
static final int SHOW_LOCK_TASK_ESCAPE_MESSAGE_TRANSACTION
static final int UPDATE_DEVICE_OWNER_TRANSACTION
static final int KEYGUARD_GOING_AWAY_TRANSACTION
static final int REGISTER_UID_OBSERVER_TRANSACTION
static final int UNREGISTER_UID_OBSERVER_TRANSACTION
static final int IS_SCREEN_CAPTURE_ALLOWED_ON_CURRENT_ACTIVITY_TRANSACTION
static final int SHOW_ASSIST_FROM_ACTIVITY_TRANSACTION
static final int IS_ROOT_VOICE_INTERACTION_TRANSACTION
static final int START_BINDER_TRACKING_TRANSACTION
static final int STOP_BINDER_TRACKING_AND_DUMP_TRANSACTION
static final int POSITION_TASK_IN_STACK_TRANSACTION
static final int GET_ACTIVITY_STACK_ID_TRANSACTION
static final int EXIT_FREEFORM_MODE_TRANSACTION
static final int REPORT_SIZE_CONFIGURATIONS
static final int MOVE_TASK_TO_DOCKED_STACK_TRANSACTION
static final int SUPPRESS_RESIZE_CONFIG_CHANGES_TRANSACTION
static final int MOVE_TASKS_TO_FULLSCREEN_STACK_TRANSACTION
static final int MOVE_TOP_ACTIVITY_TO_PINNED_STACK_TRANSACTION
static final int GET_APP_START_MODE_TRANSACTION
static final int UNLOCK_USER_TRANSACTION
static final int IN_MULTI_WINDOW_TRANSACTION
static final int IN_PICTURE_IN_PICTURE_TRANSACTION
static final int KILL_PACKAGE_DEPENDENTS_TRANSACTION
static final int ENTER_PICTURE_IN_PICTURE_TRANSACTION
static final int ACTIVITY_RELAUNCHED_TRANSACTION
static final int GET_URI_PERMISSION_OWNER_FOR_ACTIVITY_TRANSACTION
static final int RESIZE_DOCKED_STACK_TRANSACTION
static final int SET_VR_MODE_TRANSACTION
static final int GET_GRANTED_URI_PERMISSIONS_TRANSACTION
static final int CLEAR_GRANTED_URI_PERMISSIONS_TRANSACTION
static final int IS_APP_FOREGROUND_TRANSACTION
static final int START_LOCAL_VOICE_INTERACTION_TRANSACTION
static final int STOP_LOCAL_VOICE_INTERACTION_TRANSACTION
static final int SUPPORTS_LOCAL_VOICE_INTERACTION_TRANSACTION
static final int NOTIFY_PINNED_STACK_ANIMATION_ENDED_TRANSACTION
static final int REMOVE_STACK
static final int SET_LENIENT_BACKGROUND_CHECK_TRANSACTION
static final int GET_MEMORY_TRIM_LEVEL_TRANSACTION
static final int RESIZE_PINNED_STACK_TRANSACTION
static final int IS_VR_PACKAGE_ENABLED_TRANSACTION
static final int SWAP_DOCKED_AND_FULLSCREEN_STACK
static final int NOTIFY_LOCKED_PROFILE
static final int START_CONFIRM_DEVICE_CREDENTIAL_INTENT
static final int SEND_IDLE_JOB_TRIGGER_TRANSACTION
static final int SEND_INTENT_SENDER_TRANSACTION
static final int SET_VR_THREAD_TRANSACTION
static final int SET_RENDER_THREAD_TRANSACTION
static final int SET_HAS_TOP_UI
static final int CAN_BYPASS_WORK_CHALLENGE
int startActivity(IApplicationThread caller, String callingPackage, Intent intent, String resolvedType, IBinder resultTo, String resultWho, int requestCode, int flags, ProfilerInfo profilerInfo, Bundle options) throws RemoteException
RemoteException
int startActivityAsUser(IApplicationThread caller, String callingPackage, Intent intent, String resolvedType, IBinder resultTo, String resultWho, int requestCode, int flags, ProfilerInfo profilerInfo, Bundle options, int userId) throws RemoteException
RemoteException
int startActivityAsCaller(IApplicationThread caller, String callingPackage, Intent intent, String resolvedType, IBinder resultTo, String resultWho, int requestCode, int flags, ProfilerInfo profilerInfo, Bundle options, boolean ignoreTargetSecurity, int userId) throws RemoteException
RemoteException
IActivityManager.WaitResult startActivityAndWait(IApplicationThread caller, String callingPackage, Intent intent, String resolvedType, IBinder resultTo, String resultWho, int requestCode, int flags, ProfilerInfo profilerInfo, Bundle options, int userId) throws RemoteException
RemoteException
int startActivityWithConfig(IApplicationThread caller, String callingPackage, Intent intent, String resolvedType, IBinder resultTo, String resultWho, int requestCode, int startFlags, Configuration newConfig, Bundle options, int userId) throws RemoteException
RemoteException
int startActivityIntentSender(IApplicationThread caller, IntentSender intent, Intent fillInIntent, String resolvedType, IBinder resultTo, String resultWho, int requestCode, int flagsMask, int flagsValues, Bundle options) throws RemoteException
RemoteException
int startVoiceActivity(String callingPackage, int callingPid, int callingUid, Intent intent, String resolvedType, IVoiceInteractionSession session, IVoiceInteractor interactor, int flags, ProfilerInfo profilerInfo, Bundle options, int userId) throws RemoteException
RemoteException
boolean startNextMatchingActivity(IBinder callingActivity, Intent intent, Bundle options) throws RemoteException
RemoteException
int startActivityFromRecents(int taskId, Bundle options) throws RemoteException
RemoteException
boolean finishActivity(IBinder token, int code, Intent data, int finishTask) throws RemoteException
RemoteException
void finishSubActivity(IBinder token, String resultWho, int requestCode) throws RemoteException
RemoteException
boolean finishActivityAffinity(IBinder token) throws RemoteException
RemoteException
void finishVoiceTask(IVoiceInteractionSession session) throws RemoteException
RemoteException
boolean releaseActivityInstance(IBinder token) throws RemoteException
RemoteException
void releaseSomeActivities(IApplicationThread app) throws RemoteException
RemoteException
boolean willActivityBeVisible(IBinder token) throws RemoteException
RemoteException
Intent registerReceiver(IApplicationThread caller, String callerPackage, IIntentReceiver receiver, IntentFilter filter, String requiredPermission, int userId) throws RemoteException
RemoteException
void unregisterReceiver(IIntentReceiver receiver) throws RemoteException
RemoteException
int broadcastIntent(IApplicationThread caller, Intent intent, String resolvedType, IIntentReceiver resultTo, int resultCode, String resultData, Bundle map, String[] requiredPermissions, int appOp, Bundle options, boolean serialized, boolean sticky, int userId) throws RemoteException
RemoteException
void unbroadcastIntent(IApplicationThread caller, Intent intent, int userId) throws RemoteException
RemoteException
void finishReceiver(IBinder who, int resultCode, String resultData, Bundle map, boolean abortBroadcast, int flags) throws RemoteException
RemoteException
void attachApplication(IApplicationThread app) throws RemoteException
RemoteException
void activityResumed(IBinder token) throws RemoteException
RemoteException
void activityIdle(IBinder token, Configuration config, boolean stopProfiling) throws RemoteException
RemoteException
void activityPaused(IBinder token) throws RemoteException
RemoteException
void activityStopped(IBinder token, Bundle state, PersistableBundle persistentState, CharSequence description) throws RemoteException
RemoteException
void activitySlept(IBinder token) throws RemoteException
RemoteException
void activityDestroyed(IBinder token) throws RemoteException
RemoteException
void activityRelaunched(IBinder token) throws RemoteException
RemoteException
void reportSizeConfigurations(IBinder token, int[] horizontalSizeConfiguration, int[] verticalSizeConfigurations, int[] smallestWidthConfigurations) throws RemoteException
RemoteException
String getCallingPackage(IBinder token) throws RemoteException
RemoteException
ComponentName getCallingActivity(IBinder token) throws RemoteException
RemoteException
List<IAppTask> getAppTasks(String callingPackage) throws RemoteException
RemoteException
int addAppTask(IBinder activityToken, Intent intent, ActivityManager.TaskDescription description, Bitmap thumbnail) throws RemoteException
RemoteException
Point getAppTaskThumbnailSize() throws RemoteException
RemoteException
List<ActivityManager.RunningTaskInfo> getTasks(int maxNum, int flags) throws RemoteException
RemoteException
ParceledListSlice<ActivityManager.RecentTaskInfo> getRecentTasks(int maxNum, int flags, int userId) throws RemoteException
RemoteException
ActivityManager.TaskThumbnail getTaskThumbnail(int taskId) throws RemoteException
RemoteException
List<ActivityManager.RunningServiceInfo> getServices(int maxNum, int flags) throws RemoteException
RemoteException
List<ActivityManager.ProcessErrorStateInfo> getProcessesInErrorState() throws RemoteException
RemoteException
void moveTaskToFront(int task, int flags, Bundle options) throws RemoteException
RemoteException
boolean moveActivityTaskToBack(IBinder token, boolean nonRoot) throws RemoteException
RemoteException
void moveTaskBackwards(int task) throws RemoteException
RemoteException
void moveTaskToStack(int taskId, int stackId, boolean toTop) throws RemoteException
RemoteException
boolean moveTaskToDockedStack(int taskId, int createMode, boolean toTop, boolean animate, Rect initialBounds, boolean moveHomeStackFront) throws RemoteException
RemoteException
boolean moveTopActivityToPinnedStack(int stackId, Rect bounds) throws RemoteException
RemoteException
void resizeStack(int stackId, Rect bounds, boolean allowResizeInDockedMode, boolean preserveWindows, boolean animate, int animationDuration) throws RemoteException
stackId
- Id of the stack to resize.bounds
- Bounds to resize the stack to or null
for fullscreen.allowResizeInDockedMode
- True if the resize should be allowed when the docked stack is
active.preserveWindows
- True if the windows of activities contained in the stack should be
preserved.animate
- True if the stack resize should be animated.animationDuration
- The duration of the resize animation in milliseconds or -1 if the
default animation duration should be used.RemoteException
void swapDockedAndFullscreenStack() throws RemoteException
RemoteException
void resizeDockedStack(Rect dockedBounds, Rect tempDockedTaskBounds, Rect tempDockedTaskInsetBounds, Rect tempOtherTaskBounds, Rect tempOtherTaskInsetBounds) throws RemoteException
dockedBounds
- The bounds for the docked stack.tempDockedTaskBounds
- The temporary bounds for the tasks in the docked stack, which
might be different from the stack bounds to allow more
flexibility while resizing, or null
if they should be the
same as the stack bounds.tempDockedTaskInsetBounds
- The temporary bounds for the tasks to calculate the insets.
When resizing, we usually "freeze" the layout of a task. To
achieve that, we also need to "freeze" the insets, which
gets achieved by changing task bounds but not bounds used
to calculate the insets in this transient statetempOtherTaskBounds
- The temporary bounds for the tasks in all other stacks, or
null
if they should be the same as the stack bounds.tempOtherTaskInsetBounds
- Like tempDockedTaskInsetBounds
, but for the other
stacks.RemoteException
void resizePinnedStack(Rect pinnedBounds, Rect tempPinnedTaskBounds) throws RemoteException
pinnedBounds
- The bounds for the pinned stack.tempPinnedTaskBounds
- The temporary bounds for the tasks in the pinned stack, which
might be different from the stack bounds to allow more
flexibility while resizing, or null
if they should be the
same as the stack bounds.RemoteException
void positionTaskInStack(int taskId, int stackId, int position) throws RemoteException
RemoteException
List<ActivityManager.StackInfo> getAllStackInfos() throws RemoteException
RemoteException
ActivityManager.StackInfo getStackInfo(int stackId) throws RemoteException
RemoteException
boolean isInHomeStack(int taskId) throws RemoteException
RemoteException
void setFocusedStack(int stackId) throws RemoteException
RemoteException
int getFocusedStackId() throws RemoteException
RemoteException
void setFocusedTask(int taskId) throws RemoteException
RemoteException
void registerTaskStackListener(ITaskStackListener listener) throws RemoteException
RemoteException
int getTaskForActivity(IBinder token, boolean onlyRoot) throws RemoteException
RemoteException
IActivityManager.ContentProviderHolder getContentProvider(IApplicationThread caller, String name, int userId, boolean stable) throws RemoteException
RemoteException
IActivityManager.ContentProviderHolder getContentProviderExternal(String name, int userId, IBinder token) throws RemoteException
RemoteException
void removeContentProvider(IBinder connection, boolean stable) throws RemoteException
RemoteException
void removeContentProviderExternal(String name, IBinder token) throws RemoteException
RemoteException
void publishContentProviders(IApplicationThread caller, List<IActivityManager.ContentProviderHolder> providers) throws RemoteException
RemoteException
boolean refContentProvider(IBinder connection, int stableDelta, int unstableDelta) throws RemoteException
RemoteException
void unstableProviderDied(IBinder connection) throws RemoteException
RemoteException
void appNotRespondingViaProvider(IBinder connection) throws RemoteException
RemoteException
PendingIntent getRunningServiceControlPanel(ComponentName service) throws RemoteException
RemoteException
ComponentName startService(IApplicationThread caller, Intent service, String resolvedType, String callingPackage, int userId) throws RemoteException
RemoteException
int stopService(IApplicationThread caller, Intent service, String resolvedType, int userId) throws RemoteException
RemoteException
boolean stopServiceToken(ComponentName className, IBinder token, int startId) throws RemoteException
RemoteException
void setServiceForeground(ComponentName className, IBinder token, int id, Notification notification, int flags) throws RemoteException
RemoteException
int bindService(IApplicationThread caller, IBinder token, Intent service, String resolvedType, IServiceConnection connection, int flags, String callingPackage, int userId) throws RemoteException
RemoteException
boolean unbindService(IServiceConnection connection) throws RemoteException
RemoteException
void publishService(IBinder token, Intent intent, IBinder service) throws RemoteException
RemoteException
void unbindFinished(IBinder token, Intent service, boolean doRebind) throws RemoteException
RemoteException
void serviceDoneExecuting(IBinder token, int type, int startId, int res) throws RemoteException
RemoteException
IBinder peekService(Intent service, String resolvedType, String callingPackage) throws RemoteException
RemoteException
boolean bindBackupAgent(String packageName, int backupRestoreMode, int userId) throws RemoteException
RemoteException
void clearPendingBackup() throws RemoteException
RemoteException
void backupAgentCreated(String packageName, IBinder agent) throws RemoteException
RemoteException
void unbindBackupAgent(ApplicationInfo appInfo) throws RemoteException
RemoteException
void killApplicationProcess(String processName, int uid) throws RemoteException
RemoteException
boolean startInstrumentation(ComponentName className, String profileFile, int flags, Bundle arguments, IInstrumentationWatcher watcher, IUiAutomationConnection connection, int userId, String abiOverride) throws RemoteException
RemoteException
void finishInstrumentation(IApplicationThread target, int resultCode, Bundle results) throws RemoteException
RemoteException
Configuration getConfiguration() throws RemoteException
RemoteException
void updateConfiguration(Configuration values) throws RemoteException
RemoteException
void setRequestedOrientation(IBinder token, int requestedOrientation) throws RemoteException
RemoteException
int getRequestedOrientation(IBinder token) throws RemoteException
RemoteException
ComponentName getActivityClassForToken(IBinder token) throws RemoteException
RemoteException
String getPackageForToken(IBinder token) throws RemoteException
RemoteException
IIntentSender getIntentSender(int type, String packageName, IBinder token, String resultWho, int requestCode, Intent[] intents, String[] resolvedTypes, int flags, Bundle options, int userId) throws RemoteException
RemoteException
void cancelIntentSender(IIntentSender sender) throws RemoteException
RemoteException
boolean clearApplicationUserData(String packageName, IPackageDataObserver observer, int userId) throws RemoteException
RemoteException
String getPackageForIntentSender(IIntentSender sender) throws RemoteException
RemoteException
int getUidForIntentSender(IIntentSender sender) throws RemoteException
RemoteException
int handleIncomingUser(int callingPid, int callingUid, int userId, boolean allowAll, boolean requireFull, String name, String callerPackage) throws RemoteException
RemoteException
void setProcessLimit(int max) throws RemoteException
RemoteException
int getProcessLimit() throws RemoteException
RemoteException
void setProcessForeground(IBinder token, int pid, boolean isForeground) throws RemoteException
RemoteException
int checkPermission(String permission, int pid, int uid) throws RemoteException
RemoteException
int checkPermissionWithToken(String permission, int pid, int uid, IBinder callerToken) throws RemoteException
RemoteException
int checkUriPermission(Uri uri, int pid, int uid, int mode, int userId, IBinder callerToken) throws RemoteException
RemoteException
void grantUriPermission(IApplicationThread caller, String targetPkg, Uri uri, int mode, int userId) throws RemoteException
RemoteException
void revokeUriPermission(IApplicationThread caller, Uri uri, int mode, int userId) throws RemoteException
RemoteException
void takePersistableUriPermission(Uri uri, int modeFlags, int userId) throws RemoteException
RemoteException
void releasePersistableUriPermission(Uri uri, int modeFlags, int userId) throws RemoteException
RemoteException
ParceledListSlice<UriPermission> getPersistedUriPermissions(String packageName, boolean incoming) throws RemoteException
RemoteException
ParceledListSlice<UriPermission> getGrantedUriPermissions(String packageName, int userId) throws RemoteException
RemoteException
void clearGrantedUriPermissions(String packageName, int userId) throws RemoteException
RemoteException
void showWaitingForDebugger(IApplicationThread who, boolean waiting) throws RemoteException
RemoteException
void getMemoryInfo(ActivityManager.MemoryInfo outInfo) throws RemoteException
RemoteException
void killBackgroundProcesses(String packageName, int userId) throws RemoteException
RemoteException
void killAllBackgroundProcesses() throws RemoteException
RemoteException
void killPackageDependents(String packageName, int userId) throws RemoteException
RemoteException
void forceStopPackage(String packageName, int userId) throws RemoteException
RemoteException
void setLockScreenShown(boolean showing, boolean occluded) throws RemoteException
RemoteException
void unhandledBack() throws RemoteException
RemoteException
ParcelFileDescriptor openContentUri(Uri uri) throws RemoteException
RemoteException
void setDebugApp(String packageName, boolean waitForDebugger, boolean persistent) throws RemoteException
RemoteException
void setAlwaysFinish(boolean enabled) throws RemoteException
RemoteException
void setActivityController(IActivityController watcher, boolean imAMonkey) throws RemoteException
RemoteException
void setLenientBackgroundCheck(boolean enabled) throws RemoteException
RemoteException
int getMemoryTrimLevel() throws RemoteException
RemoteException
void enterSafeMode() throws RemoteException
RemoteException
void noteWakeupAlarm(IIntentSender sender, int sourceUid, String sourcePkg, String tag) throws RemoteException
RemoteException
void noteAlarmStart(IIntentSender sender, int sourceUid, String tag) throws RemoteException
RemoteException
void noteAlarmFinish(IIntentSender sender, int sourceUid, String tag) throws RemoteException
RemoteException
boolean killPids(int[] pids, String reason, boolean secure) throws RemoteException
RemoteException
boolean killProcessesBelowForeground(String reason) throws RemoteException
RemoteException
void handleApplicationCrash(IBinder app, ApplicationErrorReport.CrashInfo crashInfo) throws RemoteException
RemoteException
boolean handleApplicationWtf(IBinder app, String tag, boolean system, ApplicationErrorReport.CrashInfo crashInfo) throws RemoteException
RemoteException
void handleApplicationStrictModeViolation(IBinder app, int violationMask, StrictMode.ViolationInfo crashInfo) throws RemoteException
RemoteException
void signalPersistentProcesses(int signal) throws RemoteException
RemoteException
List<ActivityManager.RunningAppProcessInfo> getRunningAppProcesses() throws RemoteException
RemoteException
List<ApplicationInfo> getRunningExternalApplications() throws RemoteException
RemoteException
void getMyMemoryState(ActivityManager.RunningAppProcessInfo outInfo) throws RemoteException
RemoteException
ConfigurationInfo getDeviceConfigurationInfo() throws RemoteException
RemoteException
boolean profileControl(String process, int userId, boolean start, ProfilerInfo profilerInfo, int profileType) throws RemoteException
RemoteException
boolean shutdown(int timeout) throws RemoteException
RemoteException
void stopAppSwitches() throws RemoteException
RemoteException
void resumeAppSwitches() throws RemoteException
RemoteException
void addPackageDependency(String packageName) throws RemoteException
RemoteException
void killApplication(String pkg, int appId, int userId, String reason) throws RemoteException
RemoteException
void closeSystemDialogs(String reason) throws RemoteException
RemoteException
Debug.MemoryInfo[] getProcessMemoryInfo(int[] pids) throws RemoteException
RemoteException
void overridePendingTransition(IBinder token, String packageName, int enterAnim, int exitAnim) throws RemoteException
RemoteException
boolean isUserAMonkey() throws RemoteException
RemoteException
void setUserIsMonkey(boolean monkey) throws RemoteException
RemoteException
void finishHeavyWeightApp() throws RemoteException
RemoteException
boolean convertFromTranslucent(IBinder token) throws RemoteException
RemoteException
boolean convertToTranslucent(IBinder token, ActivityOptions options) throws RemoteException
RemoteException
void notifyActivityDrawn(IBinder token) throws RemoteException
RemoteException
ActivityOptions getActivityOptions(IBinder token) throws RemoteException
RemoteException
void bootAnimationComplete() throws RemoteException
RemoteException
void setImmersive(IBinder token, boolean immersive) throws RemoteException
RemoteException
boolean isImmersive(IBinder token) throws RemoteException
RemoteException
boolean isTopActivityImmersive() throws RemoteException
RemoteException
boolean isTopOfTask(IBinder token) throws RemoteException
RemoteException
void crashApplication(int uid, int initialPid, String packageName, String message) throws RemoteException
RemoteException
String getProviderMimeType(Uri uri, int userId) throws RemoteException
RemoteException
IBinder newUriPermissionOwner(String name) throws RemoteException
RemoteException
IBinder getUriPermissionOwnerForActivity(IBinder activityToken) throws RemoteException
RemoteException
void grantUriPermissionFromOwner(IBinder owner, int fromUid, String targetPkg, Uri uri, int mode, int sourceUserId, int targetUserId) throws RemoteException
RemoteException
void revokeUriPermissionFromOwner(IBinder owner, Uri uri, int mode, int userId) throws RemoteException
RemoteException
int checkGrantUriPermission(int callingUid, String targetPkg, Uri uri, int modeFlags, int userId) throws RemoteException
RemoteException
boolean dumpHeap(String process, int userId, boolean managed, String path, ParcelFileDescriptor fd) throws RemoteException
RemoteException
int startActivities(IApplicationThread caller, String callingPackage, Intent[] intents, String[] resolvedTypes, IBinder resultTo, Bundle options, int userId) throws RemoteException
RemoteException
int getFrontActivityScreenCompatMode() throws RemoteException
RemoteException
void setFrontActivityScreenCompatMode(int mode) throws RemoteException
RemoteException
int getPackageScreenCompatMode(String packageName) throws RemoteException
RemoteException
void setPackageScreenCompatMode(String packageName, int mode) throws RemoteException
RemoteException
boolean getPackageAskScreenCompat(String packageName) throws RemoteException
RemoteException
void setPackageAskScreenCompat(String packageName, boolean ask) throws RemoteException
RemoteException
boolean switchUser(int userid) throws RemoteException
RemoteException
boolean startUserInBackground(int userid) throws RemoteException
RemoteException
boolean unlockUser(int userid, byte[] token, byte[] secret, IProgressListener listener) throws RemoteException
RemoteException
int stopUser(int userid, boolean force, IStopUserCallback callback) throws RemoteException
RemoteException
UserInfo getCurrentUser() throws RemoteException
RemoteException
boolean isUserRunning(int userid, int flags) throws RemoteException
RemoteException
int[] getRunningUserIds() throws RemoteException
RemoteException
boolean removeTask(int taskId) throws RemoteException
RemoteException
void registerProcessObserver(IProcessObserver observer) throws RemoteException
RemoteException
void unregisterProcessObserver(IProcessObserver observer) throws RemoteException
RemoteException
void registerUidObserver(IUidObserver observer, int which) throws RemoteException
RemoteException
void unregisterUidObserver(IUidObserver observer) throws RemoteException
RemoteException
boolean isIntentSenderTargetedToPackage(IIntentSender sender) throws RemoteException
RemoteException
boolean isIntentSenderAnActivity(IIntentSender sender) throws RemoteException
RemoteException
Intent getIntentForIntentSender(IIntentSender sender) throws RemoteException
RemoteException
String getTagForIntentSender(IIntentSender sender, String prefix) throws RemoteException
RemoteException
void updatePersistentConfiguration(Configuration values) throws RemoteException
RemoteException
long[] getProcessPss(int[] pids) throws RemoteException
RemoteException
void showBootMessage(CharSequence msg, boolean always) throws RemoteException
RemoteException
void keyguardWaitingForActivityDrawn() throws RemoteException
RemoteException
void keyguardGoingAway(int flags) throws RemoteException
flags
- See WindowManagerPolicy.KEYGUARD_GOING_AWAY_FLAG_TO_SHADE
etc.RemoteException
boolean shouldUpRecreateTask(IBinder token, String destAffinity) throws RemoteException
RemoteException
boolean navigateUpTo(IBinder token, Intent target, int resultCode, Intent resultData) throws RemoteException
RemoteException
int getLaunchedFromUid(IBinder activityToken) throws RemoteException
RemoteException
String getLaunchedFromPackage(IBinder activityToken) throws RemoteException
RemoteException
void registerUserSwitchObserver(IUserSwitchObserver observer, String name) throws RemoteException
RemoteException
void unregisterUserSwitchObserver(IUserSwitchObserver observer) throws RemoteException
RemoteException
void requestBugReport(int bugreportType) throws RemoteException
RemoteException
long inputDispatchingTimedOut(int pid, boolean aboveSystem, String reason) throws RemoteException
RemoteException
Bundle getAssistContextExtras(int requestType) throws RemoteException
RemoteException
boolean requestAssistContextExtras(int requestType, IResultReceiver receiver, Bundle receiverExtras, IBinder activityToken, boolean focused, boolean newSessionId) throws RemoteException
RemoteException
void reportAssistContextExtras(IBinder token, Bundle extras, AssistStructure structure, AssistContent content, Uri referrer) throws RemoteException
RemoteException
boolean launchAssistIntent(Intent intent, int requestType, String hint, int userHandle, Bundle args) throws RemoteException
RemoteException
boolean isAssistDataAllowedOnCurrentActivity() throws RemoteException
RemoteException
boolean showAssistFromActivity(IBinder token, Bundle args) throws RemoteException
RemoteException
void killUid(int appId, int userId, String reason) throws RemoteException
RemoteException
void hang(IBinder who, boolean allowRestart) throws RemoteException
RemoteException
void reportActivityFullyDrawn(IBinder token) throws RemoteException
RemoteException
void restart() throws RemoteException
RemoteException
void performIdleMaintenance() throws RemoteException
RemoteException
void sendIdleJobTrigger() throws RemoteException
RemoteException
IActivityContainer createVirtualActivityContainer(IBinder parentActivityToken, IActivityContainerCallback callback) throws RemoteException
RemoteException
IActivityContainer createStackOnDisplay(int displayId) throws RemoteException
RemoteException
void deleteActivityContainer(IActivityContainer container) throws RemoteException
RemoteException
int getActivityDisplayId(IBinder activityToken) throws RemoteException
RemoteException
void startSystemLockTaskMode(int taskId) throws RemoteException
RemoteException
void startLockTaskMode(int taskId) throws RemoteException
RemoteException
void startLockTaskMode(IBinder token) throws RemoteException
RemoteException
void stopLockTaskMode() throws RemoteException
RemoteException
void stopSystemLockTaskMode() throws RemoteException
RemoteException
boolean isInLockTaskMode() throws RemoteException
RemoteException
int getLockTaskModeState() throws RemoteException
RemoteException
void showLockTaskEscapeMessage(IBinder token) throws RemoteException
RemoteException
void setTaskDescription(IBinder token, ActivityManager.TaskDescription values) throws RemoteException
RemoteException
void setTaskResizeable(int taskId, int resizeableMode) throws RemoteException
RemoteException
void resizeTask(int taskId, Rect bounds, int resizeMode) throws RemoteException
RemoteException
Rect getTaskBounds(int taskId) throws RemoteException
RemoteException
Bitmap getTaskDescriptionIcon(String filename, int userId) throws RemoteException
RemoteException
void startInPlaceAnimationOnFrontMostApplication(ActivityOptions opts) throws RemoteException
RemoteException
boolean requestVisibleBehind(IBinder token, boolean visible) throws RemoteException
RemoteException
boolean isBackgroundVisibleBehind(IBinder token) throws RemoteException
RemoteException
void backgroundResourcesReleased(IBinder token) throws RemoteException
RemoteException
void notifyLaunchTaskBehindComplete(IBinder token) throws RemoteException
RemoteException
void notifyEnterAnimationComplete(IBinder token) throws RemoteException
RemoteException
void notifyCleartextNetwork(int uid, byte[] firstPacket) throws RemoteException
RemoteException
void setDumpHeapDebugLimit(String processName, int uid, long maxMemSize, String reportPackage) throws RemoteException
RemoteException
void dumpHeapFinished(String path) throws RemoteException
RemoteException
void setVoiceKeepAwake(IVoiceInteractionSession session, boolean keepAwake) throws RemoteException
RemoteException
void updateLockTaskPackages(int userId, String[] packages) throws RemoteException
RemoteException
void updateDeviceOwner(String packageName) throws RemoteException
RemoteException
int getPackageProcessState(String packageName, String callingPackage) throws RemoteException
RemoteException
boolean setProcessMemoryTrimLevel(String process, int uid, int level) throws RemoteException
RemoteException
boolean isRootVoiceInteraction(IBinder token) throws RemoteException
RemoteException
boolean startBinderTracking() throws RemoteException
RemoteException
boolean stopBinderTrackingAndDump(ParcelFileDescriptor fd) throws RemoteException
RemoteException
int getActivityStackId(IBinder token) throws RemoteException
RemoteException
void exitFreeformMode(IBinder token) throws RemoteException
RemoteException
void suppressResizeConfigChanges(boolean suppress) throws RemoteException
RemoteException
void moveTasksToFullscreenStack(int fromStackId, boolean onTop) throws RemoteException
RemoteException
int getAppStartMode(int uid, String packageName) throws RemoteException
RemoteException
boolean isInMultiWindowMode(IBinder token) throws RemoteException
RemoteException
boolean isInPictureInPictureMode(IBinder token) throws RemoteException
RemoteException
void enterPictureInPictureMode(IBinder token) throws RemoteException
RemoteException
int setVrMode(IBinder token, boolean enabled, ComponentName packageName) throws RemoteException
RemoteException
boolean isVrModePackageEnabled(ComponentName packageName) throws RemoteException
RemoteException
boolean isAppForeground(int uid) throws RemoteException
RemoteException
void startLocalVoiceInteraction(IBinder token, Bundle options) throws RemoteException
RemoteException
void stopLocalVoiceInteraction(IBinder token) throws RemoteException
RemoteException
boolean supportsLocalVoiceInteraction() throws RemoteException
RemoteException
void notifyPinnedStackAnimationEnded() throws RemoteException
RemoteException
void removeStack(int stackId) throws RemoteException
RemoteException
void notifyLockedProfile(int userId) throws RemoteException
RemoteException
void startConfirmDeviceCredentialIntent(Intent intent) throws RemoteException
RemoteException
int sendIntentSender(IIntentSender target, int code, Intent intent, String resolvedType, IIntentReceiver finishedReceiver, String requiredPermission, Bundle options) throws RemoteException
RemoteException
void setVrThread(int tid) throws RemoteException
RemoteException
void setRenderThread(int tid) throws RemoteException
RemoteException
void setHasTopUi(boolean hasTopUi) throws RemoteException
This flag can only be set for persistent processes.
hasTopUi
- Whether the calling process has "top-level" UI.RemoteException
boolean canBypassWorkChallenge(PendingIntent intent) throws RemoteException
intent
- the PendingIntent
to be tested.true
if the intent should not trigger a work challenge, false
otherwise.RemoteException
boolean testIsSystemReady()