/cts/suite/audio_quality/client/src/com/android/cts/audiotest/ |
D | CtsAudioClientActivity.java | 69 AudioManager mgr = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in setVolume() local 70 mgr.setStreamMute(stream, false); in setVolume() 71 int original = mgr.getStreamVolume(AudioManager.STREAM_MUSIC); in setVolume() 74 targetLevel = mgr.getStreamMaxVolume(stream); in setVolume() 76 mgr.setStreamVolume(stream, targetLevel, 0); in setVolume()
|
/cts/hostsidetests/devicepolicy/app/ContentSuggestionsApp/src/com/android/cts/devicepolicy/contentsuggestionsapp/ |
D | SimpleActivity.java | 32 final ContentSuggestionsManager mgr = getSystemService(ContentSuggestionsManager.class); in onStart() local 33 if (mgr == null) { in onStart() 37 final boolean enabled = mgr.isEnabled(); in onStart()
|
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/ |
D | CustomViewActivityTest.java | 484 final ContentCaptureManager mgr = activity.getContentCaptureManager(); in testContentCaptureConditions() local 485 final Set<ContentCaptureCondition> actualConditions = mgr.getContentCaptureConditions(); in testContentCaptureConditions() 508 final ContentCaptureManager mgr = activity.getContentCaptureManager(); in testContentCaptureConditions_otherPackage() local 509 final Set<ContentCaptureCondition> actualConditions = mgr.getContentCaptureConditions(); in testContentCaptureConditions_otherPackage() 521 final ContentCaptureManager mgr = activity.getContentCaptureManager(); in testContentCaptureEnabled_dynamicFlagSecure() local 522 assertThat(mgr.isContentCaptureEnabled()).isTrue(); in testContentCaptureEnabled_dynamicFlagSecure() 529 () -> mgr.isContentCaptureEnabled() ? null : "not_used"); in testContentCaptureEnabled_dynamicFlagSecure() 536 () -> mgr.isContentCaptureEnabled() ? "not_used" : null); in testContentCaptureEnabled_dynamicFlagSecure() 551 final ContentCaptureManager mgr = activity.getContentCaptureManager(); in testDisabledByFlagSecure() local 552 assertThat(mgr.isContentCaptureEnabled()).isFalse(); in testDisabledByFlagSecure() [all …]
|
D | ChildlessActivityTest.java | 1084 final ContentCaptureManager mgr = getContentCaptureManagerHack(); in testIsContentCaptureFeatureEnabled_notService() local 1085 assertThrows(SecurityException.class, () -> mgr.isContentCaptureFeatureEnabled()); in testIsContentCaptureFeatureEnabled_notService() 1095 final ContentCaptureManager mgr = getContentCaptureManagerHack(); in setContentCaptureFeatureEnabledTest_disabled() local 1098 assertThat(mgr.isContentCaptureFeatureEnabled()).isTrue(); in setContentCaptureFeatureEnabledTest_disabled() 1104 assertThat(mgr.isContentCaptureFeatureEnabled()).isFalse(); in setContentCaptureFeatureEnabledTest_disabled() 1105 assertThat(mgr.isContentCaptureEnabled()).isFalse(); in setContentCaptureFeatureEnabledTest_disabled() 1125 final ContentCaptureManager mgr = getContentCaptureManagerHack(); in setContentCaptureFeatureEnabledTest_disabledThenReEnabled() local 1128 assertThat(mgr.isContentCaptureFeatureEnabled()).isTrue(); in setContentCaptureFeatureEnabledTest_disabledThenReEnabled() 1134 assertThat(mgr.isContentCaptureFeatureEnabled()).isFalse(); in setContentCaptureFeatureEnabledTest_disabledThenReEnabled() 1135 assertThat(mgr.isContentCaptureEnabled()).isFalse(); in setContentCaptureFeatureEnabledTest_disabledThenReEnabled() [all …]
|
/cts/hostsidetests/incident/apps/boundwidgetapp/src/android/appwidget/cts/ |
D | AppWidgetTest.java | 94 AppWidgetManager mgr = getAppWidgetManager(); in setupWidget() local 97 assertEquals(0, mgr.getAppWidgetIds(prov.provider).length); in setupWidget() 107 assertEquals(1, mgr.getAppWidgetIds(prov.provider).length); in setupWidget()
|
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/ |
D | EventBasicVerificationTest.java | 42 SensorManager mgr = (SensorManager) mContext.getSystemService(Context.SENSOR_SERVICE); in testVerify() local 47 Sensor sensor2 = mgr.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in testVerify()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/widget/ |
D | WidgetCtsProvider.java | 97 AppWidgetManager mgr = AppWidgetManager.getInstance(ctx); in onReceive() local 98 Bundle options = getAppWidgetOptions(mgr, widgetId); in onReceive() 99 updateWidget(ctx, widgetId, mgr, options); in onReceive() 111 Bundle getAppWidgetOptions(AppWidgetManager mgr, int widgetId) { in getAppWidgetOptions() argument 113 return mgr.getAppWidgetOptions(widgetId); in getAppWidgetOptions()
|
/cts/tests/camera/libctscamera2jni/ |
D | native-camera-jni.cpp | 1811 ACameraManager* mgr = ACameraManager_create(); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetCameraIdsNative() local 1813 camera_status_t ret = ACameraManager_getCameraIdList(mgr, &cameraIdList); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetCameraIdsNative() 1828 if (mgr) { in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetCameraIdsNative() 1829 ACameraManager_delete(mgr); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetCameraIdsNative() 1847 ACameraManager* mgr = ACameraManager_create(); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerExtendedAvailabilityCallbackNative() local 1849 camera_status_t ret = ACameraManager_getCameraIdList(mgr, &cameraIdList); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerExtendedAvailabilityCallbackNative() 1866 ret = ACameraManager_registerExtendedAvailabilityCallback(mgr, &cbs); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerExtendedAvailabilityCallbackNative() 1896 ret = ACameraManager_getCameraCharacteristics(mgr, cameraId, &c); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerExtendedAvailabilityCallbackNative() 1928 ret = ACameraManager_unregisterExtendedAvailabilityCallback(mgr, &cbs); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerExtendedAvailabilityCallbackNative() 1938 if (mgr) { in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerExtendedAvailabilityCallbackNative() [all …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/augmented/ |
D | AugmentedLoginActivityTest.java | 1134 final AutofillManager mgr = mActivity.getAutofillManager(); 1136 () -> mgr.setAugmentedAutofillWhitelist((Set<String>) null, 1144 final AutofillManager mgr = mActivity.getAutofillManager(); 1146 () -> mgr.setAugmentedAutofillWhitelist((Set<String>) null, 1157 final AutofillManager mgr = mActivity.getAutofillManager(); 1158 mgr.setAugmentedAutofillWhitelist((Set) null, (Set) null); 1184 final AutofillManager mgr = mActivity.getAutofillManager(); 1187 mgr.setAugmentedAutofillWhitelist(null, components);
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | MockFontProvider.java | 206 final AssetManager mgr = context.getAssets(); in prepareFontFiles() local 208 try (InputStream is = mgr.open(path)) { in prepareFontFiles()
|
/cts/tests/apppredictionservice/src/android/apppredictionservice/cts/ |
D | AppPredictionServiceTest.java | 284 AppPredictionManager mgr = (AppPredictionManager) ctx.getSystemService( in createTestPredictor() local 286 return mgr.createAppPredictionSession(context); in createTestPredictor()
|