/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
WifiInfoTest.java | 3 import android.net.wifi.WifiInfo; 21 WifiInfo wifiInfo = wifiManager.getConnectionInfo(); 22 shadowOf(wifiInfo).setMacAddress("mac address"); 25 wifiInfo = wifiManager.getConnectionInfo(); 26 assertThat(wifiInfo.getMacAddress(), equalTo("mac address"));
|
/cts/tests/tests/net/src/android/net/wifi/cts/ |
WifiInfoTest.java | 26 import android.net.wifi.WifiInfo; 119 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); 121 assertNotNull(wifiInfo); 122 assertNotNull(wifiInfo.toString()); 123 SupplicantState.isValidState(wifiInfo.getSupplicantState()); 124 WifiInfo.getDetailedStateOf(SupplicantState.DISCONNECTED); 125 String ssid = wifiInfo.getSSID(); 132 wifiInfo.getBSSID(); 133 wifiInfo.getIpAddress() [all...] |
/frameworks/base/packages/SettingsLib/tests/src/com/android/settingslib/wifi/ |
AccessPointTest.java | 20 import android.net.wifi.WifiInfo; 67 WifiInfo wifiInfo = Mockito.mock(WifiInfo.class); 68 Mockito.when(wifiInfo.getNetworkId()).thenReturn(NETWORK_ID); 70 mAccessPoint.update(wifiInfo, null);
|
WifiTrackerTest.java | 23 import android.net.wifi.WifiInfo; 305 WifiInfo wifiInfo = Mockito.mock(WifiInfo.class); 306 Mockito.when(wifiInfo.getSSID()).thenReturn(TEST_SSIDS[4]); 307 Mockito.when(wifiInfo.getNetworkId()).thenReturn(netId); 308 Mockito.when(mWifiManager.getConnectionInfo()).thenReturn(wifiInfo);
|
/cts/tests/tests/media/src/android/media/cts/ |
WifiStatus.java | 23 import android.net.wifi.WifiInfo; 74 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); 75 if (wifiInfo == null) { 79 Log.d(TAG, "ssid=" + wifiInfo.getSSID()); 80 Log.d(TAG, "frequency=" + wifiInfo.getFrequency() + " " + WifiInfo.FREQUENCY_UNITS); 81 Log.d(TAG, "rssi=" + wifiInfo.getRssi() + " dBm"); 82 Log.d(TAG, "link speed=" + wifiInfo.getLinkSpeed() + " " + WifiInfo.LINK_SPEED_UNITS) [all...] |
/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/model/ |
WifiInfoTest.java | 24 import com.android.managedprovisioning.model.WifiInfo; 28 /** Tests for {@link WifiInfo} */ 43 // WHEN a WifiInfo object is constructed by a set of parameters. 44 WifiInfo wifiInfo = WifiInfo.Builder.builder() 55 assertEquals(TEST_SSID, wifiInfo.ssid); 56 assertEquals(TEST_HIDDEN, wifiInfo.hidden); 57 assertEquals(TEST_SECURITY_TYPE, wifiInfo.securityType); 58 assertEquals(TEST_PASSWORD, wifiInfo.password) [all...] |
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowWifiManager.java | 5 import android.net.wifi.WifiInfo; 25 private WifiInfo wifiInfo; 45 public WifiInfo getConnectionInfo() { 47 if (wifiInfo == null) { 48 wifiInfo = Robolectric.newInstanceOf(WifiInfo.class); 50 return wifiInfo;
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
NetworkControllerWifiTest.java | 6 import android.net.wifi.WifiInfo; 128 WifiInfo wifiInfo = Mockito.mock(WifiInfo.class); 129 Mockito.when(wifiInfo.getSSID()).thenReturn(ssid); 132 i.putExtra(WifiManager.EXTRA_WIFI_INFO, wifiInfo);
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
WpsDialog.java | 25 import android.net.wifi.WifiInfo; 269 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); 270 if (wifiInfo != null) { 272 R.string.wifi_wps_connected), wifiInfo.getSSID());
|
ConfigureWifiSettings.java | 25 import android.net.wifi.WifiInfo; 216 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); 219 String macAddress = wifiInfo == null ? null : wifiInfo.getMacAddress();
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/ |
WifiConfigHelper.java | 23 import android.net.wifi.WifiInfo; 225 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); 226 if (wifiInfo != null) { 227 int networkId = wifiInfo.getNetworkId(); 249 String configuredSsid = WifiInfo.removeDoubleQuotes(configuredNetwork.SSID);
|
ConnectivityListener.java | 32 import android.net.wifi.WifiInfo; 155 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); 156 int ip = wifiInfo.getIpAddress(); 169 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); 170 return wifiInfo.getMacAddress(); 223 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); 224 return WifiManager.calculateSignalLevel(wifiInfo.getRssi(), maxLevel) [all...] |
/external/webrtc/talk/app/webrtc/java/android/org/webrtc/ |
NetworkMonitorAutoDetect.java | 43 import android.net.wifi.WifiInfo; 244 final WifiInfo wifiInfo = intent.getParcelableExtra(WifiManager.EXTRA_WIFI_INFO); 245 if (wifiInfo != null) { 246 final String ssid = wifiInfo.getSSID();
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/ |
WifiNetworkAdapter.java | 11 import android.net.wifi.WifiInfo; 157 WifiInfo wifiInfo = getConnectionInfo(); 158 if (wifiInfo == null) { 163 if (config.networkId == wifiInfo.getNetworkId()) { 170 public WifiInfo getConnectionInfo() { 193 WifiInfo wifiInfo = getConnectionInfo(); 194 if (wifiInfo == null) { 199 if (passpointConfig.getWifiConfiguration().networkId == wifiInfo.getNetworkId()) [all...] |
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/model/ |
ProvisioningParams.java | 77 public final WifiInfo wifiInfo; 165 wifiInfo = builder.mWifiInfo; 190 wifiInfo = (WifiInfo) in.readParcelable(WifiInfo.class.getClassLoader()); 231 out.writeParcelable(wifiInfo, 0 /* default */ ); 270 && Objects.equals(wifiInfo, that.wifiInfo) 335 private WifiInfo mWifiInfo [all...] |
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
Status.java | 29 import android.net.wifi.WifiInfo; 282 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); 283 String macAddress = wifiInfo == null ? null : wifiInfo.getMacAddress();
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/about/ |
StatusFragment.java | 26 import android.net.wifi.WifiInfo; 221 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); 222 String macAddress = wifiInfo == null ? null : wifiInfo.getMacAddress();
|
/cts/tests/tests/telephony/src/android/telephony/cts/ |
TelephonyManagerTest.java | 24 import android.net.wifi.WifiInfo; 357 WifiInfo wifiInfo = wifiManager.getConnectionInfo(); 358 return wifiInfo.getMacAddress();
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
WifiConnectivityManagerTest.java | 31 import android.net.wifi.WifiInfo; 100 private WifiInfo mWifiInfo; 211 WifiInfo getWifiInfo() { 212 WifiInfo wifiInfo = new WifiInfo(); 214 wifiInfo.setNetworkId(WifiConfiguration.INVALID_NETWORK_ID); 215 wifiInfo.setBSSID(null); 216 wifiInfo.setSupplicantState(SupplicantState.DISCONNECTED); 218 return wifiInfo; [all...] |
WifiQualifiedNetworkSelectorTest.java | 41 import android.net.wifi.WifiInfo; 95 private WifiInfo mWifiInfo; 152 WifiInfo getWifiInfo() { 153 WifiInfo wifiInfo = mock(WifiInfo.class); 156 when(wifiInfo.is24GHz()).thenReturn(true); 157 when(wifiInfo.is5GHz()).thenReturn(false); 158 when(wifiInfo.getRssi()).thenReturn(-70); 159 when(wifiInfo.getNetworkId()).thenReturn(WifiConfiguration.INVALID_NETWORK_ID) [all...] |
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/ |
OSUManager.java | 8 import android.net.wifi.WifiInfo; 467 public void networkConnectEvent(WifiInfo wifiInfo) { 468 if (wifiInfo != null) { 488 WifiInfo wifiInfo = mWifiNetworkAdapter.getConnectionInfo(); 489 return wifiInfo != null && Utils.parseMac(wifiInfo.getBSSID()) == osuInfo.getBSSID(); 697 WifiInfo wifiInfo = mWifiNetworkAdapter.getConnectionInfo() [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
BatteryStatsService.java | [all...] |
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
DevicePolicyManagerService.java | 80 import android.net.wifi.WifiInfo; [all...] |
/external/robolectric/v3/runtime/ |
shadows-core-3.1-SNAPSHOT-16.jar | |
shadows-core-3.1-SNAPSHOT-17.jar | |