/packages/apps/Settings/src/com/android/settings/wifi/ |
WifiManagerWrapper.java | 11 private final WifiManager mWifiManager; 14 mWifiManager = wifiManager; 21 return mWifiManager.getCurrentNetworkWpsNfcConfigurationToken();
|
WifiConfigInfo.java | 36 private WifiManager mWifiManager; 42 mWifiManager = (WifiManager) getSystemService(WIFI_SERVICE); 50 if (mWifiManager.isWifiEnabled()) { 51 final List<WifiConfiguration> wifiConfigs = mWifiManager.getConfiguredNetworks();
|
/cts/tests/tests/permission/src/android/permission/cts/ |
NoWifiStatePermissionTest.java | 32 private WifiManager mWifiManager; 37 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); 38 assertNotNull(mWifiManager); 48 mWifiManager.getWifiState(); 62 mWifiManager.getConfiguredNetworks(); 76 mWifiManager.getConnectionInfo(); 90 mWifiManager.getScanResults(); 104 mWifiManager.getDhcpInfo(); 118 mWifiManager.disconnect(); 132 mWifiManager.reconnect() [all...] |
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/unit/ |
WifiSoftAPTest.java | 34 private WifiManager mWifiManager; 42 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); 43 assertNotNull(mWifiManager); 44 assertTrue(mWifiManager.setWifiApEnabled(null, true)); 45 mWifiConfig = mWifiManager.getWifiApConfiguration(); 56 mWifiManager.setWifiApEnabled(null, false); 67 assertTrue(mWifiManager.setWifiApEnabled(mWifiConfig, true)); 74 assertNotNull(mWifiManager.getWifiApConfiguration()); 76 mWifiManager.getWifiApState());
|
WifiClientTest.java | 40 private WifiManager mWifiManager; 100 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); 101 mWifiManager.setWifiEnabled(true); 102 assertNotNull(mWifiManager); 121 int netId = mWifiManager.addNetwork(config); 125 List<WifiConfiguration> configList = mWifiManager.getConfiguredNetworks(); 135 boolean ret = mWifiManager.removeNetwork(netId); 139 configList = mWifiManager.getConfiguredNetworks(); 158 int netId = mWifiManager.addNetwork(config); 162 boolean ret = mWifiManager.enableNetwork(netId, true) [all...] |
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/ |
CarWifiManager.java | 42 private WifiManager mWifiManager; 68 mWifiManager = (WifiManager) mContext.getSystemService(WifiManager.class); 100 if (mWifiManager.isWifiEnabled()) { 112 return mWifiManager.isWifiEnabled(); 116 return mWifiManager.getWifiState(); 120 return mWifiManager.setWifiEnabled(enabled); 125 mWifiManager.connect(accessPoint.getConfig(), listener);
|
/cts/tests/tests/net/src/android/net/wifi/cts/ |
ScanResultTest.java | 36 private WifiManager mWifiManager; 89 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); 90 assertNotNull(mWifiManager); 91 mWifiLock = mWifiManager.createWifiLock(TAG); 93 if (!mWifiManager.isWifiEnabled()) 96 assertTrue(mWifiManager.isWifiEnabled()); 109 if (!mWifiManager.isWifiEnabled()) 118 assertTrue(mWifiManager.setWifiEnabled(enable)); 135 List<ScanResult> scanResults = mWifiManager.getScanResults(); 146 mWifiManager.startScan() [all...] |
WifiConfigurationTest.java | 27 private WifiManager mWifiManager; 31 mWifiManager = (WifiManager) mContext 40 List<WifiConfiguration> wifiConfigurations = mWifiManager.getConfiguredNetworks();
|
WifiInfoTest.java | 40 private WifiManager mWifiManager; 78 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); 79 assertNotNull(mWifiManager); 80 mWifiLock = mWifiManager.createWifiLock(TAG); 82 if (!mWifiManager.isWifiEnabled()) 85 assertTrue(mWifiManager.isWifiEnabled()); 98 if (!mWifiManager.isWifiEnabled()) 107 assertTrue(mWifiManager.setWifiEnabled(enable)); 121 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); 145 WifiInfo wifiInfo = mWifiManager.getConnectionInfo() [all...] |
WifiManagerTest.java | 57 private WifiManager mWifiManager; 96 if (mWifiManager.getScanResults() != null) { 97 mScanResults = mWifiManager.getScanResults(); 99 mScanResults = mWifiManager.getScanResults(); 147 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); 148 assertNotNull(mWifiManager); 149 mWifiLock = mWifiManager.createWifiLock(TAG); 151 if (!mWifiManager.isWifiEnabled()) 154 assertTrue(mWifiManager.isWifiEnabled()); 167 if (!mWifiManager.isWifiEnabled() [all...] |
ConcurrencyTest.java | 43 private WifiManager mWifiManager; 84 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); 85 assertNotNull(mWifiManager); 86 if (mWifiManager.isWifiEnabled()) { 87 assertTrue(mWifiManager.setWifiEnabled(false)); 90 assertTrue(!mWifiManager.isWifiEnabled()); 126 if (!mWifiManager.isWifiEnabled()) { 127 assertTrue(mWifiManager.setWifiEnabled(true)); 162 assertTrue(mWifiManager.setWifiEnabled(true));
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
AddWifiNetworkTask.java | 46 private final WifiManager mWifiManager; 76 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); 86 if (mWifiManager == null || !enableWifi()) { 126 mWifiManager.enableNetwork(netId, true); 127 mWifiManager.saveConfiguration(); 130 if (!mWifiManager.reconnect()) { 143 int netId = mWifiManager.addNetwork(wifiConf); 156 netId = mWifiManager.addNetwork(wifiConf); 162 return mWifiManager.isWifiEnabled() || mWifiManager.setWifiEnabled(true) [all...] |
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/ |
WifiEnablerTest.java | 46 private WifiManager mWifiManager; 55 when(mContext.getSystemService(Context.WIFI_SERVICE)).thenReturn(mWifiManager); 62 when(mWifiManager.setWifiEnabled(true)).thenReturn(true); 63 when(mWifiManager.getWifiApState()).thenReturn(WifiManager.WIFI_AP_STATE_ENABLED);
|
WriteWifiConfigToNfcDialogTest.java | 50 @Mock WifiManagerWrapper mWifiManager; 62 0 /* security */, mWifiManager); 74 when(mWifiManager.getCurrentNetworkWpsNfcConfigurationToken()).thenReturn("blah"); 83 when(mWifiManager.getCurrentNetworkWpsNfcConfigurationToken()).thenReturn(null); 93 when(mWifiManager.getCurrentNetworkWpsNfcConfigurationToken()).thenReturn("10270000");
|
WpsPreferenceControllerTest.java | 53 private WifiManager mWifiManager; 71 .thenReturn(mWifiManager); 76 mContext, mLifecycle, mWifiManager, mFragmentManager); 97 when(mWifiManager.isWifiEnabled()).thenReturn(true); 109 when(mWifiManager.isWifiEnabled()).thenReturn(false); 117 when(mWifiManager.isWifiEnabled()).thenReturn(true); 127 when(mWifiManager.isWifiEnabled()).thenReturn(false);
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/ |
WifiConfig.java | 29 private final WifiManager mWifiManager; 33 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); 49 mWifiManager.save(mWifiConfiguration, listener); 56 mWifiConfiguration = WifiConfigHelper.getWifiConfiguration(mWifiManager, networkId);
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
WifiConfigCreator.java | 61 private final WifiManager mWifiManager; 65 mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); 78 int netId = mWifiManager.addNetwork(wifiConf); 81 mWifiManager.enableNetwork(netId, true); 103 netId = mWifiManager.addNetwork(conf); 107 for (final WifiConfiguration w : mWifiManager.getConfiguredNetworks()) { 122 if (!mWifiManager.removeNetwork(netId)) { 126 mWifiManager.removeNetwork(netId); 145 int newNetId = mWifiManager.updateNetwork(conf); 148 mWifiManager.saveConfiguration() [all...] |
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
ConnectivityManagerTestBase.java | 80 public WifiManager mWifiManager; 115 mLastScanResult = mWifiManager.getScanResults(); 130 mWifiManager =(WifiManager)mContext.getSystemService(Context.WIFI_SERVICE); 132 if (mWifiManager.isWifiApEnabled()) { 134 mWifiManager.setWifiApEnabled(null, false); 181 int state = mWifiManager.getWifiState(); 200 int state = mWifiManager.getWifiApState(); 260 return mWifiManager.setWifiEnabled(true); 335 if (!mWifiManager.isWifiEnabled()) { 337 mWifiManager.setWifiEnabled(true) [all...] |
/frameworks/base/wifi/tests/src/android/net/wifi/ |
WifiManagerTest.java | 71 private WifiManager mWifiManager; 83 mWifiManager = new WifiManager(mContext, mWifiService, mLooper.getLooper()); 93 assertTrue(mWifiManager.startSoftAp(mApConfig)); 96 assertFalse(mWifiManager.startSoftAp(mApConfig)); 106 assertTrue(mWifiManager.startSoftAp(null)); 109 assertFalse(mWifiManager.startSoftAp(null)); 118 assertTrue(mWifiManager.stopSoftAp()); 121 assertFalse(mWifiManager.stopSoftAp()); 133 mWifiManager.startLocalOnlyHotspot(callback, mHandler); 135 callback.onStarted(mWifiManager.new LocalOnlyHotspotReservation(mApConfig)) [all...] |
/tools/tradefederation/core/util-apps/WifiUtil/src/com/android/tradefed/utils/wifi/ |
WifiConnector.java | 49 private WifiManager mWifiManager; 68 mWifiManager = (WifiManager)context.getSystemService(Context.WIFI_SERVICE); 148 networkId = mWifiManager.addNetwork(config); 157 List<WifiConfiguration> netlist = mWifiManager.getConfiguredNetworks(); 174 List<WifiConfiguration> netlist = mWifiManager.getConfiguredNetworks(); 178 if (!mWifiManager.removeNetwork(config.networkId)) { 220 if (!mWifiManager.setWifiEnabled(true)) { 231 return mWifiManager.isWifiEnabled(); 247 if (!mWifiManager.enableNetwork(networkId, true)) { 250 if (!mWifiManager.saveConfiguration()) [all...] |
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/stress/ |
WifiApStress.java | 86 mWifiManager.setWifiApEnabled(config, false)); 91 if (mWifiManager.isWifiEnabled()) { 103 mWifiManager.setWifiApEnabled(config, true)); 118 mWifiManager.setWifiApEnabled(config, false)); 121 assertFalse("wifi hotspot still enabled", mWifiManager.isWifiApEnabled());
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
WifiConfigLockdownTest.java | 49 private WifiManager mWifiManager; 55 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); 69 List<WifiConfiguration> configs = mWifiManager.getConfiguredNetworks(); 75 mWifiManager.removeNetwork(config.networkId); 82 List<WifiConfiguration> configs = mWifiManager.getConfiguredNetworks(); 101 List<WifiConfiguration> configs = mWifiManager.getConfiguredNetworks(); 106 assertTrue(mWifiManager.removeNetwork(config.networkId)); 115 List<WifiConfiguration> configs = mWifiManager.getConfiguredNetworks(); 128 configs = mWifiManager.getConfiguredNetworks(); 141 List<WifiConfiguration> configs = mWifiManager.getConfiguredNetworks() [all...] |
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
WifiTest.java | 53 private WifiManager mWifiManager; 61 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); 62 mWifiEnabled = mWifiManager.isWifiEnabled(); 64 mWifiManager.setWifiEnabled(true); 72 mWifiManager.setWifiEnabled(false); 163 if (mWifiManager.isWifiEnabled() == enabled) { 180 final List<WifiConfiguration> configs = mWifiManager.getConfiguredNetworks();
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/p2p/ |
WifiP2PPreferenceControllerTest.java | 52 private WifiManager mWifiManager; 66 .thenReturn(mWifiManager); 69 mController = new WifiP2pPreferenceController(mContext, mLifecycle, mWifiManager); 91 when(mWifiManager.isWifiEnabled()).thenReturn(true); 101 when(mWifiManager.isWifiEnabled()).thenReturn(false); 108 when(mWifiManager.isWifiEnabled()).thenReturn(true); 112 when(mWifiManager.isWifiEnabled()).thenReturn(false);
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
ConnectivityConstraintTest.java | 47 private WifiManager mWifiManager; 63 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); 73 mInitialWiFiState = mWifiManager.isWifiEnabled(); 81 if (mWifiManager.isWifiEnabled() == mInitialWiFiState) { 93 assertTrue(mWifiManager.setWifiEnabled(mInitialWiFiState)); 96 mWifiManager.isWifiEnabled() == mInitialWiFiState); 269 if (!mWifiManager.isWifiEnabled()) { 277 assertTrue(mWifiManager.setWifiEnabled(true)); 294 if (mHasWifi && mWifiManager.isWifiEnabled()) { 305 assertTrue(mWifiManager.setWifiEnabled(false)) [all...] |