Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAbstractAccessibilityServiceConnectionTest.java144 private AbstractAccessibilityServiceConnection mServiceConnection; field in AbstractAccessibilityServiceConnectionTest
226 mServiceConnection = new TestAccessibilityServiceConnection(mMockContext, COMPONENT_NAME, in setup()
231 mServiceConnection.mService = mMockService; in setup()
232 mServiceConnection.mServiceInterface = mMockServiceInterface; in setup()
235 when(mMockSecurityPolicy.checkAccessibilityAccess(mServiceConnection)).thenReturn(true); in setup()
236 when(mMockSecurityPolicy.canRetrieveWindowsLocked(mServiceConnection)).thenReturn(true); in setup()
238 eq(USER_ID), eq(mServiceConnection), anyInt())).thenReturn(true); in setup()
239 when(mMockSecurityPolicy.canControlMagnification(mServiceConnection)).thenReturn(true); in setup()
247 assertThat(mServiceConnection.getCapabilities(), is(A11Y_SERVICE_CAPABILITY)); in getCapabilities()
255 mServiceConnection.onKeyEvent(mockKeyEvent, sequenceNumber); in onKeyEvent()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DOsuServerConnection.java80 private HttpsServiceConnection mServiceConnection = null; field in OsuServerConnection
339 if (mServiceConnection != null) { in performSoapMessageExchange()
340 mServiceConnection.disconnect(); in performSoapMessageExchange()
343 mServiceConnection = getServiceConnection(mUrl, mNetwork); in performSoapMessageExchange()
344 if (mServiceConnection == null) { in performSoapMessageExchange()
396 mServiceConnection.disconnect(); in performSoapMessageExchange()
397 mServiceConnection = null; in performSoapMessageExchange()
478 if (mServiceConnection != null) { in getCert()
479 mServiceConnection.disconnect(); in getCert()
481 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.java115 private TelecomServiceConnection mServiceConnection; field in TelecomLoaderService
138 if (mServiceConnection != null) { in connectToTelecom()
140 mContext.unbindService(mServiceConnection); in connectToTelecom()
141 mServiceConnection = null; in connectToTelecom()
152 mServiceConnection = serviceConnection; in connectToTelecom()
165 if (mServiceConnection == null) { in registerDefaultAppProviders()
180 if (mServiceConnection == null) { in registerDefaultAppProviders()
194 if (mServiceConnection == null) { in registerDefaultAppProviders()
/frameworks/base/core/tests/coretests/src/android/content/
DAbstractCrossUserContentResolverTest.java56 private CrossUserContentServiceConnection mServiceConnection; field in AbstractCrossUserContentResolverTest
69 mServiceConnection = new CrossUserContentServiceConnection(connectionLatch); in setUp()
72 mServiceConnection, in setUp()
111 if (mServiceConnection != null) { in tearDown()
112 mContext.unbindService(mServiceConnection); in tearDown()
139 mServiceConnection.getService().updateContent(uriToUpdate, "New Text", 42); in testRegisterContentObserver()
156 mServiceConnection.getService().notifyForUriAsUser(notifyUri, UserHandle.myUserId()); in testNotifyChange()
/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/telephony/java/android/telephony/
DMbmsGroupCallSession.java83 private ServiceConnection mServiceConnection; field in MbmsGroupCallSession
167 if (groupCallService == null || mServiceConnection == null) { in close()
176 mContext.unbindService(mServiceConnection); in close()
182 mServiceConnection = null; in close()
250 mServiceConnection = new ServiceConnection() { in bindAndInitialize()
313 return MbmsUtils.startBinding(mContext, MBMS_GROUP_CALL_SERVICE_ACTION, mServiceConnection); in bindAndInitialize()
DMbmsStreamingSession.java85 private ServiceConnection mServiceConnection; field in MbmsStreamingSession
172 if (streamingService == null || mServiceConnection == null) { in close()
181 mContext.unbindService(mServiceConnection); in close()
187 mServiceConnection = null; in close()
292 mServiceConnection = new ServiceConnection() { in bindAndInitialize()
354 return MbmsUtils.startBinding(mContext, MBMS_STREAMING_SERVICE_ACTION, mServiceConnection); in bindAndInitialize()
/frameworks/base/services/core/java/com/android/server/
DNetworkScoreService.java101 private ScoringServiceConnection mServiceConnection; field in NetworkScoreService
408 if (mServiceConnection != null in bindToScoringServiceIfNeeded()
409 && !mServiceConnection.getAppData().equals(appData)) { in bindToScoringServiceIfNeeded()
414 if (mServiceConnection == null) { in bindToScoringServiceIfNeeded()
415 mServiceConnection = mServiceConnProducer.apply(appData); in bindToScoringServiceIfNeeded()
419 mServiceConnection.bind(mContext); in bindToScoringServiceIfNeeded()
429 if (mServiceConnection != null) { in unbindFromScoringServiceIfNeeded()
430 mServiceConnection.unbind(mContext); in unbindFromScoringServiceIfNeeded()
432 + mServiceConnection.getAppData().getRecommendationServiceComponent()); in unbindFromScoringServiceIfNeeded()
434 mServiceConnection = null; in unbindFromScoringServiceIfNeeded()
[all …]
/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/services/autofill/java/com/android/server/autofill/
DFieldClassificationStrategy.java70 private ServiceConnection mServiceConnection; field in FieldClassificationStrategy
122 if (mServiceConnection != null) { in reset()
125 mContext.unbindService(mServiceConnection); in reset()
130 mServiceConnection = null; in reset()
158 if (mServiceConnection != null) return; in connectAndRun()
164 mServiceConnection = new ServiceConnection() { in connectAndRun()
221 mContext.bindServiceAsUser(intent, mServiceConnection, Context.BIND_AUTO_CREATE, in connectAndRun()
/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/
DNetworkRegistrationManager.java73 private NetworkServiceConnection mServiceConnection; field in NetworkRegistrationManager
254 if (mServiceConnection != null) { in unbindService()
255 mPhone.getContext().unbindService(mServiceConnection); in unbindService()
258 mServiceConnection = null; in unbindService()
288 mServiceConnection = new NetworkServiceConnection(); in bindService()
289 if (!mPhone.getContext().bindService(intent, mServiceConnection, in bindService()
/frameworks/base/services/systemcaptions/java/com/android/server/systemcaptions/
DRemoteSystemCaptionsManagerService.java53 private final RemoteServiceConnection mServiceConnection = new RemoteServiceConnection(); field in RemoteSystemCaptionsManagerService
135 boolean willBind = mContext.bindServiceAsUser(mIntent, mServiceConnection, flags, in handleEnsureBound()
157 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.java92 private ServiceConnection mServiceConnection; field in CacheQuotaStrategy
118 intent, mServiceConnection, Context.BIND_AUTO_CREATE, UserHandle.CURRENT); in recalculateQuotas()
124 if (mServiceConnection != null) { in createServiceConnection()
128 mServiceConnection = new ServiceConnection() { in createServiceConnection()
254 if (mServiceConnection != null) { in disconnectService()
255 mContext.unbindService(mServiceConnection); in disconnectService()
256 mServiceConnection = null; in disconnectService()
DStorageUserConnection.java229 @GuardedBy("mLock") @Nullable private ServiceConnection mServiceConnection; field in StorageUserConnection.ActiveConnection
253 oldConnection = mServiceConnection; in close()
254 mServiceConnection = null; in close()
378 mServiceConnection = new ServiceConnection() { in bind()
435 mServiceConnection, in bind()
448 mServiceConnection, in bind()
/frameworks/base/apex/media/framework/java/android/media/
DMediaController2.java71 private final SessionServiceConnection mServiceConnection; field in MediaController2
125 mServiceConnection = null; in MediaController2()
128 mServiceConnection = new SessionServiceConnection(connectionHints); in MediaController2()
148 if (mServiceConnection != null) { in close()
150 mContext.unbindService(mServiceConnection); in close()
399 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/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/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.java135 @Mock private NetworkScoreService.ScoringServiceConnection mServiceConnection; field in NetworkScoreServiceTest
162 when(mServiceConnection.getAppData()).thenReturn(NEW_SCORER); in setUp()
163 when(mServiceConnection.getRecommendationProvider()).thenReturn(mRecommendationProvider); in setUp()
170 networkScorerAppData -> mServiceConnection, mHandlerThread.getLooper()); in setUp()
227 verify(mServiceConnection).bind(mContext); in testOnUserUnlocked()
515 verify(mServiceConnection, never()).getAppData(); in testIsCallerActiveScorer_noBoundService()
540 verify(mServiceConnection, never()).getPackageName(); in testGetActiveScorerPackage_notActive()
550 verify(mServiceConnection).getPackageName(); in testGetActiveScorerPackage_active()
838 verify(mServiceConnection, never()).getAppData(); in testGetActiveScorer_notConnected_canRequestScores()
862 verify(mServiceConnection).getAppData(); in testGetActiveScorer_connected_canRequestScores()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DConnOnActivityStartTest.java95 private static ServiceConnection mServiceConnection; field in ConnOnActivityStartTest
119 mServiceConnection = new ServiceConnection() { in bindService()
136 mContext.bindService(intent, mServiceConnection, in bindService()
147 mContext.unbindService(mServiceConnection); in unbindService()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DAccessNetworksManager.java86 private QualifiedNetworksServiceConnection mServiceConnection; field in AccessNetworksManager
280 mPhone.getContext().unbindService(mServiceConnection); in bindQualifiedNetworksService()
284 mServiceConnection = new QualifiedNetworksServiceConnection(); in bindQualifiedNetworksService()
286 if (!mPhone.getContext().bindService(intent, mServiceConnection, in bindQualifiedNetworksService()

12