/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/le/ |
D | ScanSettingsTest.java | 30 ScanSettings.Builder builder = new ScanSettings.Builder(); in testCallbackType() 31 builder.setCallbackType(ScanSettings.CALLBACK_TYPE_ALL_MATCHES); in testCallbackType() 32 builder.setCallbackType(ScanSettings.CALLBACK_TYPE_FIRST_MATCH); in testCallbackType() 33 builder.setCallbackType(ScanSettings.CALLBACK_TYPE_MATCH_LOST); in testCallbackType() 35 ScanSettings.CALLBACK_TYPE_FIRST_MATCH | ScanSettings.CALLBACK_TYPE_MATCH_LOST); in testCallbackType() 38 ScanSettings.CALLBACK_TYPE_ALL_MATCHES | ScanSettings.CALLBACK_TYPE_MATCH_LOST); in testCallbackType() 46 ScanSettings.CALLBACK_TYPE_ALL_MATCHES | in testCallbackType() 47 ScanSettings.CALLBACK_TYPE_FIRST_MATCH); in testCallbackType() 55 ScanSettings.CALLBACK_TYPE_ALL_MATCHES | in testCallbackType() 56 ScanSettings.CALLBACK_TYPE_FIRST_MATCH | in testCallbackType() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/ |
D | BackgroundScanSchedulerTest.java | 30 import android.net.wifi.WifiScanner.ScanSettings; 83 Collection<ScanSettings> requests = Collections.emptyList(); in noRequest() 86 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in noRequest() 94 Collection<ScanSettings> requests = Collections.singleton(createRequest( in singleRequest() 100 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in singleRequest() 104 for (ScanSettings request : requests) { in singleRequest() 111 Collection<ScanSettings> requests = Collections.singleton(createRequest( in singleRequestWithoutPredefinedBucket() 117 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in singleRequestWithoutPredefinedBucket() 121 for (ScanSettings request : requests) { in singleRequestWithoutPredefinedBucket() 128 Collection<ScanSettings> requests = new ArrayList<>(); in fewRequests() [all …]
|
D | ScanScheduleUtilFilterTest.java | 32 import android.net.wifi.WifiScanner.ScanSettings; 58 ScanSettings settings = createRequest( in reportFullResultTrueForBandsWithNoBucketInfo() 69 ScanSettings settings = createRequest( in reportFullResultFalseForBandsWithNoBucketInfo() 80 ScanSettings settings = createRequest( in reportFullResultTrueForChannelsWithNoBucketInfo() 91 ScanSettings settings = createRequest( in reportFullResultFalseForChannelsWithNoBucketInfo() 102 ScanSettings settings = createRequest( in reportFullResultTrueForChannelsWithBucketDefinitlyScanned() 113 ScanSettings settings = createRequest( in reportFullResultFalseForChannelsWithBucketDefinitlyNotScanned() 124 ScanSettings settings = createRequest( in filterScanDataEmptyWithNoBucketInfo() 136 ScanSettings settings = createRequest( in filterScanDataSingleNotMatchingWithNoBucketInfo() 148 ScanSettings settings = createRequest( in filterScanDataSingleNotMatchingWithDefinitlyScannedBucketIndex() [all …]
|
D | WifiScanningServiceTest.java | 183 private WifiScanner.ScanSettings generateValidScanSettings() { in generateValidScanSettings() 264 int scanRequestId, WifiScanner.ScanSettings settings, WorkSource workSource) { in sendBackgroundScanRequest() 273 int scanRequestId, WifiScanner.ScanSettings settings, WorkSource workSource) { in sendSingleScanRequest() 383 WifiNative.ScanSettings expected) { in verifyStartSingleScan() 384 ArgumentCaptor<WifiNative.ScanSettings> scanSettingsCaptor = in verifyStartSingleScan() 385 ArgumentCaptor.forClass(WifiNative.ScanSettings.class); in verifyStartSingleScan() 395 WifiNative.ScanSettings expected) { in verifyStartBackgroundScan() 396 ArgumentCaptor<WifiNative.ScanSettings> scanSettingsCaptor = in verifyStartBackgroundScan() 397 ArgumentCaptor.forClass(WifiNative.ScanSettings.class); in verifyStartBackgroundScan() 500 when(mWifiScannerImpl.startBatchedScan(any(WifiNative.ScanSettings.class), in loadDriver() [all …]
|
D | ChannelHelperTest.java | 57 WifiScanner.ScanSettings scanSettings = createRequest(WifiScanner.WIFI_BAND_BOTH, in scanSettings_band() 67 WifiScanner.ScanSettings scanSettings = createRequest(channelsToSpec(5150, 2400), in scanSettings_channels() 77 WifiScanner.ScanSettings scanSettings = createRequest(WifiScanner.WIFI_BAND_5_GHZ, in bucketSettings_band() 88 WifiScanner.ScanSettings scanSettings = createRequest(channelsToSpec(2400, 5100), in bucketSettings_channels() 132 .addChannels(any(WifiScanner.ScanSettings.class)); in setUp() 142 WifiScanner.ScanSettings testSettings = createRequest(channelsToSpec(5150, 2400), in addChannelsWifiScanner_channels() 156 WifiScanner.ScanSettings testSettings = createRequest(WifiScanner.WIFI_BAND_BOTH, in addChannelsWifiScanner_band()
|
D | BaseWifiScannerImplTest.java | 113 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccess() 129 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithChannels() 143 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithChannelsAndHighAccuracyType() 158 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithFullResults() 180 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithHiddenNetworkIds() 209 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithTruncatedHiddenNetworkIds() 228 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in overlappingSingleScanFails() 236 WifiNative.ScanSettings settings2 = new NativeScanSettingsBuilder() in overlappingSingleScanFails() 254 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanFailOnExecute() 282 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanFailOnTimeout() [all …]
|
D | KnownBandsChannelHelperTest.java | 80 WifiScanner.ScanSettings testSettings = createRequest(channelsToSpec(2400, 2450, 5100), in fewChannels() 92 WifiScanner.ScanSettings testSettings = createRequest(WifiScanner.WIFI_BAND_24_GHZ, in band() 208 WifiScanner.ScanSettings testSettings = createRequest(channelsToSpec(), in emptySettings() 221 WifiScanner.ScanSettings testSettings = createRequest(channelsToSpec(2400, 5650), in settingsWithChannels() 234 WifiScanner.ScanSettings testSettings = createRequest(WifiScanner.WIFI_BAND_24_GHZ, in settingsWithBand() 248 WifiScanner.ScanSettings testSettings = createRequest(WifiScanner.WIFI_BAND_BOTH, in settingsWithMultiBand()
|
D | WificondScannerTest.java | 80 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanNotIssuedIfNoAvailableChannels() 111 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in externalScanResultsAfterOurScanDoNotCauseSpuriousTimerCancellationOrCrash() 136 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in lateScanResultsDoNotCauseSpuriousTimerCancellationOrCrash()
|
D | WificondPnoScannerTest.java | 159 private WifiNative.ScanSettings createDummyScanSettings(boolean allChannelsScanned) { in createDummyScanSettings() 160 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in createDummyScanSettings() 177 private void startSuccessfulPnoScan(WifiNative.ScanSettings scanSettings, in startSuccessfulPnoScan()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/ |
D | BackgroundScanScheduler.java | 24 import android.net.wifi.WifiScanner.ScanSettings; 133 private final List<ScanSettings> mScanSettingsList = new ArrayList<>(); 148 for (ScanSettings settings : originalBucket.getSettingsList()) { in Bucket() 162 public boolean addSettings(ScanSettings scanSettings) { in addSettings() 167 public boolean removeSettings(ScanSettings scanSettings) { in removeSettings() 178 public List<ScanSettings> getSettingsList() { in getSettingsList() 184 for (ScanSettings settings : mScanSettingsList) { in updateChannelCollection() 204 WifiScanner.ScanSettings setting = mScanSettingsList.get(i); in createBucketSettings() 364 private WifiNative.ScanSettings mSchedule; 366 private final Map<ScanSettings, Bucket> mSettingsToScheduledBucket = new HashMap<>(); [all …]
|
D | ChannelHelper.java | 50 public abstract boolean settingsContainChannel(WifiScanner.ScanSettings settings, int channel); in settingsContainChannel() 61 public abstract int estimateScanDuration(WifiScanner.ScanSettings settings); in estimateScanDuration() 127 public void addChannels(WifiScanner.ScanSettings scanSettings) { in addChannels() 153 public boolean containsSettings(WifiScanner.ScanSettings scanSettings) { in containsSettings() 169 public boolean partiallyContainsSettings(WifiScanner.ScanSettings scanSettings) { in partiallyContainsSettings() 185 public Set<Integer> getMissingChannelsFromSettings(WifiScanner.ScanSettings scanSettings) { in getMissingChannelsFromSettings() 203 WifiScanner.ScanSettings scanSettings) { in getContainingChannelsFromSettings() 241 public static String toString(WifiScanner.ScanSettings scanSettings) { in toString()
|
D | WifiScanningServiceImpl.java | 31 import android.net.wifi.WifiScanner.ScanSettings; 155 ScanSettings scanSettings = bundle.getParcelable(WifiScanner.SCAN_PARAMS_SCAN_SETTINGS_KEY); in shouldIgnoreLocationSettingsForSingleScan() 164 ScanSettings scanSettings = bundle.getParcelable(WifiScanner.SCAN_PARAMS_SCAN_SETTINGS_KEY); in shouldHideFromAppsForSingleScan() 337 private WifiNative.ScanSettings mPreviousSchedule; 509 private WifiNative.ScanSettings mActiveScanSettings = null; 510 private RequestList<ScanSettings> mActiveScans = new RequestList<>(); 511 private RequestList<ScanSettings> mPendingScans = new RequestList<>(); 668 ScanSettings scanSettings = in processMessage() 792 boolean validateScanRequest(ClientInfo ci, int handler, ScanSettings settings) { in validateScanRequest() 873 boolean activeScanSatisfies(ScanSettings settings) { in activeScanSatisfies() [all …]
|
D | ScanScheduleUtil.java | 22 import android.net.wifi.WifiScanner.ScanSettings; 72 public static boolean scheduleEquals(@Nullable WifiNative.ScanSettings schedule1, in scheduleEquals() 73 @Nullable WifiNative.ScanSettings schedule2) { in scheduleEquals() 132 ScanResult result, int bucketsScanned, ScanSettings settings, int scheduledBucket) { in shouldReportFullScanResultForSettings() 153 ScanData[] scanDatas, ScanSettings settings, int scheduledBucket) { in filterResultsForSettings()
|
D | WifiScannerImpl.java | 105 public abstract boolean startSingleScan(WifiNative.ScanSettings settings, in startSingleScan() 120 public abstract boolean startBatchedScan(WifiNative.ScanSettings settings, in startBatchedScan()
|
D | HalWifiScannerImpl.java | 79 public boolean startSingleScan(WifiNative.ScanSettings settings, in startSingleScan() 90 public boolean startBatchedScan(WifiNative.ScanSettings settings, in startBatchedScan()
|
/frameworks/base/core/java/android/bluetooth/le/ |
D | ScanSettings.java | 28 public final class ScanSettings implements Parcelable { class 204 private ScanSettings(int scanMode, int callbackType, int scanResultType, in ScanSettings() method in ScanSettings 217 private ScanSettings(Parcel in) { in ScanSettings() method in ScanSettings 245 public static final @android.annotation.NonNull Parcelable.Creator<ScanSettings> CREATOR = 246 new Creator<ScanSettings>() { 248 public ScanSettings[] newArray(int size) { 249 return new ScanSettings[size]; 253 public ScanSettings createFromParcel(Parcel in) { 254 return new ScanSettings(in); 413 public ScanSettings build() { in build() [all …]
|
D | BluetoothLeScanner.java | 124 startScan(null, new ScanSettings.Builder().build(), callback); in startScan() 145 public void startScan(List<ScanFilter> filters, ScanSettings settings, in startScan() 174 public int startScan(@Nullable List<ScanFilter> filters, @Nullable ScanSettings settings, in startScan() 177 settings != null ? settings : new ScanSettings.Builder().build(), in startScan() 194 startScanFromSource(null, new ScanSettings.Builder().build(), workSource, callback); in startScanFromSource() 211 public void startScanFromSource(List<ScanFilter> filters, ScanSettings settings, in startScanFromSource() 216 private int startScan(List<ScanFilter> filters, ScanSettings settings, in startScan() 334 public void startTruncatedScan(List<TruncatedFilter> truncatedFilters, ScanSettings settings, in startTruncatedScan() 365 private ScanSettings mSettings; 376 List<ScanFilter> filters, ScanSettings settings, in BleScanCallbackWrapper() [all …]
|
/frameworks/base/wifi/tests/src/android/net/wifi/ |
D | WifiScannerTest.java | 37 import android.net.wifi.WifiScanner.ScanSettings; 114 ScanSettings writeSettings = new ScanSettings(); in verifyScanSettingsParcelWithBand() 118 ScanSettings readSettings = parcelWriteRead(writeSettings); in verifyScanSettingsParcelWithBand() 129 ScanSettings writeSettings = new ScanSettings(); in verifyScanSettingsParcelWithChannels() 137 ScanSettings readSettings = parcelWriteRead(writeSettings); in verifyScanSettingsParcelWithChannels() 148 private static ScanSettings parcelWriteRead(ScanSettings writeSettings) throws Exception { in parcelWriteRead() 152 return ScanSettings.CREATOR.createFromParcel(parcel); in parcelWriteRead() 252 ScanSettings scanSettings = new ScanSettings(); in testStartScan() 280 ScanSettings scanSettings = new ScanSettings(); in testStopScan() 308 ScanSettings scanSettings = new ScanSettings(); in testStartScanListenerOnSuccess() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | ScanTestUtil.java | 51 public static WifiScanner.ScanSettings createRequest(WifiScanner.ChannelSpec[] channels, in createRequest() 53 WifiScanner.ScanSettings request = new WifiScanner.ScanSettings(); in createRequest() 63 public static WifiScanner.ScanSettings createRequest(int type, int band, int period, int batch, in createRequest() 69 public static WifiScanner.ScanSettings createRequest(int band, int period, int batch, in createRequest() 78 public static WifiScanner.ScanSettings createRequest(int type, int band, int period, in createRequest() 80 WifiScanner.ScanSettings request = new WifiScanner.ScanSettings(); in createRequest() 97 private final WifiNative.ScanSettings mSettings = new WifiNative.ScanSettings(); 178 public WifiNative.ScanSettings build() { in build() 202 public static WifiNative.ScanSettings computeSingleScanNativeSettings( in computeSingleScanNativeSettings() 203 WifiScanner.ScanSettings requestSettings) { in computeSingleScanNativeSettings() [all …]
|
D | ScanRequestProxyTest.java | 63 private static final List<WifiScanner.ScanSettings.HiddenNetwork> TEST_HIDDEN_NETWORKS_LIST = 64 new ArrayList<WifiScanner.ScanSettings.HiddenNetwork>() {{ 65 add(new WifiScanner.ScanSettings.HiddenNetwork("test_ssid_1")); 66 add(new WifiScanner.ScanSettings.HiddenNetwork("test_ssid_2")); 69 private static final List<WifiScanner.ScanSettings.HiddenNetwork> TEST_HIDDEN_NETWORKS_LIST_NS = 70 new ArrayList<WifiScanner.ScanSettings.HiddenNetwork>() {{ 71 add(new WifiScanner.ScanSettings.HiddenNetwork("test_ssid_3")); 72 add(new WifiScanner.ScanSettings.HiddenNetwork("test_ssid_4")); 89 private ArgumentCaptor<WifiScanner.ScanSettings> mScanSettingsArgumentCaptor = 90 ArgumentCaptor.forClass(WifiScanner.ScanSettings.class); [all …]
|
D | WifiConnectivityManagerTest.java | 46 import android.net.wifi.WifiScanner.ScanSettings; 215 public void answer(ScanSettings settings, ScanListener listener, in mockWifiScanner() 221 public void answer(ScanSettings settings, ScanListener listener, in mockWifiScanner() 248 public void answer(ScanSettings settings, PnoSettings pnoSettings, in mockWifiScanner() 254 public void answer(ScanSettings settings, PnoSettings pnoSettings, in mockWifiScanner() 1186 public void answer(ScanSettings settings, ScanListener listener, in checkSingleScanSettingsWhenConnectedWithLowDataRate() 1227 public void answer(ScanSettings settings, ScanListener listener, in checkPartialScanRequestedWithHighDataRateWithoutFwRoaming() 1312 public void answer(ScanSettings settings, ScanListener listener, in checkSingleScanSettingsWhenConnectedWithHighDataRateNotInCache() 1341 public void answer(ScanSettings settings, ScanListener listener, in checkMaximumScanRetry() 1378 public void answer(ScanSettings settings, ScanListener listener, in verifyScanFailureCountIsResetAfterOnResult() [all …]
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | WifiScanner.java | 193 public static class ScanSettings implements Parcelable { class in WifiScanner 313 public static final @android.annotation.NonNull Creator<ScanSettings> CREATOR = 314 new Creator<ScanSettings>() { 315 public ScanSettings createFromParcel(Parcel in) { 316 ScanSettings settings = new ScanSettings(); 346 public ScanSettings[] newArray(int size) { 347 return new ScanSettings[size]; 805 public void startBackgroundScan(ScanSettings settings, ScanListener listener) { in startBackgroundScan() 818 public void startBackgroundScan(ScanSettings settings, ScanListener listener, in startBackgroundScan() 870 public void startScan(ScanSettings settings, ScanListener listener) { in startScan() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/ |
D | KeyboardUI.java | 26 import android.bluetooth.le.ScanSettings; 330 ScanSettings settings = (new ScanSettings.Builder()) in startScanning() 331 .setCallbackType(ScanSettings.CALLBACK_TYPE_ALL_MATCHES) in startScanning() 332 .setNumOfMatches(ScanSettings.MATCH_NUM_ONE_ADVERTISEMENT) in startScanning() 333 .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY) in startScanning()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | ScanRequestProxy.java | 477 WifiScanner.ScanSettings settings = new WifiScanner.ScanSettings(); in startScan() 488 List<WifiScanner.ScanSettings.HiddenNetwork> hiddenNetworkList = in startScan() 494 new WifiScanner.ScanSettings.HiddenNetwork[0]); in startScan()
|
D | WifiConnectivityManager.java | 35 import android.net.wifi.WifiScanner.ScanSettings; 798 private boolean setScanChannels(ScanSettings settings) { in setScanChannels() 908 ScanSettings settings = new ScanSettings(); in startSingleScan() 920 List<ScanSettings.HiddenNetwork> hiddenNetworkList = in startSingleScan() 926 hiddenNetworkList.toArray(new ScanSettings.HiddenNetwork[0]); in startSingleScan() 1026 ScanSettings scanSettings = new ScanSettings(); in startDisconnectedPnoScan()
|