Home
last modified time | relevance | path

Searched refs:mMacAddressUtil (Results 1 – 8 of 8) sorted by relevance

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DMacAddressUtilTest.java42 private MacAddressUtil mMacAddressUtil; field in MacAddressUtilTest
49 mMacAddressUtil = new MacAddressUtil(); in setUp()
58 assertNull(mMacAddressUtil.calculatePersistentMac(null, null)); in testCalculatePersistentMac()
66 MacAddress macAddress = mMacAddressUtil.calculatePersistentMac( in testCalculatePersistentMac()
79 assertNull(mMacAddressUtil.calculatePersistentMac("TEST_SSID_AND_SECURITY_TYPE", in testCalculatePersistentMacCatchesException()
DWifiApConfigStoreTest.java103 @Mock private MacAddressUtil mMacAddressUtil; field in WifiApConfigStoreTest
134 when(mWifiInjector.getMacAddressUtil()).thenReturn(mMacAddressUtil); in setUp()
135 when(mMacAddressUtil.calculatePersistentMac(any(), any())).thenReturn(TEST_RANDOMIZED_MAC); in setUp()
565 when(mMacAddressUtil.calculatePersistentMac(any(), any())).thenReturn(null); in randomizeBssid_fallbackPathWhenMacCalculationFails()
DWifiConfigManagerTest.java176 @Mock private MacAddressUtil mMacAddressUtil; field in WifiConfigManagerTest
289 when(mMacAddressUtil.calculatePersistentMac(any(), any())).thenReturn(TEST_RANDOMIZED_MAC); in setUp()
383 when(mMacAddressUtil.calculatePersistentMac(any(), any())).thenReturn(null); in testRandomizedMacIsGeneratedEvenIfKeyStoreFails()
394 verify(mMacAddressUtil, times(2)).calculatePersistentMac(any(), any()); in testRandomizedMacIsGeneratedEvenIfKeyStoreFails()
2547 verify(mMacAddressUtil, never()).calculatePersistentMac(any(), any()); in setUpWifiConfigurationForEnhancedRandomization()
5326 mWifiPermissionsUtil, mMacAddressUtil, mWifiMetrics, mWifiBlocklistMonitor, in createWifiConfigManager()
6345 verify(mMacAddressUtil).calculatePersistentMac(eq(network.getNetworkKey()), any()); in testGetPersistRandomMacAddress()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiApConfigStore.java75 private final MacAddressUtil mMacAddressUtil; field in WifiApConfigStore
127 mMacAddressUtil = wifiInjector.getMacAddressUtil(); in WifiApConfigStore()
447 MacAddress macAddress = mMacAddressUtil.calculatePersistentMac(config.getSsid(), in randomizeBssidIfUnset()
448 mMacAddressUtil.obtainMacRandHashFunctionForSap(Process.WIFI_UID)); in randomizeBssidIfUnset()
DWifiInjector.java205 private final MacAddressUtil mMacAddressUtil = new MacAddressUtil(); field in WifiInjector
370 mMacAddressUtil, mWifiMetrics, mWifiBlocklistMonitor, mWifiLastResortWatchdog, in WifiInjector()
410 mMacAddressUtil, mWifiPermissionsUtil); in WifiInjector()
884 return mMacAddressUtil; in getMacAddressUtil()
DWifiConfigManager.java257 private final MacAddressUtil mMacAddressUtil; field in WifiConfigManager
407 mMacAddressUtil = macAddressUtil; in WifiConfigManager()
519 MacAddress result = mMacAddressUtil.calculatePersistentMac(config.getNetworkKey(), in getPersistentMacAddress()
520 mMacAddressUtil.obtainMacRandHashFunction(Process.WIFI_UID)); in getPersistentMacAddress()
522 result = mMacAddressUtil.calculatePersistentMac(config.getNetworkKey(), in getPersistentMacAddress()
523 mMacAddressUtil.obtainMacRandHashFunction(Process.WIFI_UID)); in getPersistentMacAddress()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointManager.java133 private final MacAddressUtil mMacAddressUtil; field in PasspointManager
379 mMacAddressUtil = macAddressUtil; in PasspointManager()
1190 MacAddress result = mMacAddressUtil.calculatePersistentMac(config.getNetworkKey(), in getWifiConfigsForPasspointProfiles()
1191 mMacAddressUtil.obtainMacRandHashFunction(Process.WIFI_UID)); in getWifiConfigsForPasspointProfiles()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointManagerTest.java215 @Mock MacAddressUtil mMacAddressUtil; field in PasspointManagerTest
266 mWifiConfigStore, mWifiMetrics, mWifiCarrierInfoManager, mMacAddressUtil, in setUp()
824 mWifiConfigStore, mWifiMetrics, mWifiCarrierInfoManager, mMacAddressUtil, in addProviderWithValidFullImsiOfSimCredential()
1327 when(mMacAddressUtil.calculatePersistentMac(any(), any())).thenReturn(randomizedMacAddress); in getWifiConfigsForPasspointProfilesWithoutEnhancedMacRandomization()
1337 verify(mMacAddressUtil).calculatePersistentMac( in getWifiConfigsForPasspointProfilesWithoutEnhancedMacRandomization()
1349 when(mMacAddressUtil.calculatePersistentMac(any(), any())).thenReturn(randomizedMacAddress); in getWifiConfigsForPasspointProfilesWithEnhancedMacRandomization()