Home
last modified time | relevance | path

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

/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/tests/
DServiceBindPerfTest.java59 private void bindService(Intent intent, ServiceConnection serviceConnection, int flags) {
60 final boolean success = mContext.bindService(intent, serviceConnection, flags);
72 final ServiceConnection serviceConnection = createServiceConnectionReportTime();
75 bindService(intent, serviceConnection, Context.BIND_AUTO_CREATE);
80 TargetPackageUtils.unbindFromService(mContext, serviceConnection);
94 final ServiceConnection serviceConnection = createServiceConnectionReportTime();
97 bindService(intent, serviceConnection, Context.BIND_AUTO_CREATE);
102 TargetPackageUtils.unbindFromService(mContext, serviceConnection);
121 final ServiceConnection serviceConnection = createServiceConnectionReportTime();
125 bindService(intent, serviceConnection, Context.BIND_AUTO_CREATE);
[all …]
/frameworks/base/services/core/java/com/android/server/locksettings/
DRebootEscrowProviderServerBasedImpl.java65 Injector(ResumeOnRebootServiceConnection serviceConnection) { in Injector() argument
66 mServiceConnection = serviceConnection; in Injector()
109 ResumeOnRebootServiceConnection serviceConnection = mInjector.getServiceConnection(); in unwrapServerBlob() local
110 if (serviceConnection == null) { in unwrapServerBlob()
125 serviceConnection.bindToService(mInjector.getServiceTimeoutInSeconds()); in unwrapServerBlob()
126 byte[] escrowKeyBytes = serviceConnection.unwrap(decryptedBlob, in unwrapServerBlob()
128 serviceConnection.unbindService(); in unwrapServerBlob()
176 ResumeOnRebootServiceConnection serviceConnection = mInjector.getServiceConnection(); in wrapEscrowKey() local
177 if (serviceConnection == null) { in wrapEscrowKey()
183 serviceConnection.bindToService(mInjector.getServiceTimeoutInSeconds()); in wrapEscrowKey()
[all …]
/frameworks/base/services/core/java/com/android/server/servicewatcher/
DServiceWatcherImpl.java125 MyServiceConnection serviceConnection = mServiceConnection; in runOnBinder() local
126 mHandler.post(() -> serviceConnection.runOnBinder(operation)); in runOnBinder()
152 MyServiceConnection serviceConnection; in toString() local
154 serviceConnection = mServiceConnection; in toString()
157 return serviceConnection.getBoundServiceInfo().toString(); in toString()
162 MyServiceConnection serviceConnection; in dump() local
164 serviceConnection = mServiceConnection; in dump()
167 pw.println("target service=" + serviceConnection.getBoundServiceInfo()); in dump()
168 pw.println("connected=" + serviceConnection.isConnected()); in dump()
/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/util/
DTargetPackageUtils.java67 public static void killTargetPackage(Context context, ServiceConnection serviceConnection) { in killTargetPackage() argument
68 unbindFromService(context, serviceConnection); in killTargetPackage()
87 final ServiceConnection serviceConnection = bindAndWaitForConnectedService(context, intent); in startTargetPackage() local
99 return serviceConnection; in startTargetPackage()
128 final ServiceConnection serviceConnection = new ServiceConnection() { in bindAndWaitForConnectedService() local
139 final boolean success = context.bindService(intent, serviceConnection, in bindAndWaitForConnectedService()
152 return serviceConnection; in bindAndWaitForConnectedService()
155 public static void unbindFromService(Context context, ServiceConnection serviceConnection) { in unbindFromService() argument
156 if (serviceConnection != null) { in unbindFromService()
157 context.unbindService(serviceConnection); in unbindFromService()
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/shadows/
DShadowCar.java52 public static Car createCar(Context context, ServiceConnection serviceConnection) { in createCar() argument
53 if (serviceConnection != null) { in createCar()
57 serviceConnection.onServiceConnected(null, null); in createCar()
66 serviceConnection.onServiceDisconnected(null); in createCar()
/frameworks/base/services/core/java/com/android/server/pm/
DDataLoaderManagerService.java148 DataLoaderServiceConnection serviceConnection = mServiceConnections.get( in getDataLoader() local
150 if (serviceConnection == null) { in getDataLoader()
153 return serviceConnection.getDataLoader(); in getDataLoader()
164 DataLoaderServiceConnection serviceConnection = mServiceConnections.get( in unbindFromDataLoader() local
166 if (serviceConnection == null) { in unbindFromDataLoader()
169 serviceConnection.destroy(); in unbindFromDataLoader()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityUserState.java220 void addServiceLocked(AccessibilityServiceConnection serviceConnection) { in addServiceLocked() argument
221 if (!mBoundServices.contains(serviceConnection)) { in addServiceLocked()
222 serviceConnection.onAdded(); in addServiceLocked()
223 mBoundServices.add(serviceConnection); in addServiceLocked()
224 mComponentNameToServiceMap.put(serviceConnection.getComponentName(), serviceConnection); in addServiceLocked() local
236 void removeServiceLocked(AccessibilityServiceConnection serviceConnection) { in removeServiceLocked() argument
237 mBoundServices.remove(serviceConnection); in removeServiceLocked()
238 serviceConnection.onRemoved(); in removeServiceLocked()
241 serviceConnection.getServiceInfo().getComponentName()))) { in removeServiceLocked()
263 void serviceDisconnectedLocked(AccessibilityServiceConnection serviceConnection) { in serviceDisconnectedLocked() argument
[all …]
DAccessibilityManagerService.java3288 final AccessibilityServiceConnection serviceConnection = in performAccessibilityShortcutTargetService() local
3297 if (serviceConnection == null) { in performAccessibilityShortcutTargetService()
3317 if (serviceConnection == null in performAccessibilityShortcutTargetService()
3318 || !userState.mBoundServices.contains(serviceConnection) in performAccessibilityShortcutTargetService()
3319 || !serviceConnection.mRequestAccessibilityButton) { in performAccessibilityShortcutTargetService()
3327 serviceConnection.notifyAccessibilityButtonClickedLocked(displayId); in performAccessibilityShortcutTargetService()
/frameworks/base/services/tests/servicestests/src/com/android/server/dreams/
DDreamControllerTest.java97 final ServiceConnection serviceConnection = captureServiceConnection(); in startDream_attachOnServiceConnected() local
98 serviceConnection.onServiceConnected(mDreamName, mIBinder); in startDream_attachOnServiceConnected()
113 final ServiceConnection serviceConnection = captureServiceConnection(); in startDream_attachOnServiceConnectedInPreviewMode() local
114 serviceConnection.onServiceConnected(mDreamName, mIBinder); in startDream_attachOnServiceConnectedInPreviewMode()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/
DControlsProviderLifecycleManagerTest.kt126 lateinit var serviceConnection: ServiceConnection in testNullBinding() variable
130 serviceConnection = it.arguments[1] as ServiceConnection in testNullBinding()
131 serviceConnection.onNullBinding(component) in testNullBinding()
149 verify(mockContext).unbindService(serviceConnection) in testNullBinding()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/controller/
DControlsProviderLifecycleManager.kt106 .bindServiceAsUser(intent, serviceConnection, flags, user) in bindService()
108 context.unbindService(serviceConnection) in bindService()
120 context.unbindService(serviceConnection) in bindService()
127 private val serviceConnection = object : ServiceConnection { constant
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DMockModem.java131 String actionName, ServiceConnection serviceConnection) { in bindModuleToMockModemService() argument
132 return bindModuleToMockModemService(DEFAULT_PHONE_ID, actionName, serviceConnection); in bindModuleToMockModemService()
136 byte phoneId, String actionName, ServiceConnection serviceConnection) { in bindModuleToMockModemService() argument
144 status = mContext.bindService(intent, serviceConnection, Context.BIND_AUTO_CREATE); in bindModuleToMockModemService()
/frameworks/base/core/java/android/accessibilityservice/
DAccessibilityButtonController.java60 AccessibilityButtonController(@NonNull IAccessibilityServiceConnection serviceConnection) { in AccessibilityButtonController() argument
61 mServiceConnection = serviceConnection; in AccessibilityButtonController()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/service/
DPersistentConnectionManager.java92 @Named(SERVICE_CONNECTION) ObservableServiceConnection<T> serviceConnection, in PersistentConnectionManager() argument
99 mConnection = serviceConnection; in PersistentConnectionManager()
/frameworks/base/telephony/java/android/telephony/mbms/
DMbmsUtils.java118 ServiceConnection serviceConnection) { in startBinding() argument
129 context.bindService(bindIntent, serviceConnection, Context.BIND_AUTO_CREATE); in startBinding()
/frameworks/base/services/core/java/com/android/server/telecom/
DTelecomLoaderService.java152 TelecomServiceConnection serviceConnection = new TelecomServiceConnection(); in connectToTelecom() local
159 if (mContext.bindServiceAsUser(intent, serviceConnection, flags, UserHandle.SYSTEM)) { in connectToTelecom()
160 mServiceConnection = serviceConnection; in connectToTelecom()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/data/
DAccessNetworksManager.java206 QualifiedNetworksServiceConnection serviceConnection = mServiceConnection; in registerDataThrottler() local
208 if (serviceConnection != null) { in registerDataThrottler()
209 serviceConnection.registerDataThrottler(dataThrottler); in registerDataThrottler()
/frameworks/base/core/java/com/android/internal/infra/
DServiceConnector.java339 protected boolean bindService(@NonNull ServiceConnection serviceConnection) { in bindService() argument
344 mExecutor, serviceConnection); in bindService()
/frameworks/base/keystore/java/android/security/
DKeyChain.java973 ServiceConnection serviceConnection, in KeyChainConnection() argument
976 this.mServiceConnection = serviceConnection; in KeyChainConnection()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DRebootEscrowManagerTests.java159 ResumeOnRebootServiceConnection serviceConnection, in MockInjector() argument
164 mServiceConnection = serviceConnection; in MockInjector()
168 new RebootEscrowProviderServerBasedImpl.Injector(serviceConnection) { in MockInjector()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DHotwordDetectionConnection.java1165 @NonNull android.content.ServiceConnection serviceConnection) { in bindService()
1175 serviceConnection); in bindService()
/frameworks/base/services/core/java/com/android/server/notification/
DManagedServices.java1550 ServiceConnection serviceConnection = new ServiceConnection() { in registerServiceLocked() local
1604 serviceConnection, in registerServiceLocked()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt47523 Landroid/security/KeyChain$KeyChainConnection;->serviceConnection:Landroid/content/ServiceConnectio…