Home
last modified time | relevance | path

Searched refs:wifiManager (Results 1 – 4 of 4) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowWifiManagerTest.java31 private WifiManager wifiManager; field in ShadowWifiManagerTest
35 wifiManager = in setUp()
42 assertThat(wifiManager.getConnectionInfo().getClass()).isEqualTo(WifiInfo.class); in shouldReturnWifiInfo()
48 shadowOf(wifiManager).setConnectionInfo(wifiInfo); in setWifiInfo_shouldUpdateWifiInfo()
49 assertThat(wifiManager.getConnectionInfo()).isSameAs(wifiInfo); in setWifiInfo_shouldUpdateWifiInfo()
55 shadowOf(wifiManager).setAccessWifiStatePermission(false); in setWifiEnabled_shouldThrowSecurityExceptionWhenAccessWifiStatePermissionNotGranted()
57 wifiManager.setWifiEnabled(true); in setWifiEnabled_shouldThrowSecurityExceptionWhenAccessWifiStatePermissionNotGranted()
67 shadowOf(wifiManager).setAccessWifiStatePermission(false); in isWifiEnabled_shouldThrowSecurityExceptionWhenAccessWifiStatePermissionNotGranted()
69 wifiManager.isWifiEnabled(); in isWifiEnabled_shouldThrowSecurityExceptionWhenAccessWifiStatePermissionNotGranted()
79 shadowOf(wifiManager).setAccessWifiStatePermission(false); in getWifiState_shouldThrowSecurityExceptionWhenAccessWifiStatePermissionNotGranted()
[all …]
DShadowWifiInfoTest.java21 private WifiManager wifiManager; field in ShadowWifiInfoTest
25 wifiManager = (WifiManager) application.getSystemService(WIFI_SERVICE); in setUp()
38 WifiInfo wifiInfo = wifiManager.getConnectionInfo(); in shouldReturnIpAddress()
46 WifiInfo wifiInfo = wifiManager.getConnectionInfo(); in shouldReturnMacAddress()
50 wifiInfo = wifiManager.getConnectionInfo(); in shouldReturnMacAddress()
56 WifiInfo wifiInfo = wifiManager.getConnectionInfo(); in shouldReturnSSID()
60 wifiInfo = wifiManager.getConnectionInfo(); in shouldReturnSSID()
66 WifiInfo wifiInfo = wifiManager.getConnectionInfo(); in shouldReturnBSSID()
71 wifiInfo = wifiManager.getConnectionInfo(); in shouldReturnBSSID()
77 WifiInfo wifiInfo = wifiManager.getConnectionInfo(); in shouldReturnRssi()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowWifiManager.java50 @RealObject WifiManager wifiManager; field in ShadowWifiManager
162 shadowOf(wifiLock).setWifiManager(wifiManager); in createWifiLock()
174 shadowOf(multicastLock).setWifiManager(wifiManager); in createMulticastLock()
345 private WifiManager wifiManager; field in ShadowWifiManager.ShadowWifiLock
348 private void setWifiManager(WifiManager wifiManager) { in setWifiManager() argument
349 this.wifiManager = wifiManager; in setWifiManager()
354 if (wifiManager != null) { in acquire()
355 shadowOf(wifiManager).activeLockCount.getAndIncrement(); in acquire()
366 if (wifiManager != null) { in release()
367 shadowOf(wifiManager).activeLockCount.getAndDecrement(); in release()
[all …]
/external/webrtc/talk/app/webrtc/java/android/org/webrtc/
DNetworkMonitorAutoDetect.java219 private final WifiManager wifiManager; field in NetworkMonitorAutoDetect.WifiManagerDelegate
228 wifiManager = hasWifiPermission in WifiManagerDelegate()
236 wifiManager = null; in WifiManagerDelegate()