Home
last modified time | relevance | path

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

123

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowWifiManager.java56 int networkId = mNetworkIdToConfiguredNetworks.size(); in addNetwork() local
57 config.networkId = -1; in addNetwork()
58 mNetworkIdToConfiguredNetworks.put(networkId, makeCopy(config, networkId)); in addNetwork()
59 return networkId; in addNetwork()
66 int networkId = mNetworkIdToConfiguredNetworks.size(); in connect() local
67 mNetworkIdToConfiguredNetworks.put(networkId, in connect()
68 makeCopy(wifiConfiguration, wifiConfiguration.networkId)); in connect()
69 mLastEnabledNetwork = new Pair<>(wifiConfiguration.networkId, true); in connect()
80 shadowWifiInfo.setNetworkId(wifiConfiguration.networkId); in connect()
181 private WifiConfiguration makeCopy(WifiConfiguration config, int networkId) { in makeCopy() argument
[all …]
/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()
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()
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()
DWifiDetailsFragment.java174 final int networkId = wifiConfiguration.networkId; in update() local
179 networkId)); in update() local
184 mIpSettingsPref.setIntent(EditIpSettingsActivity.createIntent(getContext(), networkId)); in update() local
313 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.java89 config.networkId = accessPoint.getConfig().networkId; in getWifiConfig()
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiNetworkConfig.java60 boolean hiddenSsid, int networkId, boolean isHotspot) { in WifiNetworkConfig() argument
65 mNetworkId = networkId; in WifiNetworkConfig()
98 final int networkId = intent.getIntExtra(WifiDppUtils.EXTRA_WIFI_NETWORK_ID, in getValidConfigOrNull() local
102 return getValidConfigOrNull(security, ssid, preSharedKey, hiddenSsid, networkId, isHotspot); in getValidConfigOrNull()
106 String preSharedKey, boolean hiddenSsid, int networkId, boolean isHotspot) { in getValidConfigOrNull() argument
111 return new WifiNetworkConfig(security, ssid, preSharedKey, hiddenSsid, networkId, in getValidConfigOrNull()
299 wifiConfiguration.networkId = mNetworkId; in getBasicWifiConfiguration()
DWifiDppUtils.java136 if (privilegedWifiConfiguration.networkId == wifiConfiguration.networkId) { in getPresharedKey()
279 if (wifiConfiguration.networkId == WifiConfiguration.INVALID_NETWORK_ID) { in getConfiguratorQrCodeScannerIntentOrNull()
282 intent.putExtra(EXTRA_WIFI_NETWORK_ID, wifiConfiguration.networkId); in getConfiguratorQrCodeScannerIntentOrNull()
309 if (wifiConfiguration.networkId == WifiConfiguration.INVALID_NETWORK_ID) { in getConfiguratorQrCodeScannerIntentOrNull()
312 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()
378 if (wifiConfiguration.networkId == connectionNetworkId) { in getConnectedWifiNetworkConfigOrNull()
384 wifiConfiguration.networkId, in getConnectedWifiNetworkConfigOrNull()
DWifiDppInitiatorViewModel.java71 void startEasyConnectAsConfiguratorInitiator(String qrCode, int networkId) { in startEasyConnectAsConfiguratorInitiator() argument
75 wifiManager.startEasyConnectAsConfiguratorInitiator(qrCode, networkId, in startEasyConnectAsConfiguratorInitiator()
DWifiDppQrCodeScannerFragment.java246 model.getEnrolleeSuccessNetworkId().observe(this, networkId -> { in onCreate()
253 new EasyConnectEnrolleeStatusCallback().onEnrolleeSuccess(networkId.intValue()); in onCreate()
541 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.java134 if (wifiConfig.networkId == config.networkId) { in getPresharedKey()
235 if (wifiConfiguration.networkId == WifiConfiguration.INVALID_NETWORK_ID) { in getConfiguratorQrCodeScannerIntentOrNull()
238 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.java168 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()

123