Home
last modified time | relevance | path

Searched refs:serviceListener (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiScanner.java1315 ServiceListener serviceListener = new ServiceListener(listener, executor); in registerScanListener() local
1316 if (!addListener(listener, serviceListener)) { in registerScanListener()
1325 mService.registerScanListener(serviceListener, in registerScanListener()
1352 ServiceListener serviceListener = getServiceListener(listener); in unregisterScanListener() local
1353 if (serviceListener == null) { in unregisterScanListener()
1358 mService.unregisterScanListener(serviceListener, mContext.getOpPackageName(), in unregisterScanListener()
1417 ServiceListener serviceListener = new ServiceListener(listener, new SynchronousExecutor()); in startBackgroundScan()
1418 if (!addListener(listener, serviceListener)) { in startBackgroundScan()
1423 mService.startBackgroundScan(serviceListener, settings, workSource, in startBackgroundScan()
1442 ServiceListener serviceListener = getServiceListener(listener); in stopBackgroundScan() local
[all …]
/packages/services/Car/car-lib/src/android/car/drivingstate/
DCarUxRestrictionsManager.java132 CarUxRestrictionsChangeListenerToService serviceListener; in setListener() local
145 serviceListener = mListenerToService; in setListener()
150 mUxRService.registerUxRestrictionsChangeListener(serviceListener, displayId); in setListener()
160 CarUxRestrictionsChangeListenerToService serviceListener; in unregisterListener() local
169 serviceListener = mListenerToService; in unregisterListener()
172 if (serviceListener != null) { in unregisterListener()
173 mUxRService.unregisterUxRestrictionsChangeListener(serviceListener); in unregisterListener()
/packages/modules/Connectivity/framework-t/src/android/net/
DEthernetManager.java288 final IEthernetServiceListener.Stub serviceListener = new IEthernetServiceListener.Stub() { in addInterfaceStateListener() local
300 addServiceListener(serviceListener); in addInterfaceStateListener()
301 mIfaceServiceListeners.put(listener, serviceListener); in addInterfaceStateListener()
665 final IEthernetServiceListener.Stub serviceListener = new IEthernetServiceListener.Stub() { in addEthernetStateListener() local
676 addServiceListener(serviceListener); in addEthernetStateListener()
677 mStateServiceListeners.put(listener, serviceListener); in addEthernetStateListener()
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/
DMdnsDiscovery.java136 NsdServiceListener serviceListener = new NsdServiceListener() { in onStart() local
153 nsdManager.discoverServices(mServiceName, NsdManager.PROTOCOL_DNS_SD, serviceListener); in onStart()
154 mServiceListeners.add(serviceListener); in onStart()
/packages/services/Car/tests/CarLibUnitTest/src/android/car/media/
DCarMediaManagerUnitTest.java143 ICarMediaSourceListener serviceListener = serviceListenerCaptor.getValue(); in testOnMediaSourceChanged_forMediaSourceListener() local
145 serviceListener.onMediaSourceChanged(mComponentNameMock2); in testOnMediaSourceChanged_forMediaSourceListener()
/packages/modules/Bluetooth/android/pandora/server/src/
DUtils.kt308 val serviceListener = in getProfileProxy() constant
316 bluetoothAdapter.getProfileProxy(context, serviceListener, profile) in getProfileProxy()