Home
last modified time | relevance | path

Searched refs:activityManager (Results 1 – 16 of 16) sorted by relevance

/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DMemoryDeviceInfo.java33 ActivityManager activityManager = (ActivityManager)getInstrumentation() in collectDeviceInfo() local
35 store.addResult("low_ram_device", activityManager.isLowRamDevice()); in collectDeviceInfo()
36 store.addResult("memory_class", activityManager.getMemoryClass()); in collectDeviceInfo()
37 store.addResult("large_memory_class", activityManager.getLargeMemoryClass()); in collectDeviceInfo()
40 activityManager.getMemoryInfo(memoryInfo); in collectDeviceInfo()
DGlesStubActivity.java77 ActivityManager activityManager = in onCreate() local
79 ConfigurationInfo info = activityManager.getDeviceConfigurationInfo(); in onCreate()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DMultiDisplayPrivateDisplayTests.java111 final ActivityManager activityManager = in testCantAccessPrivateDisplay() local
116 assertFalse(activityManager.isActivityStartAllowedOnDisplay(mTargetContext, in testCantAccessPrivateDisplay()
128 final ActivityManager activityManager = in testCanAccessPrivateDisplayWithInternalPermission() local
135 assertTrue(activityManager.isActivityStartAllowedOnDisplay(mTargetContext, in testCanAccessPrivateDisplayWithInternalPermission()
DSurfaceControlViewHostTests.java164 ActivityManager activityManager = in getGlEsVersion() local
166 ConfigurationInfo configInfo = activityManager.getDeviceConfigurationInfo(); in getGlEsVersion()
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/
DDeviceInfoInstrument.java450 ActivityManager activityManager = (ActivityManager) getContext() in isLowRamDevice() local
452 return activityManager.isLowRamDevice() ? "true" : "false"; in isLowRamDevice()
456 ActivityManager activityManager = (ActivityManager) getContext() in getMemoryClass() local
458 return String.valueOf(activityManager.getMemoryClass()); in getMemoryClass()
462 ActivityManager activityManager = (ActivityManager) getContext() in getLargeMemoryClass() local
464 return String.valueOf(activityManager.getLargeMemoryClass()); in getLargeMemoryClass()
468 ActivityManager activityManager = (ActivityManager) getContext() in getTotalMemory() local
472 activityManager.getMemoryInfo(memoryInfo); in getTotalMemory()
/cts/tests/acceleration/src/android/acceleration/cts/
DBaseAccelerationTest.java66 ActivityManager activityManager = in getGlEsVersion() local
68 ConfigurationInfo configInfo = activityManager.getDeviceConfigurationInfo(); in getGlEsVersion()
/cts/tests/tests/security/src/android/security/cts/
DCVE_2020_0294.java49 ActivityManager activityManager = (ActivityManager) instrumentation.getContext() in testPocCVE_2020_0294() local
54 PendingIntent pi = activityManager.getRunningServiceControlPanel(componentName); in testPocCVE_2020_0294()
/cts/tests/backup/src/android/backup/cts/
DAgentBindingTest.java72 Object activityManager = getActivityManager(); in callActivityManagerMethod() local
74 bindBackupAgentMethod.invoke(activityManager, args); in callActivityManagerMethod()
/cts/tests/tests/permission/src/android/permission/cts/
DNoSystemFunctionPermissionTest.java49 ActivityManager activityManager = (ActivityManager) mContext.getSystemService( in testRestartPackage() local
53 activityManager.restartPackage("packageName"); in testRestartPackage()
/cts/tests/core/runner-axt/src/com/android/cts/runner/
DCtsTestRunListener.java226 ActivityManager activityManager = in TestEnvironment() local
229 Boolean.toString(activityManager.isLowRamDevice())); in TestEnvironment()
/cts/tests/tests/uiautomation/src/android/app/uiautomation/cts/
DUiAutomationTest.java90 final ActivityManager activityManager = context.getSystemService(ActivityManager.class); in testAdoptAllShellPermissions() local
95 activityManager.getPackageImportance("foo.bar.baz"); in testAdoptAllShellPermissions()
113 activityManager.getPackageImportance("foo.bar.baz"); in testAdoptAllShellPermissions()
132 activityManager.getPackageImportance("foo.bar.baz"); in testAdoptAllShellPermissions()
/cts/tests/camera/src/android/hardware/camera2/cts/
DOfflineSessionTest.java843 ActivityManager activityManager = (ActivityManager) mContext.getSystemService( in startRemoteOfflineTestProcess() local
845 List<ActivityManager.RunningAppProcessInfo> list = activityManager.getRunningAppProcesses(); in startRemoteOfflineTestProcess()
862 list = activityManager.getRunningAppProcesses(); in startRemoteOfflineTestProcess()
881 ActivityManager activityManager = (ActivityManager) mContext.getSystemService( in stopRemoteOfflineTestProcess() local
884 List<ActivityManager.RunningAppProcessInfo> list = activityManager.getRunningAppProcesses(); in stopRemoteOfflineTestProcess()
/cts/tests/app/src/android/app/cts/
DActivityManagerMemoryClassTest.java219 ActivityManager activityManager = in getMemoryClass() local
221 return activityManager.getMemoryClass(); in getMemoryClass()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DSessionLifecycleTest.java157 final ActivityManager activityManager = (ActivityManager) getContext() in testDatasetAuthResponseWhileAutofilledAppIsLifecycled() local
159 assumeFalse(activityManager.isLowRamDevice()); in testDatasetAuthResponseWhileAutofilledAppIsLifecycled()
/cts/tests/tests/opengl/src/android/opengl/cts/
DOpenGlEsVersionTest.java453 ActivityManager activityManager = in getVersionFromActivityManager() local
455 ConfigurationInfo configInfo = activityManager.getDeviceConfigurationInfo(); in getVersionFromActivityManager()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/
DMultiNetworkConnectivityTestActivity.java543 ActivityManager activityManager = in isLowRamDevice() local
545 return activityManager.isLowRamDevice(); in isLowRamDevice()