Home
last modified time | relevance | path

Searched refs:manager (Results 1 – 25 of 37) sorted by relevance

12

/cts/tests/tests/shortcutmanager/throttling/src/android/content/pm/cts/shortcutmanager/throttling/
DThrottledTests.java37 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()
DBgService.java44 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/
DShortcutManagerMiscTest.java35 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()
DShortcutManagerNegativeTest.java91 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/
DCameraUtils.java40 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/
DUsbMicrophoneTester.java33 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/
DCamera2Activity.java59 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()
DCameraEvictionTest.java159 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/
DServiceControlUtils.java187 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/
DAccuracyTest.java37 public AccuracyTest(ReferencePath referencePath, TestReport testReport, Manager manager) { in AccuracyTest() argument
38 super(referencePath, testReport, manager, "Accuracy Test"); in AccuracyTest()
DComplexMovementTest.java44 … public ComplexMovementTest(ReferencePath referencePath, TestReport testReport, Manager manager) { in ComplexMovementTest() argument
45 super(referencePath, testReport, manager, "Complex Movement Test"); in ComplexMovementTest()
DRobustnessTest.java49 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/
DNoActivityRelatedPermissionTest.java58 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/
DAlarmClockTestBase.java80 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/
DInstrumentedAccessibilityService.java146 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/
DBroadcastTestBase.java72 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/
DSeccompDeviceTest.java53 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/
DCameraStreamManager.java194 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/
DMediaSessionTestHelperService.java55 NotificationManager manager = in onCreate() local
59 manager.createNotificationChannel(notificationChannel); in onCreate()
/cts/tests/openglperf2/src/android/opengl2/cts/reference/
DGLGameActivity.java91 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/
DVulkanPreTransformCtsActivity.java52 AssetManager manager, Surface surface, boolean setPreTransform); in nCreateNativeTest() argument
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/
DProjectionService.java82 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/
DTestUtils.java54 MediaSessionManager manager = in getServiceToken() local
56 List<SessionToken2> tokens = manager.getSessionServiceTokens(); in getServiceToken()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsTestActivity.java333 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/
DUiAutomationTest.java387 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()

12