Home
last modified time | relevance | path

Searched refs:mockAddress (Results 1 – 2 of 2) sorted by relevance

/packages/modules/Uwb/service/tests/src/com/android/server/uwb/
DUwbCountryCodeTest.java265 Address mockAddress = mock(Address.class); in testSetCountryCodeFromLocation() local
266 when(mockAddress.getCountryCode()).thenReturn(TEST_COUNTRY_CODE); in testSetCountryCodeFromLocation()
267 List<Address> addresses = List.of(mockAddress); in testSetCountryCodeFromLocation()
397 Address mockAddress = mock(Address.class); in testChangeInLocationCountryCode() local
398 when(mockAddress.getCountryCode()).thenReturn(TEST_COUNTRY_CODE); in testChangeInLocationCountryCode()
399 List<Address> addresses = List.of(mockAddress); in testChangeInLocationCountryCode()
423 Address mockAddress = mock(Address.class); in testChangeInTelephonyCountryCodeWhenWifiAndLocationCountryCodeAvailable() local
424 when(mockAddress.getCountryCode()).thenReturn(TEST_COUNTRY_CODE); in testChangeInTelephonyCountryCodeWhenWifiAndLocationCountryCodeAvailable()
425 List<Address> addresses = List.of(mockAddress); in testChangeInTelephonyCountryCodeWhenWifiAndLocationCountryCodeAvailable()
/packages/modules/Connectivity/thread/tests/unit/src/com/android/server/thread/
DThreadNetworkCountryCodeTest.java240 Address mockAddress = mock(Address.class); in wifiCountryCode_bothWifiAndLocationAreAvailable_wifiCountryCodeIsUsed() local
241 when(mockAddress.getCountryCode()).thenReturn(TEST_COUNTRY_CODE_US); in wifiCountryCode_bothWifiAndLocationAreAvailable_wifiCountryCodeIsUsed()
242 List<Address> addresses = List.of(mockAddress); in wifiCountryCode_bothWifiAndLocationAreAvailable_wifiCountryCodeIsUsed()