/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);
|
/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/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);
|
WifiQualifiedNetworkSelectorTest.java | 38 import android.net.wifi.ScanResult; 280 ScanResult scanResult = scanDetail.getScanResult(); 282 when(mScoreCache.isScoredNetwork(scanResult)).thenReturn(true); 283 when(mScoreCache.hasScoreCurve(scanResult)).thenReturn(true); 284 when(mScoreCache.getNetworkScore(eq(scanResult), anyBoolean())).thenReturn(score); 285 when(mScoreCache.getNetworkScore(scanResult)).thenReturn(score); 287 when(mScoreCache.isScoredNetwork(scanResult)).thenReturn(false); 288 when(mScoreCache.hasScoreCurve(scanResult)).thenReturn(false); 289 when(mScoreCache.getNetworkScore(eq(scanResult), anyBoolean())).thenReturn [all...] |
/frameworks/base/libs/androidfw/ |
Asset.cpp | 189 bool scanResult; 214 scanResult = ZipUtils::examineGzip(fp, &method, &uncompressedLen, 218 if (!scanResult) {
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
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]")) {
|
WifiLastResortWatchdog.java | 19 import android.net.wifi.ScanResult; 102 ScanResult scanResult = scanDetail.getScanResult(); 103 if (scanResult == null) continue; 104 String bssid = scanResult.BSSID; 107 // Cache the scanResult & WifiConfig
|
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...] |
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...] |
WifiNative.java | 29 import android.net.wifi.ScanResult; 705 ScanResult.InformationElement[] infoElements = 771 public String scanResult(String bssid) { [all...] |
/build/tools/zipalign/ |
ZipFile.cpp | 467 bool scanResult; 472 scanResult = ZipUtils::examineGzip(inputFp, &method, &uncompressedLen, 474 if (!scanResult || method != ZipEntry::kCompressDeflated) { [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+" ");
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/ |
WifiSetupActivity.java | 28 import android.net.wifi.ScanResult; 438 final List<ScanResult> results = mWifiTracker.getManager().getScanResults(); 439 final HashMap<Pair<String, WifiSecurity>, ScanResult> consolidatedScanResults = 441 for (ScanResult result : results) { 448 ScanResult existing = consolidatedScanResults.get(key); 453 for (ScanResult result : consolidatedScanResults.values()) { 483 ScanResult scanResult = getListItem(chooseNetworkPage).getScanResult(); 489 || !scanResult.SSID.equals(mConfiguration.getPrintableSsid()))) { 493 mConfiguration = WifiConfigHelper.getConfiguration(this, scanResult.SSID [all...] |
/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...] |
/external/robolectric/v3/runtime/ |
shadows-core-3.1-SNAPSHOT-16.jar | |
shadows-core-3.1-SNAPSHOT-17.jar | |
shadows-core-3.1-SNAPSHOT-18.jar | |
shadows-core-3.1-SNAPSHOT-19.jar | |
shadows-core-3.1-SNAPSHOT-21.jar | |
shadows-core-3.1-SNAPSHOT-22.jar | |