Home
last modified time | relevance | path

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

/cts/apps/CtsVerifier/src/com/android/cts/verifier/screenpinning/
DScreenPinningTestActivity.java40 private ActivityManager mActivityManager; field in ScreenPinningTestActivity
65 mActivityManager = (ActivityManager) getSystemService(ACTIVITY_SERVICE); in onCreate()
142 if (mActivityManager.isInLockTaskMode()) {
163 if (mActivityManager.isInLockTaskMode()) {
174 if (mActivityManager.isInLockTaskMode()) {
185 if (!mActivityManager.isInLockTaskMode()) {
196 if (!mActivityManager.isInLockTaskMode()) {
207 if (!mActivityManager.isInLockTaskMode()) {
/cts/tests/tests/content/src/android/content/pm/cts/
DFeatureTest.java41 private ActivityManager mActivityManager; field in FeatureTest
50 mActivityManager = (ActivityManager)getContext().getSystemService(Context.ACTIVITY_SERVICE); in setUp()
59 if (mPackageManager == null || mActivityManager == null) { in testNoManagedUsersIfLowRamDevice()
63 if (mActivityManager.isLowRamDevice()) { in testNoManagedUsersIfLowRamDevice()
94 if (mActivityManager.isLowRamDevice()) { in testManagedProfileSupported()
/cts/tests/app/src/android/app/cts/
DActivityManagerTest.java79 private ActivityManager mActivityManager; field in ActivityManagerTest
90 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in setUp()
116 recentTaskList = mActivityManager.getRecentTasks(maxNum, flags); in testGetRecentTasks()
121 recentTaskList = mActivityManager.getRecentTasks(maxNum, flags); in testGetRecentTasks()
134 recentTaskList = mActivityManager.getRecentTasks(maxNum, flags); in testGetRecentTasks()
152 mActivityManager.getRecentTasks(-1, 0); in testGetRecentTasks()
165 recentTaskList = mActivityManager.getRecentTasks(maxNum, flags);
180 recentTaskList = mActivityManager.getRecentTasks(maxNum, flags);
248 runningTaskList = mActivityManager.getRunningTasks(-1);
251 runningTaskList = mActivityManager.getRunningTasks(0);
[all …]
DSystemFeaturesTest.java63 private ActivityManager mActivityManager; field in SystemFeaturesTest
82 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in setUp()
274 if (mActivityManager.isLowRamDevice()) { in testLowRamFeature()
478 ConfigurationInfo configInfo = mActivityManager.getDeviceConfigurationInfo(); in testTouchScreenFeatures()
DNotificationManagerTest.java77 private ActivityManager mActivityManager; field in NotificationManagerTest
92 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in setUp()
124 if (mActivityManager.isLowRamDevice()) { in testPostPCanToggleAlarmsMediaSystemTest()
473 if (mActivityManager.isLowRamDevice() && !mPackageManager.hasSystemFeature(FEATURE_WATCH)) { in testSuspendPackage()
831 if (mActivityManager.isLowRamDevice()) { in testSetNotificationPolicy_P_setOldFields()
853 if (mActivityManager.isLowRamDevice()) { in testSetNotificationPolicy_P_setNewFields()
875 if (mActivityManager.isLowRamDevice()) { in testSetNotificationPolicy_P_setOldNewFields()
/cts/tests/tests/openglperf/src/android/openglperf/cts/
DGlAppSwitchTest.java46 private ActivityManager mActivityManager; field in GlAppSwitchTest
72 mActivityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); in setUp()
123 mActivityManager.getRunningTasks(MAX_RUNNING_TASKS); in setReplicaIslandTask()
138 mActivityManager.getRunningTasks(MAX_RUNNING_TASKS); in isReplicaIslandRunning()
155 mActivityManager.moveTaskToFront(show ? mTaskIdReplica : mTaskIdSelf, 0); in showOrHideReplicaIsland()
/cts/tests/vr/src/android/vr/cts/
DVrSetFIFOThreadTest.java34 private ActivityManager mActivityManager; field in VrSetFIFOThreadTest
85 mActivityManager = in testSetVrThreadAPISuccess()
87 mActivityManager.setVrThread(vr_thread); in testSetVrThreadAPISuccess()
107 mActivityManager = in testSetVrThreadAPIFailure()
109 mActivityManager.setVrThread(vr_thread); in testSetVrThreadAPIFailure()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DLockTaskHostDrivenTest.java53 private ActivityManager mActivityManager; field in LockTaskHostDrivenTest
60 mActivityManager = mContext.getSystemService(ActivityManager.class); in setUp()
105 mActivityManager.getLockTaskModeState()); in checkLockedActivityIsRunning()
109 return mActivityManager.getAppTasks().get(0).getTaskInfo().topActivity in isActivityOnTop()
DLockTaskTest.java147 private ActivityManager mActivityManager; field in LockTaskTest
156 mActivityManager = mContext.getSystemService(ActivityManager.class); in setUp()
449 assertTrue(mActivityManager.isInLockTaskMode()); in assertLockTaskModeActive()
451 mActivityManager.getLockTaskModeState()); in assertLockTaskModeActive()
459 for (int i = 0; i < 10 && mActivityManager.isInLockTaskMode(); i++) { in assertLockTaskModeInactive()
462 assertFalse(mActivityManager.isInLockTaskMode()); in assertLockTaskModeInactive()
463 assertEquals(ActivityManager.LOCK_TASK_MODE_NONE, mActivityManager.getLockTaskModeState()); in assertLockTaskModeInactive()
DCreateAndManageUserTest.java72 private ActivityManager mActivityManager; field in CreateAndManageUserTest
81 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in setUp()
529 if (!mActivityManager.isRunningInTestHarness()) { in testCreateAndManageUser_DontSkipSetupWizard()
/cts/tests/tests/hardware/src/android/hardware/cts/
DLowRamDeviceTest.java58 private ActivityManager mActivityManager; field in LowRamDeviceTest
65 mActivityManager = in setUp()
82 Boolean lowRamDevice = mActivityManager.isLowRamDevice(); in testMinimumMemory()
140 mActivityManager.getMemoryInfo(memoryInfo); in getTotalMemory()
160 boolean lowRamDevice = mActivityManager.isLowRamDevice(); in assertMinMemoryMb()
/cts/tests/tests/assist/src/android/assist/cts/
DScreenshotTest.java67 if (mActivityManager.isLowRamDevice()) { in testRedScreenshot()
82 if (mActivityManager.isLowRamDevice()) { in testGreenScreenshot()
97 if (mActivityManager.isLowRamDevice()) { in testBlueScreenshot()
DDisableContextTest.java52 if (mActivityManager.isLowRamDevice()) { in testContextAndScreenshotOff()
DLifecycleTest.java124 if (mActivityManager.isLowRamDevice()) { in testLayerDoesNotTriggerLifecycleMethods()
146 if (mActivityManager.isLowRamDevice()) { in testNoUiLayerDoesNotTriggerLifecycleMethods()
DFlagSecureTest.java80 if (mActivityManager.isLowRamDevice()) { in testSecureActivity()
DLargeViewHierarchyTest.java80 if (mActivityManager.isLowRamDevice()) { in testTextView()
DAssistantContentViewTest.java75 if (mActivityManager.isLowRamDevice()) { in testAssistantContentViewDimens()
DFocusChangeTest.java84 if (mActivityManager.isLowRamDevice()) { in testLayerCausesUnderlyingActivityToLoseFocus()
DExtraAssistDataTest.java69 if (mActivityManager.isLowRamDevice()) { in testAssistContentAndAssistData()
DTextViewTest.java80 if (mActivityManager.isLowRamDevice()) { in testTextView()
DWebViewTest.java92 if (mActivityManager.isLowRamDevice()) { in testWebView()
DAssistStructureTest.java92 if (mActivityManager.isLowRamDevice()) { in testAssistStructure()
DAssistTestBase.java51 protected ActivityManager mActivityManager; field in AssistTestBase
118 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in startTestActivity()
/cts/tests/tests/notificationlegacy/src/android/app/notification/legacy/cts/
DLegacyNotificationManagerTest.java66 private ActivityManager mActivityManager; field in LegacyNotificationManagerTest
79 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in setUp()
84 if (mActivityManager.isLowRamDevice()) { in testPrePCannotToggleAlarmsAndMediaTest()
127 if (mActivityManager.isLowRamDevice()) { in testSetNotificationPolicy_preP_setOldFields()
150 if (mActivityManager.isLowRamDevice()) { in testSetNotificationPolicy_preP_setNewFields()
205 if (mActivityManager.isLowRamDevice()) { in testSetNotificationPolicy_preP_setOldNewFields()
/cts/tests/camera/src/android/hardware/multiprocess/camera/cts/
DCameraEvictionTest.java56 private ActivityManager mActivityManager; field in CameraEvictionTest
120 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in setUp()
144 mActivityManager = null; in tearDown()
431 mActivityManager.getRunningAppProcesses(); in startRemoteProcess()
440 list = mActivityManager.getRunningAppProcesses(); in startRemoteProcess()