Home
last modified time | relevance | path

Searched refs:serviceConnection (Results 1 – 14 of 14) 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.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.java136 DataLoaderServiceConnection serviceConnection = mServiceConnections.get( in getDataLoader() local
138 if (serviceConnection == null) { in getDataLoader()
141 return serviceConnection.getDataLoader(); in getDataLoader()
152 DataLoaderServiceConnection serviceConnection = mServiceConnections.get( in unbindFromDataLoader() local
154 if (serviceConnection == null) { in unbindFromDataLoader()
157 serviceConnection.destroy(); in unbindFromDataLoader()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityUserState.java169 void addServiceLocked(AccessibilityServiceConnection serviceConnection) { in addServiceLocked() argument
170 if (!mBoundServices.contains(serviceConnection)) { in addServiceLocked()
171 serviceConnection.onAdded(); in addServiceLocked()
172 mBoundServices.add(serviceConnection); in addServiceLocked()
173 mComponentNameToServiceMap.put(serviceConnection.getComponentName(), serviceConnection); in addServiceLocked() local
185 void removeServiceLocked(AccessibilityServiceConnection serviceConnection) { in removeServiceLocked() argument
186 mBoundServices.remove(serviceConnection); in removeServiceLocked()
187 serviceConnection.onRemoved(); in removeServiceLocked()
190 serviceConnection.getServiceInfo().getComponentName()))) { in removeServiceLocked()
212 void serviceDisconnectedLocked(AccessibilityServiceConnection serviceConnection) { in serviceDisconnectedLocked() argument
[all …]
DAccessibilityManagerService.java2651 final AccessibilityServiceConnection serviceConnection = in performAccessibilityShortcutTargetService() local
2660 if (serviceConnection == null) { in performAccessibilityShortcutTargetService()
2680 if (serviceConnection == null in performAccessibilityShortcutTargetService()
2681 || !userState.mBoundServices.contains(serviceConnection) in performAccessibilityShortcutTargetService()
2682 || !serviceConnection.mRequestAccessibilityButton) { in performAccessibilityShortcutTargetService()
2690 serviceConnection.notifyAccessibilityButtonClickedLocked(displayId); in performAccessibilityShortcutTargetService()
/frameworks/base/core/java/android/accessibilityservice/
DAccessibilityButtonController.java60 AccessibilityButtonController(@NonNull IAccessibilityServiceConnection serviceConnection) { in AccessibilityButtonController() argument
61 mServiceConnection = serviceConnection; in AccessibilityButtonController()
/frameworks/base/services/core/java/com/android/server/telecom/
DTelecomLoaderService.java144 TelecomServiceConnection serviceConnection = new TelecomServiceConnection(); in connectToTelecom() local
151 if (mContext.bindServiceAsUser(intent, serviceConnection, flags, UserHandle.SYSTEM)) { in connectToTelecom()
152 mServiceConnection = serviceConnection; in connectToTelecom()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/controller/
DControlsProviderLifecycleManager.kt99 context.bindServiceAsUser(intent, serviceConnection, BIND_FLAGS, user) in bindService()
110 context.unbindService(serviceConnection) in bindService()
117 private val serviceConnection = object : ServiceConnection { constant
/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.java570 HttpsServiceConnection serviceConnection; in getServiceConnection() local
574 serviceConnection = (HttpsServiceConnection) mHttpsTransport.getServiceConnection(); in getServiceConnection()
575 if (serviceConnection != null) { in getServiceConnection()
576 serviceConnection.setSSLSocketFactory(mSocketFactory); in getServiceConnection()
582 return serviceConnection; in getServiceConnection()
/frameworks/base/keystore/java/android/security/
DKeyChain.java778 ServiceConnection serviceConnection, in KeyChainConnection() argument
781 this.mServiceConnection = serviceConnection; in KeyChainConnection()
/frameworks/base/core/java/com/android/internal/infra/
DServiceConnector.java300 @NonNull ServiceConnection serviceConnection, @NonNull Handler handler) { in bindService()
304 return mContext.bindServiceAsUser(mIntent, serviceConnection, in bindService()
/frameworks/base/services/core/java/com/android/server/notification/
DManagedServices.java1333 ServiceConnection serviceConnection = new ServiceConnection() { in registerServiceLocked() local
1390 serviceConnection, in registerServiceLocked()