Home
last modified time | relevance | path

Searched refs:enableNetwork (Results 1 – 21 of 21) sorted by relevance

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DOsuNetworkConnectionTest.java94 when(mWifiManager.enableNetwork(TEST_NETWORK_ID, true)).thenReturn(true); in setUp()
189 when(mWifiManager.enableNetwork(TEST_NETWORK_ID, true)).thenReturn(false); in verifyNetworkConnectionWhenEnableNetworkFails()
DPasspointNetworkNominateHelperTest.java239 verify(mWifiConfigManager).enableNetwork( in evaluateScansWithNetworkMatchingHomeProvider()
286 verify(mWifiConfigManager).enableNetwork( in evaluateScansWithNoInternetBit()
327 verify(mWifiConfigManager).enableNetwork( in evaluateScansWithNetworkMatchingRoamingProvider()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiAPITest.java145 mWifiManager.enableNetwork(netid, false); in onPreferenceClick()
/packages/modules/Connectivity/tests/cts/net/util/java/android/net/cts/util/
DCtsNetUtils.java324 assertTrue(mWifiManager.enableNetwork(networkId, false /* attemptConnect */)); in maybeConfigureVirtualNetwork()
337 assertTrue(mWifiManager.enableNetwork(cfg.networkId, false /* attemptConnect */)); in clearWifiBlacklist()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DConnectionFailureNotifier.java123 mWifiConfigManager.enableNetwork(updatedConfig.networkId, true, in onClick()
DBaseWifiService.java175 public boolean enableNetwork(int netId, boolean disableOthers, String packageName) { in enableNetwork() method in BaseWifiService
DWifiConfigManager.java1900 public boolean enableNetwork(int networkId, boolean disableOthers, int uid, in enableNetwork() method in WifiConfigManager
3629 if (!enableNetwork(networkId, true, callingUid, null)
3643 if (!enableNetwork(result.getNetworkId(), false, callingUid, null)) {
DWifiServiceImpl.java2897 public boolean enableNetwork(int netId, boolean disableOthers, String packageName) { in enableNetwork() method in WifiServiceImpl
2919 () -> mWifiConfigManager.enableNetwork( in enableNetwork()
4202 mWifiConfigManager.enableNetwork(networkId, false, callingUid, null);
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DAddWifiNetworkTask.java137 mWifiManager.enableNetwork(netId, true); in connectToProvidedNetwork()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DOsuNetworkConnection.java220 if (!mWifiManager.enableNetwork(mNetworkId, true)) { in connect()
DPasspointNetworkNominateHelper.java221 mWifiConfigManager.enableNetwork(result.getNetworkId(), false, Process.WIFI_UID, null); in createWifiConfigForProvider()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DWifiConfigHelper.java199 if (!wifiMan.enableNetwork(networkId, false)) { in saveConfiguration()
/packages/modules/Wifi/framework/java/android/net/wifi/
DIWifiManager.aidl96 boolean enableNetwork(int netId, boolean disableOthers, String packageName); in enableNetwork() method
DWifiManager.java2502 public boolean enableNetwork(int netId, boolean attemptConnect) { in enableNetwork() method in WifiManager
2504 return mService.enableNetwork(netId, attemptConnect, mContext.getOpPackageName()); in enableNetwork()
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiDppQrCodeScannerFragment.java188 wifiManager.enableNetwork(id, /* attemptConnect */ false);
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiConfigManagerTest.java1482 assertTrue(mWifiConfigManager.enableNetwork( in testEnableDisableNetwork()
1518 assertFalse(mWifiConfigManager.enableNetwork( in testEnableNetworkFailedDueToPermissionDenied()
1541 assertTrue(mWifiConfigManager.enableNetwork( in testDisableNetworkFailedDueToPermissionDenied()
1659 assertFalse(mWifiConfigManager.enableNetwork( in testChangeConfigurationWithInvalidNetworkId()
3909 assertTrue(mWifiConfigManager.enableNetwork( in testLastSelectedNetwork()
3921 assertTrue(mWifiConfigManager.enableNetwork( in testLastSelectedNetwork()
DWifiServiceImplTest.java5932 assertTrue(mWifiServiceImpl.enableNetwork(TEST_NETWORK_ID, true, TEST_PACKAGE_NAME)); in testEnableNetworkWithDisableOthersAllowedForPrivilegedApps()
5962 assertTrue(mWifiServiceImpl.enableNetwork(TEST_NETWORK_ID, true, TEST_PACKAGE_NAME)); in testEnabledNetworkWithDisableOthersAllowedForAppsTargetingBelowQSdk()
5983 when(mWifiConfigManager.enableNetwork(anyInt(), anyBoolean(), anyInt(), anyString())) in testEnabledNetworkWithoutDisableOthersAllowedForAppsTargetingBelowQSdk()
5986 assertTrue(mWifiServiceImpl.enableNetwork(TEST_NETWORK_ID, false, TEST_PACKAGE_NAME)); in testEnabledNetworkWithoutDisableOthersAllowedForAppsTargetingBelowQSdk()
5988 verify(mWifiConfigManager).enableNetwork(eq(TEST_NETWORK_ID), eq(false), in testEnabledNetworkWithoutDisableOthersAllowedForAppsTargetingBelowQSdk()
6002 mWifiServiceImpl.enableNetwork(TEST_NETWORK_ID, true, TEST_PACKAGE_NAME); in testEnableNetworkNotAllowedForAppsTargetingQ()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiManagerTest.java2505 when(mWifiService.enableNetwork(anyInt(), anyBoolean(), anyString())) in testEnableNetwork()
2507 assertTrue(mWifiManager.enableNetwork(TEST_NETWORK_ID, true)); in testEnableNetwork()
2508 verify(mWifiService).enableNetwork(TEST_NETWORK_ID, true, mContext.getOpPackageName()); in testEnableNetwork()
/packages/modules/Wifi/framework/api/
Dcurrent.txt360 method @Deprecated public boolean enableNetwork(int, boolean);
/packages/modules/Wifi/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt852 Landroid/net/wifi/IWifiManager$Stub$Proxy;->enableNetwork(IZLjava/lang/String;)Z
984 Landroid/net/wifi/IWifiManager;->enableNetwork(IZLjava/lang/String;)Z
/packages/modules/Wifi/service/proto/src/
Dmetrics.proto542 // Number of times WifiManager#enableNetwork is called.