/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
D | WifiSsidTest.java | 58 WifiSsid wifiSsidUtf8 = WifiSsid.fromBytes(TEST_SSID_UTF_8_BYTES); in testFromByteArray() 64 WifiSsid wifiSsidNonUtf8 = WifiSsid.fromBytes(TEST_SSID_NON_UTF_8_BYTES); in testFromByteArray() 70 WifiSsid wifiSsidEmpty = WifiSsid.fromBytes(new byte[0]); in testFromByteArray() 76 WifiSsid wifiSsidNull = WifiSsid.fromBytes(null); in testFromByteArray() 88 WifiSsid wifiSsidUtf8 = WifiSsid.fromUtf8Text(TEST_SSID_UTF_8); in testFromUtf8String() 94 WifiSsid wifiSsidEmpty = WifiSsid.fromUtf8Text(""); in testFromUtf8String() 100 WifiSsid wifiSsidNull = WifiSsid.fromUtf8Text(null); in testFromUtf8String() 112 WifiSsid wifiSsidUtf8 = WifiSsid.fromString(TEST_SSID_UTF_8_QUOTED); in testFromString() 118 WifiSsid wifiSsidUtf8Hex = WifiSsid.fromString(TEST_SSID_UTF_8_HEX); in testFromString() 124 WifiSsid wifiSsidNonUtf8 = WifiSsid.fromString(TEST_SSID_NON_UTF_8_HEX); in testFromString() [all …]
|
/packages/modules/Wifi/framework/java/android/net/wifi/ |
D | WifiSsid.java | 40 public final class WifiSsid implements Parcelable { class 48 private WifiSsid(@Nullable byte[] bytes) { in WifiSsid() method in WifiSsid 62 public static WifiSsid fromBytes(@Nullable byte[] bytes) { in fromBytes() 63 return new WifiSsid(bytes); in fromBytes() 81 public static WifiSsid fromUtf8Text(@Nullable CharSequence utf8Text) { in fromUtf8Text() 83 return new WifiSsid(null); in fromUtf8Text() 85 return new WifiSsid(utf8Text.toString().getBytes(StandardCharsets.UTF_8)); in fromUtf8Text() 108 public static WifiSsid fromString(@Nullable String string) { in fromString() 110 return new WifiSsid(null); in fromString() 114 return new WifiSsid(string.substring(1, length - 1).getBytes(StandardCharsets.UTF_8)); in fromString() [all …]
|
D | IWifiManager.aidl | 72 import android.net.wifi.WifiSsid; 114 void setSsidsAllowlist(String packageName, in List<WifiSsid> ssids); in setSsidsAllowlist() 164 … void getBssidBlocklist(in ParceledListSlice<WifiSsid> ssids, in IMacAddressListListener listener); in getBssidBlocklist() 385 …Request(in IBinder binder, in IPnoScanResultsCallback callback, in List<WifiSsid> ssids, in int[] … in setExternalPnoScanRequest() 446 void notifyWifiSsidPolicyChanged(int policyType, in List<WifiSsid> ssids); in notifyWifiSsidPolicyChanged() 454 void addCustomDhcpOptions(in WifiSsid ssid, in byte[] oui, in List<DhcpOption> options); in addCustomDhcpOptions() 456 void removeCustomDhcpOptions(in WifiSsid ssid, in byte[] oui); in removeCustomDhcpOptions() 498 void setPerSsidRoamingMode(in WifiSsid ssid, int roamingMode, String packageName); in setPerSsidRoamingMode() 500 void removePerSsidRoamingMode(in WifiSsid ssid, String packageName); in removePerSsidRoamingMode()
|
D | ScanResult.java | 72 public WifiSsid wifiSsid; 79 public void setWifiSsid(@NonNull WifiSsid ssid) { in setWifiSsid() 89 public WifiSsid getWifiSsid() { in getWifiSsid() 1427 private boolean isHiddenSsid(@NonNull WifiSsid wifiSsid) { in isHiddenSsid() 1442 private WifiSsid mWifiSsid; 1565 public Builder(WifiSsid wifiSsid, String bssid) { in Builder() 1581 public Builder setWifiSsid(WifiSsid wifiSsid) { in setWifiSsid() 1665 public ScanResult(WifiSsid wifiSsid, String BSSID, long hessid, int anqpDomainId, in ScanResult() 1702 public ScanResult(WifiSsid wifiSsid, String BSSID, String caps, int level, int frequency, in ScanResult() 1761 public ScanResult(WifiSsid wifiSsid, String Ssid, String BSSID, long hessid, int anqpDomainId, in ScanResult() [all …]
|
D | WifiNetworkSuggestion.java | 99 private WifiSsid mWifiSsid; 301 mWifiSsid = WifiSsid.fromUtf8Text(ssid); in setSsid() 317 public @NonNull Builder setWifiSsid(@NonNull WifiSsid wifiSsid) { in setWifiSsid() 322 mWifiSsid = WifiSsid.fromBytes(wifiSsid.getBytes()); in setWifiSsid() 1572 WifiSsid wifiSsid; in getSsid() 1574 wifiSsid = WifiSsid.fromString(wifiConfiguration.SSID); in getSsid() 1590 public WifiSsid getWifiSsid() { in getWifiSsid() 1594 WifiSsid wifiSsid; in getWifiSsid() 1596 wifiSsid = WifiSsid.fromString(wifiConfiguration.SSID); in getWifiSsid()
|
D | BaseWifiService.java | 126 public void setSsidsAllowlist(String packageName, List<WifiSsid> ssids) { in setSsidsAllowlist() 131 public List<WifiSsid> getSsidsAllowlist(String packageName) { in getSsidsAllowlist() 235 public void getBssidBlocklist(ParceledListSlice<WifiSsid> ssids, in getBssidBlocklist() 886 @NonNull List<WifiSsid> ssids, @NonNull int[] frequencies, in setExternalPnoScanRequest() 1017 public void notifyWifiSsidPolicyChanged(int policyType, @NonNull List<WifiSsid> ssids) { in notifyWifiSsidPolicyChanged() 1038 public void addCustomDhcpOptions(WifiSsid ssid, byte[] oui, @NonNull List<DhcpOption> options) { in addCustomDhcpOptions() 1043 public void removeCustomDhcpOptions(WifiSsid ssid, byte[] oui) { in removeCustomDhcpOptions() 1165 public void setPerSsidRoamingMode(WifiSsid ssid, @WifiManager.RoamingMode int roamingMode, in setPerSsidRoamingMode() 1171 public void removePerSsidRoamingMode(WifiSsid ssid, @NonNull String packageName) { in removePerSsidRoamingMode()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | SsidTranslatorTest.java | 35 import android.net.wifi.WifiSsid; 90 WifiSsid utf8Ssid = WifiSsid.fromBytes("安卓".getBytes(StandardCharsets.UTF_8)); in testGetTranslatedSsid() 91 WifiSsid iso8859_8Ssid = WifiSsid.fromBytes("שלום".getBytes("ISO-8859-8")); in testGetTranslatedSsid() 92 WifiSsid gbkSsid = WifiSsid.fromBytes("安卓".getBytes("GBK")); in testGetTranslatedSsid() 93 WifiSsid eucKrSsid = WifiSsid.fromBytes("안드로이드".getBytes("EUC-KR")); in testGetTranslatedSsid() 94 WifiSsid unknownSsid = WifiSsid.fromBytes(new byte[]{ in testGetTranslatedSsid() 100 .isEqualTo(WifiSsid.fromBytes("שלום".getBytes(StandardCharsets.UTF_8))); in testGetTranslatedSsid() 110 .isEqualTo(WifiSsid.fromBytes("安卓".getBytes(StandardCharsets.UTF_8))); in testGetTranslatedSsid() 113 .isEqualTo(WifiSsid.fromBytes("救靛肺捞靛".getBytes(StandardCharsets.UTF_8))); in testGetTranslatedSsid() 124 .isEqualTo(WifiSsid.fromBytes("안드로이드".getBytes(StandardCharsets.UTF_8))); in testGetTranslatedSsid() [all …]
|
D | ExternalPnoScanRequestManagerTest.java | 38 import android.net.wifi.WifiSsid; 70 private static final List<WifiSsid> TEST_WIFI_SSIDS = Arrays.asList( 71 WifiSsid.fromString(TEST_SSID_1), 72 WifiSsid.fromString(TEST_SSID_2)); 189 scanResult1.setWifiSsid(WifiSsid.fromString("\"RANDOM_SSID_123\"")); in testRemoveRequest_afterDelivery() 191 scanResult2.setWifiSsid(WifiSsid.fromString(TEST_SSID_1)); in testRemoveRequest_afterDelivery() 193 scanResult3.setWifiSsid(WifiSsid.fromString(TEST_SSID_2)); in testRemoveRequest_afterDelivery() 236 scanResult1.setWifiSsid(WifiSsid.fromString("\"RANDOM_SSID_123\"")); in testRemoveRequest_noDeliveryIfNoMatch()
|
D | SupplicantStateTrackerTest.java | 26 import android.net.wifi.WifiSsid; 52 private static final WifiSsid WIFI_SSID = WifiSsid.fromUtf8Text(SSID); 68 private Message getSupplicantStateChangeMessage(int networkId, WifiSsid wifiSsid, in getSupplicantStateChangeMessage()
|
D | WrongPasswordNotifierTest.java | 31 import android.net.wifi.WifiSsid; 53 private static final WifiSsid TEST_SSID = WifiSsid.fromUtf8Text("Test SSID");
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | SsidTranslator.java | 27 import android.net.wifi.WifiSsid; 83 private @NonNull Map<WifiSsid, Set<MacAddress>> mTranslatedBssids = new ArrayMap<>(); 85 private @NonNull Map<WifiSsid, Set<MacAddress>> mUntranslatedBssids = new ArrayMap<>(); 86 private final Map<Pair<WifiSsid, MacAddress>, Runnable> mUntranslatedBssidTimeoutRunnables = 88 private final Map<Pair<WifiSsid, MacAddress>, Runnable> mTranslatedBssidTimeoutRunnables = 90 private final Map<String, WifiSsid> mTranslatedSsidForStaIface = new ArrayMap<>(); 184 private WifiSsid translateSsid(@NonNull WifiSsid ssid, in translateSsid() 197 return WifiSsid.fromBytes(bytes); in translateSsid() 212 public synchronized @NonNull WifiSsid getTranslatedSsid(@NonNull WifiSsid ssid) { in getTranslatedSsid() 220 public synchronized @NonNull WifiSsid getTranslatedSsidForStaIface( in getTranslatedSsidForStaIface() [all …]
|
D | StateChangeResult.java | 22 import android.net.wifi.WifiSsid; 33 StateChangeResult(int networkId, @NonNull WifiSsid wifiSsid, @NonNull String bssid, in StateChangeResult() 37 this.wifiSsid = WifiSsid.fromBytes(null); in StateChangeResult() 53 @NonNull public final WifiSsid wifiSsid;
|
D | NetworkConnectionEventInfo.java | 20 import android.net.wifi.WifiSsid; 28 public final WifiSsid wifiSsid; 34 public NetworkConnectionEventInfo(int networkId, WifiSsid wifiSsid, String bssid, in NetworkConnectionEventInfo()
|
D | AssocRejectEventInfo.java | 22 import android.net.wifi.WifiSsid; 62 String ssid = WifiSsid.fromBytes(NativeUtil.byteArrayFromArrayList(assocRejectData.ssid)) in AssocRejectEventInfo() 87 String ssid = WifiSsid.fromBytes(assocRejectData.ssid).toString(); in AssocRejectEventInfo()
|
D | ExternalPnoScanRequestManager.java | 29 import android.net.wifi.WifiSsid; 97 @NonNull List<WifiSsid> ssids, @NonNull int[] frequencies) { in setRequest() 226 IPnoScanResultsCallback callback, List<WifiSsid> ssids, int[] frequencies) { in ExternalPnoScanRequest() 232 for (WifiSsid wifiSsid : ssids) { in ExternalPnoScanRequest()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/anqp/ |
D | HSOsuProvidersElement.java | 19 import android.net.wifi.WifiSsid; 50 private final WifiSsid mOsuSsid; 54 public HSOsuProvidersElement(WifiSsid osuSsid, List<OsuProviderInfo> providers) { in HSOsuProvidersElement() 84 return new HSOsuProvidersElement(WifiSsid.fromBytes(ssidBytes), providers); in parse() 87 public WifiSsid getOsuSsid() { in getOsuSsid()
|
/packages/modules/Wifi/framework/java/android/net/wifi/hotspot2/ |
D | OsuProvider.java | 23 import android.net.wifi.WifiSsid; 61 private WifiSsid mOsuSsid; 91 this(WifiSsid.fromBytes(osuSsid.getBytes(StandardCharsets.UTF_8)), in OsuProvider() 96 public OsuProvider(WifiSsid osuSsid, Map<String, String> friendlyNames, in OsuProvider() 140 public WifiSsid getOsuSsid() { in getOsuSsid() 145 public void setOsuSsid(WifiSsid osuSsid) { in setOsuSsid() 252 WifiSsid osuSsid = in.readParcelable(null);
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/util/ |
D | ScanResultUtilTest.java | 29 import android.net.wifi.WifiSsid; 47 ScanResult scanResult = new ScanResult.Builder(WifiSsid.fromUtf8Text(ssid), in testNetworkCreationFromScanResult() 148 ScanResult scanResult = new ScanResult.Builder(WifiSsid.fromUtf8Text(ssid), in testGenerateSecurityParamsListFromScanResult() 319 ScanResult input = new ScanResult.Builder(WifiSsid.fromUtf8Text(ssid), in testPskSha256SaeTransitionModeCheck() 346 ScanResult input = new ScanResult.Builder(WifiSsid.fromUtf8Text(ssid), in testPskSaeTransitionModeCheck() 373 ScanResult input = new ScanResult.Builder(WifiSsid.fromUtf8Text(ssid), in testPskNotInTransitionModeCheck() 400 ScanResult input = new ScanResult.Builder(WifiSsid.fromUtf8Text(ssid), in testSaeNotInTransitionModeCheck() 427 ScanResult input = new ScanResult.Builder(WifiSsid.fromUtf8Text(ssid), in testSaeExtKeyAkmSupportedNetwork() 454 ScanResult input = new ScanResult.Builder(WifiSsid.fromUtf8Text(ssid), in testFtEapAkmSupportedNetwork() 482 ScanResult input = new ScanResult.Builder(WifiSsid.fromUtf8Text(ssid), in testFilsSha256AkmSupportedNetwork() [all …]
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/hotspot2/ |
D | OsuProviderTest.java | 23 import android.net.wifi.WifiSsid; 41 private static final WifiSsid TEST_SSID = 42 WifiSsid.fromBytes("TEST SSID".getBytes(StandardCharsets.UTF_8)); 81 verifyParcel(new OsuProvider((WifiSsid) null, null, null, null, null, null)); in verifyParcelWithEmptyProviderInfo() 101 OsuProvider expected = new OsuProvider((WifiSsid) null, null, null, null, null, null); in verifyCopyConstructorWithNullSource()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/ |
D | HSOsuProvidersElementTest.java | 21 import android.net.wifi.WifiSsid; 44 private static final WifiSsid TEST_OSU_SSID = 45 WifiSsid.fromBytes(TEST_OSU_SSID_BYTES);
|
/packages/modules/Wifi/service/java/com/android/server/wifi/b2b/ |
D | WifiRoamingModeManager.java | 21 import android.net.wifi.WifiSsid; 70 public void setPerSsidRoamingMode(WifiSsid ssid, @WifiManager.RoamingMode int roamingMode, in setPerSsidRoamingMode() 82 public void removePerSsidRoamingMode(WifiSsid ssid, boolean isDeviceOwner) { in removePerSsidRoamingMode()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointProvisioningTestUtil.java | 20 import android.net.wifi.WifiSsid; 47 public static final WifiSsid TEST_SSID = 48 WifiSsid.fromBytes("TEST SSID".getBytes(StandardCharsets.UTF_8));
|
D | PasspointProvisionerTest.java | 47 import android.net.wifi.WifiSsid; 140 private static final WifiSsid TEST_OSU_SSID = 141 WifiSsid.fromBytes(TEST_OSU_SSID_BYTES); 142 private static final WifiSsid TEST_OSU_SSID3 = 143 WifiSsid.fromBytes(TEST_OSU_SSID3_BYTES); 222 when(mOsuNetworkConnection.connect(any(WifiSsid.class), any(), any())).thenReturn(true); in setUp() 508 mOsuProvider = new OsuProvider((WifiSsid) null, info.getFriendlyNames(), in verifySelectBestOsuProviderForProvisioning() 514 ArgumentCaptor<WifiSsid> wifiSsidArgumentCaptor = ArgumentCaptor.forClass(WifiSsid.class); in verifySelectBestOsuProviderForProvisioning() 570 when(mOsuNetworkConnection.connect(any(WifiSsid.class), any(), any())).thenReturn(false); in verifyConnectAttemptFailure()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/b2b/ |
D | WifiRoamingModeManagerTest.java | 28 import android.net.wifi.WifiSsid; 77 mWifiRoamingModeManager.setPerSsidRoamingMode(WifiSsid.fromString(CURRENT_SSID), in testSetPerSsidRoamingMode() 88 mWifiRoamingModeManager.removePerSsidRoamingMode(WifiSsid.fromString(TEST_SSID), false); in testRemovePerSsidRoamingMode()
|
/packages/modules/Wifi/framework/api/ |
D | module-lib-current.txt | 5 …IFI_CONFIG}) public void addCustomDhcpOptions(@NonNull android.net.wifi.WifiSsid, @NonNull byte[],… 6 …_CONFIG}) public void removeCustomDhcpOptions(@NonNull android.net.wifi.WifiSsid, @NonNull byte[]);
|