/cts/tests/tests/shortcutmanager/throttling/src/android/content/pm/cts/shortcutmanager/throttling/ |
D | ThrottledTests.java | 37 final ShortcutManager manager = context.getSystemService(ShortcutManager.class); in assertThrottled() local 39 assertFalse("Throttling must be reset here", manager.isRateLimitingActive()); in assertThrottled() 59 final ShortcutManager manager = context.getSystemService(ShortcutManager.class); in ensureThrottled() local 61 retryUntil(() -> !manager.setDynamicShortcuts(list()), "Not throttled."); in ensureThrottled() 65 final ShortcutManager manager = context.getSystemService(ShortcutManager.class); in assertCallNotThrottled() local 67 assertFalse(manager.isRateLimitingActive()); in assertCallNotThrottled() 70 assertTrue(manager.setDynamicShortcuts(list())); in assertCallNotThrottled() 71 assertTrue(manager.addDynamicShortcuts(list())); in assertCallNotThrottled() 72 assertTrue(manager.updateShortcuts(list())); in assertCallNotThrottled()
|
D | BgService.java | 44 final ShortcutManager manager = context.getSystemService(ShortcutManager.class); in onStartCommand() local 52 context, () -> manager.setDynamicShortcuts(list())); in onStartCommand()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | PowerManagerServicePermissionTest.java | 24 PowerManager manager = getContext().getSystemService(PowerManager.class); in testSetBatterySaver_requiresPermissions() local 25 boolean batterySaverOn = manager.isPowerSaveMode(); in testSetBatterySaver_requiresPermissions() 28 manager.setPowerSaveModeEnabled(!batterySaverOn); in testSetBatterySaver_requiresPermissions() 37 PowerManager manager = getContext().getSystemService(PowerManager.class); in testGetPowerSaverMode_requiresPermissions() local 38 manager.getPowerSaveModeTrigger(); in testGetPowerSaverMode_requiresPermissions() 47 PowerManager manager = getContext().getSystemService(PowerManager.class); in testsetDynamicPowerSavings_requiresPermissions() local 48 manager.setDynamicPowerSaveHint(true, 0); in testsetDynamicPowerSavings_requiresPermissions()
|
D | NoActivityRelatedPermissionTest.java | 58 ActivityManager manager = (ActivityManager) getActivity() in testGetTask() local 60 List<ActivityManager.RunningTaskInfo> runningTasks = manager.getRunningTasks(10); in testGetTask() 66 List<ActivityManager.RecentTaskInfo> recentTasks = manager.getRecentTasks(10, in testGetTask()
|
/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/ |
D | BatterySaverTest.java | 80 PowerManager manager = BatteryUtils.getPowerManager(); in testSetBatterySaver_powerManager() local 81 assertFalse(manager.isPowerSaveMode()); in testSetBatterySaver_powerManager() 87 manager.setPowerSaveModeEnabled(true); in testSetBatterySaver_powerManager() 88 assertTrue(manager.isPowerSaveMode()); in testSetBatterySaver_powerManager() 90 manager.setPowerSaveModeEnabled(false); in testSetBatterySaver_powerManager() 91 assertFalse(manager.isPowerSaveMode()); in testSetBatterySaver_powerManager()
|
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/ |
D | ShortcutManagerMiscTest.java | 35 ShortcutManager manager = getTestContext().getSystemService(ShortcutManager.class); in testMiscApis() local 37 assertEquals(10, manager.getMaxShortcutCountPerActivity()); in testMiscApis() 40 assertFalse(manager.isRateLimitingActive()); in testMiscApis() 43 assertEquals(iconDimension, manager.getIconMaxWidth()); in testMiscApis() 44 assertEquals(iconDimension, manager.getIconMaxHeight()); in testMiscApis()
|
D | ShortcutManagerNegativeTest.java | 91 final ShortcutManager manager = getTestContext().getSystemService(ShortcutManager.class); in checkAidlCall() local 94 callMethodExpectingSecurityException(readField(manager, "mService"), method, in checkAidlCall()
|
/cts/tests/camera/utils/src/android/hardware/cts/helpers/ |
D | CameraUtils.java | 40 CameraManager manager = (CameraManager) context.getSystemService(Context.CAMERA_SERVICE); in isLegacyHAL() local 41 String cameraIdStr = manager.getCameraIdList()[cameraId]; in isLegacyHAL() 43 manager.getCameraCharacteristics(cameraIdStr); in isLegacyHAL() 58 CameraManager manager = (CameraManager) context.getSystemService(Context.CAMERA_SERVICE); in isExternal() local 59 String cameraIdStr = manager.getCameraIdList()[cameraId]; in isExternal() 61 manager.getCameraCharacteristics(cameraIdStr); in isExternal()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | PowerManagerTest.java | 93 PowerManager manager = BatteryUtils.getPowerManager(); in testPowerManager_getPowerSaveMode() local 100 manager.getPowerSaveModeTrigger()); in testPowerManager_getPowerSaveMode() 106 manager.getPowerSaveModeTrigger()); in testPowerManager_getPowerSaveMode() 112 PowerManager manager = BatteryUtils.getPowerManager(); in testPowerManager_setDynamicPowerSavings() local 116 manager.setDynamicPowerSaveHint(true, 80); in testPowerManager_setDynamicPowerSavings() 121 manager.setDynamicPowerSaveHint(false, 20); in testPowerManager_setDynamicPowerSavings()
|
D | HwBinderTest.java | 25 import android.hidl.manager.V1_0.IServiceManager; 26 import android.hidl.manager.V1_0.IServiceNotification; 217 IServiceManager manager = IServiceManager.getService(); in testHwBinder() local 218 manager.registerForNotifications(IServiceManager.kInterfaceName, "default", notification); in testHwBinder()
|
/cts/tests/camera/src/android/hardware/multiprocess/camera/cts/ |
D | Camera2Activity.java | 59 CameraManager manager = (CameraManager) getSystemService(Context.CAMERA_SERVICE); in onResume() local 61 if (manager == null) { in onResume() 66 String[] cameraIds = manager.getCameraIdList(); in onResume() 74 manager.registerAvailabilityCallback(new CameraManager.AvailabilityCallback() { in onResume() 94 manager.openCamera(chosen, new CameraDevice.StateCallback() { in onResume()
|
D | CameraEvictionTest.java | 166 CameraManager manager = (CameraManager) mContext.getSystemService(Context.CAMERA_SERVICE); in testBasicCamera2ActivityEviction() local 167 assertNotNull(manager); in testBasicCamera2ActivityEviction() 168 String[] cameraIds = manager.getCameraIdList(); in testBasicCamera2ActivityEviction() 183 manager.registerAvailabilityCallback(mockAvailCb, cameraHandler); in testBasicCamera2ActivityEviction() 192 manager.openCamera(chosenCamera, spyStateCb, cameraHandler); in testBasicCamera2ActivityEviction() 240 manager.openCamera(chosenCamera, spyStateCb, cameraHandler); in testBasicCamera2ActivityEviction() 270 CameraManager manager = (CameraManager) mContext.getSystemService(Context.CAMERA_SERVICE); in testCamera2AccessCallback() local 271 assertNotNull(manager); in testCamera2AccessCallback() 272 String[] cameraIds = manager.getCameraIdList(); in testCamera2AccessCallback() 286 manager.registerAvailabilityCallback(mockAvailCb, cameraHandler); in testCamera2AccessCallback() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | UsbMicrophoneTester.java | 33 UsbManager manager = (UsbManager) context.getSystemService(Context.USB_SERVICE); in getUSBDeviceListString() local 35 HashMap<String, UsbDevice> devicelist = manager.getDeviceList(); in getUSBDeviceListString() 53 UsbManager manager = (UsbManager) context.getSystemService(Context.USB_SERVICE); in getIsMicrophoneConnected() local 55 HashMap<String, UsbDevice> devicelist = manager.getDeviceList(); in getIsMicrophoneConnected()
|
/cts/tests/accessibility/src/android/view/accessibility/cts/ |
D | ServiceControlUtils.java | 47 AccessibilityManager manager = in waitForConditionWithServiceStateChange() local 55 manager.addAccessibilityServicesStateChangeListener(listener, null); in waitForConditionWithServiceStateChange() 59 manager.removeAccessibilityServicesStateChangeListener(listener); in waitForConditionWithServiceStateChange()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/TestPhase/ |
D | AccuracyTest.java | 37 public AccuracyTest(ReferencePath referencePath, TestReport testReport, Manager manager) { in AccuracyTest() argument 38 super(referencePath, testReport, manager, "Accuracy Test"); in AccuracyTest()
|
D | ComplexMovementTest.java | 44 … public ComplexMovementTest(ReferencePath referencePath, TestReport testReport, Manager manager) { in ComplexMovementTest() argument 45 super(referencePath, testReport, manager, "Complex Movement Test"); in ComplexMovementTest()
|
/cts/tests/accessibility/common/src/android/accessibility/cts/common/ |
D | InstrumentedAccessibilityService.java | 179 final AccessibilityManager manager = (AccessibilityManager) context.getSystemService( in enableService() local 182 manager.getInstalledAccessibilityServiceList(); in enableService() 234 final AccessibilityManager manager = in disableAllServices() local 237 final AtomicBoolean accessibilityEnabled = new AtomicBoolean(manager.isEnabled()); in disableAllServices() 238 manager.addAccessibilityStateChangeListener(b -> { in disableAllServices()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | BroadcastTestBase.java | 74 final PackageManager manager = mContext.getPackageManager(); in isIntentSupported() local 75 assertNotNull(manager); in isIntentSupported() 76 if (manager.resolveActivity(intent, 0) == null) { in isIntentSupported()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | BroadcastTestBase.java | 74 final PackageManager manager = mContext.getPackageManager(); in isIntentSupported() local 75 assertNotNull(manager); in isIntentSupported() 76 if (manager.resolveActivity(intent, 0) == null) { in isIntentSupported()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
D | ItsUtils.java | 325 public static ItsCameraIdList getItsCompatibleCameraIds(CameraManager manager) in getItsCompatibleCameraIds() argument 327 if (manager == null) { in getItsCompatibleCameraIds() 335 String[] cameraIds = manager.getCameraIdList(); in getItsCompatibleCameraIds() 337 CameraCharacteristics characteristics = manager.getCameraCharacteristics(id); in getItsCompatibleCameraIds() 371 float defaultFocalLength = getLogicalCameraDefaultFocalLength(manager, id); in getItsCompatibleCameraIds() 377 manager.getCameraCharacteristics(physicalId); in getItsCompatibleCameraIds() 407 public static float getLogicalCameraDefaultFocalLength(CameraManager manager, in getLogicalCameraDefaultFocalLength() argument 409 BlockingCameraManager blockingManager = new BlockingCameraManager(manager); in getLogicalCameraDefaultFocalLength()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Renderer/RenderUtils/ |
D | CameraStreamManager.java | 194 CameraManager manager = (CameraManager) mContext.getSystemService(Context.CAMERA_SERVICE); in openCamera() local 199 manager.openCamera(CAMERA_ID, mStateCallback, mBackgroundHandler); in openCamera() 313 CameraManager manager = (CameraManager) context.getSystemService(Context.CAMERA_SERVICE); in getRotation() local 316 characteristics = manager.getCameraCharacteristics(CAMERA_ID + ""); in getRotation()
|
/cts/tests/openglperf2/src/android/opengl2/cts/reference/ |
D | GLGameActivity.java | 91 private static native boolean startBenchmark(AssetManager manager, in startBenchmark() argument 146 public static int loadTexture(AssetManager manager, String path) { in loadTexture() argument 149 in = manager.open(path); in loadTexture()
|
/cts/hostsidetests/media/app/MediaSessionTestHelper/src/android/media/app/media_session_test_helper/ |
D | MediaSessionTestHelperService.java | 55 NotificationManager manager = in onCreate() local 59 manager.createNotificationChannel(notificationChannel); in onCreate()
|
/cts/hostsidetests/seccomp/app/src/android/seccomp/cts/app/ |
D | SeccompDeviceTest.java | 81 AssetManager manager = mContext.getAssets(); in initializeSyscallMap() local 82 try (InputStream is = manager.open("syscalls_allowed.json")) { in initializeSyscallMap() 85 try (InputStream is = manager.open("syscalls_blocked.json")) { in initializeSyscallMap()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/ |
D | ProjectionService.java | 82 DisplayManager manager = (DisplayManager) getSystemService(DISPLAY_SERVICE); in startRendering() 85 mDisplay = manager.createVirtualDisplay(DISPLAY_NAME, width, height, density, in startRendering()
|