Home
last modified time | relevance | path

Searched refs:mServiceConnection (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DOsuServerConnection.java79 private HttpsServiceConnection mServiceConnection = null; field in OsuServerConnection
296 if (mServiceConnection != null) { in performSoapMessageExchange()
297 mServiceConnection.disconnect(); in performSoapMessageExchange()
300 mServiceConnection = getServiceConnection(mUrl, mNetwork); in performSoapMessageExchange()
301 if (mServiceConnection == null) { in performSoapMessageExchange()
353 mServiceConnection.disconnect(); in performSoapMessageExchange()
354 mServiceConnection = null; in performSoapMessageExchange()
421 if (mServiceConnection != null) { in getCert()
422 mServiceConnection.disconnect(); in getCert()
424 mServiceConnection = getServiceConnection(serverUrl, mNetwork); in getCert()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/soap/
DHttpsTransport.java34 private ServiceConnection mServiceConnection; field in HttpsTransport
55 if (mServiceConnection == null) { in getServiceConnection()
56 mServiceConnection = new HttpsServiceConnection(mNetwork, mUrl); in getServiceConnection()
58 return mServiceConnection; in getServiceConnection()
/frameworks/base/services/core/java/com/android/server/telecom/
DTelecomLoaderService.java121 private TelecomServiceConnection mServiceConnection; field in TelecomLoaderService
144 if (mServiceConnection != null) { in connectToTelecom()
146 mContext.unbindService(mServiceConnection); in connectToTelecom()
147 mServiceConnection = null; in connectToTelecom()
158 mServiceConnection = serviceConnection; in connectToTelecom()
170 if (mServiceConnection == null) { in registerDefaultAppProviders()
185 if (mServiceConnection == null) { in registerDefaultAppProviders()
199 if (mServiceConnection == null) { in registerDefaultAppProviders()
/frameworks/base/core/tests/coretests/src/android/content/
DAbstractCrossUserContentResolverTest.java55 private CrossUserContentServiceConnection mServiceConnection; field in AbstractCrossUserContentResolverTest
68 mServiceConnection = new CrossUserContentServiceConnection(connectionLatch); in setUp()
71 mServiceConnection, in setUp()
110 if (mServiceConnection != null) { in tearDown()
111 mContext.unbindService(mServiceConnection); in tearDown()
138 mServiceConnection.getService().updateContent(uriToUpdate, "New Text", 42); in testRegisterContentObserver()
155 mServiceConnection.getService().notifyForUriAsUser(notifyUri, UserHandle.myUserId()); in testNotifyChange()
/frameworks/base/services/core/java/com/android/server/role/
DFinancialSmsManager.java55 private ServiceConnection mServiceConnection; field in FinancialSmsManager
104 if (mServiceConnection != null) { in reset()
105 mContext.unbindService(mServiceConnection); in reset()
106 mServiceConnection = null; in reset()
132 if (mServiceConnection != null) return; in connectAndRun()
136 mServiceConnection = new ServiceConnection() { in connectAndRun()
185 mContext.bindServiceAsUser(intent, mServiceConnection, Context.BIND_AUTO_CREATE, in connectAndRun()
/frameworks/base/core/java/android/accessibilityservice/
DAccessibilityButtonController.java56 private final IAccessibilityServiceConnection mServiceConnection; field in AccessibilityButtonController
61 mServiceConnection = serviceConnection; in AccessibilityButtonController()
78 if (mServiceConnection != null) { in isAccessibilityButtonAvailable()
80 return mServiceConnection.isAccessibilityButtonAvailable(); in isAccessibilityButtonAvailable()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/suggestions/
DSuggestionController.java60 private ServiceConnection mServiceConnection; field in SuggestionController
76 mServiceConnection = createServiceConnection(); in SuggestionController()
83 mContext.bindServiceAsUser(mServiceIntent, mServiceConnection, Context.BIND_AUTO_CREATE, in start()
93 mContext.unbindService(mServiceConnection); in stop()
/frameworks/base/services/core/java/com/android/server/
DNetworkScoreService.java105 private ScoringServiceConnection mServiceConnection; field in NetworkScoreService
415 if (mServiceConnection != null in bindToScoringServiceIfNeeded()
416 && !mServiceConnection.getAppData().equals(appData)) { in bindToScoringServiceIfNeeded()
421 if (mServiceConnection == null) { in bindToScoringServiceIfNeeded()
422 mServiceConnection = mServiceConnProducer.apply(appData); in bindToScoringServiceIfNeeded()
426 mServiceConnection.bind(mContext); in bindToScoringServiceIfNeeded()
436 if (mServiceConnection != null) { in unbindFromScoringServiceIfNeeded()
437 mServiceConnection.unbind(mContext); in unbindFromScoringServiceIfNeeded()
439 + mServiceConnection.getAppData().getRecommendationServiceComponent()); in unbindFromScoringServiceIfNeeded()
441 mServiceConnection = null; in unbindFromScoringServiceIfNeeded()
[all …]
/frameworks/base/services/autofill/java/com/android/server/autofill/
DFieldClassificationStrategy.java70 private ServiceConnection mServiceConnection; field in FieldClassificationStrategy
122 if (mServiceConnection != null) { in reset()
124 mContext.unbindService(mServiceConnection); in reset()
125 mServiceConnection = null; in reset()
153 if (mServiceConnection != null) return; in connectAndRun()
159 mServiceConnection = new ServiceConnection() { in connectAndRun()
216 mContext.bindServiceAsUser(intent, mServiceConnection, Context.BIND_AUTO_CREATE, in connectAndRun()
/frameworks/base/core/tests/coretests/BinderProxyCountingTestApp/src/com/android/frameworks/coretests/binderproxycountingtestapp/
DBpcTestAppCmdService.java47 private static ServiceConnection mServiceConnection; field in BpcTestAppCmdService
140 mServiceConnection = new ServiceConnection() {
155 bindService(intent, mServiceConnection,
173 unbindService(mServiceConnection);
/frameworks/base/media/java/android/media/browse/
DMediaBrowser.java108 private MediaServiceConnection mServiceConnection; field in MediaBrowser
166 if (mServiceConnection != null) { in connect()
168 + " is " + mServiceConnection); in connect()
183 mServiceConnection = new MediaServiceConnection(); in connect()
187 bound = mContext.bindService(intent, mServiceConnection, in connect()
258 if (mServiceConnection != null) { in forceCloseConnection()
260 mContext.unbindService(mServiceConnection); in forceCloseConnection()
268 mServiceConnection = null; in forceCloseConnection()
730 Log.d(TAG, " mServiceConnection=" + mServiceConnection); in dump()
1029 + " this=" + this + " mServiceConnection=" + mServiceConnection); in onServiceDisconnected()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ims/
DImsServiceControllerStaticCompat.java45 private ServiceConnection mServiceConnection; field in ImsServiceControllerStaticCompat.ImsDeathRecipient
49 mServiceConnection = conn; in ImsDeathRecipient()
57 mServiceConnection.onBindingDied(mComponentName); in binderDied()
/frameworks/base/services/systemcaptions/java/com/android/server/systemcaptions/
DRemoteSystemCaptionsManagerService.java49 private final RemoteServiceConnection mServiceConnection = new RemoteServiceConnection(); field in RemoteSystemCaptionsManagerService
112 boolean willBind = mContext.bindServiceAsUser(mIntent, mServiceConnection, flags, in ensureBound()
134 mContext.unbindService(mServiceConnection); in ensureUnboundLocked()
/frameworks/base/tests/ServiceCrashTest/src/com/android/tests/servicecrashtest/
DMainActivity.java37 private ServiceConnection mServiceConnection = new ServiceConnection() { field in MainActivity
66 bindService(intent, mServiceConnection, Service.BIND_AUTO_CREATE); in onResume()
/frameworks/base/services/core/java/com/android/server/storage/
DCacheQuotaStrategy.java91 private ServiceConnection mServiceConnection; field in CacheQuotaStrategy
117 intent, mServiceConnection, Context.BIND_AUTO_CREATE, UserHandle.CURRENT); in recalculateQuotas()
123 if (mServiceConnection != null) { in createServiceConnection()
127 mServiceConnection = new ServiceConnection() { in createServiceConnection()
253 if (mServiceConnection != null) { in disconnectService()
254 mContext.unbindService(mServiceConnection); in disconnectService()
255 mServiceConnection = null; in disconnectService()
/frameworks/base/media/apex/java/android/media/
DMediaController2.java71 private final SessionServiceConnection mServiceConnection; field in MediaController2
125 mServiceConnection = null; in MediaController2()
128 mServiceConnection = new SessionServiceConnection(connectionHints); in MediaController2()
145 if (mServiceConnection != null) { in close()
147 mContext.unbindService(mServiceConnection); in close()
396 intent, mServiceConnection, Context.BIND_AUTO_CREATE); in requestConnectToService()
/frameworks/base/services/core/java/com/android/server/am/
DPersistentConnection.java118 private final ServiceConnection mServiceConnection = new ServiceConnection() { field in PersistentConnection
316 final boolean success = mContext.bindServiceAsUser(service, mServiceConnection, in bindInnerLocked()
366 mContext.unbindService(mServiceConnection); in unbindLocked()
486 return mServiceConnection; in getServiceConnectionForTest()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DNetworkRegistrationManager.java71 private NetworkServiceConnection mServiceConnection; field in NetworkRegistrationManager
258 mPhone.getContext().unbindService(mServiceConnection); in bindService()
269 mServiceConnection = new NetworkServiceConnection(); in bindService()
270 if (!mPhone.getContext().bindService(intent, mServiceConnection, in bindService()
/frameworks/base/tests/OneMedia/src/com/android/onemedia/
DPlayerController.java151 mContext.unbindService(mServiceConnection); in unbindFromService()
155 mContext.bindService(mServiceIntent, mServiceConnection, Context.BIND_AUTO_CREATE); in bindToService()
158 private ServiceConnection mServiceConnection = new ServiceConnection() { field in PlayerController
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DAccessNetworksManager.java85 private QualifiedNetworksServiceConnection mServiceConnection; field in AccessNetworksManager
263 mPhone.getContext().unbindService(mServiceConnection); in bindQualifiedNetworksService()
267 mServiceConnection = new QualifiedNetworksServiceConnection(); in bindQualifiedNetworksService()
272 mServiceConnection, in bindQualifiedNetworksService()
/frameworks/base/services/midi/java/com/android/server/midi/
DMidiService.java298 private ServiceConnection mServiceConnection; field in MidiService.Device
399 } else if (mServiceConnection == null && in addDeviceConnection()
403 mServiceConnection = new ServiceConnection() { in addDeviceConnection()
426 mServiceConnection = null; in addDeviceConnection()
442 if (!mContext.bindService(intent, mServiceConnection, in addDeviceConnection()
446 mServiceConnection = null; in addDeviceConnection()
459 if (mDeviceConnections.size() == 0 && mServiceConnection != null) { in removeDeviceConnection()
460 mContext.unbindService(mServiceConnection); in removeDeviceConnection()
461 mServiceConnection = null; in removeDeviceConnection()
516 sb.append(mServiceConnection); in toString()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkScoreServiceTest.java134 @Mock private NetworkScoreService.ScoringServiceConnection mServiceConnection; field in NetworkScoreServiceTest
160 when(mServiceConnection.getAppData()).thenReturn(NEW_SCORER); in setUp()
161 when(mServiceConnection.getRecommendationProvider()).thenReturn(mRecommendationProvider); in setUp()
167 networkScorerAppData -> mServiceConnection, mHandlerThread.getLooper()); in setUp()
224 verify(mServiceConnection).bind(mContext); in testOnUserUnlocked()
512 verify(mServiceConnection, never()).getAppData(); in testIsCallerActiveScorer_noBoundService()
537 verify(mServiceConnection, never()).getPackageName(); in testGetActiveScorerPackage_notActive()
547 verify(mServiceConnection).getPackageName(); in testGetActiveScorerPackage_active()
835 verify(mServiceConnection, never()).getAppData(); in testGetActiveScorer_notConnected_canRequestScores()
859 verify(mServiceConnection).getAppData(); in testGetActiveScorer_connected_canRequestScores()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DConnOnActivityStartTest.java102 private static ServiceConnection mServiceConnection; field in ConnOnActivityStartTest
131 mServiceConnection = new ServiceConnection() { in bindService()
148 mContext.bindService(intent, mServiceConnection, in bindService()
159 mContext.unbindService(mServiceConnection); in unbindService()
/frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/
DFakeApp.java65 ServiceConnection mServiceConnection = new ServiceConnection() { field in FakeApp
135 bindService(new Intent(this, FakeCoreService.class), mServiceConnection, in onCreate()
/frameworks/base/services/core/java/com/android/server/pm/
DInstantAppResolverConnection.java66 private final ServiceConnection mServiceConnection = new MyServiceConnection(); field in InstantAppResolverConnection
216 mContext.unbindService(mServiceConnection); in bind()
223 .bindServiceAsUser(mIntent, mServiceConnection, flags, UserHandle.SYSTEM); in bind()

12