Home
last modified time | relevance | path

Searched refs:scan (Results 1 – 25 of 89) sorted by relevance

1234

/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_scan/
DAppScanStats.java177 LastScan scan = getScanFromScannerId(scannerId); in addResult() local
178 if (scan != null) { in addResult()
179 scan.results++; in addResult()
183 if (scan.results % 100 == 0) { in addResult()
205 LastScan scan = getScanFromScannerId(scannerId); in isScanTimeout() local
206 if (scan == null) { in isScanTimeout()
209 return scan.isTimeout; in isScanTimeout()
213 LastScan scan = getScanFromScannerId(scannerId); in isScanDowngraded() local
214 if (scan == null) { in isScanDowngraded()
217 return scan.isDowngraded; in isScanDowngraded()
[all …]
/packages/modules/Wifi/framework/tests/src/android/net/wifi/rtt/
DWifiRttManagerTest.java638 ScanResult scan = new ScanResult(); in testResponderPreambleSelection() local
639 scan.BSSID = "00:01:02:03:04:05"; in testResponderPreambleSelection()
640 scan.informationElements = null; in testResponderPreambleSelection()
641 scan.channelWidth = ResponderConfig.CHANNEL_WIDTH_80MHZ; in testResponderPreambleSelection()
643 ResponderConfig config = ResponderConfig.fromScanResult(scan); in testResponderPreambleSelection()
648 scan.channelWidth = ResponderConfig.CHANNEL_WIDTH_40MHZ; in testResponderPreambleSelection()
650 scan.informationElements = new ScanResult.InformationElement[2]; in testResponderPreambleSelection()
651 scan.informationElements[0] = htCap; in testResponderPreambleSelection()
652 scan.informationElements[1] = vhtCap; in testResponderPreambleSelection()
654 config = ResponderConfig.fromScanResult(scan); in testResponderPreambleSelection()
[all …]
/packages/modules/Bluetooth/android/pandora/test/pairing/
Dsmp_test.py100 scan = self.dut.aio.host.Scan(own_address_type=dut_address_type)
101 … ref = await anext((x async for x in scan if b'pause cafe' in x.data.manufacturer_specific_data))
102 scan.cancel()
186 scan = self.dut.aio.host.Scan(own_address_type=RANDOM)
187 … ref = await anext((x async for x in scan if b'pause cafe' in x.data.manufacturer_specific_data))
188 scan.cancel()
223 scan = self.dut.aio.host.Scan(own_address_type=RANDOM)
224 … ref = await anext((x async for x in scan if b'pause cafe' in x.data.manufacturer_specific_data))
225 scan.cancel()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DScanResultMatchInfoTest.java100 ScanDetail scan = createScanDetailForNetwork(conf, "AA:AA:AA:AA:AA:AA"); in testScanResultMatchesWifiConfiguration() local
102 ScanResultMatchInfo.fromScanResult(scan.getScanResult())); in testScanResultMatchesWifiConfiguration()
105 scan = createScanDetailForNetwork(conf, "AA:AA:AA:AA:AA:AA"); in testScanResultMatchesWifiConfiguration()
107 ScanResultMatchInfo.fromScanResult(scan.getScanResult())); in testScanResultMatchesWifiConfiguration()
110 scan = createScanDetailForNetwork(conf, "BB:BB:BB:BB:BB:BB"); in testScanResultMatchesWifiConfiguration()
112 ScanResultMatchInfo.fromScanResult(scan.getScanResult())); in testScanResultMatchesWifiConfiguration()
115 scan.getScanResult()))); in testScanResultMatchesWifiConfiguration()
118 scan = createScanDetailForNetwork(conf, "AA:AA:AA:AA:AA:AA"); in testScanResultMatchesWifiConfiguration()
120 ScanResultMatchInfo.fromScanResult(scan.getScanResult())); in testScanResultMatchesWifiConfiguration()
123 scan = createScanDetailForNetwork(conf, "BB:BB:BB:BB:BB:BB"); in testScanResultMatchesWifiConfiguration()
[all …]
DWifiMetricsTest.java3139 List<ScanDetail> scan = new ArrayList<ScanDetail>(); in testNumConnectableNetworksGeneration() local
3141 scan.add(buildMockScanDetail("PASSPOINT_1", "bssid0", false, false, true, false)); in testNumConnectableNetworksGeneration()
3142 scan.add(buildMockScanDetail("PASSPOINT_2", "bssid1", false, false, true, false)); in testNumConnectableNetworksGeneration()
3143 scan.add(buildMockScanDetail("SSID_B", "bssid2", true, true, false, false)); in testNumConnectableNetworksGeneration()
3144 scan.add(buildMockScanDetail("SSID_B", "bssid3", true, true, false, false)); in testNumConnectableNetworksGeneration()
3145 scan.add(buildMockScanDetail("SSID_C", "bssid4", true, false, false, false)); in testNumConnectableNetworksGeneration()
3146 scan.add(buildMockScanDetail("SSID_D", "bssid5", false, true, false, false)); in testNumConnectableNetworksGeneration()
3147 scan.add(buildMockScanDetail("SSID_E", "bssid6", false, true, false, false)); in testNumConnectableNetworksGeneration()
3148 scan.add(buildMockScanDetail("SSID_F", "bssid7", false, false, false, false)); in testNumConnectableNetworksGeneration()
3149 scan.add(buildMockScanDetail("SSID_G_WEAK", "bssid9", false, false, false, true)); in testNumConnectableNetworksGeneration()
[all …]
/packages/modules/Bluetooth/flags/
Dgap.aconfig28 description: "Refactor scan manager as described in go/scan-manager-refactor"
99 description: "Reimplement BLE scan and advertisement metrics logging."
156 description: "If a scan record has multiple datas under same manufacturer id, merge the values"
206 description: "Fix an issue that le scanner omits athe ddress type for MATCH_FIRST scan"
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/scanner/
DBaseWifiScannerImplTest.java252 when(mWifiNative.scan(eq(IFACE_NAME), anyInt(), any(), any(List.class), anyBoolean(), in overlappingSingleScanFails()
274 when(mWifiNative.scan(eq(IFACE_NAME), anyInt(), any(), any(List.class), anyBoolean(), in singleScanFailOnExecute()
303 when(mWifiNative.scan(eq(IFACE_NAME), anyInt(), any(), any(List.class), anyBoolean(), in singleScanFailOnTimeout()
336 when(mWifiNative.scan(eq(IFACE_NAME), anyInt(), any(), any(List.class), anyBoolean(), in singleScanFailOnFailedEvent()
393 when(mWifiNative.scan(eq(IFACE_NAME), anyInt(), any(), any(List.class), anyBoolean(), in multipleSingleScanSuccess()
471 when(mWifiNative.scan(eq(IFACE_NAME), anyInt(), any(), any(List.class), anyBoolean(), in singleScanWhereSupplicantReturnsSomeOldResults()
477 order.verify(mWifiNative).scan(eq(IFACE_NAME), anyInt(), eq(expectedScan), any(List.class), in singleScanWhereSupplicantReturnsSomeOldResults()
525 when(mWifiNative.scan(eq(IFACE_NAME), anyInt(), any(), any(List.class), anyBoolean(), in doSuccessfulSingleScanTest()
541 order.verify(mWifiNative).scan( in expectSuccessfulSingleScan()
DWificondScannerTest.java108 verify(mWifiNative, never()).scan(any(), anyInt(), any(), any(List.class), anyBoolean(), in singleScanNotIssuedIfNoAvailableChannels()
116 when(mWifiNative.scan(eq(IFACE_NAME), anyInt(), any(), any(List.class), anyBoolean(), in cleanupReportsFailureIfScanInProgress()
187 when(mWifiNative.scan(eq(IFACE_NAME), anyInt(), any(), any(List.class), anyBoolean(), in lateScanResultsDoNotCauseSpuriousTimerCancellationOrCrash()
257 when(mWifiNative.scan(eq(IFACE_NAME), anyInt(), any(), any(List.class), anyBoolean(), in testDumpWithCorrectFormatWithScanResult()
293 order.verify(mWifiNative).scan(eq(IFACE_NAME), anyInt(), eq(expectedScan), any(List.class), in testDumpWithCorrectFormatWithScanResult()
327 when(mWifiNative.scan(eq(IFACE_NAME), anyInt(), any(), any(List.class), anyBoolean(), in testUnwantedScanResultsExcept6GhzGetFiltered()
334 order.verify(mWifiNative).scan(eq(IFACE_NAME), anyInt(), eq(expectedScan), any(List.class), in testUnwantedScanResultsExcept6GhzGetFiltered()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DModernMediaScannerTest.java17 package com.android.providers.media.scan;
19 import static com.android.providers.media.scan.MediaScanner.REASON_UNKNOWN;
20 import static com.android.providers.media.scan.MediaScannerTest.stage;
21 import static com.android.providers.media.scan.ModernMediaScanner.MAX_EXCLUDE_DIRS;
22 import static com.android.providers.media.scan.ModernMediaScanner.isFileAlbumArt;
23 import static com.android.providers.media.scan.ModernMediaScanner.parseOptional;
24 import static com.android.providers.media.scan.ModernMediaScanner.parseOptionalDate;
25 import static com.android.providers.media.scan.ModernMediaScanner.parseOptionalDateTaken;
26 import static com.android.providers.media.scan.ModernMediaScanner.parseOptionalImageResolution;
27 import static com.android.providers.media.scan.ModernMediaScanner.parseOptionalMimeType;
[all …]
/packages/modules/Bluetooth/framework/java/android/bluetooth/le/
DBluetoothLeScanner.java259 IBluetoothScan scan = null; in startScan() local
262 scan = mBluetoothAdapter.getBluetoothScan(); in startScan()
263 if (scan == null) { in startScan()
289 gatt, scan, filters, settings, workSource, callback); in startScan()
294 scan.startScanForIntent( in startScan()
339 IBluetoothScan scan = mBluetoothAdapter.getBluetoothScan(); in stopScan() local
340 if (scan == null) { in stopScan()
344 scan.stopScanForIntent(callbackIntent, mAttributionSource); in stopScan()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DMetrics.java30 import static com.android.providers.media.scan.MediaScanner.REASON_DEMAND;
31 import static com.android.providers.media.scan.MediaScanner.REASON_IDLE;
32 import static com.android.providers.media.scan.MediaScanner.REASON_MOUNTED;
33 import static com.android.providers.media.scan.MediaScanner.REASON_UNKNOWN;
/packages/modules/Wifi/service/java/com/android/server/wifi/
DREADME.txt36 …cks the various settings (wifi toggle, airplane toggle, tethering toggle, scan mode toggle) and pr…
40 …ller: Controls whether the open network notification is displayed or not based on the scan results.
48 …s or from a third party app will show up a dialog reminding the user that scan mode will be on eve…
49 …- In the scan mode, the device continues to allow scanning from any app with Wi-Fi turned off. Thi…
/packages/modules/Bluetooth/android/pandora/test/
Dgatt_test.py83 scan = self.ref.host.Scan()
84 dut = next((x for x in scan if b'pause cafe' in x.data.manufacturer_specific_data))
85 scan.cancel()
255 scan = self.ref.aio.host.Scan()
256 … dut = await anext((x async for x in scan if b'pause cafe' in x.data.manufacturer_specific_data))
257 scan.cancel()
/packages/modules/Bluetooth/android/leaudio/app/src/main/java/com/android/bluetooth/leaudio/
DBroadcastScanViewModel.java133 public void scanForBroadcasts(BluetoothDevice delegatorDevice, boolean scan) { in scanForBroadcasts() argument
134 mIsActivityScanning = scan; in scanForBroadcasts()
149 mBluetooth.scanForBroadcasts(mScanDelegatorDevice, scan); in scanForBroadcasts()
/packages/modules/Wifi/service/proto/src/
Dmetrics.proto73 // Error codes that a scan can result in.
89 // Could not start a scan because wifi is disabled.
100 // Return code of the scan.
103 // Number of entries that were found in the scan.
182 // Count of times connectivity watchdog confirmed background scan is working
185 // Count of times connectivity watchdog found background scan not working
204 // Total number of scan results
207 // Total number of scan results for open networks
210 // Total number of scan results for legacy personal networks
213 // Total number of scan results for legacy enterprise networks
[all …]
Dscorecard.proto166 // Most recent WiFi scan time
168 // Number of access points found in most recent WiFi scan at 2G
170 // Number of access points found in most recent WiFi scan above 2G
193 // List of frequencies observed for this network from scan results, sorted by most recent first.
/packages/providers/MediaProvider/src/com/android/providers/media/scan/
DModernMediaScanner.java17 package com.android.providers.media.scan;
264 try (Scan scan = new Scan(file, reason)) { in scanDirectory() argument
265 scan.run(); in scanDirectory()
284 try (Scan scan = new Scan(file, reason)) { in scanFile() argument
285 scan.run(); in scanFile()
286 return scan.getFirstResult(); in scanFile()
299 for (Scan scan : mActiveScans) { in onDetachVolume()
300 if (volume.equals(scan.mVolume)) { in onDetachVolume()
301 scan.mSignal.cancel(); in onDetachVolume()
310 for (Scan scan : mActiveScans) { in onIdleScanStopped()
[all …]
DLegacyMediaScanner.java17 package com.android.providers.media.scan;
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DMediaDocumentsProviderTest.java20 import static com.android.providers.media.scan.MediaScanner.REASON_UNKNOWN;
21 import static com.android.providers.media.scan.MediaScannerTest.stage;
42 import com.android.providers.media.scan.MediaScanner;
43 import com.android.providers.media.scan.ModernMediaScanner;
DResolvePlaylistTest.java19 import static com.android.providers.media.scan.MediaScanner.REASON_UNKNOWN;
20 import static com.android.providers.media.scan.MediaScannerTest.stage;
36 import com.android.providers.media.scan.ModernMediaScanner;
/packages/modules/Bluetooth/system/test/headless/
DAndroid.bp64 "scan/scan.cc",
/packages/modules/Bluetooth/android/pandora/mmi2grpc/mmi2grpc/
Dgap.py205 for scan in scans:
206 adv_address = scan.public if scan.HasField("public") else scan.random
207 device_name = scan.data.complete_local_name
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaService.java19 import static com.android.providers.media.scan.MediaScanner.REASON_DEMAND;
20 import static com.android.providers.media.scan.MediaScanner.REASON_MOUNTED;
/packages/modules/Bluetooth/system/gd/neighbor/
DAndroid.bp14 "scan.cc",
/packages/modules/Bluetooth/system/osi/src/
Dstack_power_telemetry.cc196 } scan, inq_scan, ble_adv, ble_scan; member
239 if (scan.count_ != 0) { in LogDataTransfer()
241 .count = scan.count_, in LogDataTransfer()
243 scan.count_ = 0; in LogDataTransfer()
501 pimpl_->scan.count_++; in LogScanStarted()

1234