HomeSort by relevance Sort by last modified time
    Searched defs:scanResult (Results 1 - 25 of 55) sorted by null

1 2 3

  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/wificond/
NativeScanResultTest.java 55 NativeScanResult scanResult = new NativeScanResult();
56 scanResult.ssid = TEST_SSID;
57 scanResult.bssid = TEST_BSSID;
58 scanResult.infoElement = TEST_INFO_ELEMENT;
59 scanResult.frequency = TEST_FREQUENCY;
60 scanResult.signalMbm = TEST_SIGNAL_MBM;
61 scanResult.tsf = TEST_TSF;
62 scanResult.capability = TEST_CAPABILITY;
63 scanResult.associated = TEST_ASSOCIATED;
65 scanResult.writeToParcel(parcel, 0)
    [all...]
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowScanResult.java 3 import android.net.wifi.ScanResult;
9 @Implements(ScanResult.class)
12 @RealObject ScanResult realObject;
14 public static ScanResult newInstance(String SSID, String BSSID, String caps, int level, int frequency) {
15 ScanResult scanResult = Robolectric.newInstanceOf(ScanResult.class);
16 scanResult.SSID = SSID;
17 scanResult.BSSID = BSSID;
18 scanResult.capabilities = caps
    [all...]
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
ScanResultTest.java 3 import android.net.wifi.ScanResult;
18 ScanResult scanResult = ShadowScanResult.newInstance("SSID", "BSSID", "Caps", 11, 42);
19 assertThat(scanResult.SSID, equalTo("SSID"));
20 assertThat(scanResult.BSSID, equalTo("BSSID"));
21 assertThat(scanResult.capabilities, equalTo("Caps"));
22 assertThat(scanResult.level, equalTo(11));
23 assertThat(scanResult.frequency, equalTo(42));
24 assertNotNull(shadowOf(scanResult).realObject);
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/
OpenNetworkRecommender.java 20 import android.net.wifi.ScanResult;
40 public ScanResult recommendNetwork(@NonNull List<ScanDetail> networks,
42 ScanResult result = null;
45 ScanResult scanResult = scanDetail.getScanResult();
47 if (scanResult.level > highestRssi) {
48 result = scanResult;
49 highestRssi = scanResult.level;
SavedNetworkEvaluator.java 20 import android.net.wifi.ScanResult;
158 private int calculateBssidScore(ScanResult scanResult, WifiConfiguration network,
162 boolean is5GHz = scanResult.is5GHz();
164 sbuf.append("[ ").append(scanResult.SSID).append(" ").append(scanResult.BSSID)
165 .append(" RSSI:").append(scanResult.level).append(" ] ");
168 int rssi = scanResult.level < rssiSaturationThreshold ? scanResult.level
204 && currentBssid != null && !currentBssid.equals(scanResult.BSSID))
    [all...]
ScoredNetworkEvaluator.java 24 import android.net.wifi.ScanResult;
89 ScanResult scanResult = scanDetails.get(i).getScanResult();
90 NetworkKey networkKey = NetworkKey.createFromScanResult(scanResult);
92 // Is there a ScoredNetwork for this ScanResult? If not, request a score.
120 ScanResult scanResult = scanDetail.getScanResult();
121 if (scanResult == null) continue;
123 ScanResultUtil.createQuotedSSID(scanResult.SSID))) {
124 debugLog("Ignoring disabled ephemeral SSID: " + scanResult.SSID)
    [all...]
WifiNetworkSelector.java 23 import android.net.wifi.ScanResult;
193 ScanResult result = detail.getScanResult();
244 * Format the given ScanResult as a scan ID for logging.
246 public static String toScanId(@Nullable ScanResult scanResult) {
247 return scanResult == null ? "NULL"
248 : String.format("%s:%s", scanResult.SSID, scanResult.BSSID);
263 * Compares ScanResult level against the minimum threshold for its band, returns true if lower
265 public boolean isSignalTooWeak(ScanResult scanResult)
    [all...]
WifiLastResortWatchdog.java 19 import android.net.wifi.ScanResult;
105 ScanResult scanResult = scanDetail.getScanResult();
106 if (scanResult == null) continue;
107 String bssid = scanResult.BSSID;
112 // Cache the scanResult & WifiConfig
  /system/connectivity/wificond/tests/
offload_test_utils.cpp 22 using android::hardware::wifi::offload::V1_0::ScanResult;
36 std::vector<ScanResult> OffloadTestUtils::createOffloadScanResults() {
37 std::vector<ScanResult> scanResults;
38 ScanResult scanResult;
40 scanResult.tsf = kTsf;
41 scanResult.rssi = kRssi;
42 scanResult.frequency = kFrequency1;
43 scanResult.capability = kCapability;
44 memcpy(&scanResult.bssid[0], &kBssid[0], kBssidSize)
    [all...]
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
OpenNetworkRecommenderTest.java 22 import android.net.wifi.ScanResult;
55 ScanResult scanResult = new ScanResult();
56 scanResult.SSID = ssid;
57 scanResult.capabilities = "[ESS]";
58 scanResults.add(new ScanDetail(scanResult, null /* networkDetail */));
69 ScanResult actual = mOpenNetworkRecommender.recommendNetwork(
71 ScanResult expected = scanResults.get(0).getScanResult();
82 ScanResult actual = mOpenNetworkRecommender.recommendNetwork
    [all...]
WifiNetworkSelectorTestUtil.java 29 import android.net.wifi.ScanResult;
104 ScanResult chosenScanResult, WifiConfiguration chosenCandidate) {
230 anyInt(), any(ScanResult.class), anyInt()))
232 public boolean answer(int netId, ScanResult scanResult, int score) {
234 configs[netId].getNetworkSelectionStatus().setCandidate(scanResult);
328 ScanResult scanResult = scanDetail.getScanResult();
329 WifiKey wifiKey = new WifiKey("\"" + scanResult.SSID + "\"", scanResult.BSSID)
    [all...]
ConfigurationMapTest.java 27 import android.net.wifi.ScanResult;
184 private ScanResult createScanResultForNetwork(WifiConfiguration config) {
191 * {@link ConfigurationMap#getByScanResultForCurrentUser(ScanResult)} can match that network.
195 ScanResult scanResult = createScanResultForNetwork(config);
197 mConfigs.getByScanResultForCurrentUser(scanResult);
269 * Verifies that {@link ConfigurationMap#getByScanResultForCurrentUser(ScanResult)} can
281 * Verifies that {@link ConfigurationMap#getByScanResultForCurrentUser(ScanResult)} does not
287 ScanResult scanResult = createScanResultForNetwork(config)
    [all...]
ScoredNetworkEvaluatorTest.java 31 import android.net.wifi.ScanResult;
237 ScanResult scanResult = scanDetails.get(1).getScanResult();
247 scanResult, candidate);
264 ScanResult[] scanResults = new ScanResult[2];
457 ScanResult ephemeralScanResult = scanDetails.get(1).getScanResult();
517 ScanResult[] scanResults = new ScanResult[2];
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
ScanResultUtilTest.java 21 import android.net.wifi.ScanResult;
22 import android.net.wifi.ScanResult.InformationElement;
44 ScanResult input = new ScanResult(WifiSsid.createFromAsciiEncoded(ssid), ssid,
60 ScanResult input = new ScanResult(WifiSsid.createFromAsciiEncoded(ssid), ssid,
76 ScanResult input = new ScanResult(ssid, "ab:cd:01:ef:45:89", 1245, 0, "other caps",
90 ScanResult scanResult = new ScanResult(ssid, "ab:cd:01:ef:45:89", 1245, 0, ""
    [all...]
  /developers/build/prebuilts/gradle/BluetoothAdvertisements/Application/src/main/java/com/example/android/bluetoothadvertisements/
ScanResultAdapter.java 19 import android.bluetooth.le.ScanResult;
32 * Holds and displays {@link ScanResult}s, used by {@link ScannerFragment}.
36 private ArrayList<ScanResult> mArrayList;
76 ScanResult scanResult = mArrayList.get(position);
78 String name = scanResult.getDevice().getName();
83 deviceAddressView.setText(scanResult.getDevice().getAddress());
84 lastSeenView.setText(getTimeSinceString(mContext, scanResult.getTimestampNanos()));
105 * Add a ScanResult item to the adapter if a result from that device isn't already present.
106 * Otherwise updates the existing position with the new ScanResult
    [all...]
  /developers/samples/android/connectivity/bluetooth/BluetoothAdvertisements/Application/src/main/java/com/example/android/bluetoothadvertisements/
ScanResultAdapter.java 19 import android.bluetooth.le.ScanResult;
32 * Holds and displays {@link ScanResult}s, used by {@link ScannerFragment}.
36 private ArrayList<ScanResult> mArrayList;
76 ScanResult scanResult = mArrayList.get(position);
78 String name = scanResult.getDevice().getName();
83 deviceAddressView.setText(scanResult.getDevice().getAddress());
84 lastSeenView.setText(getTimeSinceString(mContext, scanResult.getTimestampNanos()));
105 * Add a ScanResult item to the adapter if a result from that device isn't already present.
106 * Otherwise updates the existing position with the new ScanResult
    [all...]
  /development/samples/browseable/BluetoothAdvertisements/src/com.example.android.bluetoothadvertisements/
ScanResultAdapter.java 19 import android.bluetooth.le.ScanResult;
32 * Holds and displays {@link ScanResult}s, used by {@link ScannerFragment}.
36 private ArrayList<ScanResult> mArrayList;
76 ScanResult scanResult = mArrayList.get(position);
78 String name = scanResult.getDevice().getName();
83 deviceAddressView.setText(scanResult.getDevice().getAddress());
84 lastSeenView.setText(getTimeSinceString(mContext, scanResult.getTimestampNanos()));
105 * Add a ScanResult item to the adapter if a result from that device isn't already present.
106 * Otherwise updates the existing position with the new ScanResult
    [all...]
  /frameworks/base/core/tests/coretests/src/android/net/
NetworkKeyTest.java 7 import android.net.wifi.ScanResult;
93 ScanResult scanResult = new ScanResult();
94 scanResult.BSSID = VALID_BSSID;
96 assertNull(NetworkKey.createFromScanResult(scanResult));
101 ScanResult scanResult = new ScanResult();
102 scanResult.wifiSsid = WifiSsid.createFromAsciiEncoded("")
    [all...]
  /frameworks/base/libs/androidfw/
Asset.cpp 196 bool scanResult;
221 scanResult = ZipUtils::examineGzip(fp, &method, &uncompressedLen,
225 if (!scanResult) {
  /frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
AccessPointTest.java 34 import android.net.wifi.ScanResult;
71 private static final ArrayList<ScanResult> SCAN_RESULTS = buildScanResultCache();
83 private static ScanResult createScanResult(String ssid, String bssid, int rssi) {
84 ScanResult scanResult = new ScanResult();
85 scanResult.SSID = ssid;
86 scanResult.level = rssi;
87 scanResult.BSSID = bssid;
88 scanResult.timestamp = SystemClock.elapsedRealtime() * 1000
    [all...]
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
PasspointNetworkScoreTest.java 23 import android.net.wifi.ScanResult;
316 // Setup ScanResult.
317 ScanResult scanResult = new ScanResult();
318 scanResult.level = -60;
327 when(scanDetail.getScanResult()).thenReturn(scanResult);
PasspointNetworkEvaluatorTest.java 32 import android.net.wifi.ScanResult;
118 ScanResult scanResult = new ScanResult();
119 scanResult.SSID = ssid;
120 scanResult.BSSID = bssid;
123 when(scanDetail.getScanResult()).thenReturn(scanResult);
150 when(mPasspointManager.matchProvider(any(ScanResult.class))).thenReturn(null);
175 verify(mPasspointManager, never()).matchProvider(any(ScanResult.class));
198 when(mPasspointManager.matchProvider(any(ScanResult.class))).thenReturn(homeProvider
    [all...]
  /frameworks/base/tools/aapt/
ZipFile.cpp 464 bool scanResult;
468 scanResult = ZipUtils::examineGzip(inputFp, &method, &uncompressedLen,
470 if (!scanResult || method != ZipEntry::kCompressDeflated) {
    [all...]
  /packages/apps/Settings/src/com/android/settings/wifi/
WifiStatusTest.java 25 import android.net.wifi.ScanResult;
265 List<ScanResult> list = mWifiManager.getScanResults();
270 final ScanResult scanResult = list.get(i);
272 if (scanResult == null) {
276 if (TextUtils.isEmpty(scanResult.SSID)) {
280 scanList.append(scanResult.SSID+" ");
  /frameworks/base/services/core/java/com/android/server/
NetworkScoreService.java 39 import android.net.wifi.ScanResult;
545 private static class ScanResultsSupplier implements Supplier<List<ScanResult>> {
553 public List<ScanResult> get() {
600 * {@link ScoredNetwork} associated with the current set of {@link ScanResult}s.
601 * If there are no {@link ScanResult}s the returned list will be empty.
612 ScanResultsScoreCacheFilter(Supplier<List<ScanResult>> resultsSupplier) {
613 List<ScanResult> scanResults = resultsSupplier.get();
617 ScanResult scanResult = scanResults.get(i);
618 NetworkKey key = NetworkKey.createFromScanResult(scanResult);
    [all...]

Completed in 676 milliseconds

1 2 3