/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/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() 42 return isLegacyHAL(manager, cameraIdStr); in isLegacyHAL() 53 public static boolean isLegacyHAL(CameraManager manager, String cameraIdStr) throws Exception { in isLegacyHAL() argument 55 manager.getCameraCharacteristics(cameraIdStr); in isLegacyHAL() 70 CameraManager manager = (CameraManager) context.getSystemService(Context.CAMERA_SERVICE); in isExternal() local 71 String cameraIdStr = manager.getCameraIdList()[cameraId]; in isExternal() 73 manager.getCameraCharacteristics(cameraIdStr); in isExternal()
|
/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()
|
/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 | 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 …]
|
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()
|
/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/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/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() 419 public static float getLogicalCameraDefaultFocalLength(CameraManager manager, in getLogicalCameraDefaultFocalLength() argument 421 BlockingCameraManager blockingManager = new BlockingCameraManager(manager); in getLogicalCameraDefaultFocalLength()
|
/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/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/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/apps/hotspot/src/com/android/cts/hotspot/ |
D | Notify.java | 28 WifiManager manager = (WifiManager) x.getSystemService(Context.WIFI_SERVICE); in turnOnHotspot() local 30 manager.startLocalOnlyHotspot( in turnOnHotspot()
|
/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/tests/tests/voicesettings/src/android/voicesettings/cts/ |
D | BroadcastTestBase.java | 111 final PackageManager manager = mContext.getPackageManager(); in isIntentSupported() local 112 assertThat(manager).isNotNull(); in isIntentSupported() 113 if (manager.resolveActivity(intent, 0) == null) { in isIntentSupported()
|
/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/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/tests/tests/view/src/android/view/cts/ |
D | TouchDelegateTest.java | 150 final AccessibilityManager manager = (AccessibilityManager) mInstrumentation.getContext() in testOnTouchExplorationHoverEvent_whenA11yEbtDisabled_receiveNoEvent() local 153 manager.isEnabled() && manager.isTouchExplorationEnabled()); in testOnTouchExplorationHoverEvent_whenA11yEbtDisabled_receiveNoEvent()
|