/cts/tests/tests/permission/src/android/permission/cts/ |
D | NoWifiStatePermissionTest.java | 32 private WifiManager mWifiManager; field in NoWifiStatePermissionTest 37 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in setUp() 38 assertNotNull(mWifiManager); in setUp() 48 mWifiManager.getWifiState(); in testGetWifiState() 62 mWifiManager.getConfiguredNetworks(); in testGetConfiguredNetworks() 76 mWifiManager.getConnectionInfo(); in testGetConnectionInfo() 90 mWifiManager.getScanResults(); in testGetScanResults() 104 mWifiManager.getDhcpInfo(); in testGetDhcpInfo() 118 mWifiManager.disconnect(); in testDisconnect() 132 mWifiManager.reconnect(); in testReconnect() [all …]
|
/cts/tests/tests/net/src/android/net/wifi/cts/ |
D | WifiManagerTest.java | 51 private WifiManager mWifiManager; field in WifiManagerTest 85 if (mWifiManager.getScanResults() != null) { 86 mScanResults = mWifiManager.getScanResults(); 88 mScanResults = mWifiManager.getScanResults(); 136 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); in setUp() 137 assertNotNull(mWifiManager); in setUp() 138 mWifiLock = mWifiManager.createWifiLock(TAG); in setUp() 140 if (!mWifiManager.isWifiEnabled()) in setUp() 143 assertTrue(mWifiManager.isWifiEnabled()); in setUp() 156 if (!mWifiManager.isWifiEnabled()) in tearDown() [all …]
|
D | ScanResultTest.java | 36 private WifiManager mWifiManager; field in ScanResultTest 89 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); in setUp() 90 assertNotNull(mWifiManager); in setUp() 91 mWifiLock = mWifiManager.createWifiLock(TAG); in setUp() 93 if (!mWifiManager.isWifiEnabled()) in setUp() 96 assertTrue(mWifiManager.isWifiEnabled()); in setUp() 109 if (!mWifiManager.isWifiEnabled()) in tearDown() 118 assertTrue(mWifiManager.setWifiEnabled(enable)); in setWifiEnabled() 135 List<ScanResult> scanResults = mWifiManager.getScanResults(); in testScanResultProperties() 146 mWifiManager.startScan(); in scanAndWait() [all …]
|
D | WifiInfoTest.java | 38 private WifiManager mWifiManager; field in WifiInfoTest 76 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); in setUp() 77 assertNotNull(mWifiManager); in setUp() 78 mWifiLock = mWifiManager.createWifiLock(TAG); in setUp() 80 if (!mWifiManager.isWifiEnabled()) in setUp() 83 assertTrue(mWifiManager.isWifiEnabled()); in setUp() 96 if (!mWifiManager.isWifiEnabled()) in tearDown() 105 assertTrue(mWifiManager.setWifiEnabled(enable)); in setWifiEnabled() 119 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in testWifiInfoProperties() 143 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in testWifiInfoProperties() [all …]
|
D | ConcurrencyTest.java | 43 private WifiManager mWifiManager; field in ConcurrencyTest 84 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); in setUp() 85 assertNotNull(mWifiManager); in setUp() 86 if (mWifiManager.isWifiEnabled()) { in setUp() 87 assertTrue(mWifiManager.setWifiEnabled(false)); in setUp() 90 assertTrue(!mWifiManager.isWifiEnabled()); in setUp() 126 if (!mWifiManager.isWifiEnabled()) { in enableWifi() 127 assertTrue(mWifiManager.setWifiEnabled(true)); in enableWifi() 162 assertTrue(mWifiManager.setWifiEnabled(true)); in testConcurrency()
|
D | WifiEnterpriseConfigTest.java | 33 private WifiManager mWifiManager; field in WifiEnterpriseConfigTest 444 mWifiManager = (WifiManager) mContext in setUp() 446 assertNotNull(mWifiManager); in setUp() 447 mWifiManager.setWifiEnabled(true); in setUp() 450 assertTrue(mWifiManager.isWifiEnabled()); in setUp() 522 int netId = mWifiManager.addNetwork(config); in testAddEapNetwork() 524 mWifiManager.removeNetwork(netId); in testAddEapNetwork() 529 for (final WifiConfiguration w : mWifiManager.getConfiguredNetworks()) { in doesSsidExist()
|
D | WifiConfigurationTest.java | 27 private WifiManager mWifiManager; field in WifiConfigurationTest 31 mWifiManager = (WifiManager) mContext in setUp() 40 List<WifiConfiguration> wifiConfigurations = mWifiManager.getConfiguredNetworks(); in testWifiConfiguration()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | WifiConfigCreator.java | 59 private final WifiManager mWifiManager; field in WifiConfigCreator 63 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); in WifiConfigCreator() 76 int netId = mWifiManager.addNetwork(wifiConf); in addNetwork() 79 mWifiManager.enableNetwork(netId, true); in addNetwork() 100 int newNetId = mWifiManager.updateNetwork(conf); in updateNetwork() 103 mWifiManager.saveConfiguration(); in updateNetwork() 104 mWifiManager.enableNetwork(newNetId, true); in updateNetwork() 120 List<WifiConfiguration> configs = mWifiManager.getConfiguredNetworks(); in updateNetwork() 131 return mWifiManager.removeNetwork(netId); in removeNetwork() 204 if (!mWifiManager.isWifiEnabled()) { in checkAndEnableWifi() [all …]
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | WifiConfigLockdownTest.java | 49 private WifiManager mWifiManager; field in WifiConfigLockdownTest 55 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in setUp() 69 List<WifiConfiguration> configs = mWifiManager.getConfiguredNetworks(); in tearDown() 75 mWifiManager.removeNetwork(config.networkId); in tearDown() 82 List<WifiConfiguration> configs = mWifiManager.getConfiguredNetworks(); in testDeviceOwnerCanUpdateConfig() 101 List<WifiConfiguration> configs = mWifiManager.getConfiguredNetworks(); in testDeviceOwnerCanRemoveConfig() 106 assertTrue(mWifiManager.removeNetwork(config.networkId)); in testDeviceOwnerCanRemoveConfig() 115 List<WifiConfiguration> configs = mWifiManager.getConfiguredNetworks(); in testRegularAppCannotUpdateDeviceOwnerConfig() 128 configs = mWifiManager.getConfiguredNetworks(); in testRegularAppCannotUpdateDeviceOwnerConfig() 141 List<WifiConfiguration> configs = mWifiManager.getConfiguredNetworks(); in testRegularAppCannotRemoveDeviceOwnerConfig() [all …]
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | ConnectivityConstraintTest.java | 47 private WifiManager mWifiManager; field in ConnectivityConstraintTest 63 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); in setUp() 73 mInitialWiFiState = mWifiManager.isWifiEnabled(); in setUp() 88 assertTrue(mWifiManager.setWifiEnabled(mInitialWiFiState)); in tearDown() 212 if (!mWifiManager.isWifiEnabled()) { in connectToWiFi() 220 assertTrue(mWifiManager.setWifiEnabled(true)); in connectToWiFi() 237 if (mHasWifi && mWifiManager.isWifiEnabled()) { in disconnectWifiToConnectToMobile() 248 assertTrue(mWifiManager.setWifiEnabled(false)); in disconnectWifiToConnectToMobile()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | WifiStatus.java | 42 private WifiManager mWifiManager; field in WifiStatus 47 mWifiManager = (WifiManager)context.getSystemService(Context.WIFI_SERVICE); in WifiStatus() 70 return mWifiManager.isWifiEnabled(); in isEnabled() 74 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in printConnectionInfo()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | WifiTest.java | 51 private WifiManager mWifiManager; field in WifiTest 56 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); in setUp() 135 for (WifiConfiguration config : mWifiManager.getConfiguredNetworks()) { in getNetworkForSsid()
|
/cts/tests/app/src/android/app/cts/ |
D | SystemFeaturesTest.java | 64 private WifiManager mWifiManager; field in SystemFeaturesTest 83 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in setUp() 472 boolean enabled = mWifiManager.isWifiEnabled(); in testWifiFeature() 477 if (mWifiManager.setWifiEnabled(true)) { in testWifiFeature() 482 mWifiManager.setWifiEnabled(false); in testWifiFeature()
|
/cts/tests/tests/net/src/android/net/cts/ |
D | ConnectivityManagerTest.java | 89 private WifiManager mWifiManager; field in ConnectivityManagerTest 99 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in setUp() 300 final boolean previousWifiEnabledState = mWifiManager.isWifiEnabled(); in testRegisterNetworkCallback() 359 final boolean previousWifiEnabledState = mWifiManager.isWifiEnabled(); in testRegisterNetworkCallback_withPendingIntent() 449 if (mWifiManager.isWifiEnabled()) { in toggleWifi() 474 assertTrue(mWifiManager.setWifiEnabled(true)); in connectToWifi() 540 assertTrue(mWifiManager.setWifiEnabled(false)); in disconnectFromWifi()
|
/cts/tests/netlegacy22.api/src/android/net/cts/legacy/api22/ |
D | ConnectivityManagerLegacyTest.java | 58 private WifiManager mWifiManager; field in ConnectivityManagerLegacyTest 66 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); in setUp() 260 mWifiManager.setWifiEnabled(enabled); in setWifiState()
|