Home
last modified time | relevance | path

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

12345678910>>...20

/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;
DITaskStackListener.aidl19 import android.app.ActivityManager;
80 void onActivityLaunchOnSecondaryDisplayFailed(in ActivityManager.RunningTaskInfo taskInfo, in onActivityLaunchOnSecondaryDisplayFailed()
90 void onActivityLaunchOnSecondaryDisplayRerouted(in ActivityManager.RunningTaskInfo taskInfo, in onActivityLaunchOnSecondaryDisplayRerouted()
113 void onTaskMovedToFront(in ActivityManager.RunningTaskInfo taskInfo); in onTaskMovedToFront()
121 void onTaskDescriptionChanged(in ActivityManager.RunningTaskInfo taskInfo); in onTaskDescriptionChanged()
139 void onTaskRemovalStarted(in ActivityManager.RunningTaskInfo taskInfo); in onTaskRemovalStarted()
151 void onTaskSnapshotChanged(int taskId, in ActivityManager.TaskSnapshot snapshot); in onTaskSnapshotChanged()
171 void onBackPressedOnTaskRoot(in ActivityManager.RunningTaskInfo taskInfo); in onBackPressedOnTaskRoot()
DActivityManagerNative.java51 return ActivityManager.getService(); in getDefault()
61 return ActivityManager.isSystemReady(); in isSystemReady()
80 ActivityManager.broadcastStickyIntent(intent, appOp, userId); in broadcastStickyIntent()
88 ActivityManager.noteWakeupAlarm(ps, null, sourceUid, sourcePkg, tag); in noteWakeupAlarm()
95 ActivityManager.noteAlarmStart(ps, null, sourceUid, tag); in noteAlarmStart()
102 ActivityManager.noteAlarmFinish(ps, null, sourceUid, tag); in noteAlarmFinish()
DTaskStackListener.java19 import android.app.ActivityManager.TaskSnapshot;
81 public void onActivityLaunchOnSecondaryDisplayFailed(ActivityManager.RunningTaskInfo taskInfo, in onActivityLaunchOnSecondaryDisplayFailed()
97 public void onActivityLaunchOnSecondaryDisplayRerouted(ActivityManager.RunningTaskInfo taskInfo, in onActivityLaunchOnSecondaryDisplayRerouted()
111 public void onTaskMovedToFront(ActivityManager.RunningTaskInfo taskInfo) in onTaskMovedToFront()
125 public void onTaskRemovalStarted(ActivityManager.RunningTaskInfo taskInfo) in onTaskRemovalStarted()
138 public void onTaskDescriptionChanged(ActivityManager.RunningTaskInfo taskInfo) in onTaskDescriptionChanged()
147 public void onTaskDescriptionChanged(int taskId, ActivityManager.TaskDescription td) in onTaskDescriptionChanged()
179 public void onBackPressedOnTaskRoot(ActivityManager.RunningTaskInfo taskInfo) in onBackPressedOnTaskRoot()
DPendingIntent.java351 ActivityManager.getService().getIntentSender( in getActivity()
352 ActivityManager.INTENT_SENDER_ACTIVITY, packageName, in getActivity()
377 ActivityManager.getService().getIntentSender( in getActivityAsUser()
378 ActivityManager.INTENT_SENDER_ACTIVITY, packageName, in getActivityAsUser()
494 ActivityManager.getService().getIntentSender( in getActivities()
495 ActivityManager.INTENT_SENDER_ACTIVITY, packageName, in getActivities()
520 ActivityManager.getService().getIntentSender( in getActivitiesAsUser()
521 ActivityManager.INTENT_SENDER_ACTIVITY, packageName, in getActivitiesAsUser()
572 ActivityManager.getService().getIntentSender( in getBroadcastAsUser()
573 ActivityManager.INTENT_SENDER_BROADCAST, packageName, in getBroadcastAsUser()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsNoteTest.java22 import android.app.ActivityManager;
63 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_TOP); in testNoteBluetoothScanResultLocked()
75 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND); in testNoteBluetoothScanResultLocked()
97 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_TOP); in testNoteStartWakeLocked()
102 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND); in testNoteStartWakeLocked()
126 stateRuntimeMap.put(ActivityManager.PROCESS_STATE_TOP, 1111); in testNoteUidProcessStateLocked()
127 stateRuntimeMap.put(ActivityManager.PROCESS_STATE_BOUND_FOREGROUND_SERVICE, 1234); in testNoteUidProcessStateLocked()
128 stateRuntimeMap.put(ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE, 2468); in testNoteUidProcessStateLocked()
129 stateRuntimeMap.put(ActivityManager.PROCESS_STATE_TOP_SLEEPING, 7531); in testNoteUidProcessStateLocked()
130 stateRuntimeMap.put(ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND, 4455); in testNoteUidProcessStateLocked()
[all …]
DBatteryStatsBackgroundStatsTest.java21 import android.app.ActivityManager;
57 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND); in testBgTimeBase()
64 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND); in testBgTimeBase()
86 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_RECEIVER); // background too in testBgTimeBase()
94 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND); in testBgTimeBase()
101 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_NONEXISTENT); in testBgTimeBase()
117 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND); in testScreenOffBgTimeBase()
134 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND); in testScreenOffBgTimeBase()
149 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND); in testScreenOffBgTimeBase()
165 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND); in testWifiScan()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/activity/
DActivityManagerTest.java19 import android.app.ActivityManager;
34 protected ActivityManager mActivityManager;
40 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in setUp()
53 List<ActivityManager.ProcessErrorStateInfo> errList; in disabledTestErrorTasksEmpty()
65 List<ActivityManager.ProcessErrorStateInfo> errList; in testErrorTasksWithError()
84 List<ActivityManager.ProcessErrorStateInfo> errList; in testErrorTasksWithANR()
115 private void checkErrorListSanity(List<ActivityManager.ProcessErrorStateInfo> errList) { in checkErrorListSanity()
118 Iterator<ActivityManager.ProcessErrorStateInfo> iter = errList.iterator(); in checkErrorListSanity()
120 ActivityManager.ProcessErrorStateInfo info = iter.next(); in checkErrorListSanity()
123 assertTrue((info.condition == ActivityManager.ProcessErrorStateInfo.CRASHED) || in checkErrorListSanity()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DOomAdjusterTests.java28 import android.app.ActivityManager;
94 mProcessRecord.setCurProcState(ActivityManager.PROCESS_STATE_PERSISTENT_UI); in testMaybeUpdateUsageStats_ProcStatePersistentUI()
103 mProcessRecord.setCurProcState(ActivityManager.PROCESS_STATE_TOP); in testMaybeUpdateUsageStats_ProcStateTop()
112 mProcessRecord.setCurProcState(ActivityManager.PROCESS_STATE_TOP); in testMaybeUpdateUsageStats_ProcStateTop_PreviousInteraction()
122 mProcessRecord.setCurProcState(ActivityManager.PROCESS_STATE_TOP); in testMaybeUpdateUsageStats_ProcStateTop_PastUsageInterval()
132 mProcessRecord.setCurProcState(ActivityManager.PROCESS_STATE_BOUND_TOP); in testMaybeUpdateUsageStats_ProcStateBoundTop()
141 mProcessRecord.setCurProcState(ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE); in testMaybeUpdateUsageStats_ProcStateFGS()
152 mProcessRecord.setCurProcState(ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE); in testMaybeUpdateUsageStats_ProcStateFGS_ShortInteraction()
163 mProcessRecord.setCurProcState(ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE); in testMaybeUpdateUsageStats_ProcStateFGS_LongInteraction()
175 mProcessRecord.setCurProcState(ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE); in testMaybeUpdateUsageStats_ProcStateFGS_PreviousLongInteraction()
[all …]
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 …]
/frameworks/native/libs/binder/
DActivityManager.cpp28 ActivityManager::ActivityManager() in ActivityManager() function in android::ActivityManager
32 sp<IActivityManager> ActivityManager::getService() in getService()
58 int ActivityManager::openContentUri(const String16& stringUri) in openContentUri()
64 void ActivityManager::registerUidObserver(const sp<IUidObserver>& observer, in registerUidObserver()
75 void ActivityManager::unregisterUidObserver(const sp<IUidObserver>& observer) in unregisterUidObserver()
83 bool ActivityManager::isUidActive(const uid_t uid, const String16& callingPackage) in isUidActive()
92 int32_t ActivityManager::getUidProcessState(const uid_t uid, const String16& callingPackage) in getUidProcessState()
101 status_t ActivityManager::linkToDeath(const sp<IBinder::DeathRecipient>& recipient) { in linkToDeath()
109 status_t ActivityManager::unlinkToDeath(const sp<IBinder::DeathRecipient>& recipient) { in unlinkToDeath()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsWrapper.java20 import android.app.ActivityManager;
44 return ActivityManager.getCurrentUser(); in getCurrentUser()
61 ActivityManager am = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in getTopPkgName()
63 List<ActivityManager.RunningTaskInfo> tasks = am.getRunningTasks(1); in getTopPkgName()
78 return ActivityManager.checkUidPermission(permissionType, uid); in getUidPermission()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DActivityManagerWrapper.java19 import static android.app.ActivityManager.LOCK_TASK_MODE_LOCKED;
20 import static android.app.ActivityManager.LOCK_TASK_MODE_NONE;
21 import static android.app.ActivityManager.LOCK_TASK_MODE_PINNED;
22 import static android.app.ActivityManager.RECENT_IGNORE_UNAVAILABLE;
31 import android.app.ActivityManager;
32 import android.app.ActivityManager.RecentTaskInfo;
33 import android.app.ActivityManager.RunningTaskInfo;
102 ui = ActivityManager.getService().getCurrentUser(); in getCurrentUserId()
112 public ActivityManager.RunningTaskInfo getRunningTask() { in getRunningTask()
116 public ActivityManager.RunningTaskInfo getRunningTask(@ActivityType int ignoreActivityType) { in getRunningTask()
[all …]
DTaskDescriptionCompat.java19 import android.app.ActivityManager;
23 private ActivityManager.TaskDescription mTaskDescription;
25 public TaskDescriptionCompat(ActivityManager.TaskDescription td) { in TaskDescriptionCompat()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/
DIconLoader.java20 import android.app.ActivityManager;
86 ActivityManager.TaskDescription td, boolean loadIfNotCached) { in getAndInvalidateIfModified()
106 ActivityManager.TaskDescription desc, boolean returnDefault) { in createNewIconForTask()
125 tdIcon = ActivityManager.TaskDescription.loadTaskDescriptionIcon( in createNewIconForTask()
147 ActivityManager.TaskDescription desc) { in createDrawableFromBitmap()
153 ActivityManager.TaskDescription desc); in createBadgedDrawable()
159 ActivityManager.TaskDescription desc); in getBadgedActivityIcon()
184 ActivityManager.TaskDescription desc) { in createBadgedDrawable()
193 ActivityManager.TaskDescription desc) { in getBadgedActivityIcon()
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
DActivityTestMain.java20 import android.app.ActivityManager;
63 ActivityManager mAm;
190 mAm = getSystemService(ActivityManager.class); in onCreate()
423 ActivityManager.AppTask task = findDocTask(); in onCreateOptionsMenu()
452 ActivityManager.AppTask task = findDocTask(); in onCreateOptionsMenu()
454 ActivityManager.RecentTaskInfo recent = task.getTaskInfo(); in onCreateOptionsMenu()
580 ActivityManager am = (ActivityManager)getSystemService(Context.ACTIVITY_SERVICE); in addAppRecents()
586 ActivityManager.TaskDescription desc = new ActivityManager.TaskDescription(); in addAppRecents()
598 ActivityManager am = (ActivityManager)getSystemService(Context.ACTIVITY_SERVICE); in setExclude()
599 List<ActivityManager.AppTask> tasks = am.getAppTasks(); in setExclude()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DPendingIntentRecord.java19 import static android.app.ActivityManager.START_SUCCESS;
23 import android.app.ActivityManager;
187 case ActivityManager.INTENT_SENDER_ACTIVITY: in typeName()
189 case ActivityManager.INTENT_SENDER_BROADCAST: in typeName()
191 case ActivityManager.INTENT_SENDER_SERVICE: in typeName()
193 case ActivityManager.INTENT_SENDER_FOREGROUND_SERVICE: in typeName()
195 case ActivityManager.INTENT_SENDER_ACTIVITY_RESULT: in typeName()
293 return ActivityManager.START_CANCELED; in sendInner()
339 if (key.type == ActivityManager.INTENT_SENDER_ACTIVITY in sendInner()
365 if (!ActivityManager.isProcStateBackground(procState)) { in sendInner()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserLifecycleStressTest.java21 import android.app.ActivityManager;
56 private ActivityManager mActivityManager;
62 mActivityManager = mContext.getSystemService(ActivityManager.class); in setup()
79 ActivityManager.getService().startUserInBackground(userInfo.id)); in stopManagedProfileStressTest()
93 ActivityManager.getService(). in stopUser()
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/misc/
DSystemServicesProxy.java28 import android.app.ActivityManager;
29 import android.app.ActivityManager.StackInfo;
94 ActivityManager mAm;
134 mAm = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); in SystemServicesProxy()
135 mIam = ActivityManager.getService(); in SystemServicesProxy()
208 ActivityManager.StackInfo homeStackInfo = null; in isRecentsActivityVisible()
209 ActivityManager.StackInfo fullscreenStackInfo = null; in isRecentsActivityVisible()
210 ActivityManager.StackInfo recentsStackInfo = null; in isRecentsActivityVisible()
244 private boolean isStackNotOccluded(ActivityManager.StackInfo stackInfo, in isStackNotOccluded()
245 ActivityManager.StackInfo fullscreenStackInfo) { in isStackNotOccluded()
[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.java19 import android.app.ActivityManager;
56 ActivityManager.TaskDescription taskDescription = null; in startWorkChallengeInTask()
74 if (ActivityManager.isStartResultSuccessful(result)) { in startWorkChallengeInTask()
106 return ActivityManager.START_CANCELED; in startActivityAsUser()
108 return ActivityManager.START_CANCELED; in startActivityAsUser()
/frameworks/base/telephony/common/com/google/android/mms/util/
DSqliteWrapper.java20 import android.app.ActivityManager;
47 ActivityManager am = (ActivityManager) in isLowMemory()
49 ActivityManager.MemoryInfo outInfo = new ActivityManager.MemoryInfo(); in isLowMemory()
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/car/
DSUWProgressController.java19 import android.app.ActivityManager;
65 return isUserSetupInProgress(ActivityManager.getCurrentUser()); in isCurrentUserSetupInProgress()
74 startListening(ActivityManager.getCurrentUser()); in addCallback()
110 ActivityManager.getCurrentUser()); in onUserSwitched()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/testutils/shadow/
DShadowActivityManager.java19 import android.app.ActivityManager;
27 @Implements(ActivityManager.class)
63 RuntimeEnvironment.application.getSystemService(ActivityManager.class)); in getShadow()

12345678910>>...20