HomeSort by relevance Sort by last modified time
    Searched defs:scanResult (Results 1 - 25 of 52) 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/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",
92 ScanResult scanResult = new ScanResult(ssid, "ab:cd:01:ef:45:89", 1245, 0, ""
    [all...]
  /packages/services/NetworkRecommendation/src/com/android/networkrecommendation/scoring/util/
NetworkUtil.java 25 import android.net.wifi.ScanResult;
83 List<ScanResult> scanResults = null;
97 ScanResult scanResult = scanResults.get(i);
98 NetworkKey networkKey = ScanResultUtil.createNetworkKey(scanResult);
100 openKeys.put(networkKey, isScanResultForOpenNetwork(scanResult));
  /packages/services/NetworkRecommendation/src/com/android/networkrecommendation/wakeup/
WifiWakeupNetworkSelector.java 21 import android.net.wifi.ScanResult;
68 Map<String, WifiConfiguration> savedNetworks, List<ScanResult> scanResults) {
70 List<ScanResult> openOrExternalScanResults = new ArrayList<>();
72 ScanResult candidateScanResult = null;
75 ScanResult scanResult = scanResults.get(i);
76 WifiConfiguration wifiConfiguration = savedNetworks.get(scanResult.SSID);
80 if ((ScanResultUtil.is5GHz(scanResult) && scanResult.level < mThresholdQualifiedRssi5)
81 || (ScanResultUtil.is24GHz(scanResult)
    [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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
WifiNotificationControllerTest.java 33 import android.net.wifi.ScanResult;
102 List<ScanResult> scanResults = new ArrayList<>();
103 ScanResult scanResult = new ScanResult();
104 scanResult.capabilities = "[ESS]";
105 scanResults.add(scanResult);
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...]
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/base/libs/androidfw/
Asset.cpp 196 bool scanResult;
221 scanResult = ZipUtils::examineGzip(fp, &method, &uncompressedLen,
225 if (!scanResult) {
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/
SavedNetworkEvaluator.java 20 import android.net.wifi.ScanResult;
157 private int calculateBssidScore(ScanResult scanResult, WifiConfiguration network,
161 boolean is5GHz = scanResult.is5GHz();
163 sbuf.append("[ ").append(scanResult.SSID).append(" ").append(scanResult.BSSID)
164 .append(" RSSI:").append(scanResult.level).append(" ] ");
167 int rssi = scanResult.level < rssiSaturationThreshold ? scanResult.level
203 && 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...]
WifiNotificationController.java 28 import android.net.wifi.ScanResult;
182 List<ScanResult> scanResults) {
203 ScanResult scanResult = scanResults.get(i);
207 if (scanResult.capabilities != null &&
208 scanResult.capabilities.equals("[ESS]")) {
WifiNetworkSelector.java 23 import android.net.wifi.ScanResult;
220 * Format the given ScanResult as a scan ID for logging.
222 public static String toScanId(@Nullable ScanResult scanResult) {
223 return scanResult == null ? "NULL"
224 : String.format("%s:%s", scanResult.SSID, scanResult.BSSID);
248 ScanResult scanResult = scanDetail.getScanResult();
250 if (TextUtils.isEmpty(scanResult.SSID))
    [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
  /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);
  /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+" ");
  /packages/services/NetworkRecommendation/src/com/android/networkrecommendation/
DefaultNetworkRecommendationProvider.java 28 import android.net.wifi.ScanResult;
157 ScanResult recommendedScanResult = null;
160 ScanResult[] results = request.getScanResults();
163 final ScanResult scanResult = results[i];
164 Blog.v(TAG, "Scan: " + scanResult + " " + i);
167 // places like WifiNotificationController and will be extracted to ScanResult in
169 if (!"[ESS]".equals(scanResult.capabilities)) {
170 Blog.v(TAG, "Discarding closed network: " + scanResult);
175 new WifiKey(SsidUtil.quoteSsid(scanResult.SSID)
    [all...]
  /frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
WifiTrackerTest.java 48 import android.net.wifi.ScanResult;
223 private static ScanResult buildScanResult1() {
224 return new ScanResult(
236 private static ScanResult buildScanResult2() {
237 return new ScanResult(
347 ScanResult scanResult = new ScanResult();
348 scanResult.level = 123;
349 scanResult.BSSID = "bssid-" + 111
    [all...]
  /frameworks/base/services/core/java/com/android/server/
NetworkScoreService.java 38 import android.net.wifi.ScanResult;
530 private static class ScanResultsSupplier implements Supplier<List<ScanResult>> {
538 public List<ScanResult> get() {
585 * {@link ScoredNetwork} associated with the current set of {@link ScanResult}s.
586 * If there are no {@link ScanResult}s the returned list will be empty.
597 ScanResultsScoreCacheFilter(Supplier<List<ScanResult>> resultsSupplier) {
598 List<ScanResult> scanResults = resultsSupplier.get();
602 ScanResult scanResult = scanResults.get(i);
603 NetworkKey key = NetworkKey.createFromScanResult(scanResult);
    [all...]

Completed in 1808 milliseconds

1 2 3