Home
last modified time | relevance | path

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

1234567891011

/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/core/java/android/app/
DAppImportanceMonitor.java39 int importance = ActivityManager.RunningAppProcessInfo.IMPORTANCE_GONE;
55 ActivityManager.RunningAppProcessInfo.procStateToImportance(procState),
64 ActivityManager.RunningAppProcessInfo.IMPORTANCE_GONE, true);
87 ActivityManager am = (ActivityManager)context.getSystemService(Context.ACTIVITY_SERVICE); in AppImportanceMonitor()
92 List<ActivityManager.RunningAppProcessInfo> apps = am.getRunningAppProcesses(); in AppImportanceMonitor()
95 ActivityManager.RunningAppProcessInfo app = apps.get(i); in AppImportanceMonitor()
104 return ActivityManager.RunningAppProcessInfo.IMPORTANCE_GONE; in getImportance()
121 if (importance >= ActivityManager.RunningAppProcessInfo.IMPORTANCE_GONE) { in updateImportanceLocked()
130 int appImp = ActivityManager.RunningAppProcessInfo.IMPORTANCE_GONE; in updateImportanceLocked()
140 if (appImp >= ActivityManager.RunningAppProcessInfo.IMPORTANCE_GONE) { in updateImportanceLocked()
/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.PINNED_STACK_ID;
26 import android.app.ActivityManager;
117 ActivityManager mAm;
204 mAm = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); in SystemServicesProxy()
270 public List<ActivityManager.RecentTaskInfo> getRecentTasks(int numLatestTasks, int userId, in getRecentTasks()
276 ArrayList<ActivityManager.RecentTaskInfo> tasks = in getRecentTasks()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DProcessList.java26 import android.app.ActivityManager;
373 case ActivityManager.PROCESS_STATE_PERSISTENT: in makeProcStateString()
376 case ActivityManager.PROCESS_STATE_PERSISTENT_UI: in makeProcStateString()
379 case ActivityManager.PROCESS_STATE_TOP: in makeProcStateString()
382 case ActivityManager.PROCESS_STATE_BOUND_FOREGROUND_SERVICE: in makeProcStateString()
385 case ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE: in makeProcStateString()
388 case ActivityManager.PROCESS_STATE_TOP_SLEEPING: in makeProcStateString()
391 case ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND: in makeProcStateString()
394 case ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND: in makeProcStateString()
397 case ActivityManager.PROCESS_STATE_BACKUP: in makeProcStateString()
[all …]
DPendingIntentRecord.java22 import android.app.ActivityManager;
183 case ActivityManager.INTENT_SENDER_ACTIVITY: in typeName()
185 case ActivityManager.INTENT_SENDER_BROADCAST: in typeName()
187 case ActivityManager.INTENT_SENDER_SERVICE: in typeName()
189 case ActivityManager.INTENT_SENDER_ACTIVITY_RESULT: in typeName()
240 return ActivityManager.START_CANCELED; in sendInner()
278 case ActivityManager.INTENT_SENDER_ACTIVITY: in sendInner()
309 case ActivityManager.INTENT_SENDER_ACTIVITY_RESULT: in sendInner()
315 case ActivityManager.INTENT_SENDER_BROADCAST: in sendInner()
323 if (sent == ActivityManager.BROADCAST_SUCCESS) { in sendInner()
[all …]
DActivityMetricsLogger.java3 import static android.app.ActivityManager.StackId.DOCKED_STACK_ID;
4 import static android.app.ActivityManager.StackId.FREEFORM_WORKSPACE_STACK_ID;
5 import static android.app.ActivityManager.StackId.FULLSCREEN_WORKSPACE_STACK_ID;
6 import static android.app.ActivityManager.StackId.HOME_STACK_ID;
7 import static android.app.ActivityManager.StackId.PINNED_STACK_ID;
13 import android.app.ActivityManager.StackId;
DCompatModeDialog.java19 import android.app.ActivityManager;
58 mCompatEnabled.isChecked() ? ActivityManager.COMPAT_MODE_ENABLED in CompatModeDialog()
59 : ActivityManager.COMPAT_MODE_DISABLED); in CompatModeDialog()
83 mCompatEnabled.setChecked(mode == ActivityManager.COMPAT_MODE_ENABLED); in updateControls()
DCompatModePackages.java36 import android.app.ActivityManager;
213 return ActivityManager.COMPAT_MODE_NEVER; in computeCompatModeLocked()
216 return ActivityManager.COMPAT_MODE_ALWAYS; in computeCompatModeLocked()
218 return enabled ? ActivityManager.COMPAT_MODE_ENABLED in computeCompatModeLocked()
219 : ActivityManager.COMPAT_MODE_DISABLED; in computeCompatModeLocked()
275 return ActivityManager.COMPAT_MODE_UNKNOWN; in getFrontActivityScreenCompatModeLocked()
296 return ActivityManager.COMPAT_MODE_UNKNOWN; in getPackageScreenCompatModeLocked()
321 case ActivityManager.COMPAT_MODE_DISABLED: in setPackageScreenCompatModeLocked()
324 case ActivityManager.COMPAT_MODE_ENABLED: in setPackageScreenCompatModeLocked()
327 case ActivityManager.COMPAT_MODE_TOGGLE: in setPackageScreenCompatModeLocked()
DUidRecord.java19 import android.app.ActivityManager;
30 int setProcState = ActivityManager.PROCESS_STATE_NONEXISTENT;
56 curProcState = ActivityManager.PROCESS_STATE_CACHED_EMPTY; in reset()
DActivityStarter.java20 import static android.app.ActivityManager.START_CLASS_NOT_FOUND;
21 import static android.app.ActivityManager.START_DELIVERED_TO_TOP;
22 import static android.app.ActivityManager.START_FLAG_ONLY_IF_NEEDED;
23 import static android.app.ActivityManager.START_RETURN_INTENT_TO_CALLER;
24 import static android.app.ActivityManager.START_RETURN_LOCK_TASK_MODE_VIOLATION;
25 import static android.app.ActivityManager.START_SUCCESS;
26 import static android.app.ActivityManager.START_TASK_TO_FRONT;
27 import static android.app.ActivityManager.StackId;
28 import static android.app.ActivityManager.StackId.DOCKED_STACK_ID;
29 import static android.app.ActivityManager.StackId.FREEFORM_WORKSPACE_STACK_ID;
[all …]
DLockTaskNotify.java19 import android.app.ActivityManager;
50 if (lockTaskModeState == ActivityManager.LOCK_TASK_MODE_LOCKED) { in handleShowToast()
52 } else if (lockTaskModeState == ActivityManager.LOCK_TASK_MODE_PINNED) { in handleShowToast()
/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/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;
/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/services/core/java/com/android/server/media/
DMediaSessionStack.java19 import android.app.ActivityManager;
75 if (ActivityManager.getCurrentUser() != record.getUserId()) { in isFromMostRecentApp()
79 List<ActivityManager.RecentTaskInfo> tasks = in isFromMostRecentApp()
81 ActivityManager.RECENT_IGNORE_HOME_STACK_TASKS | in isFromMostRecentApp()
82 ActivityManager.RECENT_IGNORE_UNAVAILABLE | in isFromMostRecentApp()
83 ActivityManager.RECENT_INCLUDE_PROFILES | in isFromMostRecentApp()
84 ActivityManager.RECENT_WITH_EXCLUDED, record.getUserId()).getList(); in isFromMostRecentApp()
86 ActivityManager.RecentTaskInfo recentTask = tasks.get(0); in isFromMostRecentApp()
DMediaResourceMonitorService.java19 import android.app.ActivityManager;
67 new UserHandle(ActivityManager.getCurrentUser()), in notifyResourceGranted()
77 for (ActivityManager.RunningAppProcessInfo proc : in getPackageNamesFromPid()
/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/packages/DocumentsUI/src/com/android/documentsui/
DLauncherActivity.java22 import android.app.ActivityManager;
23 import android.app.ActivityManager.AppTask;
61 ActivityManager activities = (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE); in onCreate()
73 private @Nullable Intent findTask(ActivityManager activities) { in findTask()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DActivityManagerTest.java19 import android.app.ActivityManager;
45 List<ActivityManager.RecentTaskInfo> recentTasks = service.getRecentTasks( in testTaskIdsForUser()
48 for(ActivityManager.RecentTaskInfo recentTask : recentTasks) { in testTaskIdsForUser()
/frameworks/base/tests/Compatibility/src/com/android/compatibilitytest/
DAppCompatibility.java19 import android.app.ActivityManager;
22 import android.app.ActivityManager.ProcessErrorStateInfo;
23 import android.app.ActivityManager.RunningTaskInfo;
54 private ActivityManager mActivityManager;
68 mActivityManager = (ActivityManager) in setUp()
/frameworks/base/core/java/android/service/vr/
DVrListenerService.java21 import android.app.ActivityManager;
140 ActivityManager am = context.getSystemService(ActivityManager.class); in isVrModePackageEnabled()
/frameworks/base/tests/SmokeTest/tests/src/com/android/smoketest/
DProcessErrorsTest.java19 import android.app.ActivityManager;
20 import android.app.ActivityManager.ProcessErrorStateInfo;
47 protected ActivityManager mActivityManager;
72 mActivityManager = (ActivityManager) in setUp()
293 case ActivityManager.ProcessErrorStateInfo.CRASHED: in reportListContents()
296 case ActivityManager.ProcessErrorStateInfo.NOT_RESPONDING: in reportListContents()
306 if (entry.condition == ActivityManager.ProcessErrorStateInfo.CRASHED) { in reportListContents()
/frameworks/support/v4/kitkat/android/support/v4/app/
DActivityManagerCompatKitKat.java19 import android.app.ActivityManager;
22 public static boolean isLowRamDevice(ActivityManager am) { in isLowRamDevice()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/
DThumbnailData.java19 import android.app.ActivityManager;
27 public ActivityManager.TaskThumbnailInfo thumbnailInfo;

1234567891011