/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/shortcutmanager/src/android/content/pm/cts/shortcutmanager/ |
D | ShortcutManagerMiscTest.java | 35 ShortcutManager manager = getTestContext().getSystemService(ShortcutManager.class); in testMiscApis() local 37 assertEquals(5, 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/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/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 | 159 CameraManager manager = (CameraManager) mContext.getSystemService(Context.CAMERA_SERVICE); in testBasicCamera2ActivityEviction() local 160 assertNotNull(manager); in testBasicCamera2ActivityEviction() 161 String[] cameraIds = manager.getCameraIdList(); in testBasicCamera2ActivityEviction() 176 manager.registerAvailabilityCallback(mockAvailCb, cameraHandler); in testBasicCamera2ActivityEviction() 185 manager.openCamera(chosenCamera, spyStateCb, cameraHandler); in testBasicCamera2ActivityEviction() 233 manager.openCamera(chosenCamera, spyStateCb, cameraHandler); in testBasicCamera2ActivityEviction()
|
/cts/tests/accessibility/src/android/view/accessibility/cts/ |
D | ServiceControlUtils.java | 187 AccessibilityManager manager = (AccessibilityManager) instrumentation in turnAccessibilityOff() local 190 AtomicBoolean accessibilityEnabled = new AtomicBoolean(manager.isEnabled()); in turnAccessibilityOff() 197 manager.addAccessibilityStateChangeListener(listener); in turnAccessibilityOff() 213 manager.removeAccessibilityStateChangeListener(listener); in turnAccessibilityOff() 215 assertThat("Unable to turn accessibility off", manager.isEnabled(), is(equalTo(false))); in turnAccessibilityOff()
|
/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()
|
D | RobustnessTest.java | 49 public RobustnessTest(ReferencePath referencePath, TestReport testReport, Manager manager, in RobustnessTest() argument 51 super(referencePath, testReport, manager, "Robustness Test"); in RobustnessTest()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
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/alarmclock/src/android/alarmclock/cts/ |
D | AlarmClockTestBase.java | 80 final PackageManager manager = mContext.getPackageManager(); in isIntentSupported() local 81 assertNotNull(manager); in isIntentSupported() 83 if (manager.hasSystemFeature(PackageManager.FEATURE_LEANBACK_ONLY)) { in isIntentSupported() 113 if (manager.resolveActivity(intent, 0) == null) { in isIntentSupported()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | InstrumentedAccessibilityService.java | 146 final AccessibilityManager manager = (AccessibilityManager) context.getSystemService( in enableService() local 149 manager.getInstalledAccessibilityServiceList(); in enableService() 201 final AccessibilityManager manager = in disableAllServices() local 203 manager.addAccessibilityStateChangeListener(b -> { in disableAllServices() 217 if (manager.getEnabledAccessibilityServiceList( in disableAllServices()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | BroadcastTestBase.java | 72 final PackageManager manager = mContext.getPackageManager(); in isIntentSupported() local 73 assertNotNull(manager); in isIntentSupported() 74 if (manager.resolveActivity(intent, 0) == null) { in isIntentSupported()
|
/cts/hostsidetests/seccomp/app/src/android/seccomp/cts/app/ |
D | SeccompDeviceTest.java | 53 AssetManager manager = context.getAssets(); in initializeSyscallMap() local 54 try (InputStream is = manager.open("syscalls_allowed.json")) { in initializeSyscallMap() 57 try (InputStream is = manager.open("syscalls_blocked.json")) { in initializeSyscallMap()
|
/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/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/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/graphics/src/android/graphics/cts/ |
D | VulkanPreTransformCtsActivity.java | 52 AssetManager manager, Surface surface, boolean setPreTransform); in nCreateNativeTest() argument
|
/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()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | TestUtils.java | 54 MediaSessionManager manager = in getServiceToken() local 56 List<SessionToken2> tokens = manager.getSessionServiceTokens(); in getServiceToken()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
D | ItsTestActivity.java | 333 CameraManager manager = (CameraManager) this.getSystemService(Context.CAMERA_SERVICE); in onCreate() local 335 String[] cameraIds = manager.getCameraIdList(); in onCreate() 338 CameraCharacteristics characteristics = manager.getCameraCharacteristics(id); in onCreate() 397 CameraManager manager = (CameraManager) this.getSystemService(Context.CAMERA_SERVICE); in onResume() local 398 if (manager == null) { in onResume()
|
/cts/tests/tests/uiautomation/src/android/app/uiautomation/cts/ |
D | UiAutomationTest.java | 387 AccessibilityManager manager = in enableAccessibilityService() local 390 manager.getInstalledAccessibilityServiceList(); in enableAccessibilityService() 430 AccessibilityManager manager = in turnAccessibilityOff() local 432 manager.addAccessibilityStateChangeListener( in turnAccessibilityOff() 448 if (!manager.isEnabled()) { in turnAccessibilityOff()
|