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

1 2 3 4

  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
ScanResultUtil.java 19 import android.net.wifi.ScanResult;
29 * Scan result utility for any {@link ScanResult} related operations.
31 * > Helper method for converting a ScanResult to a ScanDetail.
32 * Only fields that are supported in ScanResult are copied.
33 * > Helper methods to identify the encryption of a ScanResult.
42 public static ScanDetail toScanDetail(ScanResult scanResult) {
43 NetworkDetail networkDetail = new NetworkDetail(scanResult.BSSID,
44 scanResult.informationElements, scanResult.anqpLines, scanResult.frequency)
    [all...]
  /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/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/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...]
  /packages/services/NetworkRecommendation/src/com/android/networkrecommendation/util/
ScanResultUtil.java 23 import android.net.wifi.ScanResult;
30 * Scan result utility for any {@link ScanResult} related operations. TODO(b/34125341): Delete this
36 * Helper method to check if the provided |scanResult| corresponds to a PSK network or not. This
39 public static boolean isScanResultForPskNetwork(ScanResult scanResult) {
40 return scanResult.capabilities.contains("PSK");
44 * Helper method to check if the provided |scanResult| corresponds to a EAP network or not. This
47 public static boolean isScanResultForEapNetwork(ScanResult scanResult) {
48 return scanResult.capabilities.contains("EAP")
    [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...]
  /frameworks/base/core/java/android/bluetooth/le/
IScannerCallback.aidl 18 import android.bluetooth.le.ScanResult;
27 void onScanResult(in ScanResult scanResult);
28 void onBatchScanResults(in List<ScanResult> batchResults);
29 void onFoundOrLost(in boolean onFound, in ScanResult scanResult);
PeriodicAdvertisingManager.java 73 * Synchronize with periodic advertising pointed to by the {@code scanResult}.
74 * The {@code scanResult} used must contain a valid advertisingSid. First
81 * @param scanResult Scan result containing advertisingSid.
87 * @throws IllegalArgumentException if {@code scanResult} is null or {@code
90 public void registerSync(ScanResult scanResult, int skip, int timeout,
92 registerSync(scanResult, skip, timeout, callback, null);
96 * Synchronize with periodic advertising pointed to by the {@code scanResult}.
97 * The {@code scanResult} used must contain a valid advertisingSid. First
104 * @param scanResult Scan result containing advertisingSid
    [all...]
BluetoothLeScanner.java 77 * @see ScanCallback#onScanResult(int, ScanResult)
453 public void onScanResult(final ScanResult scanResult) {
454 if (VDBG) Log.d(TAG, "onScanResult() - " + scanResult.toString());
464 mScanCallback.onScanResult(ScanSettings.CALLBACK_TYPE_ALL_MATCHES, scanResult);
470 public void onBatchScanResults(final List<ScanResult> results) {
481 public void onFoundOrLost(final boolean onFound, final ScanResult scanResult) {
484 " " + scanResult.toString());
498 scanResult);
    [all...]
  /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...]
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/
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...]
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...]
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...]
  /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...]
  /frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
OSUCache.java 4 import android.net.wifi.ScanResult;
33 private final Map<OSUProvider, ScanResult> mBatchedOSUs = new HashMap<>();
37 private final ScanResult mScanResult;
40 private ScanInstance(ScanResult scanResult, int instant) {
41 mScanResult = scanResult;
45 public ScanResult getScanResult() {
53 private boolean bssidEqual(ScanResult scanResult) {
54 return mScanResult.BSSID.equals(scanResult.BSSID)
    [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...]
  /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/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
PasspointManager.java 35 import android.net.wifi.ScanResult;
328 * @param scanResult The scan result associated with the AP
331 public Pair<PasspointProvider, PasspointMatch> matchProvider(ScanResult scanResult) {
335 InformationElementUtil.getRoamingConsortiumIE(scanResult.informationElements);
337 scanResult.informationElements);
340 long bssid = Utils.parseMac(scanResult.BSSID);
341 ANQPNetworkKey anqpKey = ANQPNetworkKey.buildKey(scanResult.SSID, bssid, scanResult.hessid,
366 Log.d(TAG, String.format("Matched %s to %s as %s", scanResult.SSID
    [all...]
  /external/sl4a/Common/src/com/googlecode/android_scripting/jsonrpc/
JsonBuilder.java 63 import android.net.wifi.ScanResult;
176 if (data instanceof ScanResult) {
177 return buildJsonScanResult((ScanResult) data);
182 if (data instanceof android.bluetooth.le.ScanResult) {
183 return buildJsonBleScanResult((android.bluetooth.le.ScanResult) data);
390 android.bluetooth.le.ScanResult scanResult) throws JSONException {
392 result.put("rssi", scanResult.getRssi());
393 result.put("timestampNanos", scanResult.getTimestampNanos());
394 result.put("deviceName", scanResult.getScanRecord().getDeviceName())
    [all...]
  /frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
AccessPointTest.java 28 import android.net.wifi.ScanResult;
220 ScanResult scanResult = new ScanResult();
221 scanResult.SSID = ssid;
222 scanResult.level = newRssi;
223 scanResult.BSSID = "bssid";
224 scanResult.timestamp = SystemClock.elapsedRealtime() * 1000;
225 scanResult.capabilities = "";
226 assertThat(ap.update(scanResult)).isTrue()
    [all...]
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
ScanScheduleUtil.java 20 import android.net.wifi.ScanResult;
132 ScanResult result, int bucketsScanned, ScanSettings settings, int scheduledBucket) {
155 List<ScanResult> filteredResults = new ArrayList<>();
160 for (ScanResult scanResult : scanData.getResults()) {
161 if (channelHelper.settingsContainChannel(settings, scanResult.frequency)) {
162 filteredResults.add(scanResult);
179 new ScanResult[filteredResults.size()])));
  /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));
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
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...]

Completed in 973 milliseconds

1 2 3 4