Home
last modified time | relevance | path

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

12

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowWifiManager.java42 int networkId = mNetworkIdToConfiguredNetworks.size(); in addNetwork() local
43 config.networkId = -1; in addNetwork()
44 mNetworkIdToConfiguredNetworks.put(networkId, makeCopy(config, networkId)); in addNetwork()
45 return networkId; in addNetwork()
79 private WifiConfiguration makeCopy(WifiConfiguration config, int networkId) { in makeCopy() argument
81 copy.networkId = networkId; in makeCopy()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DWifiConfigHelper.java143 public static WifiConfiguration getWifiConfiguration(WifiManager wifiManager, int networkId) { in getWifiConfiguration() argument
147 if (configuredNetwork.networkId == networkId) { in getWifiConfiguration()
159 return config != null && config.networkId > -1; in isNetworkSaved()
186 int networkId = wifiMan.addNetwork(config); in saveConfiguration() local
187 if (networkId == -1) { in saveConfiguration()
192 if (!wifiMan.enableNetwork(networkId, false)) { in saveConfiguration()
193 if (DEBUG) Log.e(TAG, "enable network failed: " + networkId + "; " + config.toString()); in saveConfiguration()
DEditProxySettingsActivity.java46 public static Intent createIntent(Context context, int networkId) { in createIntent() argument
48 .putExtra(EXTRA_NETWORK_ID, networkId); in createIntent()
69 int networkId = getIntent().getIntExtra(EXTRA_NETWORK_ID, NETWORK_ID_ETHERNET); in onCreate() local
71 if (networkId == NETWORK_ID_ETHERNET) { in onCreate()
76 ((WifiConfig) netConfig).load(networkId); in onCreate()
DEditIpSettingsActivity.java45 public static Intent createIntent(Context context, int networkId) { in createIntent() argument
47 .putExtra(EXTRA_NETWORK_ID, networkId); in createIntent()
68 int networkId = getIntent().getIntExtra(EXTRA_NETWORK_ID, NETWORK_ID_ETHERNET); in onCreate() local
70 if (networkId == NETWORK_ID_ETHERNET) { in onCreate()
75 ((WifiConfig) netConfig).load(networkId); in onCreate()
DWifiDetailsFragment.java158 final int networkId = wifiConfiguration.networkId; in update() local
163 networkId)); in update() local
168 mIpSettingsPref.setIntent(EditIpSettingsActivity.createIntent(getContext(), networkId)); in update() local
229 wifiManager.forget(mAccessPoint.getConfig().networkId, null); in onGuidedActionClicked()
DWifiConfig.java54 public void load(int networkId) { in load() argument
55 mWifiConfiguration = WifiConfigHelper.getWifiConfiguration(mWifiManager, networkId); in load()
DWifiUtils.java80 config.networkId = accessPoint.getConfig().networkId; in getWifiConfig()
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiNetworkConfig.java61 boolean hiddenSsid, int networkId, boolean isHotspot) { in WifiNetworkConfig() argument
66 mNetworkId = networkId; in WifiNetworkConfig()
99 final int networkId = intent.getIntExtra(WifiDppUtils.EXTRA_WIFI_NETWORK_ID, in getValidConfigOrNull() local
103 return getValidConfigOrNull(security, ssid, preSharedKey, hiddenSsid, networkId, isHotspot); in getValidConfigOrNull()
107 String preSharedKey, boolean hiddenSsid, int networkId, boolean isHotspot) { in getValidConfigOrNull() argument
112 return new WifiNetworkConfig(security, ssid, preSharedKey, hiddenSsid, networkId, in getValidConfigOrNull()
307 wifiConfiguration.networkId = mNetworkId; in getBasicWifiConfiguration()
DWifiDppConfiguratorActivity.java112 final int networkId = savedInstanceState.getInt(KEY_WIFI_NETWORK_ID); in onCreate() local
116 preSharedKey, hiddenSsid, networkId, isHotspot); in onCreate()
388 if (wifiConfiguration.networkId == connectionNetworkId) { in getConnectedWifiNetworkConfigOrNull()
394 wifiConfiguration.networkId, in getConnectedWifiNetworkConfigOrNull()
DWifiDppUtils.java137 if (privilegedWifiConfiguration.networkId == wifiConfiguration.networkId) { in getPresharedKey()
237 if (wifiConfiguration.networkId == WifiConfiguration.INVALID_NETWORK_ID) { in getConfiguratorQrCodeScannerIntentOrNull()
240 intent.putExtra(EXTRA_WIFI_NETWORK_ID, wifiConfiguration.networkId); in getConfiguratorQrCodeScannerIntentOrNull()
DWifiDppInitiatorViewModel.java55 public void startEasyConnectAsConfiguratorInitiator(String qrCode, int networkId) { in startEasyConnectAsConfiguratorInitiator() argument
59 wifiManager.startEasyConnectAsConfiguratorInitiator(qrCode, networkId, in startEasyConnectAsConfiguratorInitiator()
DWifiDppQrCodeScannerFragment.java252 model.getEnrolleeSuccessNetworkId().observe(this, networkId -> { in onCreate()
259 new EasyConnectEnrolleeStatusCallback().onEnrolleeSuccess(networkId.intValue()); in onCreate()
566 if (wifiConfig.networkId == newNetworkId) { in onEnrolleeSuccess()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/dpp/
DWifiNetworkConfig.java61 boolean hiddenSsid, int networkId, boolean isHotspot) { in WifiNetworkConfig() argument
66 mNetworkId = networkId; in WifiNetworkConfig()
99 final int networkId = intent.getIntExtra(WifiDppUtils.EXTRA_WIFI_NETWORK_ID, in getValidConfigOrNull() local
103 return getValidConfigOrNull(security, ssid, preSharedKey, hiddenSsid, networkId, isHotspot); in getValidConfigOrNull()
107 String preSharedKey, boolean hiddenSsid, int networkId, boolean isHotspot) { in getValidConfigOrNull() argument
112 return new WifiNetworkConfig(security, ssid, preSharedKey, hiddenSsid, networkId, in getValidConfigOrNull()
307 wifiConfiguration.networkId = mNetworkId; in getBasicWifiConfiguration()
DWifiDppUtils.java136 if (wifiConfig.networkId == config.networkId) { in getPresharedKey()
224 if (wifiConfiguration.networkId == WifiConfiguration.INVALID_NETWORK_ID) { in getConfiguratorQrCodeScannerIntentOrNull()
227 intent.putExtra(EXTRA_WIFI_NETWORK_ID, wifiConfiguration.networkId); in getConfiguratorQrCodeScannerIntentOrNull()
DWifiDppConfiguratorActivity.java112 final int networkId = savedInstanceState.getInt(KEY_WIFI_NETWORK_ID); in onCreate() local
116 preSharedKey, hiddenSsid, networkId, isHotspot); in onCreate()
393 if (wifiConfiguration.networkId == connectionNetworkId) { in getConnectedWifiNetworkConfigOrNull()
399 wifiConfiguration.networkId, in getConnectedWifiNetworkConfigOrNull()
DWifiDppInitiatorViewModel.java55 public void startEasyConnectAsConfiguratorInitiator(String qrCode, int networkId) { in startEasyConnectAsConfiguratorInitiator() argument
59 wifiManager.startEasyConnectAsConfiguratorInitiator(qrCode, networkId, in startEasyConnectAsConfiguratorInitiator()
DWifiDppQrCodeScannerFragment.java242 model.getEnrolleeSuccessNetworkId().observe(this, networkId -> { in onCreate()
249 new EasyConnectEnrolleeStatusCallback().onEnrolleeSuccess(networkId.intValue()); in onCreate()
556 if (wifiConfig.networkId == newNetworkId) { in onEnrolleeSuccess()
/packages/apps/Settings/src/com/android/settings/datausage/
DWifiDataUsageSummaryPreferenceController.java36 Lifecycle lifecycle, PreferenceFragmentCompat fragment, CharSequence networkId) { in WifiDataUsageSummaryPreferenceController() argument
39 if (networkId == null) { in WifiDataUsageSummaryPreferenceController()
42 mNetworkId = String.valueOf(networkId); in WifiDataUsageSummaryPreferenceController()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DWifiDataUsageSummaryPreferenceController.java37 Lifecycle lifecycle, PreferenceFragmentCompat fragment, CharSequence networkId) { in WifiDataUsageSummaryPreferenceController() argument
40 if (networkId == null) { in WifiDataUsageSummaryPreferenceController()
43 mNetworkId = String.valueOf(networkId); in WifiDataUsageSummaryPreferenceController()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DKnownNetworkState.java121 int networkId = mUserChoiceInfo.getWifiConfiguration().networkId; in onGuidedActionClicked() local
123 Context.WIFI_SERVICE)).forget(networkId, null); in onGuidedActionClicked()
/packages/apps/Nfc/src/com/android/nfc/
DConfirmConnectToWifiNetworkActivity.java97 int networkId = wifiManager.addNetwork(mCurrentWifiConfiguration); in doConnect() local
99 if (networkId < 0) { in doConnect()
103 wifiManager.connect(networkId, in doConnect()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiUtils.java152 config.networkId = accessPoint.getConfig().networkId; in getWifiConfig()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DWifiUtils.java152 config.networkId = accessPoint.getConfig().networkId; in getWifiConfig()
/packages/apps/TV/partner_support/samples/src/com/example/partnersupportsampletvinput/
DChannelScanFragment.java228 private Channel createFakeChannel(String name, String number, int networkId) { in createFakeChannel() argument
234 .setOriginalNetworkId(networkId) in createFakeChannel()
/packages/services/Telephony/tests/src/com/android/phone/
DServiceStateProviderTest.java176 final int networkId = ss.getCdmaNetworkId(); in verifyServiceStateForSubId() local
199 assertEquals(networkId, cursor.getInt(12)); in verifyServiceStateForSubId()

12