Home
last modified time | relevance | path

Searched refs:ActivityManager (Results 1 – 25 of 391) sorted by relevance

12345678910>>...16

/frameworks/base/core/java/android/app/
DActivityManager.aidl19 parcelable ActivityManager.MemoryInfo;
20 parcelable ActivityManager.ProcessErrorStateInfo;
21 parcelable ActivityManager.RecentTaskInfo;
22 parcelable ActivityManager.TaskDescription;
23 parcelable ActivityManager.RunningAppProcessInfo;
24 parcelable ActivityManager.RunningServiceInfo;
25 parcelable ActivityManager.RunningTaskInfo;
27 parcelable ActivityManager.StackInfo;
29 parcelable ActivityManager.TaskThumbnail;
31 parcelable ActivityManager.TaskSnapshot;
DActivityManagerNative.java43 return ActivityManager.getService(); in getDefault()
52 return ActivityManager.isSystemReady(); in isSystemReady()
70 ActivityManager.broadcastStickyIntent(intent, appOp, userId); in broadcastStickyIntent()
78 ActivityManager.noteWakeupAlarm(ps, sourceUid, sourcePkg, tag); in noteWakeupAlarm()
85 ActivityManager.noteAlarmStart(ps, sourceUid, tag); in noteAlarmStart()
92 ActivityManager.noteAlarmFinish(ps, sourceUid, tag); in noteAlarmFinish()
DPendingIntent.java343 ActivityManager.getService().getIntentSender( in getActivity()
344 ActivityManager.INTENT_SENDER_ACTIVITY, packageName, in getActivity()
368 ActivityManager.getService().getIntentSender( in getActivityAsUser()
369 ActivityManager.INTENT_SENDER_ACTIVITY, packageName, in getActivityAsUser()
485 ActivityManager.getService().getIntentSender( in getActivities()
486 ActivityManager.INTENT_SENDER_ACTIVITY, packageName, in getActivities()
511 ActivityManager.getService().getIntentSender( in getActivitiesAsUser()
512 ActivityManager.INTENT_SENDER_ACTIVITY, packageName, in getActivitiesAsUser()
563 ActivityManager.getService().getIntentSender( in getBroadcastAsUser()
564 ActivityManager.INTENT_SENDER_BROADCAST, packageName, in getBroadcastAsUser()
[all …]
DITaskStackListener.aidl19 import android.app.ActivityManager;
108 void onTaskDescriptionChanged(int taskId, in ActivityManager.TaskDescription td); in onTaskDescriptionChanged()
136 void onTaskSnapshotChanged(int taskId, in ActivityManager.TaskSnapshot snapshot); in onTaskSnapshotChanged()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DActivityManagerTest.java19 import android.app.ActivityManager;
33 protected ActivityManager mActivityManager;
39 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in setUp()
52 List<ActivityManager.ProcessErrorStateInfo> errList; in disabledTestErrorTasksEmpty()
64 List<ActivityManager.ProcessErrorStateInfo> errList; in testErrorTasksWithError()
83 List<ActivityManager.ProcessErrorStateInfo> errList; in testErrorTasksWithANR()
114 private void checkErrorListSanity(List<ActivityManager.ProcessErrorStateInfo> errList) { in checkErrorListSanity()
117 Iterator<ActivityManager.ProcessErrorStateInfo> iter = errList.iterator(); in checkErrorListSanity()
119 ActivityManager.ProcessErrorStateInfo info = iter.next(); in checkErrorListSanity()
122 assertTrue((info.condition == ActivityManager.ProcessErrorStateInfo.CRASHED) || in checkErrorListSanity()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DActivityManagerServiceTest.java19 import static android.app.ActivityManager.PROCESS_STATE_BOUND_FOREGROUND_SERVICE;
20 import static android.app.ActivityManager.PROCESS_STATE_CACHED_ACTIVITY;
21 import static android.app.ActivityManager.PROCESS_STATE_CACHED_EMPTY;
22 import static android.app.ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE;
23 import static android.app.ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND;
24 import static android.app.ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND;
25 import static android.app.ActivityManager.PROCESS_STATE_LAST_ACTIVITY;
26 import static android.app.ActivityManager.PROCESS_STATE_NONEXISTENT;
27 import static android.app.ActivityManager.PROCESS_STATE_RECEIVER;
28 import static android.app.ActivityManager.PROCESS_STATE_SERVICE;
[all …]
DActivityManagerTest.java19 import android.app.ActivityManager;
34 service = ActivityManager.getService(); in setUp()
44 List<ActivityManager.RecentTaskInfo> recentTasks = service.getRecentTasks( in testTaskIdsForUser()
47 for(ActivityManager.RecentTaskInfo recentTask : recentTasks) { in testTaskIdsForUser()
/frameworks/base/services/core/java/com/android/server/wm/
DDragResizeMode.java19 import static android.app.ActivityManager.StackId.DOCKED_STACK_ID;
20 import static android.app.ActivityManager.StackId.FREEFORM_WORKSPACE_STACK_ID;
21 import static android.app.ActivityManager.StackId.FULLSCREEN_WORKSPACE_STACK_ID;
22 import static android.app.ActivityManager.StackId.HOME_STACK_ID;
23 import static android.app.ActivityManager.StackId.RECENTS_STACK_ID;
DDragAndDropPermissionsHandler.java19 import android.app.ActivityManager;
64 IBinder permissionOwner = ActivityManager.getService(). in take()
74 ActivityManager.getService().grantUriPermissionFromOwner( in doTake()
88 mPermissionOwnerToken = ActivityManager.getService().newUriPermissionOwner("drop"); in takeTransient()
104 permissionOwner = ActivityManager.getService(). in release()
120 ActivityManager.getService().revokeUriPermissionFromOwner( in release()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsWrapper.java19 import android.app.ActivityManager;
43 return ActivityManager.getCurrentUser(); in getCurrentUser()
60 ActivityManager am = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in getTopPkgName()
62 List<ActivityManager.RunningTaskInfo> tasks = am.getRunningTasks(1); in getTopPkgName()
77 return ActivityManager.checkUidPermission(permissionType, uid); in getUidPermission()
/frameworks/base/services/core/java/com/android/server/am/
DProcessList.java26 import android.app.ActivityManager;
352 case ActivityManager.PROCESS_STATE_PERSISTENT: in makeProcStateString()
355 case ActivityManager.PROCESS_STATE_PERSISTENT_UI: in makeProcStateString()
358 case ActivityManager.PROCESS_STATE_TOP: in makeProcStateString()
361 case ActivityManager.PROCESS_STATE_BOUND_FOREGROUND_SERVICE: in makeProcStateString()
364 case ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE: in makeProcStateString()
367 case ActivityManager.PROCESS_STATE_TOP_SLEEPING: in makeProcStateString()
370 case ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND: in makeProcStateString()
373 case ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND: in makeProcStateString()
376 case ActivityManager.PROCESS_STATE_TRANSIENT_BACKGROUND: in makeProcStateString()
[all …]
DPendingIntentRecord.java22 import android.app.ActivityManager;
176 case ActivityManager.INTENT_SENDER_ACTIVITY: in typeName()
178 case ActivityManager.INTENT_SENDER_BROADCAST: in typeName()
180 case ActivityManager.INTENT_SENDER_SERVICE: in typeName()
182 case ActivityManager.INTENT_SENDER_FOREGROUND_SERVICE: in typeName()
184 case ActivityManager.INTENT_SENDER_ACTIVITY_RESULT: in typeName()
259 return ActivityManager.START_CANCELED; in sendInner()
296 if (!ActivityManager.isProcStateBackground(procState)) { in sendInner()
324 case ActivityManager.INTENT_SENDER_ACTIVITY: in sendInner()
355 case ActivityManager.INTENT_SENDER_ACTIVITY_RESULT: in sendInner()
[all …]
DUidRecord.java20 import android.app.ActivityManager;
35 int setProcState = ActivityManager.PROCESS_STATE_NONEXISTENT;
105 curProcState = ActivityManager.PROCESS_STATE_CACHED_EMPTY; in reset()
110 hasInternetPermission = ActivityManager.checkUidPermission(Manifest.permission.INTERNET, in updateHasInternetPermission()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/
DSystemServicesProxy.java19 import static android.app.ActivityManager.StackId.DOCKED_STACK_ID;
20 import static android.app.ActivityManager.StackId.FREEFORM_WORKSPACE_STACK_ID;
21 import static android.app.ActivityManager.StackId.FULLSCREEN_WORKSPACE_STACK_ID;
22 import static android.app.ActivityManager.StackId.HOME_STACK_ID;
23 import static android.app.ActivityManager.StackId.INVALID_STACK_ID;
24 import static android.app.ActivityManager.StackId.PINNED_STACK_ID;
25 import static android.app.ActivityManager.StackId.RECENTS_STACK_ID;
30 import android.app.ActivityManager;
31 import android.app.ActivityManager.StackInfo;
32 import android.app.ActivityManager.TaskSnapshot;
[all …]
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
DActivityTestMain.java23 import android.app.ActivityManager;
66 ActivityManager mAm;
121 final ActivityManager.RecentTaskInfo task, in addThumbnail()
122 final ActivityManager.TaskThumbnail thumbs) { in addThumbnail()
136 mAm.moveTaskToFront(task.id, ActivityManager.MOVE_TASK_WITH_HOME); in addThumbnail()
166 mAm = getSystemService(ActivityManager.class); in onCreate()
399 ActivityManager.AppTask task = findDocTask(); in onCreateOptionsMenu()
414 ActivityManager.AppTask task = findDocTask(); in onCreateOptionsMenu()
416 ActivityManager.RecentTaskInfo recent = task.getTaskInfo(); in onCreateOptionsMenu()
529 ActivityManager am = (ActivityManager)getSystemService(Context.ACTIVITY_SERVICE); in addAppRecents()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsNoteTest.java21 import android.app.ActivityManager;
40 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_TOP); in testNoteBluetoothScanResultLocked()
48 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND); in testNoteBluetoothScanResultLocked()
54 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND); in testNoteBluetoothScanResultLocked()
74 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_TOP); in testNoteStartWakeLocked()
78 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND); in testNoteStartWakeLocked()
DBatteryStatsBackgroundStatsTest.java20 import android.app.ActivityManager;
54 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND); in testBgTimeBase()
61 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND); in testBgTimeBase()
83 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_RECEIVER); // background too in testBgTimeBase()
91 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND); in testBgTimeBase()
98 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_NONEXISTENT); in testBgTimeBase()
114 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND); in testScreenOffBgTimeBase()
131 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND); in testScreenOffBgTimeBase()
146 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND); in testScreenOffBgTimeBase()
162 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND); in testWifiScan()
[all …]
/frameworks/base/tests/LockTaskTests/src/com/google/android/example/locktasktests/
DLaunchActivity.java20 import android.app.ActivityManager;
45 ActivityManager activityManager = in onCreate()
46 (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE); in onCreate()
48 ActivityManager.LOCK_TASK_MODE_NONE ? 0xFFFFC0C0 : 0xFFFFFFFF; in onCreate()
DMainActivity.java5 import android.app.ActivityManager;
31 ActivityManager activityManager = in onCreate()
32 (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE); in onCreate()
34 ActivityManager.LOCK_TASK_MODE_NONE ? 0xFFFFC0C0 : 0xFFFFFFFF; in onCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DWorkLockActivityController.java20 import android.app.ActivityManager;
42 this(context, SystemServicesProxy.getInstance(context), ActivityManager.getService()); in WorkLockActivityController()
67 if (ActivityManager.isStartResultSuccessful(result)) { in startWorkChallengeInTask()
95 return ActivityManager.START_CANCELED; in startActivityAsUser()
97 return ActivityManager.START_CANCELED; in startActivityAsUser()
/frameworks/opt/telephony/src/java/com/google/android/mms/util/
DSqliteWrapper.java20 import android.app.ActivityManager;
46 ActivityManager am = (ActivityManager) in isLowMemory()
48 ActivityManager.MemoryInfo outInfo = new ActivityManager.MemoryInfo(); in isLowMemory()
/frameworks/base/services/core/java/com/android/server/
DInputContentUriTokenHandler.java21 import android.app.ActivityManager;
67 mPermissionOwnerToken = ActivityManager.getService() in take()
81 ActivityManager.getService().grantUriPermissionFromOwner( in doTakeLocked()
99 ActivityManager.getService().revokeUriPermissionFromOwner( in release()
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/
DWindowManagerProxy.java19 import static android.app.ActivityManager.StackId.DOCKED_STACK_ID;
22 import android.app.ActivityManager;
75 ActivityManager.getService()
91 ActivityManager.getService().moveTasksToFullscreenStack(
103 ActivityManager.getService().resizeStack(
127 ActivityManager.getService().swapDockedAndFullscreenStack();
/frameworks/base/services/core/java/com/android/server/media/
DMediaResourceMonitorService.java19 import android.app.ActivityManager;
67 int[] userIds = manager.getEnabledProfileIds(ActivityManager.getCurrentUser()); in notifyResourceGranted()
85 for (ActivityManager.RunningAppProcessInfo proc : in getPackageNamesFromPid()
86 ActivityManager.getService().getRunningAppProcesses()) { in getPackageNamesFromPid()
/frameworks/base/core/java/android/content/
DIntentSender.java19 import android.app.ActivityManager;
191 int res = ActivityManager.getService().sendIntentSender(mTarget, mWhitelistToken, in sendIntent()
211 return ActivityManager.getService() in getTargetPackage()
230 return ActivityManager.getService() in getCreatorPackage()
249 return ActivityManager.getService() in getCreatorUid()
270 int uid = ActivityManager.getService() in getCreatorUserHandle()

12345678910>>...16