Home
last modified time | relevance | path

Searched refs:serviceConnection (Results 1 – 13 of 13) sorted by relevance

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallScreeningServiceFilterTest.java244 ServiceConnection serviceConnection = verifyBindingIntent(); in testAllowCall() local
246 serviceConnection.onServiceConnected(COMPONENT_NAME, mBinder); in testAllowCall()
259 serviceConnection.onServiceDisconnected(COMPONENT_NAME); in testAllowCall()
280 ServiceConnection serviceConnection = verifyBindingIntent(); in testDisallowCall() local
282 serviceConnection.onServiceConnected(COMPONENT_NAME, mBinder); in testDisallowCall()
297 serviceConnection.onServiceDisconnected(COMPONENT_NAME); in testDisallowCall()
317 ServiceConnection serviceConnection = verifyBindingIntent(); in testSilenceCall() local
319 serviceConnection.onServiceConnected(COMPONENT_NAME, mBinder); in testSilenceCall()
333 serviceConnection.onServiceDisconnected(COMPONENT_NAME); in testSilenceCall()
352 ServiceConnection serviceConnection = verifyBindingIntent(); in testScreenCallFurther() local
[all …]
DInCallControllerTests.java595 ServiceConnection serviceConnection = serviceConnectionCaptor.getValue(); in testBindToService_SystemDialer_Crash() local
596 serviceConnection.onServiceDisconnected(bindIntent.getComponent()); in testBindToService_SystemDialer_Crash()
677 ServiceConnection serviceConnection = serviceConnectionCaptor.getValue(); in testBindToService_DefaultDialer_FallBackToSystem() local
685 serviceConnection.onServiceConnected(defDialerComponentName, mockBinder); in testBindToService_DefaultDialer_FallBackToSystem()
689 serviceConnection.onServiceDisconnected(defDialerComponentName); in testBindToService_DefaultDialer_FallBackToSystem()
731 ServiceConnection serviceConnection = serviceConnectionCaptor.getValue(); in testBindToService_NullBinding_FallBackToSystem() local
739 serviceConnection.onServiceConnected(defDialerComponentName, mockBinder); in testBindToService_NullBinding_FallBackToSystem()
741 serviceConnection.onNullBinding(defDialerComponentName); in testBindToService_NullBinding_FallBackToSystem()
836 ServiceConnection serviceConnection = serviceConnectionCaptor.getValue(); in testUnbindDueToCallDisconnect() local
842 serviceConnection.onServiceConnected(defDialerComponentName, mockBinder); in testUnbindDueToCallDisconnect()
[all …]
/packages/apps/Car/Notification/tests/robotests/src/com/android/car/notification/testutils/
DShadowCar.java49 protected static Car createCar(Context context, ServiceConnection serviceConnection) { in createCar() argument
51 if (serviceConnection != null) { in createCar()
53 serviceConnection.onServiceConnected(null, null); in createCar()
57 serviceConnection.onServiceDisconnected(null); in createCar()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowCar.java49 protected static Car createCar(Context context, ServiceConnection serviceConnection) { in createCar() argument
50 if (serviceConnection != null) { in createCar()
52 serviceConnection.onServiceConnected(null, null); in createCar()
56 serviceConnection.onServiceDisconnected(null); in createCar()
/packages/modules/NetworkStack/tests/integration/src/android/net/networkstack/
DTestNetworkStackServiceClient.kt64 private val serviceConnection = object : ServiceConnection { constant
75 context.bindService(bindIntent, serviceConnection, Context.BIND_AUTO_CREATE) in onServiceDisconnected()
79 InstrumentationRegistry.getInstrumentation().context.unbindService(serviceConnection) in disconnect()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallScreeningServiceHelper.java108 ServiceConnection serviceConnection = new ServiceConnection() { in bindAndGetCallIdentification() local
146 if (!bindCallScreeningService(mContext, mUserHandle, mPackageName, serviceConnection)) { in bindAndGetCallIdentification()
179 String packageName, ServiceConnection serviceConnection) { in bindCallScreeningService() argument
212 serviceConnection, in bindCallScreeningService()
DPhoneAccountSuggestionHelper.java75 ServiceConnection serviceConnection = new ServiceConnection() { in bindAndGetSuggestions() local
127 if (!context.bindService(bindIntent, serviceConnection, Context.BIND_AUTO_CREATE)) { in bindAndGetSuggestions()
DCallDiagnosticServiceController.java394 String packageName, CallDiagnosticServiceConnection serviceConnection) { in bindCallDiagnosticService() argument
429 serviceConnection, in bindCallDiagnosticService()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DOsuServerConnection.java570 HttpsServiceConnection serviceConnection; in getServiceConnection() local
574 serviceConnection = (HttpsServiceConnection) mHttpsTransport.getServiceConnection(); in getServiceConnection()
575 if (serviceConnection != null) { in getServiceConnection()
576 serviceConnection.setSSLSocketFactory(mSocketFactory); in getServiceConnection()
582 return serviceConnection; in getServiceConnection()
/packages/apps/Car/Dialer/tests/unittests/src/com/android/car/dialer/telecom/
DUiCallManagerTest.java86 ServiceConnection serviceConnection = invocation.getArgument(1); in setup() local
87 serviceConnection.onServiceConnected( in setup()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
DStartDpcInsideSuwServiceConnectionTest.java587 StartDpcInsideSuwServiceConnection serviceConnection) { in verifyBindServiceCalled() argument
589 verify(activity).bindService(intentCaptor.capture(), eq(serviceConnection), anyInt()); in verifyBindServiceCalled()
/packages/services/Telephony/src/com/android/phone/
DCarrierConfigLoader.java841 CarrierServiceConnection serviceConnection = new CarrierServiceConnection( in bindToConfigPackage() local
844 mServiceConnectionForNoSimConfig[phoneId] = serviceConnection; in bindToConfigPackage()
846 mServiceConnection[phoneId] = serviceConnection; in bindToConfigPackage()
849 if (mContext.bindService(carrierService, serviceConnection, in bindToConfigPackage()
/packages/services/Car/experimental/service/src/com/android/experimentalcar/
DDriverDistractionExperimentalFeatureService.java301 for (ServiceConnection serviceConnection : mServiceConnections) { in release()
302 mContext.unbindService(serviceConnection); in release()