/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | MemoryDeviceInfo.java | 33 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()
|
D | GlesStubActivity.java | 77 ActivityManager activityManager = in onCreate() local 79 ConfigurationInfo info = activityManager.getDeviceConfigurationInfo(); in onCreate()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | MultiDisplaySecurityTests.java | 193 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/ |
D | DeviceInfoInstrument.java | 450 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/ |
D | BaseAccelerationTest.java | 66 ActivityManager activityManager = in getGlEsVersion() local 68 ConfigurationInfo configInfo = activityManager.getDeviceConfigurationInfo(); in getGlEsVersion()
|
/cts/tests/backup/src/android/backup/cts/ |
D | AgentBindingTest.java | 72 Object activityManager = getActivityManager(); in callActivityManagerMethod() local 74 bindBackupAgentMethod.invoke(activityManager, args); in callActivityManagerMethod()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | NoSystemFunctionPermissionTest.java | 49 ActivityManager activityManager = (ActivityManager) mContext.getSystemService( in testRestartPackage() local 53 activityManager.restartPackage("packageName"); in testRestartPackage()
|
/cts/tests/tests/uiautomation/src/android/app/uiautomation/cts/ |
D | UiAutomationTest.java | 90 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/ |
D | CtsTestRunListener.java | 226 ActivityManager activityManager = in TestEnvironment() local 229 Boolean.toString(activityManager.isLowRamDevice())); in TestEnvironment()
|
/cts/tests/core/runner/src/com/android/cts/runner/ |
D | CtsTestRunListener.java | 226 ActivityManager activityManager = in TestEnvironment() local 229 Boolean.toString(activityManager.isLowRamDevice())); in TestEnvironment()
|
/cts/tests/app/src/android/app/cts/ |
D | ActivityManagerMemoryClassTest.java | 219 ActivityManager activityManager = in getMemoryClass() local 221 return activityManager.getMemoryClass(); in getMemoryClass()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | SessionLifecycleTest.java | 157 final ActivityManager activityManager = (ActivityManager) getContext() in testDatasetAuthResponseWhileAutofilledAppIsLifecycled() local 159 assumeFalse(activityManager.isLowRamDevice()); in testDatasetAuthResponseWhileAutofilledAppIsLifecycled()
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
D | OpenGlEsVersionTest.java | 453 ActivityManager activityManager = in getVersionFromActivityManager() local 455 ConfigurationInfo configInfo = activityManager.getDeviceConfigurationInfo(); in getVersionFromActivityManager()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/ |
D | MultiNetworkConnectivityTestActivity.java | 543 ActivityManager activityManager = in isLowRamDevice() local 545 return activityManager.isLowRamDevice(); in isLowRamDevice()
|