/packages/modules/Wifi/service/java/com/android/server/wifi/scanner/ |
D | WifiScannerInternal.java | 46 private final WifiScanner.ScanListener mScanListener; field in WifiScannerInternal.ScanListener 55 mScanListener = scanListener; in ScanListener() 65 return mScanListener; in getWifiScannerListener() 70 mWifiThreadRunner.post(mScanListener::onSuccess, in onSuccess() 77 mScanListener.onFailure(reason, description); in onFailure() 84 mScanListener.onResults(scanDatas); in onResults() 91 mScanListener.onFullResult(fullScanResult); in onFullResult() 102 if (!(mScanListener instanceof WifiScanner.PnoScanListener)) { in onPnoNetworkFound() 107 (WifiScanner.PnoScanListener) mScanListener; in onPnoNetworkFound()
|
/packages/modules/Connectivity/nearby/tests/unit/src/com/android/server/nearby/ |
D | NearbyServiceTest.java | 62 private IScanListener mScanListener; field in NearbyServiceTest 71 when(mScanListener.asBinder()).thenReturn(mIBinder); in setUp() 88 mService.registerScanListener(mScanRequest, mScanListener, PACKAGE_NAME, in test_register() 98 () -> mService.registerScanListener(mScanRequest, mScanListener, PACKAGE_NAME, in test_register_noPrivilegedPermission_throwsException() 108 () -> mService.unregisterScanListener(mScanListener, PACKAGE_NAME, in test_unregister_noPrivilegedPermission_throwsException() 115 mService.registerScanListener(mScanRequest, mScanListener, PACKAGE_NAME, in test_unregister() 117 mService.unregisterScanListener(mScanListener, PACKAGE_NAME, /* attributionTag= */ null); in test_unregister()
|
/packages/modules/Connectivity/nearby/tests/unit/src/com/android/server/nearby/managers/ |
D | DiscoveryProviderManagerTest.java | 83 IScanListener mScanListener; field in DiscoveryProviderManagerTest 145 when(mScanListener.asBinder()).thenReturn(mIBinder); in setup() 186 mDiscoveryProviderManager.registerScanListener(scanRequest, mScanListener, mCallerIdentity); in testStartProviders_chreOnlyChreAvailable_bleProviderNotStarted() 201 mDiscoveryProviderManager.registerScanListener(scanRequest, mScanListener, mCallerIdentity); in testStartProviders_chreOnlyChreAvailable_multipleFilters_bleProviderNotStarted() 216 mDiscoveryProviderManager.registerScanListener(scanRequest, mScanListener, mCallerIdentity); in testStartProviders_chreOnlyChreUnavailable_bleProviderNotStarted() 231 mDiscoveryProviderManager.registerScanListener(scanRequest, mScanListener, mCallerIdentity); in testStartProviders_notChreOnlyChreAvailable_bleProviderNotStarted() 246 mDiscoveryProviderManager.registerScanListener(scanRequest, mScanListener, mCallerIdentity); in testStartProviders_notChreOnlyChreUnavailable_bleProviderStarted() 261 mDiscoveryProviderManager.registerScanListener(scanRequest, mScanListener, mCallerIdentity); in testStartProviders_chreOnlyChreUndetermined_bleProviderNotStarted() 276 mDiscoveryProviderManager.registerScanListener(scanRequest, mScanListener, mCallerIdentity); in testStartProviders_notChreOnlyChreUndetermined_bleProviderStarted() 296 manager.registerScanListener(scanRequest, mScanListener, mCallerIdentity); in test_stopChreProvider_clearFilters() [all …]
|
D | DiscoveryProviderManagerLegacyTest.java | 87 IScanListener mScanListener; field in DiscoveryProviderManagerLegacyTest 194 scanRequest, mScanListener, in testStartProviders_chreOnlyChreAvailable_bleProviderNotStarted() 213 scanRequest, mScanListener, in testStartProviders_chreOnlyChreAvailable_multipleFilters_bleProviderNotStarted() 231 scanRequest, mScanListener, in testStartProviders_chreOnlyChreUnavailable_bleProviderNotStarted() 249 scanRequest, mScanListener, in testStartProviders_notChreOnlyChreAvailable_bleProviderNotStarted() 267 scanRequest, mScanListener, in testStartProviders_notChreOnlyChreUnavailable_bleProviderStarted() 285 scanRequest, mScanListener, in testStartProviders_chreOnlyChreUndetermined_bleProviderNotStarted() 303 scanRequest, mScanListener, in testStartProviders_notChreOnlyChreUndetermined_bleProviderStarted() 329 scanRequest, mScanListener, in test_stopChreProvider_clearFilters() 365 new DiscoveryProviderManagerLegacy.ScanListenerRecord(scanRequest, mScanListener, in test_restartChreProvider()
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
D | WifiScannerTest.java | 79 private ScanListener mScanListener; field in WifiScannerTest 498 mWifiScanner.registerScanListener(mExecutor, mScanListener); in testRegisterScanListenerSuccess() 501 verify(mScanListener).onSuccess(); in testRegisterScanListenerSuccess() 515 mWifiScanner.registerScanListener(mExecutor, mScanListener); in testRegisterScanListenerFailed() 518 verify(mScanListener).onFailure(WifiScanner.REASON_NOT_AUTHORIZED, in testRegisterScanListenerFailed() 536 mWifiScanner.registerScanListener(mExecutor, mScanListener); in testRegisterScanListenerReceiveScanResults() 540 verify(mScanListener).onSuccess(); in testRegisterScanListenerReceiveScanResults() 552 verify(mScanListener).onResults(mScanData); in testRegisterScanListenerReceiveScanResults() 568 mWifiScanner.registerScanListener(mExecutor, mScanListener); in testUnregisterScanListener() 569 mWifiScanner.unregisterScanListener(mScanListener); in testUnregisterScanListener() [all …]
|
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/managers/ |
D | DiscoveryProviderManagerLegacy.java | 453 private final IScanListener mScanListener; field in DiscoveryProviderManagerLegacy.ScanListenerRecord 461 mScanListener = iScanListener; in ScanListenerRecord() 468 return mScanListener; in getScanListener() 488 && Objects.equals(mScanListener, otherScanListenerRecord.mScanListener); in equals() 495 return Objects.hash(mScanListener, mScanRequest); in hashCode()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WakeupController.java | 80 private final WifiScanner.ScanListener mScanListener = new WifiScanner.ScanListener() { field in WakeupController 298 new HandlerExecutor(mHandler), mScanListener); in start() 344 mWifiInjector.getWifiScanner().unregisterScanListener(mScanListener); in stop()
|
D | WifiNetworkFactory.java | 146 private final NetworkFactoryScanListener mScanListener; field in WifiNetworkFactory 594 mScanListener = new NetworkFactoryScanListener(); in WifiNetworkFactory() 1645 mScanSettings, new HandlerExecutor(mHandler), mScanListener, workSource); in startScan()
|