Home
last modified time | relevance | path

Searched refs:wifiInfo (Results 1 – 5 of 5) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowWifiInfoTest.java38 WifiInfo wifiInfo = wifiManager.getConnectionInfo(); in shouldReturnIpAddress() local
39 shadowOf(wifiInfo).setInetAddress(InetAddress.getByName(ipAddress)); in shouldReturnIpAddress()
40 assertThat(wifiInfo.getIpAddress()).isEqualTo(expectedIpAddress); in shouldReturnIpAddress()
46 WifiInfo wifiInfo = wifiManager.getConnectionInfo(); in shouldReturnMacAddress() local
48 shadowOf(wifiInfo).setMacAddress("mac address"); in shouldReturnMacAddress()
50 wifiInfo = wifiManager.getConnectionInfo(); in shouldReturnMacAddress()
51 assertThat(wifiInfo.getMacAddress()).isEqualTo("mac address"); in shouldReturnMacAddress()
56 WifiInfo wifiInfo = wifiManager.getConnectionInfo(); in shouldReturnSSID() local
58 shadowOf(wifiInfo).setSSID("SSID"); in shouldReturnSSID()
60 wifiInfo = wifiManager.getConnectionInfo(); in shouldReturnSSID()
[all …]
DShadowWifiManagerTest.java47 WifiInfo wifiInfo = new WifiInfo(); in setWifiInfo_shouldUpdateWifiInfo() local
48 shadowOf(wifiManager).setConnectionInfo(wifiInfo); in setWifiInfo_shouldUpdateWifiInfo()
49 assertThat(wifiManager.getConnectionInfo()).isSameAs(wifiInfo); in setWifiInfo_shouldUpdateWifiInfo()
/external/autotest/frontend/client/src/autotest/moblab/wizard/
DWifiCard.java23 private WifiInfo wifiInfo; field in WifiCard
33 if (wifiInfo != null) { in updateModeUI()
41 wifiInfo.getApName())); in updateModeUI()
47 WifiInfo.JSON_FIELD_AP_PASS, wifiInfo.getApPass(), true)); in updateModeUI()
53 wifiInfo = info; in updateModeUI()
62 wifiInfo.setApName(getStringValueFieldValue(WifiInfo.JSON_FIELD_AP_NAME)); in validate()
63 wifiInfo.setApPass(getStringValueFieldValue(WifiInfo.JSON_FIELD_AP_PASS)); in validate()
89 wifiInfo = null; in resetData()
95 if (map != null && wifiInfo != null) { in collectConfigData()
96 map.put(MoblabRpcHelper.RPC_PARAM_WIFI_INFO, wifiInfo.toJson()); in collectConfigData()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowWifiManager.java41 private WifiInfo wifiInfo; field in ShadowWifiManager
77 if (wifiInfo == null) { in getConnectionInfo()
78 wifiInfo = ReflectionHelpers.callConstructor(WifiInfo.class); in getConnectionInfo()
80 return wifiInfo; in getConnectionInfo()
96 public void setConnectionInfo(WifiInfo wifiInfo) { in setConnectionInfo() argument
97 this.wifiInfo = wifiInfo; in setConnectionInfo()
210 WifiInfo wifiInfo = getConnectionInfo(); in connect() local
216 ShadowWifiInfo shadowWifiInfo = Shadow.extract(wifiInfo); in connect()
220 setConnectionInfo(wifiInfo); in connect()
/external/webrtc/talk/app/webrtc/java/android/org/webrtc/
DNetworkMonitorAutoDetect.java244 final WifiInfo wifiInfo = intent.getParcelableExtra(WifiManager.EXTRA_WIFI_INFO); in getWifiSSID() local
245 if (wifiInfo != null) { in getWifiSSID()
246 final String ssid = wifiInfo.getSSID(); in getWifiSSID()