Home
last modified time | relevance | path

Searched refs:wifiManager (Results 1 – 5 of 5) 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()).isSameInstanceAs(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/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/
DWifiLockManager.java35 @Nullable private final WifiManager wifiManager; field in WifiLockManager
41 wifiManager = in WifiLockManager()
57 if (wifiManager == null) { in setEnabled()
61 wifiLock = wifiManager.createWifiLock(WifiManager.WIFI_MODE_FULL_HIGH_PERF, WIFI_LOCK_TAG); in setEnabled()
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DHostActivity.java184 WifiManager wifiManager = in onStart() local
187 wifiLock = wifiManager.createWifiLock(WifiManager.WIFI_MODE_FULL_HIGH_PERF, LOCK_TAG); in onStart()