/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
ScanDetailUtil.java | 19 import android.net.wifi.ScanResult; 25 * Utility for converting a ScanResult to a ScanDetail. 26 * Only fields that are supported in ScanResult are copied. 35 public static ScanDetail toScanDetail(ScanResult scanResult) { 36 NetworkDetail networkDetail = new NetworkDetail(scanResult.BSSID, 37 scanResult.informationElements, scanResult.anqpLines, scanResult.frequency); 38 return new ScanDetail(scanResult, networkDetail, null) [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);
|
/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/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...] |
OSUInfo.java | 3 import android.net.wifi.ScanResult; 41 public OSUInfo(ScanResult scanResult, String ssid, OSUProvider osuProvider, int osuID) { 43 mBSSID = Utils.parseMac(scanResult.BSSID); 44 mHESSID = scanResult.hessid; 45 mAnqpDomID = scanResult.anqpDomainId; 46 mAdvertisingSSID = scanResult.SSID;
|
/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/opt/net/wifi/service/java/com/android/server/wifi/ |
WifiQualifiedNetworkSelector.java | 24 import android.net.wifi.ScanResult; 340 int calculateBssidScore(ScanResult scanResult, WifiConfiguration network, 346 int rssi = scanResult.level <= mWifiConfigManager.mThresholdSaturatedRssi24.get() 347 ? scanResult.level : mWifiConfigManager.mThresholdSaturatedRssi24.get(); 350 if (scanResult.is5GHz()) { 399 sbuf.append(" Score for scanResult: " + scanResult + " and Network ID: " 634 ScanResult scanResultCandidate = null; 658 ScanResult scanResult = scanDetail.getScanResult() [all...] |
WifiNetworkScoreCache.java | 24 import android.net.wifi.ScanResult; 75 * Returns whether there is any score info for the given ScanResult. 80 public boolean isScoredNetwork(ScanResult result) { 85 * Returns whether there is a non-null score curve for the given ScanResult. 90 public boolean hasScoreCurve(ScanResult result) { 95 public int getNetworkScore(ScanResult result) { 112 * Returns the ScoredNetwork metered hint for a given ScanResult. 114 * If there is no ScoredNetwork associated with the ScanResult then false will be returned. 116 public boolean getMeteredHint(ScanResult result) { 121 public int getNetworkScore(ScanResult result, boolean isActiveNetwork) [all...] |
WifiNotificationController.java | 29 import android.net.wifi.ScanResult; 155 List<ScanResult> scanResults) { 172 ScanResult scanResult = scanResults.get(i); 176 if (scanResult.capabilities != null && 177 scanResult.capabilities.equals("[ESS]")) {
|
WifiMetrics.java | 19 import android.net.wifi.ScanResult; 111 // Get AuthType information from config (We do this again from ScanResult after 124 // If there's a ScanResult candidate associated with this config already, get it and 126 ScanResult candidate = config.getNetworkSelectionStatus().getCandidate(); 387 ScanResult scanResult = scanDetail.getScanResult(); 390 if (networkDetail != null && scanResult != null 395 updateMetricsFromScanResult(scanResult); 466 * Set ConnectionEvent RSSI and authentication type from ScanResult 468 private void updateMetricsFromScanResult(ScanResult scanResult) [all...] |
ScanDetail.java | 20 import android.net.wifi.ScanResult; 40 private final ScanResult mScanResult; 47 ScanResult.InformationElement[] informationElements, List<String> anqpLines) { 49 mScanResult = new ScanResult(wifiSsid, bssid, networkDetail.getHESSID(), 60 mScanResult.setFlag(ScanResult.FLAG_80211mc_RESPONDER); 68 mScanResult = new ScanResult(wifiSsid, bssid, 0L, -1, null, caps, level, frequency, tsf); 78 public ScanDetail(ScanResult scanResult, NetworkDetail networkDetail, 80 mScanResult = scanResult; 112 mScanResult.setFlag(ScanResult.FLAG_80211mc_RESPONDER) [all...] |
/frameworks/base/core/java/android/bluetooth/ |
IBluetoothGattCallback.aidl | 21 import android.bluetooth.le.ScanResult; 31 void onScanResult(in ScanResult scanResult); 32 void onBatchScanResults(in List<ScanResult> batchResults); 45 void onFoundOrLost(in boolean onFound, in ScanResult scanResult);
|
BluetoothGattCallbackWrapper.java | 20 import android.bluetooth.le.ScanResult; 44 public void onScanResult(ScanResult scanResult) throws RemoteException { 48 public void onBatchScanResults(List<ScanResult> batchResults) throws RemoteException { 95 public void onFoundOrLost(boolean onFound, ScanResult scanResult) throws RemoteException {
|
/frameworks/base/core/java/android/bluetooth/le/ |
BluetoothLeScanner.java | 389 public void onScanResult(final ScanResult scanResult) { 390 if (VDBG) Log.d(TAG, "onScanResult() - " + scanResult.toString()); 400 mScanCallback.onScanResult(ScanSettings.CALLBACK_TYPE_ALL_MATCHES, scanResult); 407 public void onBatchScanResults(final List<ScanResult> results) { 418 public void onFoundOrLost(final boolean onFound, final ScanResult scanResult) { 421 " " + scanResult.toString()); 435 scanResult); 438 scanResult); [all...] |
ScanFilter.java | 42 * @see ScanResult 268 * Check if the scan filter matches a {@code scanResult}. A scan result is considered as a match 271 public boolean matches(ScanResult scanResult) { 272 if (scanResult == null) { 275 BluetoothDevice device = scanResult.getDevice(); 282 ScanRecord scanRecord = scanResult.getScanRecord();
|
/external/sl4a/Common/src/com/googlecode/android_scripting/jsonrpc/ |
JsonBuilder.java | 54 import android.net.wifi.ScanResult; 175 if (data instanceof ScanResult) { 176 return buildJsonScanResult((ScanResult) data); 181 if (data instanceof android.bluetooth.le.ScanResult) { 182 return buildJsonBleScanResult((android.bluetooth.le.ScanResult) data); 387 android.bluetooth.le.ScanResult scanResult) throws JSONException { 389 result.put("rssi", scanResult.getRssi()); 390 result.put("timestampNanos", scanResult.getTimestampNanos()); 391 result.put("deviceName", scanResult.getScanRecord().getDeviceName()) [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()])));
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
WifiNotificationControllerTest.java | 34 import android.net.wifi.ScanResult; 95 List<ScanResult> scanResults = new ArrayList<>(); 96 ScanResult scanResult = new ScanResult(); 97 scanResult.capabilities = "[ESS]"; 98 scanResults.add(scanResult);
|
WifiMetricsTest.java | 22 import android.net.wifi.ScanResult; 377 ScanResult scanResult = mock(ScanResult.class); 378 scanResult.level = SCAN_RESULT_LEVEL; 384 when(networkSelectionStat.getCandidate()).thenReturn(scanResult); 388 when(scanDetail.getScanResult()).thenReturn(scanResult);
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/ |
SelectFromListWizardFragment.java | 23 import android.net.wifi.ScanResult; 84 ScanResult o1ScanResult = o1.getScanResult(); 85 ScanResult o2ScanResult = o2.getScanResult(); 112 private final ScanResult mScanResult; 122 public ListItem(ScanResult scanResult) { 123 mName = scanResult.SSID; 124 mIconResource = WifiSecurity.NONE == WifiSecurity.getSecurity(scanResult) 127 mIconLevel = WifiManager.calculateSignalLevel(scanResult.level, 4); 129 mScanResult = scanResult; [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/wifi/java/android/net/wifi/ |
IWifiManager.aidl | 22 import android.net.wifi.ScanResult; 57 WifiConfiguration getMatchingWifiConfig(in ScanResult scanResult); 82 List<ScanResult> getScanResults(String callingPackage);
|
/frameworks/opt/net/wifi/service/jni/ |
com_android_server_wifi_WifiNative.cpp | 184 jboolean setSSIDField(JNIHelper helper, jobject scanResult, const char *rawSsid) { 192 "setSsid", "([BLandroid/net/wifi/ScanResult;)Z", ssidBytes.get(), scanResult); 202 JNIObject<jobject> scanResult = helper.createObject("android/net/wifi/ScanResult"); 203 if (scanResult == NULL) { 210 if (!setSSIDField(helper, scanResult, result->ssid)) { 219 helper.setStringField(scanResult, "BSSID", bssid); 221 helper.setIntField(scanResult, "level", result->rssi); 222 helper.setIntField(scanResult, "frequency", result->channel) [all...] |