Home
last modified time | relevance | path

Searched refs:activityManager (Results 1 – 14 of 14) 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/
DMultiDisplaySecurityTests.java193 final ActivityManager activityManager = in testCanAccessSystemOwnedDisplay() local
197 assertTrue(activityManager.isActivityStartAllowedOnDisplay(mTargetContext, in testCanAccessSystemOwnedDisplay()
213 final ActivityManager activityManager = in testCanAccessPublicVirtualDisplayWithInternalPermission() local
219 assertTrue(activityManager.isActivityStartAllowedOnDisplay(mTargetContext, in testCanAccessPublicVirtualDisplayWithInternalPermission()
235 final ActivityManager activityManager = in testCanAccessPrivateVirtualDisplayWithInternalPermission() local
241 assertTrue(activityManager.isActivityStartAllowedOnDisplay(mTargetContext, in testCanAccessPrivateVirtualDisplayWithInternalPermission()
258 final ActivityManager activityManager = in testCantAccessPublicVirtualDisplayNoEmbeddingPermission() local
262 assertFalse(activityManager.isActivityStartAllowedOnDisplay(mTargetContext, in testCantAccessPublicVirtualDisplayNoEmbeddingPermission()
278 final ActivityManager activityManager = in testCantAccessPublicVirtualDisplayActivityEmbeddingNotAllowed() local
284 assertFalse(activityManager.isActivityStartAllowedOnDisplay(mTargetContext, in testCantAccessPublicVirtualDisplayActivityEmbeddingNotAllowed()
[all …]
/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/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/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/core/runner-axt/src/com/android/cts/runner/
DCtsTestRunListener.java226 ActivityManager activityManager = in TestEnvironment() local
229 Boolean.toString(activityManager.isLowRamDevice())); in TestEnvironment()
/cts/tests/core/runner/src/com/android/cts/runner/
DCtsTestRunListener.java226 ActivityManager activityManager = in TestEnvironment() local
229 Boolean.toString(activityManager.isLowRamDevice())); in TestEnvironment()
/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()