Home
last modified time | relevance | path

Searched refs:startScan (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DScanRequestProxyTest.java104 doNothing().when(mWifiScanner).startScan( in setUp()
163 assertFalse(mScanRequestProxy.startScan(TEST_UID, TEST_PACKAGE_NAME_1)); in testStartScanFailWithoutScanner()
172 assertTrue(mScanRequestProxy.startScan(TEST_UID, TEST_PACKAGE_NAME_1)); in testStartScanSuccess()
174 mInOrder.verify(mWifiScanner).startScan(any(), any(), any()); in testStartScanSuccess()
189 assertTrue(mScanRequestProxy.startScan(TEST_UID, TEST_PACKAGE_NAME_1)); in testStartScanSuccessFromAppWithNetworkSettings()
191 mInOrder.verify(mWifiScanner).startScan(any(), any(), any()); in testStartScanSuccessFromAppWithNetworkSettings()
204 assertTrue(mScanRequestProxy.startScan(TEST_UID, TEST_PACKAGE_NAME_1)); in testStartScanSuccessFromAppWithNetworkSetupWizard()
206 mInOrder.verify(mWifiScanner).startScan(any(), any(), any()); in testStartScanSuccessFromAppWithNetworkSetupWizard()
223 assertTrue(mScanRequestProxy.startScan(TEST_UID, TEST_PACKAGE_NAME_1)); in testStartScanWithHiddenNetworkScanningDisabled()
225 mInOrder.verify(mWifiScanner).startScan(any(), any(), any()); in testStartScanWithHiddenNetworkScanningDisabled()
[all …]
DWifiConnectivityManagerTest.java228 }}).when(scanner).startScan(anyObject(), anyObject(), anyObject()); in mockWifiScanner()
1048 verify(mWifiScanner, times(1)).startScan(anyObject(), anyObject(), anyObject()); in checkMinimumPeriodicScanIntervalWhenScreenOnAndConnected()
1095 verify(mWifiScanner, times(1)).startScan(anyObject(), anyObject(), anyObject()); in scanImmediatelyWhenScreenOnAndDisconnected()
1107 verify(mWifiScanner, times(2)).startScan(anyObject(), anyObject(), anyObject()); in scanImmediatelyWhenScreenOnAndDisconnected()
1185 }}).when(mWifiScanner).startScan(anyObject(), anyObject(), anyObject()); in checkSingleScanSettingsWhenConnectedWithLowDataRate()
1194 verify(mWifiScanner).startScan(anyObject(), anyObject(), anyObject()); in checkSingleScanSettingsWhenConnectedWithLowDataRate()
1229 }}).when(mWifiScanner).startScan(anyObject(), anyObject(), anyObject()); in checkPartialScanRequestedWithHighDataRateWithoutFwRoaming()
1238 verify(mWifiScanner).startScan(anyObject(), anyObject(), anyObject()); in checkPartialScanRequestedWithHighDataRateWithoutFwRoaming()
1277 verify(mWifiScanner, never()).startScan(anyObject(), anyObject(), anyObject()); in checkPartialScanSkippedWithHighDataRateWithFwRoaming()
1311 }}).when(mWifiScanner).startScan(anyObject(), anyObject(), anyObject()); in checkSingleScanSettingsWhenConnectedWithHighDataRateNotInCache()
[all …]
DWifiNetworkFactoryTest.java512 verify(mWifiScanner).startScan(mScanSettingsArgumentCaptor.capture(), any(), in testHandleNetworkRequestWithSpecifier()
547 verify(mWifiScanner).startScan(mScanSettingsArgumentCaptor.capture(), any(), in testHandleNetworkRequestWithSpecifierForHiddenNetwork()
567 verify(mWifiScanner, times(1)).startScan(mScanSettingsArgumentCaptor.capture(), any(), in testHandleNetworkRequestWithSpecifierAfterPreviousHiddenNetworkRequest()
579 verify(mWifiScanner, times(2)).startScan(mScanSettingsArgumentCaptor.capture(), any(), in testHandleNetworkRequestWithSpecifierAfterPreviousHiddenNetworkRequest()
599 verify(mWifiScanner).startScan(any(), any(), any()); in testHandleNetworkReleaseWithSpecifier()
1601 verify(mWifiScanner, times(2)).startScan(any(), any(), any()); in testHandleNewNetworkRequestWithSpecifierWhenScanning()
1642 verify(mWifiScanner, times(2)).startScan(any(), any(), any()); in testHandleNewNetworkRequestWithSpecifierAfterMatch()
1676 verify(mWifiScanner, times(2)).startScan(any(), any(), any()); in testHandleNewNetworkRequestWithSpecifierAfterConnect()
1715 verify(mWifiScanner, times(2)).startScan(any(), any(), any()); in testHandleNewNetworkRequestWithSpecifierAfterConnectionSuccess()
1859 mInOrder.verify(mWifiScanner).startScan(any(), any(), any()); in testNetworkSpecifierHandleScreenStateChangedWhileScanning()
[all …]
DWifiServiceImplTest.java401 when(mScanRequestProxy.startScan(anyInt(), anyString())).thenReturn(true); in setUp()
1130 assertFalse(mWifiServiceImpl.startScan(SCAN_PACKAGE_NAME)); in testStartScanFailureAppOpsIgnored()
1131 verify(mScanRequestProxy, never()).startScan(Process.myUid(), SCAN_PACKAGE_NAME); in testStartScanFailureAppOpsIgnored()
1142 assertFalse(mWifiServiceImpl.startScan(SCAN_PACKAGE_NAME)); in testStartScanFailureInCanAccessScanResultsPermission()
1143 verify(mScanRequestProxy, never()).startScan(Process.myUid(), SCAN_PACKAGE_NAME); in testStartScanFailureInCanAccessScanResultsPermission()
1154 assertFalse(mWifiServiceImpl.startScan(SCAN_PACKAGE_NAME)); in testStartScanFailureInRunWithScissors()
1155 verify(mScanRequestProxy, never()).startScan(Process.myUid(), SCAN_PACKAGE_NAME); in testStartScanFailureInRunWithScissors()
1164 when(mScanRequestProxy.startScan(anyInt(), anyString())).thenReturn(false); in testStartScanFailureFromScanRequestProxy()
1165 assertFalse(mWifiServiceImpl.startScan(SCAN_PACKAGE_NAME)); in testStartScanFailureFromScanRequestProxy()
1166 verify(mScanRequestProxy).startScan(Process.myUid(), SCAN_PACKAGE_NAME); in testStartScanFailureFromScanRequestProxy()
[all …]
/frameworks/base/core/java/android/bluetooth/le/
DBluetoothLeScanner.java115 public void startScan(final ScanCallback callback) { in startScan() method in BluetoothLeScanner
116 startScan(null, new ScanSettings.Builder().build(), callback); in startScan()
136 public void startScan(List<ScanFilter> filters, ScanSettings settings, in startScan() method in BluetoothLeScanner
138 startScan(filters, settings, null, callback, /*callbackIntent=*/ null, null); in startScan()
164 public int startScan(@Nullable List<ScanFilter> filters, @Nullable ScanSettings settings, in startScan() method in BluetoothLeScanner
166 return startScan(filters, in startScan()
203 startScan(filters, settings, workSource, callback, null, null); in startScanFromSource()
206 private int startScan(List<ScanFilter> filters, ScanSettings settings, in startScan() method in BluetoothLeScanner
334 startScan(scanFilters, settings, null, callback, null, scanStorages); in startTruncatedScan()
450 mBluetoothGatt.startScan(mScannerId, mSettings, mFilters, in onScannerRegistered()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DBluetoothMediaManagerTest.java102 mMediaManager.startScan(); in startScan_haveA2dpProfileDeviceIsPreferredAndBonded_shouldAddDevice()
119 mMediaManager.startScan(); in startScan_haveA2dpProfileDeviceIsPreferredAndBondNone_shouldNotAddDevice()
130 mMediaManager.startScan(); in startScan_noA2dpProfileBluetoothDevice_shouldNotAddDevice()
147 mMediaManager.startScan(); in startScan_haveHapProfileDeviceIsPreferredAndBonded_shouldAddDevice()
158 mMediaManager.startScan(); in startScan_noHapProfileBluetoothDevice_shouldNotAddDevice()
172 mMediaManager.startScan(); in starScan_a2dpAndHapProfileNotReady_shouldRegisterCallback()
187 mMediaManager.startScan(); in starScan_a2dpAndHapProfileReady_shouldNotRegisterCallback()
202 mMediaManager.startScan(); in onServiceConnected_a2dpAndHapProfileNotReady_doNothing()
218 mMediaManager.startScan(); in onDeviceAttributesChanged_a2dpAndHapProfileReady_shouldUnregisterCallback()
DMediaManagerTest.java57 public void startScan() { in setUp()
DInfoMediaManagerTest.java71 mInfoMediaManager.startScan(); in startScan_shouldAddCallback()
DLocalMediaManagerTest.java92 mLocalMediaManager.startScan(); in startScan_mediaDevicesListShouldBeClear()
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiScannerTest.java255 mWifiScanner.startScan(scanSettings, scanListener); in testStartScan()
283 mWifiScanner.startScan(scanSettings, scanListener); in testStopScan()
311 mWifiScanner.startScan(scanSettings, scanListener); in testStartScanListenerOnSuccess()
341 mWifiScanner.startScan(scanSettings, scanListener); in testStartScanListenerOnResults()
DWifiManagerTest.java1115 when(mWifiService.startScan(TEST_PACKAGE_NAME)).thenReturn(true); in testStartScan()
1116 assertTrue(mWifiManager.startScan()); in testStartScan()
1118 when(mWifiService.startScan(TEST_PACKAGE_NAME)).thenReturn(false); in testStartScan()
1119 assertFalse(mWifiManager.startScan()); in testStartScan()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DLocalMediaManager.java156 public void startScan() { in startScan() method in LocalMediaManager
159 mBluetoothMediaManager.startScan(); in startScan()
DInfoMediaManager.java54 public void startScan() { in startScan() method in InfoMediaManager
DMediaManager.java63 public abstract void startScan(); in startScan() method in MediaManager
DBluetoothMediaManager.java67 public void startScan() { in startScan() method in BluetoothMediaManager
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiNetworkFactory.java279 startScan(); in onAlarm()
883 startScan(); in handleScreenStateChanged()
1031 startScan(); in startPeriodicScans()
1054 private void startScan() { in startScan() method in WifiNetworkFactory
1064 mWifiScanner.startScan(mScanSettings, mScanListener, workSource); in startScan()
DScanRequestProxy.java455 public boolean startScan(int callingUid, String packageName) { in startScan() method in ScanRequestProxy
493 mWifiScanner.startScan(settings, new ScanRequestProxyScanListener(), workSource); in startScan()
/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/
DDeviceDiscoveryService.java195 mBLEScanner.startScan(mBLEScanFilters, mDefaultScanSettings, mBLEScanCallback); in startDiscovery()
202 mWifiManager.startScan(); in startDiscovery()
/frameworks/base/wifi/java/android/net/wifi/
DIWifiManager.aidl94 boolean startScan(String packageName); in startScan() method
DWifiScanner.java870 public void startScan(ScanSettings settings, ScanListener listener) { in startScan() method in WifiScanner
871 startScan(settings, listener, null); in startScan()
884 public void startScan(ScanSettings settings, ScanListener listener, WorkSource workSource) { in startScan() method in WifiScanner
DWifiManager.java2269 public boolean startScan() {
2270 return startScan(null);
2276 public boolean startScan(WorkSource workSource) {
2279 return mService.startScan(packageName);
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/stress/
DWifiStressTest.java159 assertTrue("start scan failed", mWifiManager.startScan()); in testWifiScanning()
/frameworks/base/wifi/java/com/android/server/wifi/
DBaseWifiService.java167 public boolean startScan(String packageName) { in startScan() method in BaseWifiService
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothStressTest.java110 mTestUtils.startScan(mAdapter); in testScan()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/
DKeyboardUI.java337 scanner.startScan(Arrays.asList(filter), settings, mScanCallback); in startScanning()

12