Searched refs:wifiInfo (Results 1 – 5 of 5) sorted by relevance
38 WifiInfo wifiInfo = wifiManager.getConnectionInfo(); in shouldReturnIpAddress() local39 shadowOf(wifiInfo).setInetAddress(InetAddress.getByName(ipAddress)); in shouldReturnIpAddress()40 assertThat(wifiInfo.getIpAddress()).isEqualTo(expectedIpAddress); in shouldReturnIpAddress()46 WifiInfo wifiInfo = wifiManager.getConnectionInfo(); in shouldReturnMacAddress() local48 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() local58 shadowOf(wifiInfo).setSSID("SSID"); in shouldReturnSSID()60 wifiInfo = wifiManager.getConnectionInfo(); in shouldReturnSSID()[all …]
47 WifiInfo wifiInfo = new WifiInfo(); in setWifiInfo_shouldUpdateWifiInfo() local48 shadowOf(wifiManager).setConnectionInfo(wifiInfo); in setWifiInfo_shouldUpdateWifiInfo()49 assertThat(wifiManager.getConnectionInfo()).isSameAs(wifiInfo); in setWifiInfo_shouldUpdateWifiInfo()
23 private WifiInfo wifiInfo; field in WifiCard33 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()
41 private WifiInfo wifiInfo; field in ShadowWifiManager77 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() argument97 this.wifiInfo = wifiInfo; in setConnectionInfo()210 WifiInfo wifiInfo = getConnectionInfo(); in connect() local216 ShadowWifiInfo shadowWifiInfo = Shadow.extract(wifiInfo); in connect()220 setConnectionInfo(wifiInfo); in connect()
244 final WifiInfo wifiInfo = intent.getParcelableExtra(WifiManager.EXTRA_WIFI_INFO); in getWifiSSID() local245 if (wifiInfo != null) { in getWifiSSID()246 final String ssid = wifiInfo.getSSID(); in getWifiSSID()