Home
last modified time | relevance | path

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

1234

/frameworks/base/core/java/android/net/
DWifiKey.java50 public final String ssid; field in WifiKey
70 public WifiKey(String ssid, String bssid) { in WifiKey() argument
71 if (ssid == null || !SSID_PATTERN.matcher(ssid).matches()) { in WifiKey()
72 throw new IllegalArgumentException("Invalid ssid: " + ssid); in WifiKey()
77 this.ssid = ssid; in WifiKey()
82 ssid = in.readString(); in WifiKey()
93 out.writeString(ssid); in writeToParcel()
104 return Objects.equals(ssid, wifiKey.ssid) && Objects.equals(bssid, wifiKey.bssid); in equals()
109 return Objects.hash(ssid, bssid); in hashCode()
115 return "WifiKey[SSID=" + ssid + ",BSSID=" + bssid + "]"; in toString()
DNetworkKey.java85 final String ssid = result.SSID; in createFromScanResult() local
86 if (TextUtils.isEmpty(ssid) || ssid.equals(WifiManager.UNKNOWN_SSID)) { in createFromScanResult()
95 WifiKey wifiKey = new WifiKey(String.format("\"%s\"", ssid), bssid); in createFromScanResult()
114 final String ssid = wifiInfo.getSSID(); in createFromWifiInfo() local
116 if (!TextUtils.isEmpty(ssid) && !ssid.equals(WifiManager.UNKNOWN_SSID) in createFromWifiInfo()
120 wifiKey = new WifiKey(ssid, bssid); in createFromWifiInfo()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/
Dsimulate_wifi.py817 def addFakeScan(ssid: str, bssid: str, cap: str, freq: int = 2412, dbm: int = -55) -> None:
818 …subprocess.run(["adb", "shell", "cmd", "wifi", "add-fake-scan", ssid, bssid, cap, str(freq), str(d…
820 def addFakeOpenScan(ssid: str, bssid: str, freq: int = 2412, dbm: int = -55) -> None:
821 addFakeScan(ssid, bssid, "[ESS]", freq, dbm)
823 def addFakeWpa2Scan(ssid: str, bssid: str, freq: int = 2412, dbm: int = -55) -> None:
824 addFakeScan(ssid, bssid, "[WPA2-PSK-CCMP][RSN-PSK-CCMP][ESS]", freq, dbm)
826 def addFakeWpa3Scan(ssid: str, bssid: str, freq: int = 2412, dbm: int = -55) -> None:
827 addFakeScan(ssid, bssid, "[RSN-SAE+FT/SAE-CCMP][ESS]", freq, dbm)
829 def addFakeOweScan(ssid: str, bssid: str, freq: int = 2412, dbm: int = -55) -> None:
830 addFakeScan(ssid, bssid, "[RSN-OWE-CCMP]", freq, dbm)
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/pipeline/wifi/domain/interactor/
DWifiInteractorImplTest.kt70 val job = underTest.ssid.onEach { latest = it }.launchIn(this) in ssid_unavailableNetwork_outputsNull()
84 val job = underTest.ssid.onEach { latest = it }.launchIn(this) in ssid_inactiveNetwork_outputsNull()
100 val job = underTest.ssid.onEach { latest = it }.launchIn(this) in ssid_carrierMergedNetwork_outputsNull()
121 val job = underTest.ssid.onEach { latest = it }.launchIn(this) in ssid_isPasspointAccessPoint_outputsPasspointName()
142 val job = underTest.ssid.onEach { latest = it }.launchIn(this) in ssid_isOnlineSignUpForPasspoint_outputsPasspointName()
157 ssid = WifiManager.UNKNOWN_SSID, in ssid_unknownSsid_outputsNull()
162 val job = underTest.ssid.onEach { latest = it }.launchIn(this) in ssid_unknownSsid_outputsNull()
177 ssid = "MyAwesomeWifiNetwork", in ssid_validSsid_outputsSsid()
182 val job = underTest.ssid.onEach { latest = it }.launchIn(this) in ssid_validSsid_outputsSsid()
240 ssid = "AB", in wifiNetwork_matchesRepoWifiNetwork()
[all …]
/frameworks/base/wifi/java/src/android/net/wifi/nl80211/
DHiddenNetwork.java32 public byte[] ssid; field in HiddenNetwork
45 return Arrays.equals(ssid, network.ssid); in equals()
51 return Arrays.hashCode(ssid); in hashCode()
66 out.writeByteArray(ssid); in writeToParcel()
78 result.ssid = in.createByteArray();
DNativeScanResult.java47 public byte[] ssid; field in NativeScanResult
79 return ssid; in getSsid()
277 out.writeByteArray(ssid); in writeToParcel()
294 result.ssid = in.createByteArray();
295 if (result.ssid == null) {
296 result.ssid = new byte[0];
DPnoNetwork.java73 public void setSsid(@NonNull byte[] ssid) { in setSsid() argument
74 if (ssid == null) { in setSsid()
77 this.mSsid = ssid; in setSsid()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/connectivity/
DWifiState.kt22 @JvmField var ssid: String? = null, variable in com.android.systemui.statusbar.connectivity.WifiState
41 ssid = state.ssid in copyFrom()
52 builder.append(",ssid=").append(ssid) in toString()
74 val data = listOf(ssid, in tableData()
94 if (ssid != other.ssid) return false in equals()
107 result = 31 * result + (ssid?.hashCode() ?: 0) in hashCode()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/
DWifiAssociationTest.java57 String ssid = arguments.getString("ssid"); in testWifiAssociation() local
58 assertNotNull("ssid is empty", ssid); in testWifiAssociation()
71 WifiConfiguration config = getConfig(ssid, securityType, password); in testWifiAssociation()
80 private WifiConfiguration getConfig(String ssid, SecurityType securityType, String password) { in getConfig() argument
86 config = WifiConfigurationHelper.createOpenConfig(ssid); in getConfig()
92 config = WifiConfigurationHelper.createWepConfig(ssid, password); in getConfig()
99 config = WifiConfigurationHelper.createWepConfig(ssid, password); in getConfig()
104 config = WifiConfigurationHelper.createPskConfig(ssid, password); in getConfig()
112 config = WifiConfigurationHelper.createPskConfig(ssid, password); in getConfig()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DWifiConfigurationHelper.java58 public static WifiConfiguration createOpenConfig(String ssid) { in createOpenConfig() argument
59 WifiConfiguration config = createGenericConfig(ssid); in createOpenConfig()
72 public static WifiConfiguration createWepConfig(String ssid, String password) { in createWepConfig() argument
73 WifiConfiguration config = createGenericConfig(ssid); in createWepConfig()
94 public static WifiConfiguration createPskConfig(String ssid, String password) { in createPskConfig() argument
95 WifiConfiguration config = createGenericConfig(ssid); in createPskConfig()
119 public static WifiConfiguration createEapConfig(String ssid, String password, int eapMethod, in createEapConfig() argument
123 config.SSID = quotedString(ssid); in createEapConfig()
148 private static WifiConfiguration createGenericConfig(String ssid) { in createGenericConfig() argument
150 config.SSID = quotedString(ssid); in createGenericConfig()
[all …]
DConnectivityManagerTestRunner.java58 String ssid = icicle.getString("ssid"); in onCreate() local
59 if (ssid != null) { in onCreate()
60 mSsid = ssid; in onCreate()
/frameworks/opt/tv/tvsystem/java/com/android/libraries/tv/tvsystem/wifi/
DSoftApConfiguration.java71 @Nullable String ssid, @Nullable MacAddress bssid, String wpa2Passphrase) { in SoftApConfiguration()
72 mSsid = ssid; in SoftApConfiguration()
190 public Builder setSsid(@Nullable String ssid) { in setSsid() argument
191 if (ssid != null) { in setSsid()
192 Preconditions.checkStringNotEmpty(ssid); in setSsid()
193 Preconditions.checkArgument(StandardCharsets.UTF_8.newEncoder().canEncode(ssid)); in setSsid()
195 mSsid = ssid; in setSsid()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DAccessPointPreferenceTest.java68 final String ssid = "ssid"; in refresh_openNetwork_updateContentDescription() local
72 .setSsid(ssid) in refresh_openNetwork_updateContentDescription()
76 when(pref.getTitle()).thenReturn(ssid); in refresh_openNetwork_updateContentDescription()
98 final String ssid = "ssid"; in refresh_setTitle_shouldUseSsidString() local
102 .setSsid(ssid) in refresh_setTitle_shouldUseSsidString()
108 verify(preference).setTitle(ssid); in refresh_setTitle_shouldUseSsidString()
/frameworks/base/wifi/java/src/android/net/wifi/sharedconnectivity/app/
DKnownNetwork.java110 public Builder setSsid(@NonNull String ssid) { in setSsid() argument
111 mSsid = ssid; in setSsid()
167 private static void validate(@NetworkSource int networkSource, String ssid, in validate() argument
175 if (TextUtils.isEmpty(ssid)) { in validate()
189 @NonNull String ssid, in KnownNetwork() argument
193 validate(networkSource, ssid, securityTypes, networkProviderInfo); in KnownNetwork()
195 mSsid = ssid; in KnownNetwork()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/wifi/domain/interactor/
DWifiInteractor.kt47 val ssid: Flow<String?> in <lambda>() constant
77 override val ssid: Flow<String?> = constant
88 info.hasValidSsid() -> info.ssid in info()
125 ): Boolean = availableNetworks.firstOrNull { it.ssid != currentNetwork.ssid } != null in anyNonMatchingNetworkExists()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/wifi/shared/model/
DWifiNetworkModelTest.kt60 ssid = null, in <lambda>()
72 ssid = UNKNOWN_SSID, in <lambda>()
84 ssid = "FakeSsid", in <lambda>()
139 ssid = "Test SSID", in <lambda>()
160 ssid = "Test SSID" in <lambda>()
181 ssid = "Test SSID", in <lambda>()
208 ssid = "Test SSID" in <lambda>()
235 ssid = "Test SSID" in <lambda>()
242 ssid = "Test SSID" in <lambda>()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java168 public String ssid; field in WifiStatusTracker
237 ssid = null; in fetchInitialState()
242 ssid = mWifiInfo.getPasspointProviderFriendlyName(); in fetchInitialState()
244 ssid = getValidSsid(mWifiInfo); in fetchInitialState()
269 ssid = null; in updateWifiInfo()
272 ssid = mWifiInfo.getPasspointProviderFriendlyName(); in updateWifiInfo()
274 ssid = getValidSsid(mWifiInfo); in updateWifiInfo()
429 String ssid = info.getSSID(); in getValidSsid() local
430 if (ssid != null && !WifiManager.UNKNOWN_SSID.equals(ssid)) { in getValidSsid()
431 return ssid; in getValidSsid()
DAccessPoint.java249 private String ssid; field in AccessPoint
301 ssid = savedState.getString(KEY_SSID); in AccessPoint()
424 ssid = (config.SSID == null ? "" : removeDoubleQuotes(config.SSID)); in loadConfig()
509 result += 29 * ssid.hashCode(); in hashCode()
516 .append(ssid); in toString()
626 Log.i(TAG, String.format("%s: Set speed to %d", ssid, mSpeed)); in updateSpeed()
736 private static String getKey(String ssid, String bssid, int security) { in getKey() argument
739 if (TextUtils.isEmpty(ssid)) { in getKey()
742 builder.append(ssid); in getKey()
799 if (!ssid.equals(removeDoubleQuotes(config.SSID)) in matches()
[all …]
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/
DStandardNetworkDetailsTrackerTest.java286 final String ssid = "ssid"; in testSecurityTargeting_pskScansWithSaeConfig_correspondsToNewNetworkTargeting() local
287 final WifiConfiguration config = buildWifiConfiguration(ssid); in testSecurityTargeting_pskScansWithSaeConfig_correspondsToNewNetworkTargeting()
291 final ScanResult scan = buildScanResult(ssid, "bssid", START_MILLIS, -50 /* rssi */); in testSecurityTargeting_pskScansWithSaeConfig_correspondsToNewNetworkTargeting()
297 ssidAndSecurityTypeToStandardWifiEntryKey(ssid, SECURITY_TYPE_PSK).toString()); in testSecurityTargeting_pskScansWithSaeConfig_correspondsToNewNetworkTargeting()
308 ssidAndSecurityTypeToStandardWifiEntryKey(ssid, SECURITY_TYPE_PSK, in testSecurityTargeting_pskScansWithSaeConfig_correspondsToNewNetworkTargeting()
324 final String ssid = "ssid"; in testScanner_wifiScannerResultReceived_scanResultsUpdated() local
325 final WifiConfiguration config = buildWifiConfiguration(ssid); in testScanner_wifiScannerResultReceived_scanResultsUpdated()
329 ssidAndSecurityTypeToStandardWifiEntryKey(ssid, SECURITY_NONE).toString()); in testScanner_wifiScannerResultReceived_scanResultsUpdated()
341 buildScanResult(ssid, "bssid", START_MILLIS, BAD_RSSI), in testScanner_wifiScannerResultReceived_scanResultsUpdated()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/wifi/shared/model/
DWifiNetworkModel.kt216 val ssid: String? = null, constant in com.android.systemui.statusbar.pipeline.wifi.shared.model.WifiNetworkModel.Active
241 return ssid != null && ssid != UNKNOWN_SSID in hasValidSsid()
259 if (prevVal.ssid != ssid) { in logDiffs()
260 row.logChange(COL_SSID, ssid) in logDiffs()
289 row.logChange(COL_SSID, ssid) in logFull()
/frameworks/base/wifi/tests/src/android/net/wifi/nl80211/
DNativeScanResultTest.java60 scanResult.ssid = TEST_SSID; in canSerializeAndDeserialize()
77 assertArrayEquals(scanResult.ssid, scanResultDeserialized.ssid); in canSerializeAndDeserialize()
/frameworks/base/wifi/tests/src/android/net/wifi/
DSoftApConfToXmlMigrationUtilTest.java86 String ssid, String preSharedKey, int keyManagement, int band, int channel, in setupApConfig() argument
89 configBuilder.setSsid(ssid); in setupApConfig()
104 String ssid, String preSharedKey, int keyManagement, int band, int channel, in setupWifiConfigurationApConfig() argument
107 config.SSID = ssid; in setupWifiConfigurationApConfig()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/dpp/
DWifiDppIntentHelper.java61 String ssid = removeFirstAndLastDoubleQuotes(wifiConfiguration.SSID); in setConfiguratorIntentExtra() local
69 if (!TextUtils.isEmpty(ssid)) { in setConfiguratorIntentExtra()
70 intent.putExtra(EXTRA_WIFI_SSID, ssid); in setConfiguratorIntentExtra()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/demo/
DDemoModeWifiDataSource.kt58 val ssid = getString("ssid") in <lambda>() constant
65 ssid = ssid, in <lambda>()
/frameworks/av/drm/drmserver/
DDrmManagerService.cpp61 bool DrmManagerService::selinuxIsProtectedCallAllowed(pid_t spid, const char* ssid, drm_perm_t perm… in selinuxIsProtectedCallAllowed() argument
70 if (ssid == NULL) { in selinuxIsProtectedCallAllowed()
79 bool allowed = (selinux_check_access(ssid ? ssid : sctx, drmserver_context, in selinuxIsProtectedCallAllowed()
93 const char* ssid = ipcState->getCallingSid(); in isProtectedCallAllowed() local
97 return selinuxIsProtectedCallAllowed(spid, ssid, perm); in isProtectedCallAllowed()

1234