Home
last modified time | relevance | path

Searched full:getservice (Results 1 – 25 of 11583) sorted by relevance

12345678910>>...464

/aosp_15_r20/packages/apps/TV/tests/unit/src/com/android/tv/dvr/recorder/
DDvrRecordingServiceTest.java58 assertThat(getService().mInForeground).isFalse(); in testStartService_null()
61 getService().startRecording(); in testStartService_null()
63 assertThat(getService().mInForeground).isTrue(); in testStartService_null()
64 assertThat(getService().mIsRecording).isTrue(); in testStartService_null()
65 getService().reset(); in testStartService_null()
74 assertThat(getService().mInForeground).isTrue(); in testStartService_noUpcomingRecording()
75 assertThat(getService().mForegroundForUpcomingRecording).isFalse(); in testStartService_noUpcomingRecording()
76 getService().stopForegroundIfNotRecordingInternal(); in testStartService_noUpcomingRecording()
77 assertThat(getService().mInForeground).isFalse(); in testStartService_noUpcomingRecording()
80 getService().startRecording(); in testStartService_noUpcomingRecording()
[all …]
/aosp_15_r20/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
H A DAlwaysOnHotwordDetectorTest.java121 new VoiceInteractionServiceOverrideEnrollmentRule(getService());
133 private static CtsBasicVoiceInteractionService getService() { in getService() method in AlwaysOnHotwordDetectorTest
134 return (CtsBasicVoiceInteractionService) sServiceRule.getService(); in getService()
154 getService().initAvailabilityChangeLatch(); in createAndEnrollAlwaysOnHotwordDetector()
165 getService().createAlwaysOnHotwordDetectorWithOnFailureCallback( in createAndEnrollAlwaysOnHotwordDetector()
169 getService().waitSandboxedDetectionServiceInitializedCalledOrException(); in createAndEnrollAlwaysOnHotwordDetector()
174 mAlwaysOnHotwordDetector = getService().getAlwaysOnHotwordDetector(); in createAndEnrollAlwaysOnHotwordDetector()
177 assertThat(getService().isCreateDetectorIllegalStateExceptionThrow()).isFalse(); in createAndEnrollAlwaysOnHotwordDetector()
178 assertThat(getService().isCreateDetectorSecurityExceptionThrow()).isFalse(); in createAndEnrollAlwaysOnHotwordDetector()
181 assertThat(getService().getSandboxedDetectionServiceInitializedResult()) in createAndEnrollAlwaysOnHotwordDetector()
[all …]
H A DAlwaysOnHotwordDetectorNoHdsTest.java109 new VoiceInteractionServiceOverrideEnrollmentRule(getService());
161 getService().resetState(); in tearDown()
208 private static CtsBasicVoiceInteractionService getService() { in getService() method in AlwaysOnHotwordDetectorNoHdsTest
209 return (CtsBasicVoiceInteractionService) sServiceRule.getService(); in getService()
225 getService().initAvailabilityChangeLatch(); in createAndEnrollAlwaysOnHotwordDetector()
242 getService() in createAndEnrollAlwaysOnHotwordDetector()
247 getService().waitSandboxedDetectionServiceInitializedCalledOrException(); in createAndEnrollAlwaysOnHotwordDetector()
252 mAlwaysOnHotwordDetector = getService().getAlwaysOnHotwordDetector(); in createAndEnrollAlwaysOnHotwordDetector()
256 assertThat(getService().isCreateDetectorIllegalStateExceptionThrow()).isFalse(); in createAndEnrollAlwaysOnHotwordDetector()
257 assertThat(getService().isCreateDetectorSecurityExceptionThrow()).isFalse(); in createAndEnrollAlwaysOnHotwordDetector()
[all …]
H A DAlwaysOnHotwordDetectorNoDspTest.java115 new VoiceInteractionServiceOverrideEnrollmentRule(getService());
131 private static CtsBasicVoiceInteractionService getService() { in getService() method in AlwaysOnHotwordDetectorNoDspTest
132 return (CtsBasicVoiceInteractionService) sServiceRule.getService(); in getService()
151 getService().initAvailabilityChangeLatch(); in setup()
168 getService().resetState(); in tearDown()
185 () -> getService().createAlwaysOnHotwordDetector(KEYPHRASE_TEXT, in testCreateAlwaysOnHotwordDetector_noSTModule_throwsExceptionWhenChangeIdEnabled()
190 getService().createAlwaysOnHotwordDetectorCallbackWithListeners())); in testCreateAlwaysOnHotwordDetector_noSTModule_throwsExceptionWhenChangeIdEnabled()
210 getService().initDetectorInitializedLatch(); in testCreateAlwaysOnHotwordDetector_noSTModule_stateUnavailableWhenChangeIdDisabled()
211 mAlwaysOnHotwordDetector = getService().createAlwaysOnHotwordDetector(KEYPHRASE_TEXT, in testCreateAlwaysOnHotwordDetector_noSTModule_stateUnavailableWhenChangeIdDisabled()
216 getService().createAlwaysOnHotwordDetectorCallbackWithListeners()); in testCreateAlwaysOnHotwordDetector_noSTModule_stateUnavailableWhenChangeIdDisabled()
[all …]
/aosp_15_r20/frameworks/base/core/java/android/view/inputmethod/
H A DIInputMethodManagerGlobalInvoker.java84 return getService() != null; in isAvailable()
89 static IInputMethodManager getService() { in getService() method in IInputMethodManagerGlobalInvoker
96 ServiceManager.getService(Context.INPUT_METHOD_SERVICE)); in getService()
129 final IInputMethodManager service = getService(); in startProtoDump()
148 final IInputMethodManager service = getService(); in startImeTrace()
167 final IInputMethodManager service = getService(); in stopImeTrace()
186 final IInputMethodManager service = getService(); in isImeTraceEnabled()
209 final IInputMethodManager service = getService(); in removeImeSurface()
223 final IInputMethodManager service = getService(); in addClient()
238 final IInputMethodManager service = getService(); in getCurrentInputMethodInfoAsUser()
[all …]
/aosp_15_r20/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hap/
DHapClientBinder.java59 private HapClientService getService(AttributionSource source) { in getService() method in HapClientBinder
61 // Cache mService because it can change while getService is called in getService()
81 HapClientService service = getService(source); in getConnectedDevices()
92 HapClientService service = getService(source); in getDevicesMatchingConnectionStates()
102 HapClientService service = getService(source); in getConnectionState()
115 HapClientService service = getService(source); in setConnectionPolicy()
132 HapClientService service = getService(source); in getConnectionPolicy()
144 HapClientService service = getService(source); in getActivePresetIndex()
157 HapClientService service = getService(source); in getActivePresetInfo()
169 HapClientService service = getService(source); in getHapGroup()
[all …]
/aosp_15_r20/cts/tests/tests/telecom/src/android/telecom/cts/
H A DExtendedInCallServiceTest.java82 final MockInCallService inCallService = mInCallCallbacks.getService(); in testAddNewOutgoingCallAndThenDisconnect()
96 final MockInCallService inCallService = mInCallCallbacks.getService(); in testMuteAndUnmutePhone()
128 final MockInCallService inCallService = mInCallCallbacks.getService(); in testSwitchAudioRoutes()
188 final MockInCallService inCallService = mInCallCallbacks.getService(); in testPlayAndStopDtmfTones()
221 final MockInCallService inCallService = mInCallCallbacks.getService(); in testHoldAndUnholdCall()
248 final MockInCallService inCallService = mInCallCallbacks.getService(); in testAnswerIncomingCallAudioOnly()
268 final MockInCallService inCallService = mInCallCallbacks.getService(); in testAcceptRingingCall()
290 final MockInCallService inCallService = mInCallCallbacks.getService(); in testEndRingingCall()
312 final MockInCallService inCallService = mInCallCallbacks.getService(); in testEndCall()
341 final MockInCallService inCallService = mInCallCallbacks.getService(); in testAcceptRingingCallTwoCalls()
[all …]
/aosp_15_r20/packages/modules/AdServices/adservices/tests/endtoends/src/com/android/adservices/measurement/
DMeasurementCompatibleManagerTest.java110 doReturn(mockService).when(mm).getService(); in testRegisterSource_callingApp_expectedAttributionSource()
135 doThrow(new IllegalStateException()).when(measurementManager).getService(); in testRegisterSource_BindServiceFailure_propagateErrorCallback()
153 doReturn(mockService).when(measurementManager).getService(); in testRegisterSource_adIdEnabled_register()
192 doReturn(mockService).when(measurementManager).getService(); in testRegisterSource_adIdZeroOut_register()
230 doReturn(mockService).when(measurementManager).getService(); in testRegisterSource_adIdDisabled_register()
269 doReturn(mockService).when(measurementManager).getService(); in testRegisterSource_adIdTimeOut_register()
302 doThrow(new IllegalStateException()).when(measurementManager).getService(); in testRegisterTrigger_BindServiceFailure_propagateErrorCallback()
316 doThrow(new IllegalStateException()).when(measurementManager).getService(); in testRegisterWebSource_BindServiceFailure_propagateErrorCallback()
330 doThrow(new IllegalStateException()).when(measurementManager).getService(); in testRegisterWebTrigger_BindServiceFailure_propagateErrorCallback()
347 doReturn(mockService).when(mm).getService(); in testRegisterSource_callingSdk_expectedAttributionSource()
[all …]
/aosp_15_r20/frameworks/base/media/java/android/media/
H A DAudioManager.java970 static IAudioService getService() in getService() method in AudioManager
975 IBinder b = ServiceManager.getService(Context.AUDIO_SERVICE); in getService()
1044 res = getService().isVolumeFixed(); in isVolumeFixed()
1075 final IAudioService service = getService(); in adjustStreamVolume()
1109 final IAudioService service = getService(); in adjustVolume()
1148 final IAudioService service = getService(); in adjustSuggestedStreamVolume()
1164 final IAudioService service = getService(); in setMasterMute()
1181 final IAudioService service = getService(); in getRingerMode()
1225 final IAudioService service = getService(); in isValidRingerMode()
1241 final IAudioService service = getService(); in getStreamMaxVolume()
[all …]
H A DSpatializer.java84 return mAm.getService().isSpatializerEnabled(); in isEnabled()
108 return mAm.getService().isSpatializerAvailable(); in isAvailable()
132 return mAm.getService().isSpatializerAvailableForDevice(device); in isAvailableForDevice()
150 return mAm.getService().hasHeadTracker(device); in hasHeadTracker()
168 mAm.getService().setHeadTrackerEnabled(enabled, device); in setHeadTrackerEnabled()
185 return mAm.getService().isHeadTrackerEnabled(device); in isHeadTrackerEnabled()
201 return mAm.getService().isHeadTrackerAvailable(); in isHeadTrackerAvailable()
377 level = mAm.getService().getSpatializerImmersiveAudioLevel(); in getImmersiveAudioLevel()
394 mAm.getService().setSpatializerEnabled(enabled); in setEnabled()
524 return mAm.getService().canBeSpatialized( in canBeSpatialized()
[all …]
/aosp_15_r20/frameworks/native/libs/sensorprivacy/
H A DSensorPrivacyManager.cpp32 sp<hardware::ISensorPrivacyManager> SensorPrivacyManager::getService() in getService() function in android::SensorPrivacyManager
45 sp<hardware::ISensorPrivacyManager> service = getService(); in supportsSensorToggle()
62 sp<hardware::ISensorPrivacyManager> service = getService(); in addSensorPrivacyListener()
71 sp<hardware::ISensorPrivacyManager> service = getService(); in addToggleSensorPrivacyListener()
82 sp<hardware::ISensorPrivacyManager> service = getService(); in removeSensorPrivacyListener()
91 sp<hardware::ISensorPrivacyManager> service = getService(); in removeToggleSensorPrivacyListener()
99 sp<hardware::ISensorPrivacyManager> service = getService(); in isSensorPrivacyEnabled()
111 sp<hardware::ISensorPrivacyManager> service = getService(); in isToggleSensorPrivacyEnabled()
123 sp<hardware::ISensorPrivacyManager> service = getService(); in isToggleSensorPrivacyEnabled()
136 sp<hardware::ISensorPrivacyManager> service = getService(); in isToggleSensorPrivacyEnabled()
[all …]
/aosp_15_r20/packages/modules/AdServices/adservices/tests/endtoends/
Dlint-baseline-adextservices.xml513 … errorLine1=" doReturn(mMockMeasurementService).when(mMeasurementManager).getService();"
524 errorLine1=" doReturn(mockService).when(mm).getService();"
535 … errorLine1=" doThrow(new IllegalStateException()).when(measurementManager).getService();"
557 errorLine1=" doReturn(mockService).when(measurementManager).getService();"
579 errorLine1=" doReturn(mockService).when(measurementManager).getService();"
601 errorLine1=" doReturn(mockService).when(measurementManager).getService();"
623 errorLine1=" doReturn(mockService).when(measurementManager).getService();"
634 … errorLine1=" doThrow(new IllegalStateException()).when(measurementManager).getService();"
645 … errorLine1=" doThrow(new IllegalStateException()).when(measurementManager).getService();"
656 … errorLine1=" doThrow(new IllegalStateException()).when(measurementManager).getService();"
[all …]
/aosp_15_r20/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/gatt/
DGattService.java405 private GattService getService() { in getService() method in GattService.BluetoothGattBinder
406 // Cache mService because it can change while getService is called in getService()
410 Log.e(TAG, "getService() - Service requested, but not available!"); in getService()
420 GattService service = getService(); in getDevicesMatchingConnectionStates()
433 GattService service = getService(); in registerClient()
442 GattService service = getService(); in unregisterClient()
455 GattService service = getService(); in registerScanner()
465 GattService service = getService(); in unregisterScanner()
478 GattService service = getService(); in startScan()
492 GattService service = getService(); in startScanForIntent()
[all …]
/aosp_15_r20/hardware/interfaces/automotive/remoteaccess/hal/default/test/
H A DRemoteAccessServiceUnitTest.cpp247 RemoteAccessService* getService() { return mService.get(); } in getService() function in android::hardware::automotive::remoteaccess::RemoteAccessServiceUnitTest
263 ScopedAStatus status = getService()->getWakeupServiceName(&serviceName); in TEST_F()
282 ScopedAStatus status = getService()->notifyApStateChange(newState); in TEST_F()
314 getService()->setRemoteTaskCallback(callback); in TEST_F()
319 ASSERT_TRUE(getService()->notifyApStateChange(newState).isOk()); in TEST_F()
346 getService()->setRemoteTaskCallback(callback); in TEST_F()
352 ASSERT_TRUE(getService()->notifyApStateChange(newState).isOk()); in TEST_F()
371 getService()->setRemoteTaskCallback(callback); in TEST_F()
404 getService()->setRemoteTaskCallback(callback); in TEST_F()
410 ASSERT_TRUE(getService()->notifyApStateChange(newState).isOk()); in TEST_F()
[all …]
/aosp_15_r20/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DAdapterService.java2270 public AdapterService getService() { in getService() method in AdapterService.AdapterServiceBinder
2279 AdapterService service = getService(); in getState()
2322 AdapterService service = getService(); in offToBleOn()
2335 AdapterService service = getService(); in onToBleOn()
2348 AdapterService service = getService(); in getAddress()
2363 AdapterService service = getService(); in getUuids()
2380 AdapterService service = getService(); in getIdentityAddress()
2396 AdapterService service = getService(); in getIdentityAddressWithType()
2412 AdapterService service = getService(); in getName()
2425 AdapterService service = getService(); in getNameLengthForAdvertise()
[all …]
/aosp_15_r20/frameworks/base/core/java/android/app/
H A DActivityTaskManager.java148 public static IActivityTaskManager getService() { in getService() method in ActivityTaskManager
157 final IBinder b = ServiceManager.getService(Context.ACTIVITY_TASK_SERVICE);
169 getService().removeRootTasksInWindowingModes(windowingModes); in removeRootTasksInWindowingModes()
179 getService().removeRootTasksWithActivityTypes(activityTypes); in removeRootTasksWithActivityTypes()
192 getService().removeAllVisibleRecentTasks(); in removeAllVisibleRecentTasks()
219 getService().onSplashScreenViewCopyFinished(taskId, parcelable); in onSplashScreenViewCopyFinished()
284 getService().startSystemLockTaskMode(taskId); in startSystemLockTaskMode()
296 getService().stopSystemLockTaskMode(); in stopSystemLockTaskMode()
311 getService().moveTaskToRootTask(taskId, rootTaskId, toTop); in moveTaskToRootTask()
325 getService().resizeTask(taskId, bounds, RESIZE_MODE_SYSTEM); in resizeTask()
[all …]
/aosp_15_r20/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfpclient/
DHeadsetClientService.java315 private HeadsetClientService getService(AttributionSource source) { in getService() method in HeadsetClientService.BluetoothHeadsetClientBinder
316 // Cache mService because it can change while getService is called in getService()
334 HeadsetClientService service = getService(source); in connect()
344 HeadsetClientService service = getService(source); in disconnect()
354 HeadsetClientService service = getService(source); in getConnectedDevices()
367 HeadsetClientService service = getService(source); in getDevicesMatchingConnectionStates()
379 HeadsetClientService service = getService(source); in getConnectionState()
392 HeadsetClientService service = getService(source); in setConnectionPolicy()
404 HeadsetClientService service = getService(source); in getConnectionPolicy()
416 HeadsetClientService service = getService(source); in startVoiceRecognition()
[all …]
/aosp_15_r20/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/storage/
DSetupParametersClient.java104 asInterface(getService()).overridePrefs(bundle); in overridePrefs()
116 asInterface(getService()).dump(); in dump()
128 asInterface(getService()).clear();
141 asInterface(getService()).createPrefs(bundle);
154 return call(() -> asInterface(getService()).getKioskPackage());
164 return call(() -> asInterface(getService()).getOutgoingCallsDisabled());
174 return call(() -> asInterface(getService()).getKioskAllowlist());
184 return call(() -> asInterface(getService()).isNotificationsInLockTaskModeEnabled());
194 return call(() -> asInterface(getService()).isDebuggingAllowed());
204 return call(() -> asInterface(getService()).getProvisioningType());
[all …]
DGlobalParametersClient.java103 asInterface(getService()).clear(); in clear()
114 asInterface(getService()).dump(); in dump()
126 return call(() -> asInterface(getService()).isProvisionReady());
137 asInterface(getService()).setProvisionReady(isProvisionReady);
151 return call(() -> asInterface(getService()).getRegisteredDeviceId());
162 asInterface(getService()).setRegisteredDeviceId(registeredDeviceId);
174 return call(() -> asInterface(getService()).isProvisionForced());
185 asInterface(getService()).setProvisionForced(isForced);
197 return call(() -> asInterface(getService()).getDeviceState());
208 asInterface(getService()).setDeviceState(state);
[all …]
/aosp_15_r20/out/soong/.intermediates/hardware/interfaces/cas/1.2/android.hardware.cas-V1.2-java/android_common/turbine-combined/
Dandroid.hardware.cas-V1.2-java.jar ... static android.hardware.cas.V1_0.ICas getService (java.lang.String, boolean) throws ...
/aosp_15_r20/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/
DAudioControlFactoryUnitTest.java60 doReturn(mBinder).when(AudioControlWrapperAidl::getService); in newAudioControl_forAudioControlWrapperAIDL_returnsInstance()
61 doReturn(null).when(AudioControlWrapperV1::getService); in newAudioControl_forAudioControlWrapperAIDL_returnsInstance()
62 doReturn(null).when(AudioControlWrapperV2::getService); in newAudioControl_forAudioControlWrapperAIDL_returnsInstance()
72 doReturn(null).when(AudioControlWrapperAidl::getService); in newAudioControl_forAudioControlWrapperV2_returnsInstance()
73 doReturn(null).when(AudioControlWrapperV1::getService); in newAudioControl_forAudioControlWrapperV2_returnsInstance()
74 doReturn(mIAudioControlV2).when(AudioControlWrapperV2::getService); in newAudioControl_forAudioControlWrapperV2_returnsInstance()
84 doReturn(null).when(AudioControlWrapperAidl::getService); in newAudioControl_forAudioControlWrapperV1_returnsInstance()
85 doReturn(mIAudioControlV1).when(AudioControlWrapperV1::getService); in newAudioControl_forAudioControlWrapperV1_returnsInstance()
86 doReturn(null).when(AudioControlWrapperV2::getService); in newAudioControl_forAudioControlWrapperV1_returnsInstance()
96 doReturn(null).when(AudioControlWrapperAidl::getService); in newAudioControl_forNullAudioControlWrappers_fails()
[all …]
/aosp_15_r20/frameworks/native/cmds/idlcli/
H A Dvibrator.h50 inline auto getService(std::string name) { in getService() function
57 inline auto getService<android::hardware::vibrator::V1_0::IVibrator>(std::string name) {
58 return android::hardware::vibrator::V1_0::IVibrator::getService(name);
62 inline auto getService<android::hardware::vibrator::V1_1::IVibrator>(std::string name) {
63 return android::hardware::vibrator::V1_1::IVibrator::getService(name);
67 inline auto getService<android::hardware::vibrator::V1_2::IVibrator>(std::string name) {
68 return android::hardware::vibrator::V1_2::IVibrator::getService(name);
72 inline auto getService<android::hardware::vibrator::V1_3::IVibrator>(std::string name) {
73 return android::hardware::vibrator::V1_3::IVibrator::getService(name);
77 using shared_ptr = std::invoke_result_t<decltype(getService<I>)&, std::string>;
[all …]
/aosp_15_r20/frameworks/native/libs/binder/
H A DActivityManager.cpp34 sp<IActivityManager> ActivityManager::getService() in getService() function in android::ActivityManager
72 sp<IActivityManager> service = getService(); in openContentUri()
81 sp<IActivityManager> service = getService(); in registerUidObserver()
94 sp<IActivityManager> service = getService(); in registerUidObserverForUids()
105 sp<IActivityManager> service = getService(); in unregisterUidObserver()
115 sp<IActivityManager> service = getService(); in addUidToObserver()
125 sp<IActivityManager> service = getService(); in removeUidFromObserver()
135 sp<IActivityManager> service = getService(); in isUidActive()
144 sp<IActivityManager> service = getService(); in getUidProcessState()
155 sp<IActivityManager> service = getService(); in checkPermission()
[all …]
/aosp_15_r20/frameworks/native/libs/permission/
H A DAppOpsManager.cpp50 sp<IAppOpsService> AppOpsManager::getService() in getService() function in android::AppOpsManager
80 sp<IAppOpsService> service = getService(); in checkOp()
88 sp<IAppOpsService> service = getService(); in checkAudioOpNoThrow()
101 sp<IAppOpsService> service = getService(); in noteOp()
119 sp<IAppOpsService> service = getService(); in startOpNoThrow()
135 sp<IAppOpsService> service = getService(); in finishOp()
143 sp<IAppOpsService> service = getService(); in startWatchingMode()
151 sp<IAppOpsService> service = getService(); in startWatchingMode()
158 sp<IAppOpsService> service = getService(); in stopWatchingMode()
165 sp<IAppOpsService> service = getService(); in permissionToOpCode()
[all …]
/aosp_15_r20/external/google-cloud-java/java-dns/src/test/java/com/google/cloud/dns/
H A DDnsImplTest.java150 dns = options.getService(); // creates DnsImpl in testCreateZone()
162 dns = options.getService(); // creates DnsImpl in testCreateZoneWithOptions()
175 dns = options.getService(); // creates DnsImpl in testGetZone()
187 dns = options.getService(); // creates DnsImpl in testGetZoneWithOptions()
199 dns = options.getService(); // creates DnsImpl in testDeleteZone()
207 dns = options.getService(); // creates DnsImpl in testGetProject()
218 dns = options.getService(); // creates DnsImpl in testProjectGetWithOptions()
233 dns = options.getService(); // creates DnsImpl in testGetChangeRequest()
252 dns = options.getService(); // creates DnsImpl in testGetChangeRequestWithOptions()
272 dns = options.getService(); // creates DnsImpl in testApplyChangeRequest()
[all …]

12345678910>>...464