Home
last modified time | relevance | path

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

12345

/cts/tests/tests/telecom/src/android/telecom/cts/
DExtendedInCallServiceTest.java64 final MockInCallService inCallService = mInCallCallbacks.getService(); in testAddNewOutgoingCallAndThenDisconnect()
78 final MockInCallService inCallService = mInCallCallbacks.getService(); in testMuteAndUnmutePhone()
105 final MockInCallService inCallService = mInCallCallbacks.getService(); in testSwitchAudioRoutes()
165 final MockInCallService inCallService = mInCallCallbacks.getService(); in testPlayAndStopDtmfTones()
198 final MockInCallService inCallService = mInCallCallbacks.getService(); in testHoldAndUnholdCall()
225 final MockInCallService inCallService = mInCallCallbacks.getService(); in testAnswerIncomingCallAudioOnly()
245 final MockInCallService inCallService = mInCallCallbacks.getService(); in testAcceptRingingCall()
267 final MockInCallService inCallService = mInCallCallbacks.getService(); in testEndRingingCall()
289 final MockInCallService inCallService = mInCallCallbacks.getService(); in testEndCall()
318 final MockInCallService inCallService = mInCallCallbacks.getService(); in testAcceptRingingCallTwoCalls()
[all …]
DConnectionServiceTest.java74 assertNumCalls(mInCallCallbacks.getService(), 2); in testAddExistingConnection()
76 final Call call = mInCallCallbacks.getService().getLastCall(); in testAddExistingConnection()
103 assertNumCalls(mInCallCallbacks.getService(), 1); in testAddExistingConnection_invalidPhoneAccountPackageName()
105 final Call call = mInCallCallbacks.getService().getLastCall(); in testAddExistingConnection_invalidPhoneAccountPackageName()
126 assertNumCalls(mInCallCallbacks.getService(), 1); in testAddExistingConnection_invalidPhoneAccountAccountId()
128 final Call call = mInCallCallbacks.getService().getLastCall(); in testAddExistingConnection_invalidPhoneAccountAccountId()
200 assertCallState(mInCallCallbacks.getService().getLastCall(), Call.STATE_ACTIVE); in testConnectionServiceFocusGainedWithSameConnectionService()
279 assertNumCalls(mInCallCallbacks.getService(), 2); in testCallDirectionIncoming()
281 final Call call = mInCallCallbacks.getService().getLastCall(); in testCallDirectionIncoming()
408 getService().respondToCall(callDetails, response); in createCallbackForCsTest()
[all …]
DVideoCallTest.java68 final MockInCallService inCallService = mInCallCallbacks.getService(); in testMakeTwoWayVideoCall()
90 final MockInCallService inCallService = mInCallCallbacks.getService(); in testMakeOneWayVideoCall()
108 final MockInCallService inCallService = mInCallCallbacks.getService(); in testUpgradeToVideo()
133 final MockInCallService inCallService = mInCallCallbacks.getService(); in testReceiveSessionModifyRequest()
162 final MockInCallService inCallService = mInCallCallbacks.getService(); in testSendSessionModifyResponse()
187 final MockInCallService inCallService = mInCallCallbacks.getService(); in testReceiveSessionModifyResponse()
243 final MockInCallService inCallService = mInCallCallbacks.getService(); in testVideoCallDelayProvider()
275 final MockInCallService inCallService = mInCallCallbacks.getService(); in testChangeCamera()
300 final MockInCallService inCallService = mInCallCallbacks.getService(); in testRequestCameraCapabilities()
328 final MockInCallService inCallService = mInCallCallbacks.getService(); in testRequestDataUsage()
[all …]
DBackgroundCallAudioTest.java91 Call call = mInCallCallbacks.getService().getLastCall(); in testAudioProcessingFromCallScreeningAllow()
117 Call call = mInCallCallbacks.getService().getLastCall(); in testHoldAfterAudioProcessingFromCallScreening()
148 Call call = mInCallCallbacks.getService().getLastCall(); in testAudioProcessingFromCallScreeningDisallow()
176 Call call = mInCallCallbacks.getService().getLastCall(); in testAudioProcessingFromCallScreeningMissed()
202 Call call = mInCallCallbacks.getService().getLastCall(); in testAudioProcessingFromCallScreeningRemoteHangupDuringRing()
241 Call call = mInCallCallbacks.getService().getLastCall(); in testAudioProcessingFromCallScreeningAllowPlaceEmergencyCall()
285 Call call = mInCallCallbacks.getService().getLastCall(); in testAudioProcessingFromIncomingActivePlaceEmergencyCall()
318 Call call = mInCallCallbacks.getService().getLastCall(); in testAudioProcessActiveCall()
339 Call call = mInCallCallbacks.getService().getLastCall(); in testAudioProcessActiveCallMissed()
360 Call call = mInCallCallbacks.getService().getLastCall(); in testAudioProcessActiveCallRemoteHangup()
[all …]
DWiredHeadsetTest.java46 final Call call = mInCallCallbacks.getService().getLastCall(); in testIncomingCallShortPress_acceptsCall()
63 final Call call = mInCallCallbacks.getService().getLastCall(); in testIncomingCallLongPress_rejectsCall()
79 final MockInCallService incallService = mInCallCallbacks.getService(); in testInCallLongPress_togglesMute()
102 final Call call = mInCallCallbacks.getService().getLastCall(); in testInCallShortPress_hangupCall()
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()
DHandoverTest.java80 Call call = mInCallCallbacks.getService().getLastCall(); in testHandoverSourceFailed()
104 Call call = mInCallCallbacks.getService().getLastCall(); in testHandoverDestinationFailed()
131 final Call call = mInCallCallbacks.getService().getLastCall(); in testOutgoingHandoverRequestValid()
173 final Call call = mInCallCallbacks.getService().getLastCall(); in testIncomingHandoverRequestValid()
216 Call call = mInCallCallbacks.getService().getLastCall(); in startSourceCall()
DSelfManagedConnectionTest.java105 public IBinder getService() { in getService() method in SelfManagedConnectionTest.TestServiceConnection
167 .asInterface(controlConn.getService()); in testBindToSupportNonUiInCallService()
190 .asInterface(controlConn.getService()); in testBindToSupportDefaultDialerNoCarMode()
217 .asInterface(controlConn.getService()); in testNoBindToUnsupportDefaultDialerNoCarMode()
236 .asInterface(controlConn.getService()); in testEnterCarMode()
260 .asInterface(controlConn1.getService()); in testChangeCarModeApp()
262 .asInterface(controlConn2.getService()); in testChangeCarModeApp()
293 .asInterface(controlConn.getService()); in testExitCarMode()
DCarModeInCallServiceTest.java376 assertEquals(1, mInCallCallbacks.getService().getCallCount()); in testSwitchToCarModeAndBack()
377 mInCallCallbacks.getService().disconnectAllCalls(); in testSwitchToCarModeAndBack()
429 assertEquals(1, mInCallCallbacks.getService().getCallCount()); in testSwitchToCarModeMultiple()
430 mInCallCallbacks.getService().disconnectAllCalls(); in testSwitchToCarModeMultiple()
493 assertEquals(1, mInCallCallbacks.getService().getCallCount()); in testSwitchToAutomotiveProjectionAndBack()
494 mInCallCallbacks.getService().disconnectAllCalls(); in testSwitchToAutomotiveProjectionAndBack()
544 assertEquals(1, mInCallCallbacks.getService().getCallCount()); in testSwitchToAutomotiveProjectionMultiple()
545 mInCallCallbacks.getService().disconnectAllCalls(); in testSwitchToAutomotiveProjectionMultiple()
574 mInCallCallbacks.getService().disconnectAllCalls(); in testSwitchToCarModeWhenEnableCarModeApp()
DIncomingCallTest.java70 Call call = mInCallCallbacks.getService().getLastCall(); in testVerstatPassed()
83 Call call = mInCallCallbacks.getService().getLastCall(); in testVerstatFailed()
96 Call call = mInCallCallbacks.getService().getLastCall(); in testVerstatNotVerified()
245 assertTrue((mInCallCallbacks.getService().getLastCall().getDetails().getCallProperties() in testAddNewIncomingCallVoipState()
287 Call call = mInCallCallbacks.getService().getLastCall(); in testConnectionOnAnswerForAudioCall()
315 Call call = mInCallCallbacks.getService().getLastCall(); in testConnectionOnAnswerForVideoCallAnsweredAsAudio()
343 Call call = mInCallCallbacks.getService().getLastCall(); in testConnectionOnAnswerIntForVideoCallAnsweredAsVideo()
DThirdPartyCallScreeningServiceTest.java327 assertEquals(1, mInCallCallbacks.getService().getCallCount()); in testNoPostCallActivityWhenAudioProcessing()
328 Call call = mInCallCallbacks.getService().getLastCall(); in testNoPostCallActivityWhenAudioProcessing()
332 mInCallCallbacks.getService().disconnectAllCalls(); in testNoPostCallActivityWhenAudioProcessing()
348 mInCallCallbacks.getService().disconnectAllCalls(); in testNoPostCallActivityForOutgoingEmergencyCall()
367 mInCallCallbacks.getService().disconnectAllCalls(); in testNoPostCallActivityForIncomingEmergencyCall()
388 mInCallCallbacks.getService().disconnectAllCalls(); in placeOutgoingCall()
389 assertNumCalls(mInCallCallbacks.getService(), 0); in placeOutgoingCall()
421 mInCallCallbacks.getService().disconnectAllCalls(); in addIncoming()
422 assertNumCalls(mInCallCallbacks.getService(), 0); in addIncoming()
502 Call call = mInCallCallbacks.getService().getLastCall(); in addIncomingAndVerifyCallExtraForSilence()
DPhoneAccountSuggestionServiceTest.java62 if (mInCallCallbacks.getService().getLastCall() != null) { in tearDown()
63 mInCallCallbacks.getService().getLastCall().disconnect(); in tearDown()
103 final MockInCallService inCallService = mInCallCallbacks.getService(); in testSuggestionFlow()
147 final MockInCallService inCallService = mInCallCallbacks.getService(); in testSuggestionTimeout()
182 final MockInCallService inCallService = mInCallCallbacks.getService(); in testEmptySuggestions()
219 final MockInCallService inCallService = mInCallCallbacks.getService(); in testPartialSuggestions()
DOutgoingCallTest.java91 assertAudioRoute(mInCallCallbacks.getService(), CallAudioState.ROUTE_SPEAKER); in testStartCallWithSpeakerphoneTrue_SpeakerphoneOnInCall()
103 if (mInCallCallbacks.getService().getCallAudioState().getSupportedRouteMask() == in testStartCallWithSpeakerphoneFalse_SpeakerphoneOffInCall()
107 assertNotAudioRoute(mInCallCallbacks.getService(), CallAudioState.ROUTE_SPEAKER); in testStartCallWithSpeakerphoneFalse_SpeakerphoneOffInCall()
119 if (mInCallCallbacks.getService().getCallAudioState().getSupportedRouteMask() == in testStartCallWithSpeakerphoneNotProvided_SpeakerphoneOffByDefault()
123 assertNotAudioRoute(mInCallCallbacks.getService(), CallAudioState.ROUTE_SPEAKER); in testStartCallWithSpeakerphoneNotProvided_SpeakerphoneOffByDefault()
DCallRedirectionServiceTest.java126 mInCallService = mInCallCallbacks.getService(); in testRedirectedCallWithRedirectedGateway()
147 mInCallService = mInCallCallbacks.getService(); in testRedirectedCallWithPostDialDigits()
171 mInCallService = mInCallCallbacks.getService(); in testRedirectedCallWithRedirectedPhoneAccount()
186 mInCallService = mInCallCallbacks.getService(); in testCancelCall()
197 mInCallService = mInCallCallbacks.getService(); in testPlaceCallUnmodified()
DAdhocConferenceTest.java104 Call call = mInCallCallbacks.getService().getLastConferenceCall(); in testAddNewIncomingConference_onAnswer()
127 Call call = mInCallCallbacks.getService().getLastConferenceCall(); in testAddNewIncomingConference_onReject()
163 Call call = mInCallCallbacks.getService().getLastConferenceCall(); in testConferenceCallAddConferenceParticipants()
DRemoteConferenceTest.java70 final Call confCall = mInCallCallbacks.getService().getLastConferenceCall(); in testRemoteConferenceCreate()
97 final Call confCall = mInCallCallbacks.getService().getLastConferenceCall(); in testRemoteConferenceSplit()
123 final Call confCall = mInCallCallbacks.getService().getLastConferenceCall(); in testRemoteConferenceHoldAndUnhold()
159 final Call confCall = mInCallCallbacks.getService().getLastConferenceCall(); in testRemoteConferenceMergeAndSwap()
195 final Call confCall = mInCallCallbacks.getService().getLastConferenceCall(); in testRemoteConferenceDTMFTone()
634 mCall1 = mInCallCallbacks.getService().getLastCall(); in addRemoteConnectionOutgoingCalls()
643 mCall2 = mInCallCallbacks.getService().getLastCall(); in addRemoteConnectionOutgoingCalls()
674 final Call confCall = mInCallCallbacks.getService().getLastConferenceCall(); in setupRemoteConferenceCallbacksTest()
/cts/tests/app/src/android/app/cts/
DCloseSystemDialogsTest.java173 mService = getService(APP_HELPER); in testCloseSystemDialogs_whenTargetSdkCurrent_isBlockedAndThrows()
182 mService = getService(APP_HELPER); in testCloseSystemDialogs_whenTargetSdk30_isBlockedButDoesNotThrow()
210 mService = getService(APP_HELPER); in testCloseSystemDialogs_inTrampolineWhenTargetSdkCurrent_isBlockedAndThrows()
225 mService = getService(APP_HELPER); in testCloseSystemDialogs_inTrampolineWhenTargetSdk30_isSent()
242 mService = getService(APP_HELPER); in testCloseSystemDialogs_inTrampolineViaPendingIntentWhenTargetSdkCurrent_isBlocked()
257 mService = getService(APP_HELPER); in testCloseSystemDialogs_inTrampolineViaPendingIntentWhenTargetSdk30_isSent()
272 mService = getService(APP_HELPER); in testCloseSystemDialogs_withWindowAboveShadeAndTargetSdk30_isSent()
286 mService = getService(APP_SELF); in testCloseSystemDialogsViaWindowManager_whenTestInstrumentedViaShell_isSent()
296 mService = getService(APP_SELF); in testCloseSystemDialogsViaWindowManager_whenRunningAsShell_isSent()
308 mService = getService(APP_HELPER); in testCloseSystemDialogsViaWindowManager_whenTargetSdkCurrent_isBlockedAndThrows()
[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/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/print/src/android/print/cts/
DPrintServicesTest.java115 PrinterId printerId = session.getService() in createMockPrinterDiscoverySessionCallbacks()
448 eventually(() -> assertNotNull(serviceCallbacks.getService()));
451 assertException(() -> serviceCallbacks.getService().callAttachBaseContext(null),
453 assertException(() -> serviceCallbacks.getService().callAttachBaseContext(getActivity()),
497 StubbablePrintService firstService = serviceCallbacks1.getService();
531 StubbablePrintService secondService = serviceCallbacks2.getService();
582 PrinterId printer1Id = session.getService().generatePrinterId("Printer1");
588 PrinterId printer2Id = session.getService().generatePrinterId("Printer2");
DPrinterInfoTest.java78 sDiscoverySession.getService().generatePrinterId("bad printer"), in createFirstMockPrinterDiscoverySessionCallbacks()
113 new PrinterCapabilitiesInfo.Builder(sDiscoverySession.getService() in createFirstMockPrinterDiscoverySessionCallbacks()
142 .getService() in createFirstMockPrinterDiscoverySessionCallbacks()
147 .getService() in createFirstMockPrinterDiscoverySessionCallbacks()
/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityShortcutTest.java158 final SpeakingAccessibilityService service = mServiceRule.getService(); in performAccessibilityShortcut_launchAccessibilityService()
187 performShortcutAndWaitForA11yButtonClicked(mA11yButtonServiceRule.getService()); in performAccessibilityShortcut_withReqA11yButtonService_a11yButtonCallback()
224 mA11yButtonServiceRule.getService().disableSelfAndRemove(); in testAccessibilityButtonService_disableSelf_buttonRemoved()
237 mA11yButtonServiceRule.getService().disableSelfAndRemove(); in testAccessibilityButtonService_disableSelf_shortcutRemoved()
/cts/tests/tests/widget/src/android/widget/cts/
DToastPresenterTest.java56 ServiceManager.getService(Context.ACCESSIBILITY_SERVICE)), in setup()
58 ServiceManager.getService(Context.NOTIFICATION_SERVICE)), in setup()
/cts/hostsidetests/securitybulletin/securityPatch/Bug-137878930/
Dpoc.cpp63 sp<IServiceManager> serviceManager = IServiceManager::getService(); in makeDrmFactories()
72 auto factory = IDrmFactory::getService(instance); in makeDrmFactories()
85 ::android::hardware::drm::V1_1::IDrmFactory::getService(instance); in makeDrmFactories()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-0318/
Dpoc.cpp31 sp<IBinder> service = sm->getService(name); in poc()
93 sp<IBinder> service = sm->getService(name); in get_sensor_list()

12345