/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowWifiManager.java | 56 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/ |
D | WifiConfigHelper.java | 143 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()
|
D | EditIpSettingsActivity.java | 45 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()
|
D | EditProxySettingsActivity.java | 46 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()
|
D | WifiDetailsFragment.java | 174 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()
|
D | WifiConfig.java | 54 public void load(int networkId) { in load() argument 55 mWifiConfiguration = WifiConfigHelper.getWifiConfiguration(mWifiManager, networkId); in load()
|
D | WifiUtils.java | 89 config.networkId = accessPoint.getConfig().networkId; in getWifiConfig()
|
/packages/apps/Settings/src/com/android/settings/wifi/dpp/ |
D | WifiNetworkConfig.java | 60 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()
|
D | WifiDppUtils.java | 136 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()
|
D | WifiDppConfiguratorActivity.java | 112 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()
|
D | WifiDppInitiatorViewModel.java | 71 void startEasyConnectAsConfiguratorInitiator(String qrCode, int networkId) { in startEasyConnectAsConfiguratorInitiator() argument 75 wifiManager.startEasyConnectAsConfiguratorInitiator(qrCode, networkId, in startEasyConnectAsConfiguratorInitiator()
|
D | WifiDppQrCodeScannerFragment.java | 246 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/ |
D | WifiNetworkConfig.java | 61 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()
|
D | WifiDppUtils.java | 134 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()
|
D | WifiDppConfiguratorActivity.java | 112 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()
|
D | WifiDppInitiatorViewModel.java | 55 public void startEasyConnectAsConfiguratorInitiator(String qrCode, int networkId) { in startEasyConnectAsConfiguratorInitiator() argument 59 wifiManager.startEasyConnectAsConfiguratorInitiator(qrCode, networkId, in startEasyConnectAsConfiguratorInitiator()
|
D | WifiDppQrCodeScannerFragment.java | 242 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/ |
D | WifiDataUsageSummaryPreferenceController.java | 36 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/ |
D | WifiDataUsageSummaryPreferenceController.java | 37 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/ |
D | KnownNetworkState.java | 121 int networkId = mUserChoiceInfo.getWifiConfiguration().networkId; in onGuidedActionClicked() local 123 Context.WIFI_SERVICE)).forget(networkId, null); in onGuidedActionClicked()
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | ConfirmConnectToWifiNetworkActivity.java | 97 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/ |
D | WifiUtils.java | 168 config.networkId = accessPoint.getConfig().networkId; in getWifiConfig()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/ |
D | WifiUtils.java | 152 config.networkId = accessPoint.getConfig().networkId; in getWifiConfig()
|
/packages/apps/TV/partner_support/samples/src/com/example/partnersupportsampletvinput/ |
D | ChannelScanFragment.java | 228 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/ |
D | ServiceStateProviderTest.java | 176 final int networkId = ss.getCdmaNetworkId(); in verifyServiceStateForSubId() local 199 assertEquals(networkId, cursor.getInt(12)); in verifyServiceStateForSubId()
|