Home
last modified time | relevance | path

Searched refs:mWifiManager (Results 1 – 24 of 24) sorted by relevance

/cts/tests/tests/wifi/src/android/net/wifi/cts/
DEasyConnectStatusCallbackTest.java55 private WifiManager mWifiManager; field in EasyConnectStatusCallbackTest
82 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); in setUp()
143 mWifiManager.stopEasyConnectSession(); in cleanupEasyConnectSession()
159 if (!mWifiManager.isEasyConnectSupported()) { in testConfiguratorInitiatorOnFailure()
171 int networkId = mWifiManager.addNetwork(config); in testConfiguratorInitiatorOnFailure()
174 mWifiManager.startEasyConnectAsConfiguratorInitiator(TEST_DPP_URI, networkId, in testConfiguratorInitiatorOnFailure()
180 mWifiManager.removeNetwork(networkId); in testConfiguratorInitiatorOnFailure()
199 if (!mWifiManager.isEasyConnectSupported()) { in testEnrolleeInitiatorOnFailure()
207 mWifiManager.startEasyConnectAsEnrolleeInitiator(TEST_DPP_URI, mExecutor, in testEnrolleeInitiatorOnFailure()
233 if (!mWifiManager.isEasyConnectEnrolleeResponderModeSupported()) { in testEnrolleeResponderUriGeneration()
[all …]
DMultiStaConcurrencyWifiNetworkSpecifierTest.java81 private WifiManager mWifiManager; field in MultiStaConcurrencyWifiNetworkSpecifierTest
151 mWifiManager = mContext.getSystemService(WifiManager.class); in setUp()
165 () -> mWifiManager.removeAppState(myUid(), mContext.getPackageName())); in setUp()
168 () -> mWifiManager.getPrivilegedConfiguredNetworks()); in setUp()
175 mWifiManager.disableNetwork(savedNetwork.networkId); in setUp()
177 mWifiManager.disconnect(); in setUp()
184 TestHelper.findMatchingSavedNetworksWithBssid(mWifiManager, savedNetworks, 2); in setUp()
200 () -> mWifiManager.getConnectionInfo().getNetworkId() == -1); in setUp()
213 mWifiManager.getConfiguredNetworks()) { in tearDown()
214 mWifiManager.enableNetwork(savedNetwork.networkId, false); in tearDown()
[all …]
DMultiStaConcurrencyMultiInternetWifiNetworkTest.java90 private WifiManager mWifiManager; field in MultiStaConcurrencyMultiInternetWifiNetworkTest
184 mWifiManager = mContext.getSystemService(WifiManager.class); in setUp()
195 () -> mWifiManager.removeAppState(myUid(), mContext.getPackageName())); in setUp()
205 () -> mWifiManager.getPrivilegedConfiguredNetworks()); in setUp()
207 TestHelper.findMatchingSavedNetworksWithBssidByBand(mWifiManager, savedNetworks, in setUp()
227 mWifiManager.disconnect(); in setUp()
243 for (WifiConfiguration savedNetwork : mWifiManager.getConfiguredNetworks()) { in tearDown()
244 mWifiManager.enableNetwork(savedNetwork.networkId, false); in tearDown()
252 () -> mWifiManager.removeAppState(myUid(), mContext.getPackageName())); in tearDown()
268 mWifiManager.setStaConcurrencyForMultiInternetMode(multiInternetMode); in setMultiInternetMode()
[all …]
DTestHelper.java86 private final WifiManager mWifiManager; field in TestHelper
99 mWifiManager = context.getSystemService(WifiManager.class); in TestHelper()
444 return mWifiManager.getConnectionInfo(); in getWifiInfo()
505 mWifiManager.connect(network, actionListener); in testConnectionFlowWithConnect()
659 assertThat(mWifiManager.addNetworkSuggestions(Arrays.asList(suggestion))) in testConnectionFlowWithSuggestionInternal()
665 if (!mWifiManager.startScan()) { in testConnectionFlowWithSuggestionInternal()
690 && mWifiManager.isStaConcurrencyForRestrictedConnectionsSupported()) { in testConnectionFlowWithSuggestionInternal()
791 mWifiManager.registerNetworkRequestMatchCallback( in handleUiInteractions()
833 mWifiManager.unregisterNetworkRequestMatchCallback(networkRequestMatchCallback); in handleUiInteractions()
854 mWifiManager.addLocalOnlyConnectionFailureListener(Executors.newSingleThreadExecutor(), in testConnectionFlowWithSpecifierWithShellIdentity()
[all …]
DWifiConfigurationTest.java54 private WifiManager mWifiManager; field in WifiConfigurationTest
58 mWifiManager = (WifiManager) mContext in setUp()
67 List<WifiConfiguration> wifiConfigurations = mWifiManager.getConfiguredNetworks(); in testWifiConfiguration()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DWifiConfigCreator.java64 private final WifiManager mWifiManager; field in WifiConfigCreator
73 mWifiManager = wifiManager; in WifiConfigCreator()
76 + ", mgr=" + mWifiManager + ", currentUserMgr=" + mCurrentUserWifiManager); in WifiConfigCreator()
81 return "WifiConfigCreator[mWifiManager=" + mWifiManager in toString()
95 Log.i(TAG, "Adding SSID " + ssid + " using " + mWifiManager); in addNetwork()
96 int netId = mWifiManager.addNetwork(wifiConf); in addNetwork()
100 mWifiManager.enableNetwork(netId, true); in addNetwork()
125 if (!mWifiManager.removeNetwork(netId)) { in addHttpProxyNetworkVerifyAndRemove()
129 mWifiManager.removeNetwork(netId); in addHttpProxyNetworkVerifyAndRemove()
150 int netId = mWifiManager.addNetwork(conf); in addNetworkWithProxy()
[all …]
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DWifiNetworkConfigurationWithoutFineLocationPermissionTest.java51 if (!mWifiManager.isWifiEnabled()) { in setUp()
55 Log.d(TAG, "Done: " + mWifiManager.isWifiEnabled()); in setUp()
60 assertWithMessage("wifi is enabled").that(mWifiManager.isWifiEnabled()).isTrue(); in testAddAndRetrieveCallerConfiguredNetworks()
72 List<WifiConfiguration> configs = mWifiManager.getCallerConfiguredNetworks(); in testAddAndRetrieveCallerConfiguredNetworks()
78 mWifiManager.removeNetwork(netId); in testAddAndRetrieveCallerConfiguredNetworks()
87 if (mWifiManager.isWifiEnabled()) { in awaitWifiEnabled()
DBaseDeviceOwnerTest.java59 protected WifiManager mWifiManager; field in BaseDeviceOwnerTest
84 mWifiManager = TestAppSystemServiceFactory.getWifiManager(mContext, in setUp()
87 mWifiConfigCreator = mWifiManager == null ? null : new WifiConfigCreator(mContext, in setUp()
88 mWifiManager); in setUp()
97 Log.v(TAG, "dpm=" + mDevicePolicyManager + ", wifiManager=" + mWifiManager); in setUp()
DWifiConfigLockdownTest.java60 + ", dpm=" + mDevicePolicyManager + ", wifiMgr=" + mWifiManager in setUp()
80 mWifiManager.removeNetwork(config.networkId); in tearDown()
132 Log.d(TAG, "Removing using " + mWifiManager); in testDeviceOwnerCanRemoveConfig()
134 .that(mWifiManager.removeNetwork(config.networkId)).isTrue(); in testDeviceOwnerCanRemoveConfig()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DWifiTest.java54 private WifiManager mWifiManager; field in WifiTest
60 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); in setUp()
61 if (!mWifiManager.isWifiEnabled()) { in setUp()
136 if (mWifiManager.isWifiEnabled() == enabled) { in awaitWifiEnabledState()
153 final List<WifiConfiguration> configs = mWifiManager.getConfiguredNetworks(); in getNetworkForSsid()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/
DTestUtils.java52 private final WifiManager mWifiManager; field in TestUtils
57 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in TestUtils()
80 if (!mWifiManager.startScan()) { in startScanAndWaitForResults()
163 List<ScanResult> scanResults = mWifiManager.getScanResults(); in startScanAndFindAnyMatchingNetworkInResults()
185 List<ScanResult> scanResults = mWifiManager.getScanResults(); in findNetworkInScanResultsResults()
207 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in isConnected()
DBaseTestCase.java42 protected WifiManager mWifiManager; field in BaseTestCase
57 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in setUp()
80 mWifiManager = null; in tearDown()
DTestListActivity.java43 private WifiManager mWifiManager; field in TestListActivity
49 mWifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE); in onCreate()
50 if (mWifiManager == null) { in onCreate()
124 if (!mWifiManager.isWifiEnabled() || !locationManager.isLocationEnabled()) { in handleItemClick()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DNetworkingHelper.java76 private final WifiManager mWifiManager; field in NetworkingHelper
98 mWifiManager = context.getSystemService(WifiManager.class); in NetworkingHelper()
121 mWifiManager, WifiManager::getConfiguredNetworks); in ensureSavedWifiNetwork()
154 () -> mWifiManager.getConnectionInfo().getSSID(), in getWifiSSID()
217 if (!mWifiManager.isWifiEnabled()) { in isWiFiConnected()
232 return mWifiManager.isWifiEnabled(); in isWifiEnabled()
356 SystemUtil.runWithShellPermissionIdentity(mWifiManager::reconnect, in setWifiState()
380 if (mWifiManager.isWifiEnabled() != mInitialWiFiState) { in tearDown()
DConnectivityConstraintTest.java68 private WifiManager mWifiManager; field in ConnectivityConstraintTest
82 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); in setUp()
1085 if (mHasWifi && mWifiManager.isWifiEnabled()) { in disconnectWifiToConnectToMobile()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/testcase/
DNetworkSuggestionTestCase.java240 mWifiManager.addSuggestionConnectionStatusListener( in executeTest()
247 mWifiManager.addSuggestionUserApprovalStatusListener( in executeTest()
266 if (mWifiManager.addNetworkSuggestions(mNetworkSuggestions) in executeTest()
293 List<WifiNetworkSuggestion> retrievedSuggestions = mWifiManager.getNetworkSuggestions(); in executeTest()
302 if (!mWifiManager.startScan()) { in executeTest()
408 if (mWifiManager.addNetworkSuggestions(Arrays.asList(modifiedSuggestion)) in executeTest()
426 if (mWifiManager.removeNetworkSuggestions(mNetworkSuggestions) in executeTest()
472 mWifiManager.removeSuggestionConnectionStatusListener(mConnectionStatusListener); in tearDown()
474 mWifiManager.removeNetworkSuggestions(new ArrayList<>()); in tearDown()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DWifiLockdownTestActivity.java60 private WifiManager mWifiManager; field in WifiLockdownTestActivity
68 mWifiManager = TestAppSystemServiceFactory.getWifiManager(this, in onCreate()
70 mConfigCreator = new WifiConfigCreator(this, mWifiManager); in onCreate()
164 boolean isDppSupported = mWifiManager.isEasyConnectSupported(); in addTestsToAdapter()
/cts/tests/tests/wifi/src/android/net/wifi/aware/cts/
DSingleDeviceTest.java133 private WifiManager mWifiManager; field in SingleDeviceTest
627 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); in setUp()
628 assertNotNull("Wi-Fi Manager", mWifiManager); in setUp()
632 () -> mWifiManager.isVerboseLoggingEnabled()); in setUp()
634 () -> mWifiManager.setVerboseLoggingEnabled(true)); in setUp()
637 mWifiLock = mWifiManager.createWifiLock(TAG); in setUp()
639 if (!mWifiManager.isWifiEnabled()) { in setUp()
640 ShellIdentityUtils.invokeWithShellPermissions(() -> mWifiManager.setWifiEnabled(true)); in setUp()
674 () -> mWifiManager.setVerboseLoggingEnabled(mWasVerboseLoggingEnabled)); in tearDown()
753 ShellIdentityUtils.invokeWithShellPermissions(() -> mWifiManager.setWifiEnabled(false)); in testAvailabilityStatusChange()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/
DMultiNetworkConnectivityTestActivity.java184 private WifiManager mWifiManager; field in MultiNetworkConnectivityTestActivity
192 mWifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE); in onCreate()
213 if (!mWifiManager.isWifiEnabled()) { in recordCurrentWifiState()
216 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in recordCurrentWifiState()
498 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in isConnectedToExpectedWifiNetwork()
499 DhcpInfo dhcpInfo = mWifiManager.getDhcpInfo(); in isConnectedToExpectedWifiNetwork()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/presence/
DNanAccuracyActivity.java71 private WifiManager mWifiManager; field in NanAccuracyActivity
130 mWifiManager = (WifiManager) getApplicationContext().getSystemService(Context.WIFI_SERVICE); in onCreate()
209 if (!mWifiManager.isWifiEnabled()) { in checkWifiEnabled()
/cts/tests/app/src/android/app/cts/
DSystemFeaturesTest.java80 private WifiManager mWifiManager; field in SystemFeaturesTest
98 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); in setUp()
619 boolean enabled = mWifiManager.isWifiEnabled(); in testWifiFeature()
624 assertEquals(!enabled, mWifiManager.isWifiEnabled()); in testWifiFeature()
DDownloadManagerTestBase.java105 private WifiManager mWifiManager; field in DownloadManagerTestBase
113 mWifiManager = mContext.getSystemService(WifiManager.class); in setUp()
231 runWithShellPermissionIdentity(mWifiManager::reconnect, in checkConnection()
/cts/tests/tests/telephony/current/src/android/telephony/satellite/cts/
DSatelliteManagerTestBase.java93 protected WifiManager mWifiManager = null; field in SatelliteManagerTestBase
1237 if (mWifiExpectedState == mWifiManager.isWifiEnabled()) { in onReceive()
1296 if (mWifiExpectedState == mWifiManager.isWifiEnabled()) { in waitUntilOnWifiStateChanged()
DSatelliteManagerTestOnMockService.java4640 mWifiManager = getContext().getSystemService(WifiManager.class); in identifyRadiosSensitiveToSatelliteMode()
4641 mWifiInitState = mWifiManager.isWifiEnabled(); in identifyRadiosSensitiveToSatelliteMode()
4678 assertFalse(mWifiManager.isWifiEnabled()); in areAllRadiosDisabled()