Home
last modified time | relevance | path

Searched refs:mgr (Results 1 – 16 of 16) sorted by relevance

/cts/suite/audio_quality/client/src/com/android/cts/audiotest/
DCtsAudioClientActivity.java69 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/
DSimpleActivity.java32 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/
DCustomViewActivityTest.java445 final ContentCaptureManager mgr = activity.getContentCaptureManager(); in testContentCaptureConditions() local
446 final Set<ContentCaptureCondition> actualConditions = mgr.getContentCaptureConditions(); in testContentCaptureConditions()
469 final ContentCaptureManager mgr = activity.getContentCaptureManager(); in testContentCaptureConditions_otherPackage() local
470 final Set<ContentCaptureCondition> actualConditions = mgr.getContentCaptureConditions(); in testContentCaptureConditions_otherPackage()
482 final ContentCaptureManager mgr = activity.getContentCaptureManager(); in testContentCaptureEnabled_dynamicFlagSecure() local
483 assertThat(mgr.isContentCaptureEnabled()).isTrue(); in testContentCaptureEnabled_dynamicFlagSecure()
490 () -> mgr.isContentCaptureEnabled() ? null : "not_used"); in testContentCaptureEnabled_dynamicFlagSecure()
497 () -> mgr.isContentCaptureEnabled() ? "not_used" : null); in testContentCaptureEnabled_dynamicFlagSecure()
512 final ContentCaptureManager mgr = activity.getContentCaptureManager(); in testDisabledByFlagSecure() local
513 assertThat(mgr.isContentCaptureEnabled()).isFalse(); in testDisabledByFlagSecure()
[all …]
DChildlessActivityTest.java1082 final ContentCaptureManager mgr = getContentCaptureManagerHack(); in testIsContentCaptureFeatureEnabled_notService() local
1083 assertThrows(SecurityException.class, () -> mgr.isContentCaptureFeatureEnabled()); in testIsContentCaptureFeatureEnabled_notService()
1093 final ContentCaptureManager mgr = getContentCaptureManagerHack(); in setContentCaptureFeatureEnabledTest_disabled() local
1096 assertThat(mgr.isContentCaptureFeatureEnabled()).isTrue(); in setContentCaptureFeatureEnabledTest_disabled()
1102 assertThat(mgr.isContentCaptureFeatureEnabled()).isFalse(); in setContentCaptureFeatureEnabledTest_disabled()
1103 assertThat(mgr.isContentCaptureEnabled()).isFalse(); in setContentCaptureFeatureEnabledTest_disabled()
1123 final ContentCaptureManager mgr = getContentCaptureManagerHack(); in setContentCaptureFeatureEnabledTest_disabledThenReEnabled() local
1126 assertThat(mgr.isContentCaptureFeatureEnabled()).isTrue(); in setContentCaptureFeatureEnabledTest_disabledThenReEnabled()
1132 assertThat(mgr.isContentCaptureFeatureEnabled()).isFalse(); in setContentCaptureFeatureEnabledTest_disabledThenReEnabled()
1133 assertThat(mgr.isContentCaptureEnabled()).isFalse(); in setContentCaptureFeatureEnabledTest_disabledThenReEnabled()
[all …]
/cts/tests/tests/permission/src/android/permission/cts/
DServicesInstantAppsCannotAccessTests.java75 WallpaperManager mgr = (WallpaperManager) InstrumentationRegistry.getTargetContext() in cannotGetWallpaperManager() local
79 assertNull(mgr); in cannotGetWallpaperManager()
81 assertFalse(mgr.isWallpaperSupported()); in cannotGetWallpaperManager()
/cts/hostsidetests/incident/apps/boundwidgetapp/src/android/appwidget/cts/
DAppWidgetTest.java94 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/apps/CtsVerifier/src/com/android/cts/verifier/widget/
DWidgetCtsProvider.java97 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/sensor/src/android/hardware/cts/helpers/sensorverification/
DEventBasicVerificationTest.java42 SensorManager mgr = (SensorManager) mContext.getSystemService(Context.SENSOR_SERVICE); in testVerify() local
47 Sensor sensor2 = mgr.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in testVerify()
/cts/tests/camera/libctscamera2jni/
Dnative-camera-jni.cpp1656 ACameraManager* mgr = ACameraManager_create(); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetCameraIdsNative() local
1658 camera_status_t ret = ACameraManager_getCameraIdList(mgr, &cameraIdList); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetCameraIdsNative()
1673 if (mgr) { in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetCameraIdsNative()
1674 ACameraManager_delete(mgr); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerGetCameraIdsNative()
1692 ACameraManager* mgr = ACameraManager_create(); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerAvailabilityCallbackNative() local
1694 camera_status_t ret = ACameraManager_getCameraIdList(mgr, &cameraIdList); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerAvailabilityCallbackNative()
1701 ret = ACameraManager_registerAvailabilityCallback(mgr, &cbs); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerAvailabilityCallbackNative()
1715 ret = ACameraManager_unregisterAvailabilityCallback(mgr, &cbs); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerAvailabilityCallbackNative()
1725 if (mgr) { in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerAvailabilityCallbackNative()
1726 ACameraManager_delete(mgr); in Java_android_hardware_camera2_cts_NativeCameraManagerTest_testCameraManagerAvailabilityCallbackNative()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/augmented/
DAugmentedLoginActivityTest.java941 final AutofillManager mgr = mActivity.getAutofillManager();
943 () -> mgr.setAugmentedAutofillWhitelist((Set<String>) null,
951 final AutofillManager mgr = mActivity.getAutofillManager();
953 () -> mgr.setAugmentedAutofillWhitelist((Set<String>) null,
964 final AutofillManager mgr = mActivity.getAutofillManager();
965 mgr.setAugmentedAutofillWhitelist((Set) null, (Set) null);
991 final AutofillManager mgr = mActivity.getAutofillManager();
994 mgr.setAugmentedAutofillWhitelist(null, components);
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DCarrierConfigManagerTest.java101 ConnectivityManager mgr = in hasTelephony() local
103 return mgr.isNetworkSupported(ConnectivityManager.TYPE_MOBILE); in hasTelephony()
/cts/tests/tests/provider/src/android/provider/cts/
DMockFontProvider.java206 final AssetManager mgr = context.getAssets(); in prepareFontFiles() local
208 try (InputStream is = mgr.open(path)) { in prepareFontFiles()
/cts/tests/apppredictionservice/src/android/apppredictionservice/cts/
DAppPredictionServiceTest.java277 AppPredictionManager mgr = (AppPredictionManager) ctx.getSystemService( in createTestPredictor() local
279 return mgr.createAppPredictionSession(context); in createTestPredictor()
/cts/tests/tests/media/assets/
Dsegment000001.ts2029 ���1_���o����IE��� /�C�z�%��`mgr�$��׫�{/�N❗ĝ�G��@�ᛈR0z�Z�=��#h��O��2G죉/e����̶�e����#�g…
/cts/tests/tests/media/res/raw/
Dsegment000001.ts2029 ���1_���o����IE��� /�C�z�%��`mgr�$��׫�{/�N❗ĝ�G��@�ᛈR0z�Z�=��#h��O��2G죉/e����̶�e����#�g…
DMultiLangPerso_1PID_PC0_Select_AC4_H265_DVB_50fps_Audio_Only.ts11726 �4Avp*�+��8�}�.C�^���{~X�R����b |Ul+�=�z�GY���HS����mgr��X���Mzy`���:�e�t텙n��y