Home
last modified time | relevance | path

Searched refs:networkId (Results 1 – 20 of 20) sorted by relevance

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DWifiConfigHelper.java132 public static WifiConfiguration getWifiConfiguration(WifiManager wifiManager, int networkId) { in getWifiConfiguration() argument
136 if (configuredNetwork.networkId == networkId) { in getWifiConfiguration()
148 return config != null && config.networkId > -1; in isNetworkSaved()
176 int networkId = wifiMan.addNetwork(config); in saveConfiguration() local
177 if (networkId == -1) { in saveConfiguration()
182 if (!wifiMan.enableNetwork(networkId, false)) { in saveConfiguration()
183 if (DEBUG) Log.e(TAG, "enable network failed: " + networkId + "; " + config.toString()); in saveConfiguration()
213 wifiMan.forget(wc.networkId, null); in forgetConfiguration()
227 int networkId = wifiInfo.getNetworkId(); in forgetWifiNetwork() local
228 if (networkId != -1) { in forgetWifiNetwork()
[all …]
DEditIpSettingsActivity.java40 public static Intent createIntent(Context context, int networkId) { in createIntent() argument
42 .putExtra(EXTRA_NETWORK_ID, networkId); in createIntent()
52 int networkId = getIntent().getIntExtra(EXTRA_NETWORK_ID, NETWORK_ID_ETHERNET); in onCreate() local
53 if (networkId == NETWORK_ID_ETHERNET) { in onCreate()
60 ((WifiConfig) mConfiguration).load(networkId); in onCreate()
66 Log.e(TAG, "Could not find existing configuration for network id: " + networkId); in onCreate()
DEditProxySettingsActivity.java40 public static Intent createIntent(Context context, int networkId) { in createIntent() argument
42 .putExtra(EXTRA_NETWORK_ID, networkId); in createIntent()
52 int networkId = getIntent().getIntExtra(EXTRA_NETWORK_ID, -1); in onCreate() local
53 if (networkId == NETWORK_ID_ETHERNET) { in onCreate()
60 ((WifiConfig) mConfiguration).load(networkId); in onCreate()
66 Log.e(TAG, "Could not find existing configuration for network id: " + networkId); in onCreate()
DWifiDetailsFragment.java163 final int networkId = wifiConfiguration.networkId; in update() local
168 networkId)); in update() local
173 mIpSettingsPref.setIntent(EditIpSettingsActivity.createIntent(getContext(), networkId)); in update() local
234 wifiManager.forget(mAccessPoint.getConfig().networkId, null); in onGuidedActionClicked()
DConnectToWifiFragment.java201 int networkId = mWifiManager.addNetwork(mWifiConfiguration); in onResume() local
202 if (networkId == -1) { in onResume()
207 } else if (!mWifiManager.enableNetwork(networkId, true)) { in onResume()
209 Log.d(TAG, "Failed to enable network id " + networkId + "!"); in onResume()
DWifiConfig.java55 public void load(int networkId) { in load() argument
56 mWifiConfiguration = WifiConfigHelper.getWifiConfiguration(mWifiManager, networkId); in load()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageMeteredSettings.java117 final String networkId = config.isPasspoint() ? in buildWifiPref() local
119 final NetworkTemplate template = NetworkTemplate.buildTemplateWifi(networkId); in buildWifiPref()
121 pref.setTitle(removeDoubleQuotes(networkId)); in buildWifiPref()
209 final String networkId = config.SSID;
212 data.title = removeDoubleQuotes(networkId);
DDataUsageSummary.java408 final String networkId = config.isPasspoint() ? config.providerFriendlyName : config.SSID; in isMetered() local
410 mPolicyEditor.getPolicyMaybeUnquoted(NetworkTemplate.buildTemplateWifi(networkId)); in isMetered()
/packages/apps/Nfc/src/com/android/nfc/
DConfirmConnectToWifiNetworkActivity.java86 int networkId = wifiManager.addNetwork(mCurrentWifiConfiguration); in doConnect() local
88 if (networkId < 0) { in doConnect()
92 wifiManager.connect(networkId, in doConnect()
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DServiceStateProviderTest.java202 final int networkId = ss.getNetworkId(); in verifyServiceStateForSubId() local
224 assertEquals(networkId, cursor.getInt(12)); in verifyServiceStateForSubId()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiSettings.java994 mWifiManager.forget(mSelectedAccessPoint.getConfig().networkId, mForgetListener); in forget()
1010 protected void connect(final int networkId, boolean isSavedNetwork) { in connect() argument
1014 mWifiManager.connect(networkId, mConnectListener); in connect()
DWifiDialogActivity.java85 wifiManager.forget(accessPoint.getConfig().networkId, null /* listener */); in onForget()
DSavedAccessPointsWifiSettings.java215 mWifiManager.forget(mSelectedAccessPoint.getConfig().networkId, mForgetListener); in onForget()
DWifiConfigController.java497 config.networkId = mAccessPoint.getConfig().networkId; in getConfig()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details/
DWifiDetailPreferenceControllerTest.java606 mockWifiConfig.networkId = 5; in forgetNetwork_saved()
611 verify(mockWifiManager).forget(mockWifiConfig.networkId, null); in forgetNetwork_saved()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiDetailActivity.java131 mWifiManager.forget(mAccessPoint.getConfig().networkId, in forget()
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/
DWifiSettingsUiTest.java108 config.networkId = TEST_NETWORK_ID; in setupConnectedAccessPoint()
/packages/services/NetworkRecommendation/src/com/android/networkrecommendation/
DDefaultNetworkRecommendationProvider.java363 .append("ID=").append(config.networkId) in configToString()
/packages/apps/Settings/src/com/android/settings/wifi/details/
DWifiDetailPreferenceController.java473 mWifiManager.forget(mWifiConfig.networkId, null /* action listener */); in forgetNetwork()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DWifiSetupActivity.java245 mConfiguration.networkId, null); in onPageComplete()