Home
last modified time | relevance | path

Searched refs:getService (Results 1 – 25 of 191) sorted by relevance

12345678

/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
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 …]
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 …]
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 …]
DSandboxedDetectionServiceNonExistenceTest.java58 mService = (CtsMainVoiceInteractionService) BaseVoiceInteractionService.getService(); in setup()
75 (CtsMainVoiceInteractionService) BaseVoiceInteractionService.getService(); in testHotwordDetectionService_noHotwordDetectionComponentName_triggerFailure()
94 (CtsMainVoiceInteractionService) CtsMainVoiceInteractionService.getService(); in testVisualQueryDetectionService_noVisualQueryDetectionComponentName_triggerFailure()
/cts/tests/tests/telecom/src/android/telecom/cts/
DExtendedInCallServiceTest.java77 final MockInCallService inCallService = mInCallCallbacks.getService(); in testAddNewOutgoingCallAndThenDisconnect()
91 final MockInCallService inCallService = mInCallCallbacks.getService(); in testMuteAndUnmutePhone()
122 final MockInCallService inCallService = mInCallCallbacks.getService(); in testSwitchAudioRoutes()
182 final MockInCallService inCallService = mInCallCallbacks.getService(); in testPlayAndStopDtmfTones()
215 final MockInCallService inCallService = mInCallCallbacks.getService(); in testHoldAndUnholdCall()
242 final MockInCallService inCallService = mInCallCallbacks.getService(); in testAnswerIncomingCallAudioOnly()
262 final MockInCallService inCallService = mInCallCallbacks.getService(); in testAcceptRingingCall()
284 final MockInCallService inCallService = mInCallCallbacks.getService(); in testEndRingingCall()
306 final MockInCallService inCallService = mInCallCallbacks.getService(); in testEndCall()
335 final MockInCallService inCallService = mInCallCallbacks.getService(); in testAcceptRingingCallTwoCalls()
[all …]
DWiredHeadsetTest.java56 final Call call = mInCallCallbacks.getService().getLastCall(); in testIncomingCallShortPress_acceptsCall()
73 final Call call = mInCallCallbacks.getService().getLastCall(); in testIncomingCallLongPress_rejectsCall()
89 final MockInCallService incallService = mInCallCallbacks.getService(); in testInCallLongPress_togglesMute()
112 final Call call = mInCallCallbacks.getService().getLastCall(); in testInCallShortPress_hangupCall()
DConnectionServiceTest.java90 assertNumCalls(mInCallCallbacks.getService(), 2); in testAddExistingConnection()
92 final Call call = mInCallCallbacks.getService().getLastCall(); in testAddExistingConnection()
119 assertNumCalls(mInCallCallbacks.getService(), 1); in testAddExistingConnection_invalidPhoneAccountPackageName()
121 final Call call = mInCallCallbacks.getService().getLastCall(); in testAddExistingConnection_invalidPhoneAccountPackageName()
142 assertNumCalls(mInCallCallbacks.getService(), 1); in testAddExistingConnection_invalidPhoneAccountAccountId()
144 final Call call = mInCallCallbacks.getService().getLastCall(); in testAddExistingConnection_invalidPhoneAccountAccountId()
216 assertCallState(mInCallCallbacks.getService().getLastCall(), Call.STATE_ACTIVE); in testConnectionServiceFocusGainedWithSameConnectionService()
296 assertNumCalls(mInCallCallbacks.getService(), 2); in testCallDirectionIncoming()
298 final Call call = mInCallCallbacks.getService().getLastCall(); in testCallDirectionIncoming()
464 assertNull(mInCallCallbacks.getService()); in testCallLogForBlockedNumberIncomingCall()
[all …]
DVideoCallTest.java69 final MockInCallService inCallService = mInCallCallbacks.getService(); in testMakeTwoWayVideoCall()
91 final MockInCallService inCallService = mInCallCallbacks.getService(); in testMakeOneWayVideoCall()
109 final MockInCallService inCallService = mInCallCallbacks.getService(); in testUpgradeToVideo()
134 final MockInCallService inCallService = mInCallCallbacks.getService(); in testReceiveSessionModifyRequest()
163 final MockInCallService inCallService = mInCallCallbacks.getService(); in testSendSessionModifyResponse()
188 final MockInCallService inCallService = mInCallCallbacks.getService(); in testReceiveSessionModifyResponse()
244 final MockInCallService inCallService = mInCallCallbacks.getService(); in testVideoCallDelayProvider()
276 final MockInCallService inCallService = mInCallCallbacks.getService(); in testChangeCamera()
301 final MockInCallService inCallService = mInCallCallbacks.getService(); in testRequestCameraCapabilities()
329 final MockInCallService inCallService = mInCallCallbacks.getService(); in testRequestDataUsage()
[all …]
DBackgroundCallAudioTest.java92 Call call = mInCallCallbacks.getService().getLastCall(); in testAudioProcessingFromCallScreeningAllow()
118 Call call = mInCallCallbacks.getService().getLastCall(); in testHoldAfterAudioProcessingFromCallScreening()
149 Call call = mInCallCallbacks.getService().getLastCall(); in testAudioProcessingFromCallScreeningDisallow()
177 Call call = mInCallCallbacks.getService().getLastCall(); in testAudioProcessingFromCallScreeningMissed()
203 Call call = mInCallCallbacks.getService().getLastCall(); in testAudioProcessingFromCallScreeningRemoteHangupDuringRing()
242 Call call = mInCallCallbacks.getService().getLastCall(); in testAudioProcessingFromCallScreeningAllowPlaceEmergencyCall()
287 Call call = mInCallCallbacks.getService().getLastCall(); in testAudioProcessingFromIncomingActivePlaceEmergencyCall()
321 Call call = mInCallCallbacks.getService().getLastCall(); in testAudioProcessActiveCall()
342 Call call = mInCallCallbacks.getService().getLastCall(); in testAudioProcessActiveCallMissed()
363 Call call = mInCallCallbacks.getService().getLastCall(); in testAudioProcessActiveCallRemoteHangup()
[all …]
DRttOperationsTest.java64 final MockInCallService inCallService = mInCallCallbacks.getService(); in testOutgoingRttCall()
78 final MockInCallService inCallService = mInCallCallbacks.getService(); in testIncomingRttCall()
91 final MockInCallService inCallService = mInCallCallbacks.getService(); in testLocalRttUpgradeAccepted()
115 final MockInCallService inCallService = mInCallCallbacks.getService(); in testLocalRttUpgradeRejected()
139 final MockInCallService inCallService = mInCallCallbacks.getService(); in testAcceptRemoteRttUpgrade()
162 final MockInCallService inCallService = mInCallCallbacks.getService(); in testRejectRemoteRttRequest()
186 final MockInCallService inCallService = mInCallCallbacks.getService(); in testLocalRttTermination()
207 final MockInCallService inCallService = mInCallCallbacks.getService(); in testRemoteRttTermination()
DSelfManagedConnectionTest.java156 public IBinder getService() { in getService() method in SelfManagedConnectionTest.TestServiceConnection
228 .asInterface(controlConn.getService()); in testBindToSupportNonUiInCallService()
255 .asInterface(controlConn.getService()); in testBindToSupportDefaultDialerNoCarMode()
282 .asInterface(controlConn.getService()); in testNoBindToUnsupportDefaultDialerNoCarMode()
305 .asInterface(controlConn.getService()); in testEnterCarMode()
338 .asInterface(control.getService()); in testTelecomManagerGetSelfManagedPhoneAccountsForPackage()
414 ICtsSelfManagedConnectionServiceControl.Stub.asInterface(csControl.getService()); in testIncomingVideoCallWithNoVideoSupportInCarMode()
425 .asInterface(inCallControl.getService()); in testIncomingVideoCallWithNoVideoSupportInCarMode()
513 final MockInCallService inCallService = mInCallCallbacks.getService(); in testSwapInCallServicesForSelfManagedCSCall()
542 .asInterface(inCallControl.getService()); in testSwapInCallServicesForSelfManagedCSCall()
[all …]
DHandoverTest.java93 Call call = mInCallCallbacks.getService().getLastCall(); in testHandoverSourceFailed()
117 Call call = mInCallCallbacks.getService().getLastCall(); in testHandoverDestinationFailed()
144 final Call call = mInCallCallbacks.getService().getLastCall(); in testOutgoingHandoverRequestValid()
187 final Call call = mInCallCallbacks.getService().getLastCall(); in testIncomingHandoverRequestValid()
230 Call call = mInCallCallbacks.getService().getLastCall(); in startSourceCall()
DThirdPartyCallScreeningServiceTest.java332 assertEquals(1, mInCallCallbacks.getService().getCallCount()); in testNoPostCallActivityWhenAudioProcessing()
333 Call call = mInCallCallbacks.getService().getLastCall(); in testNoPostCallActivityWhenAudioProcessing()
337 mInCallCallbacks.getService().disconnectAllCalls(); in testNoPostCallActivityWhenAudioProcessing()
353 mInCallCallbacks.getService().disconnectAllCalls(); in testNoPostCallActivityForOutgoingEmergencyCall()
372 mInCallCallbacks.getService().disconnectAllCalls(); in testNoPostCallActivityForIncomingEmergencyCall()
393 mInCallCallbacks.getService().disconnectAllCalls(); in placeOutgoingCall()
394 assertNumCalls(mInCallCallbacks.getService(), 0); in placeOutgoingCall()
432 mInCallCallbacks.getService().disconnectAllCalls(); in addIncoming()
433 assertNumCalls(mInCallCallbacks.getService(), 0); in addIncoming()
518 Call call = mInCallCallbacks.getService().getLastCall(); in addIncomingAndVerifyCallExtraForSilence()
[all …]
DCarModeInCallServiceTest.java401 assertEquals(1, mInCallCallbacks.getService().getCallCount()); in testSwitchToCarModeAndBack()
402 mInCallCallbacks.getService().disconnectAllCalls(); in testSwitchToCarModeAndBack()
456 assertEquals(1, mInCallCallbacks.getService().getCallCount()); in testSwitchToCarModeMultiple()
457 mInCallCallbacks.getService().disconnectAllCalls(); in testSwitchToCarModeMultiple()
524 assertEquals(1, mInCallCallbacks.getService().getCallCount()); in testSwitchToAutomotiveProjectionAndBack()
525 mInCallCallbacks.getService().disconnectAllCalls(); in testSwitchToAutomotiveProjectionAndBack()
577 assertEquals(1, mInCallCallbacks.getService().getCallCount()); in testSwitchToAutomotiveProjectionMultiple()
578 mInCallCallbacks.getService().disconnectAllCalls(); in testSwitchToAutomotiveProjectionMultiple()
609 mInCallCallbacks.getService().disconnectAllCalls(); in testSwitchToCarModeWhenEnableCarModeApp()
636 mInCallCallbacks.getService().disconnectAllCalls(); in testNoSwitchToCarModeWhenDisabledCarModeAppAutomotiveProjection()
DAccessibilitySystemActionTest.java42 final Call call = mInCallCallbacks.getService().getLastCall(); in testIncomingCall_headsetHookAction_acceptsCall()
58 final Call call = mInCallCallbacks.getService().getLastCall(); in testInCall_headsetHookAction_hangupCall()
/cts/tests/app/src/android/app/cts/
DCloseSystemDialogsTest.java202 mService = getService(APP_HELPER); in testCloseSystemDialogs_whenTargetSdkCurrent_isBlockedAndThrows()
211 mService = getService(APP_HELPER); in testCloseSystemDialogs_whenTargetSdk30_isBlockedButDoesNotThrow()
239 mService = getService(APP_HELPER); in testCloseSystemDialogs_inTrampolineWhenTargetSdkCurrent_isBlockedAndThrows()
255 mService = getService(APP_HELPER); in testCloseSystemDialogs_inTrampolineWhenTargetSdk30_isSent()
272 mService = getService(APP_HELPER); in testCloseSystemDialogs_inTrampolineViaPendingIntentWhenTargetSdkCurrent_isBlocked()
287 mService = getService(APP_HELPER); in testCloseSystemDialogs_inTrampolineViaPendingIntentWhenTargetSdk30_isSent()
302 mService = getService(APP_HELPER); in testCloseSystemDialogs_withWindowAboveShadeAndTargetSdk30_isSent()
316 mService = getService(APP_SELF); in testCloseSystemDialogsViaWindowManager_whenTestInstrumentedViaShell_isSent()
326 mService = getService(APP_SELF); in testCloseSystemDialogsViaWindowManager_whenRunningAsShell_isSent()
338 mService = getService(APP_HELPER); in testCloseSystemDialogsViaWindowManager_whenTargetSdkCurrent_isBlockedAndThrows()
[all …]
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DBluetoothGattCharacteristicTest.java58 public void getService() { in getService() method in BluetoothGattCharacteristicTest
60 assertNull(mBluetoothGattCharacteristic.getService()); in getService()
66 assertEquals(mBluetoothGattCharacteristic.getService(), service); in getService()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DCarrierServiceTest.java70 getService().notifyCarrierNetworkChange(active); in notifyCarrierNetworkChangeWithoutCarrierPrivileges()
84 () -> getService().notifyCarrierNetworkChange(active)); in notifyCarrierNetworkChangeWithCarrierPrivileges()
109 getService().notifyCarrierNetworkChange(subId, active); in notifyCarrierNetworkChangeForSubIdWithoutCarrierPrivileges()
125 () -> getService().notifyCarrierNetworkChange(subId, active)); in notifyCarrierNetworkChangeForSubIdWithCarrierPrivileges()
/cts/tests/app/PendingIntentApi33/src/android/app/cts/pendingintentapi33/
DPendingIntentApi33Test.java138 PendingIntent.getService(mContext, 1, intent, PendingIntent.FLAG_MUTABLE); in testGetService()
145 PendingIntent.getService(mContext, 1, intent, PendingIntent.FLAG_IMMUTABLE); in testGetService()
148 PendingIntent.getService(mContext, 1, intent, PendingIntent.FLAG_MUTABLE in testGetService()
152 PendingIntent.getService(mContext, 1, intent, PendingIntent.FLAG_MUTABLE in testGetService()
156 PendingIntent.getService(mContext, 1, intent, PendingIntent.FLAG_MUTABLE); in testGetService()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/testcore/
DVoiceInteractionServiceConnectedClassRule.java36 public VoiceInteractionService getService() { in getService() method in VoiceInteractionServiceConnectedClassRule
44 mService = BaseVoiceInteractionService.getService(); in before()
/cts/tests/tests/wifi/src/android/net/wifi/sharedconnectivity/cts/
DSharedConnectivityTest.java170 TestSharedConnectivityService service = getService(); in registerCallback_withoutPermission_throwsSecurityException()
191 TestSharedConnectivityService service = getService(); in registerCallback_onServiceConnectedCallbackReceived()
233 TestSharedConnectivityService service = getService(); in unregisterCallback_unregisterSuccessful()
266 TestSharedConnectivityService service = getService(); in setHotspotNetworks_managerCallbackReceivedWithCorrectData()
296 TestSharedConnectivityService service = getService(); in setKnownNetworks_managerCallbackReceivedWithCorrectData()
326 TestSharedConnectivityService service = getService(); in setSettingsState_managerCallbackReceivedWithCorrectData()
357 TestSharedConnectivityService service = getService(); in updateHotspotNetworkConnectionStatus_managerCallbackReceivedWithCorrectData()
388 TestSharedConnectivityService service = getService(); in updateKnownNetworkConnectionStatus_managerCallbackReceivedWithCorrectData()
410 TestSharedConnectivityService service = getService(); in connectHotspotNetwork_serviceCallbackReceivedWithCorrectData()
434 TestSharedConnectivityService service = getService(); in disconnectHotspotNetwork_serviceCallbackReceivedWithCorrectData()
[all …]
/cts/hostsidetests/classloaders/splits/apps/src/com/android/cts/classloadersplitapp/
DSplitAppTest.java146 final Service service = getService(new ComponentName(mAppContextTestRule.getContext(), in testBaseServiceClassLoader()
154 final Service service = getService(FEATURE_A_SERVICE); in testFeatureAServiceClassLoader()
163 final Service service = getService(FEATURE_B_SERVICE); in testFeatureBServiceClassLoader()
170 private Service getService(ComponentName componentName) throws TimeoutException { in getService() method in SplitAppTest
175 return localBinder.getService(); in getService()
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/os/
DServiceManagerHelperTest.java96 public IServiceManagerTestService getService() { in getService() method in ServiceManagerHelperTest.PeerConnection
107 assertNotNull(ServiceManagerHelper.getService(serviceName)); in testInitServiceCache()
128 assertNull(ServiceManagerHelper.getService(testServiceName)); in testServiceCacheWithCreatedService()
159 mRemoteService = mRemoteConnection.getService(); in setUpService()
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DDataSharingServiceTest.java73 DataSharingService dataSharingService = mBinder.getService(); in testDataSharingSessionAccepted()
92 DataSharingService dataSharingService = mBinder.getService(); in testDataSharingSessionRejected()
107 DataSharingService dataSharingService = mBinder.getService(); in testDataShareRequest_valuesPropagatedToReceiver()
124 DataSharingService dataSharingService = mBinder.getService(); in testDataSharingSessionError_concurrentRequests()
/cts/tests/tests/virtualdevice/applaunch/src/android/virtualdevice/cts/applaunch/
DAppComponents.java49 TestService getService() { in getService() method in AppComponents.TestService.TestBinder
60 return ((TestService.TestBinder) serviceToken).getService(); in startService()

12345678