Home
last modified time | relevance | path

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

123456

/cts/tests/tests/wifi/src/android/net/wifi/sharedconnectivity/cts/app/
DSharedConnectivityManagerTest.java166 SharedConnectivityManager manager = SharedConnectivityManager.create(mContext); in bindingToServiceOnFirstCallbackRegistration() local
168 manager.registerCallback(mExecutor, mClientCallback); in bindingToServiceOnFirstCallbackRegistration()
177 SharedConnectivityManager manager = SharedConnectivityManager.create(mContext); in bindToServiceFails_userUnlocked_callsOnRegisterCallbackFailed() local
179 manager.registerCallback(mExecutor, mClientCallback); in bindToServiceFails_userUnlocked_callsOnRegisterCallbackFailed()
189 SharedConnectivityManager manager = SharedConnectivityManager.create(mContext); in bindToServiceFails_userLocked_registerReceiver() local
191 manager.registerCallback(mExecutor, mClientCallback); in bindToServiceFails_userLocked_registerReceiver()
202 SharedConnectivityManager manager = SharedConnectivityManager.create(mContext); in broadcastReceiver_onReceiveUnlock_retriesBind() local
204 manager.getBroadcastReceiver().onReceive(mContext, new Intent(Intent.ACTION_USER_UNLOCKED)); in broadcastReceiver_onReceiveUnlock_retriesBind()
211 SharedConnectivityManager manager = SharedConnectivityManager.create(mContext); in bindIsCalledOnceOnMultipleCallbackRegistrations() local
213 manager.registerCallback(mExecutor, mClientCallback); in bindIsCalledOnceOnMultipleCallbackRegistrations()
[all …]
/cts/tests/tests/os/jni/
Dandroid_os_cts_PerformanceHintManagerTest.cpp53 static SessionWrapper createSession(APerformanceHintManager* manager) { in createSession() argument
55 return SessionWrapper(APerformanceHint_createSession(manager, &pid, 1u, DEFAULT_TARGET_NS)); in createSession()
75 APerformanceHintManager* manager = APerformanceHint_getManager(); in nativeTestCreateHintSession() local
76 if (!manager) return toJString(env, "null manager"); in nativeTestCreateHintSession()
77 SessionWrapper a = createSession(manager); in nativeTestCreateHintSession()
78 SessionWrapper b = createSession(manager); in nativeTestCreateHintSession()
94 APerformanceHintManager* manager = APerformanceHint_getManager(); in nativeTestGetPreferredUpdateRateNanos() local
95 if (!manager) return toJString(env, "null manager"); in nativeTestGetPreferredUpdateRateNanos()
96 SessionWrapper wrapper = createSession(manager); in nativeTestGetPreferredUpdateRateNanos()
98 bool positive = APerformanceHint_getPreferredUpdateRateNanos(manager) > 0; in nativeTestGetPreferredUpdateRateNanos()
[all …]
/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()
/cts/tests/tests/os/src/android/os/cts/
DPowerManagerTest.java109 PowerManager manager = BatteryUtils.getPowerManager(); in testPowerManager_getPowerSaveMode() local
110 if (batterySaverSupportedCheckApi() && !manager.isBatterySaverSupported()) { in testPowerManager_getPowerSaveMode()
121 manager.getPowerSaveModeTrigger()); in testPowerManager_getPowerSaveMode()
127 manager.getPowerSaveModeTrigger()); in testPowerManager_getPowerSaveMode()
132 PowerManager manager = BatteryUtils.getPowerManager(); in testPowerManager_setDynamicPowerSavings() local
133 if (batterySaverSupportedCheckApi() && !manager.isBatterySaverSupported()) { in testPowerManager_setDynamicPowerSavings()
141 manager.setDynamicPowerSaveHint(true, 80); in testPowerManager_setDynamicPowerSavings()
146 manager.setDynamicPowerSaveHint(false, 20); in testPowerManager_setDynamicPowerSavings()
155 final PowerManager manager = BatteryUtils.getPowerManager(); in testPowerManager_batteryDischargePrediction() local
156 if (batterySaverSupportedCheckApi() && !manager.isBatterySaverSupported()) { in testPowerManager_batteryDischargePrediction()
[all …]
/cts/tests/tests/wifi/src/android/net/wifi/nl80211/cts/
DWifiNl80211ManagerTest.java153 WifiNl80211Manager manager = mContext.getSystemService(WifiNl80211Manager.class); in testSendMgmtFrame() local
154 manager.sendMgmtFrame("wlan0", new byte[]{}, -1, Runnable::run, in testSendMgmtFrame()
168 WifiNl80211Manager manager = mContext.getSystemService(WifiNl80211Manager.class); in testGetTxPacketCounters() local
169 manager.getTxPacketCounters("wlan0"); in testGetTxPacketCounters()
177 WifiNl80211Manager manager = mContext.getSystemService(WifiNl80211Manager.class); in testGetMaxSsidsPerScan() local
178 manager.getMaxSsidsPerScan("wlan0"); in testGetMaxSsidsPerScan()
186 WifiNl80211Manager manager = mContext.getSystemService(WifiNl80211Manager.class); in testStartScan2() local
187 manager.startScan2("wlan0", WifiScanner.SCAN_TYPE_HIGH_ACCURACY, in testStartScan2()
195 WifiNl80211Manager manager = mContext.getSystemService(WifiNl80211Manager.class); in testSetOnServiceDeadCallback() local
196 manager.setOnServiceDeadCallback(() -> {}); in testSetOnServiceDeadCallback()
[all …]
/cts/hostsidetests/media/app/MediaMetricsTest/src/android/media/metrics/cts/
DMediaMetricsAtomHostSideTests.java96 MediaMetricsManager manager = context.getSystemService(MediaMetricsManager.class); in testPlaybackStateEvent_default() local
97 PlaybackSession s = manager.createPlaybackSession(); in testPlaybackStateEvent_default()
109 MediaMetricsManager manager = context.getSystemService(MediaMetricsManager.class); in testPlaybackStateEvent() local
110 PlaybackSession s = manager.createPlaybackSession(); in testPlaybackStateEvent()
125 MediaMetricsManager manager = context.getSystemService(MediaMetricsManager.class); in testPlaybackErrorEvent_default() local
126 PlaybackSession s = manager.createPlaybackSession(); in testPlaybackErrorEvent_default()
139 MediaMetricsManager manager = context.getSystemService(MediaMetricsManager.class); in testPlaybackErrorEvent() local
140 PlaybackSession s = manager.createPlaybackSession(); in testPlaybackErrorEvent()
157 MediaMetricsManager manager = context.getSystemService(MediaMetricsManager.class); in testTrackChangeEvent_default() local
158 PlaybackSession s = manager.createPlaybackSession(); in testTrackChangeEvent_default()
[all …]
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/diagnostic/
DCarDiagnosticManagerPermissionTest.java64 CarDiagnosticManager manager = getCarDiagnosticManager(); in testRegisterUnregisterListenerWithCorrectPermission() local
67 manager.registerListener(listener, FRAME_TYPE_LIVE, /* rate= */ 1); in testRegisterUnregisterListenerWithCorrectPermission()
68 manager.unregisterListener(listener); in testRegisterUnregisterListenerWithCorrectPermission()
77 CarDiagnosticManager manager = getCarDiagnosticManager(); in testRegisterListenerWithWrongPermission() local
80 assertThrows(SecurityException.class, () -> manager.registerListener(listener, in testRegisterListenerWithWrongPermission()
91 CarDiagnosticManager manager = getCarDiagnosticManager(); in testClearFreezeFrameWithCorrectPermission() local
93 manager.clearFreezeFrames(/* timestamps= */ 0); in testClearFreezeFrameWithCorrectPermission()
101 CarDiagnosticManager manager = getCarDiagnosticManager(); in testClearFreezeFrameWithWrongPermission() local
103 assertThrows(SecurityException.class, () -> manager.clearFreezeFrames(/* timestamps= */ 0)); in testClearFreezeFrameWithWrongPermission()
/cts/hostsidetests/packagemanager/domainverification/device/multiuser/src/com/android/cts/packagemanager/verify/domain/device/multiuser/
DDomainVerificationWorkProfileCrossProfileIntentTests.kt43 val manager = deviceState.getWorkDevicePolicyManager() in saveAndSetPolicy() constant
45 initialAppLinkPolicy = manager.getAppLinkPolicy(component) in saveAndSetPolicy()
47 manager.setAppLinkPolicy(component, false) in saveAndSetPolicy()
57 manager.addCrossProfileIntentFilter( in saveAndSetPolicy()
67 val manager = deviceState.getWorkDevicePolicyManager() in resetPolicy() constant
69 if (initialAppLinkPolicy ?: return != manager.getAppLinkPolicy(component)) { in resetPolicy()
70 manager.setAppLinkPolicy(component, initialAppLinkPolicy!!) in resetPolicy()
72 manager.clearCrossProfileIntentFilters(component) in resetPolicy()
DDomainVerificationWorkProfileAllowParentLinkingTests.kt38 val manager = deviceState.getWorkDevicePolicyManager() in saveAndSetPolicy() constant
40 initialAppLinkPolicy = manager.getAppLinkPolicy(component) in saveAndSetPolicy()
42 manager.setAppLinkPolicy(component, true) in saveAndSetPolicy()
48 val manager = deviceState.getWorkDevicePolicyManager() in resetPolicy() constant
50 if (initialAppLinkPolicy ?: return != manager.getAppLinkPolicy(component)) { in resetPolicy()
51 manager.setAppLinkPolicy(component, initialAppLinkPolicy!!) in resetPolicy()
/cts/tests/tests/wifi/src/android/net/wifi/sharedconnectivity/cts/
DSharedConnectivityTest.java164 SharedConnectivityManager manager = getManager(context); in registerCallback_withoutPermission_throwsSecurityException() local
169 manager.registerCallback(Runnable::run, callback); in registerCallback_withoutPermission_throwsSecurityException()
178 () -> manager.registerCallback(Runnable::run, callback2)); in registerCallback_withoutPermission_throwsSecurityException()
187 SharedConnectivityManager manager = getManager(context); in registerCallback_onServiceConnectedCallbackReceived() local
190 manager.registerCallback(Runnable::run, callback); in registerCallback_onServiceConnectedCallbackReceived()
204 SharedConnectivityManager manager = getManager(context); in unregisterCallback_beforeRegister_unregisterUnsuccessful() local
208 assertThat(manager.unregisterCallback(callback)).isFalse(); in unregisterCallback_beforeRegister_unregisterUnsuccessful()
219 SharedConnectivityManager manager = getManager(context); in unregisterCallback_unregisterSuccessful() local
231 manager.registerCallback(Runnable::run, callback); in unregisterCallback_unregisterSuccessful()
237 assertThat(manager.unregisterCallback(callback)).isTrue(); in unregisterCallback_unregisterSuccessful()
[all …]
/cts/tests/devicestate/src/android/hardware/devicestate/cts/
DDeviceStateManagerTests.java100 final DeviceStateManager manager = getDeviceStateManager(); in testRequestAllSupportedStates() local
101 manager.registerCallback(Runnable::run, callback); in testRequestAllSupportedStates()
103 final List<DeviceState> supportedStates = manager.getSupportedDeviceStates(); in testRequestAllSupportedStates()
120 final DeviceStateManager manager = getDeviceStateManager(); in testRequestBaseState() local
122 manager.registerCallback(Runnable::run, callback); in testRequestBaseState()
137 final DeviceStateManager manager = getDeviceStateManager(); in testRequestStateTooLarge() local
140 runWithControlDeviceStatePermission(() -> manager.requestState(request, null, null)); in testRequestStateTooLarge()
151 final DeviceStateManager manager = getDeviceStateManager(); in testRequestStateTooSmall() local
154 runWithControlDeviceStatePermission(() -> manager.requestState(request, null, null)); in testRequestStateTooSmall()
168 final DeviceStateManager manager = getDeviceStateManager(); in testRequestStateFailsAsTopApp_ifStateNotDefinedAsAvailableForAppsToRequest() local
[all …]
/cts/hostsidetests/packagemanager/domainverification/device/standalone/src/com/android/cts/packagemanager/verify/domain/device/standalone/
DDomainVerificationFilterGroupTests.kt78 manager.setUriRelativeFilterGroups(DECLARING_PKG_NAME_1, emptyGroupsMap) in clearGroups()
79 val map = manager.getUriRelativeFilterGroups( in clearGroups()
97 manager.setUriRelativeFilterGroups(DECLARING_PKG_NAME_1, emptyGroupsMap) in resolveWithUriRelativeFilterGroups_domainNotVerified()
103 manager.setUriRelativeFilterGroups(DECLARING_PKG_NAME_1, groupsMap) in resolveWithUriRelativeFilterGroups_domainNotVerified()
104 val map = manager.getUriRelativeFilterGroups(DECLARING_PKG_NAME_1, listOf(DOMAIN_7)) in resolveWithUriRelativeFilterGroups_domainNotVerified()
123 manager.setUriRelativeFilterGroups(DECLARING_PKG_NAME_1, groupsMap) in resolveWithUriRelativeFilterGroups_wildcardDomains()
125 manager.getUriRelativeFilterGroups( in resolveWithUriRelativeFilterGroups_wildcardDomains()
134 manager.setUriRelativeFilterGroups(DECLARING_PKG_NAME_1, groupsMap) in resolveWithUriRelativeFilterGroups_wildcardDomains()
136 manager.getUriRelativeFilterGroups( in resolveWithUriRelativeFilterGroups_wildcardDomains()
145 manager.setUriRelativeFilterGroups(DECLARING_PKG_NAME_1, groupsMap) in resolveWithUriRelativeFilterGroups_wildcardDomains()
[all …]
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DDataSharingService.java64 ContentCaptureManager manager = in shareData() local
67 assertThat(manager).isNotNull(); in shareData()
68 assertThat(manager.isContentCaptureEnabled()).isTrue(); in shareData()
70 manager.shareData( in shareData()
108 ContentCaptureManager manager = in attemptConcurrentRequest() local
111 assertThat(manager).isNotNull(); in attemptConcurrentRequest()
112 assertThat(manager.isContentCaptureEnabled()).isTrue(); in attemptConcurrentRequest()
114 manager.shareData( in attemptConcurrentRequest()
DOutOfProcessDataSharingService.java58 ContentCaptureManager manager =
60 return manager != null && manager.isContentCaptureEnabled();
95 ContentCaptureManager manager = in shareData() local
98 assertThat(manager).isNotNull(); in shareData()
99 assertThat(manager.isContentCaptureEnabled()).isTrue(); in shareData()
101 manager.shareData( in shareData()
DDataSharingActivity.java52 ContentCaptureManager manager = in onStart() local
55 assertThat(manager).isNotNull(); in onStart()
56 assertThat(manager.isContentCaptureEnabled()).isTrue(); in onStart()
58 manager.shareData( in onStart()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerMiscTest.java37 ShortcutManager manager = getTestContext().getSystemService(ShortcutManager.class); in testMiscApis() local
39 assertEquals(15, manager.getMaxShortcutCountPerActivity()); in testMiscApis()
42 assertFalse(manager.isRateLimitingActive()); in testMiscApis()
45 assertEquals(iconDimension, manager.getIconMaxWidth()); in testMiscApis()
46 assertEquals(iconDimension, manager.getIconMaxHeight()); in testMiscApis()
DShortcutManagerLauncherApiTest.java431 final ShortcutManager manager = getManager(); in setDynamicShortcuts_PersistsShortcutsToDisk()
433 manager.setDynamicShortcuts(list( in setDynamicShortcuts_PersistsShortcutsToDisk()
451 assertWith(manager.getShortcuts(ShortcutManager.FLAG_MATCH_DYNAMIC)) in setDynamicShortcuts_PersistsShortcutsToDisk()
485 final ShortcutManager manager = getManager(); in removeAllDynamicShortcuts_RemovesShortcutsFromDisk()
487 manager.setDynamicShortcuts(list( in removeAllDynamicShortcuts_RemovesShortcutsFromDisk()
505 assertWith(manager.getShortcuts(ShortcutManager.FLAG_MATCH_DYNAMIC)) in removeAllDynamicShortcuts_RemovesShortcutsFromDisk()
545 final ShortcutManager manager = getManager(); in addDynamicShortcuts_PersistsShortcutsToDisk()
546 manager.setDynamicShortcuts(list( in addDynamicShortcuts_PersistsShortcutsToDisk()
564 assertWith(manager.getShortcuts(ShortcutManager.FLAG_MATCH_DYNAMIC)) in addDynamicShortcuts_PersistsShortcutsToDisk()
579 manager.addDynamicShortcuts(list(makeShortcut("s4"), makeShortcut("s5"))); in addDynamicShortcuts_PersistsShortcutsToDisk()
[all …]
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DAppWidgetManagerTest.java50 AppWidgetManager manager = AppWidgetManager.getInstance(context); in testAppWidgetManagerNotNull() local
52 Assert.assertNotNull(manager); in testAppWidgetManagerNotNull()
64 AppWidgetManager manager = context.getSystemService(AppWidgetManager.class); in testAppWidgetManagerNotNullFromContext() local
66 Assert.assertNotNull(manager); in testAppWidgetManagerNotNullFromContext()
/cts/tests/translation/src/android/translation/cts/
DOtherProcessService1.java57 TranslationManager manager = getSystemService(TranslationManager.class); in createOnDeviceTranslator() local
63 createTranslator(manager, translationContext); in createOnDeviceTranslator()
67 private void createTranslator(TranslationManager manager, in createTranslator() argument
69 manager.createOnDeviceTranslator(translationContext, Runnable::run, in createTranslator()
DTranslationManagerTest.java146 final TranslationManager manager = sContext.getSystemService(TranslationManager.class); in testTranslationCapabilityUpdateListener() local
156 manager.addOnDeviceTranslationCapabilityUpdateListener(Executors.newSingleThreadExecutor(), in testTranslationCapabilityUpdateListener()
186 manager.removeOnDeviceTranslationCapabilityUpdateListener(updateListener); in testTranslationCapabilityUpdateListener()
244 final TranslationManager manager = sContext.getSystemService(TranslationManager.class); in testSingleTranslation() local
254 final Translator translator = createTranslator(manager, createTranslationContext()); in testSingleTranslation()
312 final TranslationManager manager = sContext.getSystemService(TranslationManager.class); in testTranslation_partialResponses() local
330 final Translator translator = createTranslator(manager, createTranslationContext()); in testTranslation_partialResponses()
404 final TranslationManager manager = sContext.getSystemService(TranslationManager.class); in testTranslationCancelled() local
414 final Translator translator = createTranslator(manager, createTranslationContext()); in testTranslationCancelled()
452 final TranslationManager manager = sContext.getSystemService(TranslationManager.class); in testGetTranslationCapabilities() local
[all …]
/cts/hostsidetests/adpf/app/hintsession/src/cpp/
DJNIManager.cpp25 JNIManager& manager = getInstance(); in sendResultsToJava() local
26 JNIEnv* env = manager.AttachCurrentThread(); in sendResultsToJava()
28 jmethodID sendMethod = env->GetMethodID(manager.getMainActivityClass(), "sendResultsToJava", in sendResultsToJava()
41 env->CallVoidMethod(manager.app_->activity->clazz, sendMethod, namesOut, valuesOut); in sendResultsToJava()
42 manager.DetachCurrentThread(); in sendResultsToJava()
/cts/tests/autofillservice/src/android/autofillservice/cts/dialog/
DDialogTest.java53 AutofillManager manager = activity.getAutofillManager(); in showAutofillDialog_noResponse_returnsFalse()
54 assertThat(manager.showAutofillDialog(activity.getUsername())).isFalse(); in showAutofillDialog_noResponse_returnsFalse()
72 AutofillManager manager = activity.getAutofillManager(); in showAutofillDialogForVirtualView_noDialogPresentation_returnsFalse()
74 manager.showAutofillDialog( in showAutofillDialogForVirtualView_noDialogPresentation_returnsFalse()
/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/accessibility/common/src/android/accessibility/cts/common/
DServiceControlUtils.java47 AccessibilityManager manager = in waitForConditionWithServiceStateChange() local
55 manager.addAccessibilityServicesStateChangeListener(listener); in waitForConditionWithServiceStateChange()
59 manager.removeAccessibilityServicesStateChangeListener(listener); in waitForConditionWithServiceStateChange()
/cts/tests/tests/security/src/android/security/cts/CVE_2021_0327/workprofilesetup/
DProvisionedActivity.java27 DevicePolicyManager manager = getSystemService(DevicePolicyManager.class); in onCreate() local
33 manager.addCrossProfileIntentFilter( in onCreate()
38 manager.setProfileEnabled(admin); in onCreate()

123456