Home
last modified time | relevance | path

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

12

/cts/apps/CtsVerifier/src/com/android/cts/verifier/screenpinning/
DScreenPinningTestActivity.java32 private ActivityManager mActivityManager; field in ScreenPinningTestActivity
37 mActivityManager = (ActivityManager) getSystemService(ACTIVITY_SERVICE); in onCreate()
83 if (mActivityManager.isInLockTaskMode()) {
104 if (mActivityManager.isInLockTaskMode()) {
115 if (mActivityManager.isInLockTaskMode()) {
126 if (!mActivityManager.isInLockTaskMode()) {
137 if (!mActivityManager.isInLockTaskMode()) {
148 if (!mActivityManager.isInLockTaskMode()) {
/cts/tests/app/src/android/app/cts/
DForceStopTest.java89 private ActivityManager mActivityManager; field in ForceStopTest
104 mActivityManager = mInstrumentation.getContext().getSystemService(ActivityManager.class); in setUp()
122 () -> mActivityManager.forceStopPackage(intent.getPackage())); in forceStopAndStartSimpleActivity()
143 () -> mActivityManager.forceStopPackage(packageName)); in testPackageStoppedState()
181 () -> mActivityManager.forceStopPackage(packageName)); in testPackageRestartedBroadcast()
233 () -> mActivityManager.forceStopPackage(packageName)); in testPackageUnstoppedBroadcast()
271 () -> mActivityManager.forceStopPackage(APP_PACKAGE)); in testBootCompletedBroadcasts_activity()
279 () -> mActivityManager.forceStopPackage(APP_PACKAGE)); in testBootCompletedBroadcasts_activity()
316 () -> mActivityManager.forceStopPackage(APP_PACKAGE)); in testBootCompletedBroadcasts_broadcast()
332 () -> mActivityManager.forceStopPackage(APP_PACKAGE)); in testBootCompletedBroadcasts_broadcast()
[all …]
DActivityManagerTest.java194 private ActivityManager mActivityManager; field in ActivityManagerTest
223 mActivityManager = mInstrumentation.getContext().getSystemService(ActivityManager.class); in setUp()
260 recentTaskList = mActivityManager.getRecentTasks(maxNum, flags); in testGetRecentTasks()
265 recentTaskList = mActivityManager.getRecentTasks(maxNum, flags); in testGetRecentTasks()
278 recentTaskList = mActivityManager.getRecentTasks(maxNum, flags); in testGetRecentTasks()
287 mActivityManager.getRecentTasks(-1, 0); in testGetRecentTasks()
301 recentTaskList = mActivityManager.getRecentTasks(maxNum, flags);
316 recentTaskList = mActivityManager.getRecentTasks(maxNum, flags);
426 runningTaskList = mActivityManager.getRunningTasks(-1);
429 runningTaskList = mActivityManager.getRunningTasks(0);
[all …]
DSystemFeaturesTest.java76 private ActivityManager mActivityManager; field in SystemFeaturesTest
94 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in setUp()
322 if (mActivityManager.isLowRamDevice()) { in testLowRamFeature()
556 ConfigurationInfo configInfo = mActivityManager.getDeviceConfigurationInfo(); in testTouchScreenFeatures()
/cts/tests/tests/openglperf/src/android/openglperf/cts/
DGlAppSwitchTest.java46 private ActivityManager mActivityManager; field in GlAppSwitchTest
76 mActivityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); in setUp()
127 mActivityManager.getRunningTasks(MAX_RUNNING_TASKS); in setReplicaIslandTask()
142 mActivityManager.getRunningTasks(MAX_RUNNING_TASKS); in isReplicaIslandRunning()
159 mActivityManager.moveTaskToFront(show ? mTaskIdReplica : mTaskIdSelf, 0); in showOrHideReplicaIsland()
/cts/tests/vr/src/android/vr/cts/
DVrSetFIFOThreadTest.java34 private ActivityManager mActivityManager; field in VrSetFIFOThreadTest
90 mActivityManager = in testSetVrThreadAPISuccess()
92 mActivityManager.setVrThread(vr_thread); in testSetVrThreadAPISuccess()
113 mActivityManager = in testSetVrThreadAPIFailure()
115 mActivityManager.setVrThread(vr_thread); in testSetVrThreadAPIFailure()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DLockTaskHostDrivenTest.java51 private ActivityManager mActivityManager; field in LockTaskHostDrivenTest
58 mActivityManager = mContext.getSystemService(ActivityManager.class); in setUp()
118 ComponentName topActivity = mActivityManager.getAppTasks().get(0).getTaskInfo().topActivity; in checkLockedActivityIsRunning()
123 () -> (mActivityManager.getLockTaskModeState() in checkLockedActivityIsRunning()
/cts/tests/tests/content/src/android/content/pm/cts/
DFeatureTest.java40 private ActivityManager mActivityManager; field in FeatureTest
50 mActivityManager = (ActivityManager)getContext().getSystemService(Context.ACTIVITY_SERVICE); in setUp()
57 mActivityManager.getMemoryInfo(memInfo); in setUp()
/cts/tests/camera/headlessSystemUserTest/src/android/camera/cts/headlesssystemusertest/
DCamera2HeadlessSystemUserTest.java67 private ActivityManager mActivityManager; field in Camera2HeadlessSystemUserTest
84 mActivityManager = mContext.getSystemService(ActivityManager.class); in setUp()
85 assertNotNull("Can't get activity manager", mActivityManager); in setUp()
216 assertEquals(userId, mActivityManager.getCurrentUser()); in switchUser()
220 assertEquals(userId, mActivityManager.getCurrentUser()); in switchUser()
/cts/tests/tests/virtualdevice/applaunch/src/android/virtualdevice/cts/applaunch/
DRestrictActivityTest.java74 private final ActivityManager mActivityManager = field in RestrictActivityTest
123 assertThat(mActivityManager.isActivityStartAllowedOnDisplay(mContext, displayId, intent)) in restrictedActivity_noGwpc_shouldFail()
134 assertThat(mActivityManager.isActivityStartAllowedOnDisplay(mContext, displayId, intent)) in assertActivityLaunchSucceeds()
146 assertThat(mActivityManager.isActivityStartAllowedOnDisplay(mContext, displayId, intent)) in assertActivityLaunchBlocked()
DRecentTasksTest.java51 private final ActivityManager mActivityManager = field in RecentTasksTest
114 return mActivityManager.getRecentTasks(Integer.MAX_VALUE, /*flags=*/0) in isTaskIncludedInRecents()
DActivityBlockingTest.java77 private final ActivityManager mActivityManager = field in ActivityBlockingTest
103 assertThat(mActivityManager.isActivityStartAllowedOnDisplay( in nonTrustedDisplay_startNonEmbeddableActivity_shouldThrowSecurityException()
393 assertThat(mActivityManager.isActivityStartAllowedOnDisplay( in assertActivityLaunchBlocked()
404 assertThat(mActivityManager.isActivityStartAllowedOnDisplay( in assertNoActivityLaunched()
416 assertThat(mActivityManager.isActivityStartAllowedOnDisplay( in assertActivityLaunchAllowed()
/cts/tests/app/shared/src/android/app/stubs/shared/
DCloseSystemDialogsTestService.java58 private IActivityManager mActivityManager; field in CloseSystemDialogsTestService
67 mActivityManager = IActivityManager.Stub.asInterface( in onCreate()
155 mActivityManager.closeSystemDialogs(reason); in closeSystemDialogsViaActivityManager()
/cts/tests/tests/hardware/src/android/hardware/cts/
DLowRamDeviceTest.java73 private ActivityManager mActivityManager; field in LowRamDeviceTest
80 mActivityManager = in setUp()
200 mActivityManager.getMemoryInfo(memoryInfo); in getTotalMemory()
220 boolean isLowRamDevice = mActivityManager.isLowRamDevice(); in assertMinMemoryMb()
/cts/tests/tests/assist/src/android/assist/cts/
DLargeViewHierarchyTest.java39 if (mActivityManager.isLowRamDevice()) { in testTextView()
DWebViewTest.java54 if (mActivityManager.isLowRamDevice()) { in testWebView()
DFocusChangeTest.java64 if (mActivityManager.isLowRamDevice()) { in testLayerCausesUnderlyingActivityToLoseFocus()
DScreenshotTest.java58 if (mActivityManager.isLowRamDevice()) { in validateDeviceAndRunTestForColor()
DAssistantContentViewTest.java61 if (mActivityManager.isLowRamDevice()) { in testAssistantContentViewDimens()
DTextViewTest.java41 if (mActivityManager.isLowRamDevice()) { in testTextView()
/cts/tests/tests/display/src/android/display/cts/
DDisplayEventTest.java95 private ActivityManager mActivityManager; field in DisplayEventTest
244 mActivityManager = mContext.getSystemService(ActivityManager.class); in setUp()
252 mActivityManager.addOnUidImportanceListener(mUidImportanceListener, in setUp()
264 mActivityManager.removeOnUidImportanceListener(mUidImportanceListener); in tearDown()
/cts/tests/app/AppExitTest/src/android/app/cts/
DActivityManagerAppExitInfoTest.java173 private ActivityManager mActivityManager; field in ActivityManagerAppExitInfoTest
198 mActivityManager = mContext.getSystemService(ActivityManager.class); in setUp()
488 list = mActivityManager.getHistoricalProcessExitReasons( in testExitCode()
567 mActivityManager::getHistoricalProcessExitReasons, in testLmkdKill()
612 mActivityManager::getHistoricalProcessExitReasons, in testKillBySignal()
679 mActivityManager::getHistoricalProcessExitReasons, in testAnr()
848 mActivityManager::getHistoricalProcessExitReasons, in testPermissionChange()
911 mActivityManager::getHistoricalProcessExitReasons, in testPermissionChangeWithReason()
947 mActivityManager::getHistoricalProcessExitReasons, in testCrash()
973 mActivityManager::getHistoricalProcessExitReasons, in testNativeCrash()
[all …]
/cts/tests/app/AppStartTest/src/android/app/cts/
DActivityManagerAppStartInfoTest.java108 private ActivityManager mActivityManager; field in ActivityManagerAppStartInfoTest
118 mActivityManager = mContext.getSystemService(ActivityManager.class); in setUp()
252 mActivityManager::getExternalHistoricalProcessStartReasons, in testAppRemoved()
440 mActivityManager::getExternalHistoricalProcessStartReasons, in waitForAppStart()
/cts/tests/tests/sharesheet/src/android/sharesheet/cts/
DCtsNfcResolverDeviceTest.java92 private ActivityManager mActivityManager; field in CtsNfcResolverDeviceTest
133 mActivityManager = mContext.getSystemService(ActivityManager.class); in init()
135 assertNotNull(mActivityManager); in init()
DCtsSharesheetDeviceTest.java127 private ActivityManager mActivityManager; field in CtsSharesheetDeviceTest
169 mActivityManager = mContext.getSystemService(ActivityManager.class); in init()
274 if (!mActivityManager.isLowRamDevice()) { in bulkTest2()
501 "Direct share not required on low RAM devices", mActivityManager.isLowRamDevice()); in testShortcutSelection()
528 "Direct share not required on low RAM devices", mActivityManager.isLowRamDevice()); in testShortcutSelectionRefinedToAlternate()
670 mActivityManager.isLowRamDevice()); in testChooserTargets()
716 mActivityManager.isLowRamDevice()); in testChooserTargetsRefinement()
975 if (mActivityManager.isLowRamDevice()) { in showsExtraChooserTargets()
1083 if (mActivityManager.isLowRamDevice()) { in isSharingShortcutDirectShareEnabled()

12