Home
last modified time | relevance | path

Searched refs:bssidStr (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Wifi/service/java/com/android/server/wifi/
DSupplicantStaIfaceCallbackImpl.java174 String bssidStr = NativeUtil.macAddressFromByteArray(bssid); in onStateChanged() local
189 wifiSsid, bssidStr); in onStateChanged()
195 bssidStr, newSupplicantState); in onStateChanged()
DSupplicantStaIfaceHal.java1185 public boolean setCurrentNetworkBssid(@NonNull String ifaceName, String bssidStr) { in setCurrentNetworkBssid() argument
1190 return networkHandle.setBssid(bssidStr); in setCurrentNetworkBssid()
2404 public boolean startWpsRegistrar(@NonNull String ifaceName, String bssidStr, String pin) { in startWpsRegistrar() argument
2406 if (TextUtils.isEmpty(bssidStr) || TextUtils.isEmpty(pin)) return false; in startWpsRegistrar()
2409 ifaceName, NativeUtil.macAddressToByteArray(bssidStr), pin); in startWpsRegistrar()
2411 Log.e(TAG, "Illegal argument " + bssidStr, e); in startWpsRegistrar()
2440 public boolean startWpsPbc(@NonNull String ifaceName, String bssidStr) { in startWpsPbc() argument
2443 return startWpsPbc(ifaceName, NativeUtil.macAddressToByteArray(bssidStr)); in startWpsPbc()
2445 Log.e(TAG, "Illegal argument " + bssidStr, e); in startWpsPbc()
2497 public String startWpsPinDisplay(@NonNull String ifaceName, String bssidStr) { in startWpsPinDisplay() argument
[all …]
DSupplicantStaNetworkHal.java287 String bssidStr = config.getNetworkSelectionStatus().getNetworkSelectionBSSID(); in saveWifiConfiguration() local
288 if (bssidStr != null) { in saveWifiConfiguration()
289 byte[] bssid = NativeUtil.macAddressToByteArray(bssidStr); in saveWifiConfiguration()
291 Log.e(TAG, "failed to set BSSID: " + bssidStr); in saveWifiConfiguration()
1465 public boolean setBssid(String bssidStr) { in setBssid() argument
1468 return setBssid(NativeUtil.macAddressToByteArray(bssidStr)); in setBssid()
1470 Log.e(TAG, "Illegal argument " + bssidStr, e); in setBssid()
DClientModeImpl.java837 private static boolean isValidBssid(String bssidStr) { in isValidBssid() argument
839 MacAddress bssid = MacAddress.fromString(bssidStr); in isValidBssid()
3382 private MacAddress getMacAddressFromBssidString(@Nullable String bssidStr) {
3384 return (bssidStr != null) ? MacAddress.fromString(bssidStr) : null;
3386 Log.e(getTag(), "Invalid BSSID format: " + bssidStr);
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DSupplicantStaIfaceHalTest.java762 String bssidStr = "34:34:12:12:12:90"; in testSetCurrentNetworkBssid() local
763 when(mSupplicantStaNetworkMock.setBssid(eq(bssidStr))).thenReturn(true); in testSetCurrentNetworkBssid()
767 assertFalse(mDut.setCurrentNetworkBssid(WLAN0_IFACE_NAME, bssidStr)); in testSetCurrentNetworkBssid()
768 verify(mSupplicantStaNetworkMock, never()).setBssid(eq(bssidStr)); in testSetCurrentNetworkBssid()
770 assertTrue(mDut.setCurrentNetworkBssid(WLAN0_IFACE_NAME, bssidStr)); in testSetCurrentNetworkBssid()
771 verify(mSupplicantStaNetworkMock).setBssid(eq(bssidStr)); in testSetCurrentNetworkBssid()