Home
last modified time | relevance | path

Searched refs:DEFAULT_MAC_ADDRESS (Results 1 – 25 of 29) sorted by relevance

12

/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DMacAddressUtilsTest.java34 private static final MacAddress DEFAULT_MAC_ADDRESS = field in MacAddressUtilsTest
74 assertFalse(mac.equals(DEFAULT_MAC_ADDRESS)); in testMacAddressRandomGeneration()
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DMacAddressUtils.java44 private static final MacAddress DEFAULT_MAC_ADDRESS = field in MacAddressUtils
91 if (mac.equals(DEFAULT_MAC_ADDRESS)) { in createRandomUnicastAddress()
/packages/modules/Connectivity/framework/src/android/net/
DMacAddress.java91 private static final MacAddress DEFAULT_MAC_ADDRESS = field in MacAddress
92 MacAddress.fromString(WifiInfo.DEFAULT_MAC_ADDRESS);
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/
DWifiMacAddressPreferenceController.java52 if (macAddress.equals(WifiInfo.DEFAULT_MAC_ADDRESS)) { in updateState()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiInfoTest.java260 assertEquals(WifiInfo.DEFAULT_MAC_ADDRESS, info.getBSSID()); in assertLocationSensitiveRedaction()
272 assertEquals(WifiInfo.DEFAULT_MAC_ADDRESS, info.getMacAddress()); in assertLocationSensitiveRedaction()
336 assertEquals(WifiInfo.DEFAULT_MAC_ADDRESS, info.getMacAddress()); in assertLocalMacAddressInfoRedaction()
433 assertEquals(WifiInfo.DEFAULT_MAC_ADDRESS, info.getBSSID()); in assertLocationSensitiveAndLocalMacAddressRedaction()
437 assertEquals(WifiInfo.DEFAULT_MAC_ADDRESS, info.getMacAddress()); in assertLocationSensitiveAndLocalMacAddressRedaction()
DWifiConfigurationTest.java304 MacAddress defaultMac = MacAddress.fromString(WifiInfo.DEFAULT_MAC_ADDRESS); in testSetRandomizedMacAddress_ChangesSavedAddress()
317 MacAddress defaultMac = MacAddress.fromString(WifiInfo.DEFAULT_MAC_ADDRESS); in testSetRandomizedMacAddress_DoesNothingWhenNull()
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiInfo.java99 public static final String DEFAULT_MAC_ADDRESS = "02:00:00:00:00:00"; field in WifiInfo
271 private String mMacAddress = DEFAULT_MAC_ADDRESS;
589 ? DEFAULT_MAC_ADDRESS : source.mBSSID; in WifiInfo()
613 ? DEFAULT_MAC_ADDRESS : source.mMacAddress; in WifiInfo()
1198 return mMacAddress != null && !DEFAULT_MAC_ADDRESS.equals(mMacAddress); in hasRealMacAddress()
DWifiConfiguration.java1956 && !MacAddress.fromString(WifiInfo.DEFAULT_MAC_ADDRESS).equals(mac); in isValidMacAddressForRandomization()
3372 mRandomizedMacAddress = MacAddress.fromString(WifiInfo.DEFAULT_MAC_ADDRESS); in WifiConfiguration()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DExtendedWifiInfo.java50 setMacAddress(DEFAULT_MAC_ADDRESS); in reset()
DWifiHealthMonitor.java19 import static android.net.wifi.WifiInfo.DEFAULT_MAC_ADDRESS;
756 "", MacAddress.fromString(DEFAULT_MAC_ADDRESS), l2KeySeed)); in WifiSystemInfoStats()
DWifiConfigManager.java249 private static final MacAddress DEFAULT_MAC_ADDRESS = field in WifiConfigManager
250 MacAddress.fromString(WifiInfo.DEFAULT_MAC_ADDRESS);
590 if (DEFAULT_MAC_ADDRESS.equals(result)) { in getPersistentMacAddress()
714 setRandomizedMacAddress(configuration, DEFAULT_MAC_ADDRESS); in maskRandomizedMacAddressInWifiConfiguration()
3644 if (DEFAULT_MAC_ADDRESS.equals(config.getRandomizedMacAddress())) { in generateRandomizedMacAddresses()
DWifiScoreCard.java19 import static android.net.wifi.WifiInfo.DEFAULT_MAC_ADDRESS;
281 mPlaceholderPerBssid = new PerBssid("", MacAddress.fromString(DEFAULT_MAC_ADDRESS)); in WifiScoreCard()
1084 super(computeHashLong(ssid, MacAddress.fromString(DEFAULT_MAC_ADDRESS), mL2KeySeed)); in PerNetwork()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/details/
DWifiInfoProviderTest.java62 private static final String MAC_ADDRESS = WifiInfo.DEFAULT_MAC_ADDRESS;
/packages/modules/Bluetooth/service/src/com/android/server/bluetooth/
DBluetoothServiceBinder.java199 return BluetoothAdapter.DEFAULT_MAC_ADDRESS; in getAddress()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/network/
DWifiDetailsState.java228 if (WifiInfo.DEFAULT_MAC_ADDRESS.equals(macAddress)) { in updateMacAddressPref()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DWifiDetailsFragment.java242 if (WifiInfo.DEFAULT_MAC_ADDRESS.equals(macAddress)) { in updateMacAddressPref()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiApConfigStoreTest.java731 assertNotEquals(WifiInfo.DEFAULT_MAC_ADDRESS, firstRandomizedMAC.toString()); in randomizeBssid_randomizesNonPersistWhenEnabled()
737 assertNotEquals(WifiInfo.DEFAULT_MAC_ADDRESS, config.getBssid().toString()); in randomizeBssid_randomizesNonPersistWhenEnabled()
752 assertNotEquals(WifiInfo.DEFAULT_MAC_ADDRESS, config.getBssid().toString()); in randomizeBssid_fallbackPathWhenMacCalculationFails()
DWifiScoreCardTest.java390 mWifiInfo.setBSSID(android.net.wifi.WifiInfo.DEFAULT_MAC_ADDRESS); in testDurationStatistics()
442 mWifiInfo.setBSSID(android.net.wifi.WifiInfo.DEFAULT_MAC_ADDRESS); in testFirmwareRoam()
DWifiConfigManagerTest.java482 assertNotEquals(WifiInfo.DEFAULT_MAC_ADDRESS, in testRandomizedMacIsGeneratedEvenIfKeyStoreFails()
2568 assertNotEquals(WifiInfo.DEFAULT_MAC_ADDRESS, macAddress); in testGetConfiguredNetworksMasksRandomizedMac()
2726 assertNotEquals(WifiInfo.DEFAULT_MAC_ADDRESS, randMac.toString()); in testRandomizedMacUpdateAndRestore()
2862 assertNotEquals(WifiInfo.DEFAULT_MAC_ADDRESS, randMac.toString()); in testRandomizedMacIsNotUpdatedDueToTimeConstraint()
6006 MacAddress defaultMac = MacAddress.fromString(WifiInfo.DEFAULT_MAC_ADDRESS); in assertRandomizedMacAddressMaskedInWifiConfiguration()
DClientModeImplTest.java263 MacAddress.fromString(WifiInfo.DEFAULT_MAC_ADDRESS);
1293 assertNotEquals(WifiInfo.DEFAULT_MAC_ADDRESS, wifiInfo.getMacAddress()); in connect()
1448 assertNotEquals(WifiInfo.DEFAULT_MAC_ADDRESS, wifiInfo.getMacAddress()); in connectWithIpProvisionTimeout()
4418 assertEquals(WifiInfo.DEFAULT_MAC_ADDRESS, mWifiInfo.getMacAddress()); in testWifiInfoReturnDefaultMacWhenDisconnectedWithRandomization()
4433 config.setRandomizedMacAddress(MacAddress.fromString(WifiInfo.DEFAULT_MAC_ADDRESS)); in testDoNotSetMacWhenInvalid()
5388 assertEquals(WifiInfo.DEFAULT_MAC_ADDRESS, mWifiInfo.getMacAddress()); in verifyWifiInfoMacUpdatedWithNetworkConnectionWhileDisconnected()
DWifiServiceImplTest.java3030 assertEquals(WifiInfo.DEFAULT_MAC_ADDRESS, connectionInfo.getBSSID()); in testConnectedIdsAreHiddenFromAppWithoutPermission()
3061 assertEquals(WifiInfo.DEFAULT_MAC_ADDRESS, connectionInfo.getBSSID()); in testConnectedIdsAreHiddenOnSecurityException()
3327 assertEquals(WifiInfo.DEFAULT_MAC_ADDRESS, in testGetConfiguredNetworksAdmin_ReturnsNetworksWithDefaultMac()
10366 assertEquals(WifiInfo.DEFAULT_MAC_ADDRESS, result.getRandomizedMacAddress().toString()); in testGetPrivilegedConnectedNetworkSuccess()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointManager.java21 import static android.net.wifi.WifiInfo.DEFAULT_MAC_ADDRESS;
1231 config.setRandomizedMacAddress(MacAddress.fromString(DEFAULT_MAC_ADDRESS)); in getWifiConfigsForPasspointProfiles()
/packages/apps/Settings/src/com/android/settings/wifi/details2/
DWifiDetailPreferenceController2.java735 if (macAddress.equals(WifiInfo.DEFAULT_MAC_ADDRESS)) { in refreshMacAddress()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointManagerTest.java23 import static android.net.wifi.WifiInfo.DEFAULT_MAC_ADDRESS;
1364 assertEquals(config.getRandomizedMacAddress(), MacAddress.fromString(DEFAULT_MAC_ADDRESS)); in getWifiConfigsForPasspointProfilesWithNonPersistentMacRandomization()
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothAdapter.java138 public static final String DEFAULT_MAC_ADDRESS = "02:00:00:00:00:00"; field in BluetoothAdapter

12