Home
last modified time | relevance | path

Searched refs:serviceConnection (Results 1 – 11 of 11) 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/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/util/
DTargetPackageUtils.java54 public static void killTargetPackage(Context context, ServiceConnection serviceConnection) { in killTargetPackage() argument
55 unbindFromService(context, serviceConnection); in killTargetPackage()
74 final ServiceConnection serviceConnection = bindAndWaitForConnectedService(context, intent); in startTargetPackage() local
86 return serviceConnection; in startTargetPackage()
115 final ServiceConnection serviceConnection = new ServiceConnection() { in bindAndWaitForConnectedService() local
126 final boolean success = context.bindService(intent, serviceConnection, in bindAndWaitForConnectedService()
139 return serviceConnection; in bindAndWaitForConnectedService()
142 public static void unbindFromService(Context context, ServiceConnection serviceConnection) { in unbindFromService() argument
143 if (serviceConnection != null) { in unbindFromService()
144 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/keystore/java/android/security/
DKeyChain.java767 private final ServiceConnection serviceConnection; field in KeyChain.KeyChainConnection
770 ServiceConnection serviceConnection, in KeyChainConnection() argument
773 this.serviceConnection = serviceConnection; in KeyChainConnection()
777 context.unbindService(serviceConnection); in close()
/frameworks/base/services/core/java/com/android/server/telecom/
DTelecomLoaderService.java150 TelecomServiceConnection serviceConnection = new TelecomServiceConnection(); in connectToTelecom() local
157 if (mContext.bindServiceAsUser(intent, serviceConnection, flags, UserHandle.SYSTEM)) { in connectToTelecom()
158 mServiceConnection = serviceConnection; in connectToTelecom()
/frameworks/base/core/java/android/accessibilityservice/
DAccessibilityButtonController.java60 AccessibilityButtonController(@NonNull IAccessibilityServiceConnection serviceConnection) { in AccessibilityButtonController() argument
61 mServiceConnection = serviceConnection; in AccessibilityButtonController()
/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/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DOsuServerConnection.java544 HttpsServiceConnection serviceConnection; in getServiceConnection() local
548 serviceConnection = (HttpsServiceConnection) mHttpsTransport.getServiceConnection(); in getServiceConnection()
549 if (serviceConnection != null) { in getServiceConnection()
550 serviceConnection.setSSLSocketFactory(mSocketFactory); in getServiceConnection()
556 return serviceConnection; in getServiceConnection()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityManagerService.java4074 public void addServiceLocked(AccessibilityServiceConnection serviceConnection) { in addServiceLocked() argument
4075 if (!mBoundServices.contains(serviceConnection)) { in addServiceLocked()
4076 serviceConnection.onAdded(); in addServiceLocked()
4077 mBoundServices.add(serviceConnection); in addServiceLocked()
4078 mComponentNameToServiceMap.put(serviceConnection.mComponentName, serviceConnection); in addServiceLocked()
4090 public void removeServiceLocked(AccessibilityServiceConnection serviceConnection) { in removeServiceLocked() argument
4091 mBoundServices.remove(serviceConnection); in removeServiceLocked()
4092 serviceConnection.onRemoved(); in removeServiceLocked()
4095 serviceConnection.getServiceInfo().getComponentName()))) { in removeServiceLocked()
4116 public void serviceDisconnectedLocked(AccessibilityServiceConnection serviceConnection) { in serviceDisconnectedLocked() argument
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DManagedServices.java1144 ServiceConnection serviceConnection = new ServiceConnection() { in registerServiceLocked() local
1201 serviceConnection, in registerServiceLocked()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt61435 Landroid/security/KeyChain$KeyChainConnection;->serviceConnection:Landroid/content/ServiceConnectio…