/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | AbstractAccessibilityServiceConnectionTest.java | 144 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/ |
D | OsuServerConnection.java | 80 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/ |
D | HttpsTransport.java | 34 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/ |
D | TelecomLoaderService.java | 115 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/ |
D | AbstractCrossUserContentResolverTest.java | 56 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/ |
D | AccessibilityButtonController.java | 56 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/ |
D | SuggestionController.java | 60 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/ |
D | MbmsGroupCallSession.java | 83 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()
|
D | MbmsStreamingSession.java | 85 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/ |
D | NetworkScoreService.java | 101 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/ |
D | BpcTestAppCmdService.java | 47 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/ |
D | FieldClassificationStrategy.java | 70 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/ |
D | MediaBrowser.java | 108 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/ |
D | NetworkRegistrationManager.java | 73 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/ |
D | RemoteSystemCaptionsManagerService.java | 53 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/ |
D | MainActivity.java | 37 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/ |
D | CacheQuotaStrategy.java | 92 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()
|
D | StorageUserConnection.java | 229 @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/ |
D | MediaController2.java | 71 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/ |
D | PersistentConnection.java | 118 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/ |
D | PlayerController.java | 151 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/ |
D | MidiService.java | 298 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/ |
D | NetworkScoreServiceTest.java | 135 @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/ |
D | ConnOnActivityStartTest.java | 95 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/ |
D | AccessNetworksManager.java | 86 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()
|