Home
last modified time | relevance | path

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

123

/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiConfigControllerTest.java102 final TextView ssid = mView.findViewById(R.id.ssid); in ssidExceeds32Bytes_shouldShowSsidTooLongWarning() local
103 assertThat(ssid).isNotNull(); in ssidExceeds32Bytes_shouldShowSsidTooLongWarning()
104 ssid.setText("☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎"); in ssidExceeds32Bytes_shouldShowSsidTooLongWarning()
116 final TextView ssid = mView.findViewById(R.id.ssid); in ssidShorterThan32Bytes_shouldNotShowSsidTooLongWarning() local
117 assertThat(ssid).isNotNull(); in ssidShorterThan32Bytes_shouldNotShowSsidTooLongWarning()
118 ssid.setText("123456789012345678901234567890"); in ssidShorterThan32Bytes_shouldNotShowSsidTooLongWarning()
124 ssid.setText("123"); in ssidShorterThan32Bytes_shouldNotShowSsidTooLongWarning()
133 final TextView ssid = mView.findViewById(R.id.ssid); in isSubmittable_noSSID_shouldReturnFalse() local
134 assertThat(ssid).isNotNull(); in isSubmittable_noSSID_shouldReturnFalse()
135 ssid.setText(""); in isSubmittable_noSSID_shouldReturnFalse()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiNetworkConfig.java60 WifiNetworkConfig(String security, String ssid, String preSharedKey, in WifiNetworkConfig() argument
63 mSsid = ssid; in WifiNetworkConfig()
95 final String ssid = intent.getStringExtra(WifiDppUtils.EXTRA_WIFI_SSID); in getValidConfigOrNull() local
103 return getValidConfigOrNull(security, ssid, preSharedKey, hiddenSsid, networkId, isHotspot); in getValidConfigOrNull()
106 public static WifiNetworkConfig getValidConfigOrNull(String security, String ssid, in getValidConfigOrNull() argument
108 if (!isValidConfig(security, ssid, preSharedKey, hiddenSsid)) { in getValidConfigOrNull()
112 return new WifiNetworkConfig(security, ssid, preSharedKey, hiddenSsid, networkId, in getValidConfigOrNull()
125 public static boolean isValidConfig(String security, String ssid, String preSharedKey, in isValidConfig() argument
133 if (!hiddenSsid && TextUtils.isEmpty(ssid)) { in isValidConfig()
DWifiDppUtils.java122 public static Intent getEnrolleeQrCodeScannerIntent(String ssid) { in getEnrolleeQrCodeScannerIntent() argument
125 if (!TextUtils.isEmpty(ssid)) { in getEnrolleeQrCodeScannerIntent()
126 intent.putExtra(EXTRA_WIFI_SSID, ssid); in getEnrolleeQrCodeScannerIntent()
282 final String ssid = removeFirstAndLastDoubleQuotes(wifiConfiguration.SSID); in setConfiguratorIntentExtra() local
290 if (!TextUtils.isEmpty(ssid)) { in setConfiguratorIntentExtra()
291 intent.putExtra(EXTRA_WIFI_SSID, ssid); in setConfiguratorIntentExtra()
DWifiDppEnrolleeActivity.java79 String ssid = intent.getStringExtra(WifiDppUtils.EXTRA_WIFI_SSID); in handleIntent() local
80 showQrCodeScannerFragment(/* addToBackStack */ false, ssid); in handleIntent()
88 private void showQrCodeScannerFragment(boolean addToBackStack, String ssid) { in showQrCodeScannerFragment() argument
94 fragment = new WifiDppQrCodeScannerFragment(ssid); in showQrCodeScannerFragment()
DWifiQrCode.java124 String ssid = getValueOrNull(keyValueList, PREFIX_ZXING_SSID); in parseZxingWifiQrCode() local
132 ssid = removeBackSlash(ssid); in parseZxingWifiQrCode()
135 mWifiNetworkConfig = WifiNetworkConfig.getValidConfigOrNull(security, ssid, password, in parseZxingWifiQrCode()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/dpp/
DWifiNetworkConfig.java60 WifiNetworkConfig(String security, String ssid, String preSharedKey, in WifiNetworkConfig() argument
63 mSsid = ssid; in WifiNetworkConfig()
95 final String ssid = intent.getStringExtra(WifiDppUtils.EXTRA_WIFI_SSID); in getValidConfigOrNull() local
103 return getValidConfigOrNull(security, ssid, preSharedKey, hiddenSsid, networkId, isHotspot); in getValidConfigOrNull()
106 public static WifiNetworkConfig getValidConfigOrNull(String security, String ssid, in getValidConfigOrNull() argument
108 if (!isValidConfig(security, ssid, preSharedKey, hiddenSsid)) { in getValidConfigOrNull()
112 return new WifiNetworkConfig(security, ssid, preSharedKey, hiddenSsid, networkId, in getValidConfigOrNull()
125 public static boolean isValidConfig(String security, String ssid, String preSharedKey, in isValidConfig() argument
133 if (!hiddenSsid && TextUtils.isEmpty(ssid)) { in isValidConfig()
DWifiDppUtils.java122 public static Intent getEnrolleeQrCodeScannerIntent(String ssid) { in getEnrolleeQrCodeScannerIntent() argument
125 if (!TextUtils.isEmpty(ssid)) { in getEnrolleeQrCodeScannerIntent()
126 intent.putExtra(EXTRA_WIFI_SSID, ssid); in getEnrolleeQrCodeScannerIntent()
269 final String ssid = removeFirstAndLastDoubleQuotes(wifiConfiguration.SSID); in setConfiguratorIntentExtra() local
280 if (!TextUtils.isEmpty(ssid)) { in setConfiguratorIntentExtra()
281 intent.putExtra(EXTRA_WIFI_SSID, ssid); in setConfiguratorIntentExtra()
DWifiDppEnrolleeActivity.java74 String ssid = intent.getStringExtra(WifiDppUtils.EXTRA_WIFI_SSID); in handleIntent() local
75 showQrCodeScannerFragment(/* addToBackStack */ false, ssid); in handleIntent()
83 private void showQrCodeScannerFragment(boolean addToBackStack, String ssid) { in showQrCodeScannerFragment() argument
89 fragment = new WifiDppQrCodeScannerFragment(ssid); in showQrCodeScannerFragment()
DWifiQrCode.java124 String ssid = getValueOrNull(keyValueList, PREFIX_ZXING_SSID); in parseZxingWifiQrCode() local
132 ssid = removeBackSlash(ssid); in parseZxingWifiQrCode()
135 mWifiNetworkConfig = WifiNetworkConfig.getValidConfigOrNull(security, ssid, password, in parseZxingWifiQrCode()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DConnectivityListener.java312 String ssid = getSsid(); in updateConnectivityStatus() local
313 if (!TextUtils.equals(mWifiSsid, ssid)) { in updateConnectivityStatus()
314 mWifiSsid = ssid; in updateConnectivityStatus()
385 String ssid = null; in getSsid() local
387 ssid = wifiInfo.getSSID(); in getSsid()
388 if (ssid != null) { in getSsid()
389 ssid = WifiInfo.removeDoubleQuotes(ssid); in getSsid()
392 return ssid; in getSsid()
DWifiConfigHelper.java70 public static void setConfigSsid(WifiConfiguration config, String ssid) { in setConfigSsid() argument
71 config.SSID = AccessPoint.convertToQuotedString(ssid); in setConfigSsid()
165 public static WifiConfiguration getConfiguration(Context context, String ssid, int security) { in getConfiguration() argument
166 WifiConfiguration config = getFromConfiguredNetworks(context, ssid, security); in getConfiguration()
171 setConfigSsid(config, ssid); in getConfiguration()
211 String ssid, in getFromConfiguredNetworks() argument
223 if (TextUtils.equals(configuredSsid, ssid)) { in getFromConfiguredNetworks()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DWifiDialog.java45 default void onScan(WifiDialog dialog, String ssid) { in onScan() argument
111 String ssid = null; in onStart()
113 final TextView ssidEditText = findViewById(R.id.ssid); in onStart()
114 ssid = ssidEditText.getText().toString(); in onStart()
116 ssid = mAccessPoint.getSsidStr(); in onStart()
118 mListener.onScan(/* WifiDialog */ this, ssid); in onStart()
DWifiUtils.java42 public static boolean isSSIDTooLong(String ssid) { in isSSIDTooLong() argument
43 if (TextUtils.isEmpty(ssid)) { in isSSIDTooLong()
46 return ssid.getBytes(StandardCharsets.UTF_8).length > SSID_ASCII_MAX_LENGTH; in isSSIDTooLong()
49 public static boolean isSSIDTooShort(String ssid) { in isSSIDTooShort() argument
50 if (TextUtils.isEmpty(ssid)) { in isSSIDTooShort()
53 return ssid.length() < SSID_ASCII_MIN_LENGTH; in isSSIDTooShort()
DWifiSummaryUpdater.java93 String ssid = WifiInfo.removeDoubleQuotes(mWifiTracker.ssid); in getSummary() local
95 return ssid; in getSummary()
99 ssid, mWifiTracker.statusLabel); in getSummary()
DAddNetworkFragment.java95 String ssid = null; in onClick() local
105 final TextView ssidEditText = getView().findViewById(R.id.ssid); in onClick()
106 ssid = ssidEditText.getText().toString(); in onClick()
110 startActivityForResult(WifiDppUtils.getEnrolleeQrCodeScannerIntent(ssid), in onClick()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiDialog.java46 default void onScan(WifiDialog dialog, String ssid) { in onScan() argument
122 String ssid = null; in onStart()
124 final TextView ssidEditText = findViewById(R.id.ssid); in onStart()
125 ssid = ssidEditText.getText().toString(); in onStart()
127 ssid = mAccessPoint.getSsidStr(); in onStart()
129 mListener.onScan(/* WifiDialog */ this, ssid); in onStart()
DWifiUtils.java42 public static boolean isSSIDTooLong(String ssid) { in isSSIDTooLong() argument
43 if (TextUtils.isEmpty(ssid)) { in isSSIDTooLong()
46 return ssid.getBytes(StandardCharsets.UTF_8).length > SSID_ASCII_MAX_LENGTH; in isSSIDTooLong()
49 public static boolean isSSIDTooShort(String ssid) { in isSSIDTooShort() argument
50 if (TextUtils.isEmpty(ssid)) { in isSSIDTooShort()
53 return ssid.length() < SSID_ASCII_MIN_LENGTH; in isSSIDTooShort()
DWifiSummaryUpdater.java93 String ssid = WifiInfo.removeDoubleQuotes(mWifiTracker.ssid); in getSummary() local
95 return ssid; in getSummary()
99 ssid, mWifiTracker.statusLabel); in getSummary()
DAddNetworkFragment.java95 String ssid = null; in onClick() local
105 final TextView ssidEditText = getView().findViewById(R.id.ssid); in onClick()
106 ssid = ssidEditText.getText().toString(); in onClick()
110 startActivityForResult(WifiDppUtils.getEnrolleeQrCodeScannerIntent(ssid), in onClick()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/slice/
DWifiScanWorkerTest.java201 static Intent getIntentWithAccessPoint(String ssid) { in getIntentWithAccessPoint() argument
203 savedState.putString("key_ssid", ssid); in getIntentWithAccessPoint()
207 static void setConnectionInfoSSID(String ssid) { in setConnectionInfoSSID() argument
209 wifiInfo.setSSID(WifiSsid.createFromAsciiEncoded(ssid)); in setConnectionInfoSSID()
213 private AccessPoint createAccessPoint(String ssid, DetailedState detailedState) { in createAccessPoint() argument
217 savedState.putString("key_ssid", ssid); in createAccessPoint()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/model/
DWifiInfo.java66 public final String ssid; field in WifiInfo
142 bundle.putString(EXTRA_PROVISIONING_WIFI_SSID, ssid); in toPersistableBundle()
185 ssid = builder.mSsid; in WifiInfo()
210 if (TextUtils.isEmpty(ssid)) { in validateFields()
232 public Builder setSsid(String ssid) { in setSsid() argument
233 mSsid = ssid; in setSsid()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/
DAccessPointListPreferenceControllerTest.java211 String ssid = "test_ssid"; in callChangeListener_newSecureAccessPoint_wifiAdded() local
213 when(mMockAccessPoint1.getSsid()).thenReturn(ssid); in callChangeListener_newSecureAccessPoint_wifiAdded()
224 assertThat(lastAdded.SSID).contains(ssid); in callChangeListener_newSecureAccessPoint_wifiAdded()
231 String ssid = "test_ssid"; in callChangeListener_newSecureAccessPoint_wifiEnabled() local
233 when(mMockAccessPoint1.getSsid()).thenReturn(ssid); in callChangeListener_newSecureAccessPoint_wifiEnabled()
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/connectivity/setup/
DConnectTimeoutStateTest.java51 String ssid = "aewrf"; in testProcessForward() local
56 wifiConfiguration.SSID = ssid; in testProcessForward()
62 assertEquals(ssid, advInfo.getPrintableSsid()); in testProcessForward()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DEnterSsidState.java132 CharSequence ssid = action.getTitle(); in onGuidedActionEditedAndProceed() local
134 mUserChoiceInfo.getWifiConfiguration().getPrintableSsid(), ssid)) { in onGuidedActionEditedAndProceed()
137 WifiConfigHelper.setConfigSsid(mUserChoiceInfo.getWifiConfiguration(), ssid.toString()); in onGuidedActionEditedAndProceed()
/packages/apps/Nfc/src/com/android/nfc/
DNfcWifiProtectedSetup.java131 byte[] ssid = new byte[fieldSize]; in parseCredential()
132 payload.get(ssid); in parseCredential()
133 result.SSID = "\"" + new String(ssid) + "\""; in parseCredential()

123