Home
last modified time | relevance | path

Searched refs:setCountryCode (Results 1 – 25 of 45) sorted by relevance

12

/packages/modules/Uwb/service/tests/src/com/android/server/uwb/
DUwbCountryCodeTest.java152 when(mNativeUwbManager.setCountryCode(any())).thenReturn( in setUp()
163 verify(mNativeUwbManager).setCountryCode( in testSetDefaultCountryCodeWhenNoCountryCodeAvailable()
172 verify(mNativeUwbManager).setCountryCode( in testInitializeCountryCodeFromTelephony()
188 verify(mNativeUwbManager).setCountryCode( in testInitializeCountryCodeFromTelephonyWhenSubscriptionListEmptyAndFlagEnabled()
204 verify(mNativeUwbManager).setCountryCode( in testInitializeCountryCodeFromTelephonyWhenSubscriptionListNullAndFlagEnabled()
228 verify(mNativeUwbManager, never()).setCountryCode(any()); in testSkipWhenExceptionThrownInInitializeCountryCodeFromTelephony()
236 verify(mNativeUwbManager).setCountryCode( in testInitializeCountryCodeFromTelephonyVerifyListener()
245 verify(mNativeUwbManager).setCountryCode( in testSetCountryCodeFromTelephony()
251 mUwbCountryCode.setCountryCode(false)); in testSetCountryCodeFromTelephony()
253 verify(mNativeUwbManager, never()).setCountryCode( in testSetCountryCodeFromTelephony()
[all …]
DUwbServiceCoreTest.java376 when(mUwbCountryCode.setCountryCode(anyBoolean())).thenReturn( in enableUwb()
394 }).when(mUwbCountryCode).setCountryCode(anyBoolean()); in enableUwbWithCountryCodeChangedCallback()
507 verify(mUwbCountryCode).setCountryCode(true); in testEnableWithCountryCode_success()
550 when(mUwbCountryCode.setCountryCode(anyBoolean())) in testEnableWithCountryCode_statusRegulationUwbOff()
560 verify(mUwbCountryCode).setCountryCode(true); in testEnableWithCountryCode_statusRegulationUwbOff()
603 verify(mUwbCountryCode).setCountryCode(true); in testCountryCodeChange_fromValidCountry_statusRegulationUwbOff()
641 when(mUwbCountryCode.setCountryCode(anyBoolean())).thenReturn(Pair.create( in testEnableWithCountryCode_statusFailed()
650 verify(mUwbCountryCode).setCountryCode(true); in testEnableWithCountryCode_statusFailed()
689 verify(mUwbCountryCode).setCountryCode(true); in testEnableWhenAlreadyEnabled()
731 }).when(mUwbCountryCode).setCountryCode(anyBoolean()); in testEnableWhenInitializeDelayed()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hal/
DWifiApIfaceTest.java123 () -> mDut.setCountryCode("MX"), in testSetCountryCode()
124 mWifiApIfaceAidlImplMock.setCountryCode(any()), in testSetCountryCode()
126 verify(mWifiApIfaceAidlImplMock).setCountryCode(any()); in testSetCountryCode()
134 when(mWifiApIfaceAidlImplMock.setCountryCode(any())).thenReturn(true); in testSetCountryCodeInvalidInput()
135 assertFalse(mDut.setCountryCode(null)); in testSetCountryCodeInvalidInput()
136 assertFalse(mDut.setCountryCode("")); in testSetCountryCodeInvalidInput()
137 assertFalse(mDut.setCountryCode("A")); in testSetCountryCodeInvalidInput()
138 assertFalse(mDut.setCountryCode("ABC")); in testSetCountryCodeInvalidInput()
139 verify(mWifiApIfaceAidlImplMock, never()).setCountryCode(any()); in testSetCountryCodeInvalidInput()
DWifiChipTest.java131 () -> mDut.setCountryCode("MX"), in testSetCountryCode()
132 mWifiChipAidlImplMock.setCountryCode(any()), in testSetCountryCode()
134 verify(mWifiChipAidlImplMock).setCountryCode(any()); in testSetCountryCode()
142 when(mWifiChipAidlImplMock.setCountryCode(any())).thenReturn(true); in testSetCountryCodeInvalidInput()
143 assertFalse(mDut.setCountryCode(null)); in testSetCountryCodeInvalidInput()
144 assertFalse(mDut.setCountryCode("")); in testSetCountryCodeInvalidInput()
145 assertFalse(mDut.setCountryCode("A")); in testSetCountryCodeInvalidInput()
146 assertFalse(mDut.setCountryCode("ABC")); in testSetCountryCodeInvalidInput()
147 verify(mWifiChipAidlImplMock, never()).setCountryCode(any()); in testSetCountryCodeInvalidInput()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiCountryCodeTest.java145 when(mClientModeManager.setCountryCode(anyString())).thenReturn(true); in setUp()
195 }).when(mClientModeManager).setCountryCode( in createWifiCountryCode()
227 verify(mClientModeManager).setCountryCode(anyString()); in useDefaultCountryCode()
243 verify(mClientModeManager).setCountryCode(anyString()); in useTelephonyCountryCodeOnBootup()
259 verify(mClientModeManager).setCountryCode(anyString()); in useTelephonyCountryCodeOnChange()
283 verify(mClientModeManager, times(2)).setCountryCode(anyString()); in telephonyCountryCodeChangeAfterSupplicantStarts()
309 verify(mClientModeManager, times(2)).setCountryCode(anyString()); in telephonyCountryCodeChangeAfterSupplicantStop()
317 verify(mClientModeManager, times(2)).setCountryCode(anyString()); in telephonyCountryCodeChangeAfterSupplicantStop()
373 verify(mClientModeManager, times(2)).setCountryCode(anyString()); in telephonyCountryCodeChangeAfterL2Connected()
420 verify(mClientModeManager, times(2)).setCountryCode(anyString()); in telephonyCountryCodeChangeAfterL2ConnectedOnTwoClientModeManager()
[all …]
DSupplicantStaIfaceHalAidlImplTest.java1760 doNothing().when(mISupplicantStaIfaceMock).setCountryCode(any(byte[].class)); in testSetCountryCode()
1764 assertFalse(mDut.setCountryCode(WLAN0_IFACE_NAME, testCountryCode)); in testSetCountryCode()
1765 verify(mISupplicantStaIfaceMock, never()).setCountryCode(any(byte[].class)); in testSetCountryCode()
1769 assertTrue(mDut.setCountryCode(WLAN0_IFACE_NAME, testCountryCode)); in testSetCountryCode()
1770 verify(mISupplicantStaIfaceMock).setCountryCode(eq(testCountryCode.getBytes())); in testSetCountryCode()
1775 assertFalse(mDut.setCountryCode(WLAN0_IFACE_NAME, null)); in testSetCountryCode()
1776 verify(mISupplicantStaIfaceMock, never()).setCountryCode(any(byte[].class)); in testSetCountryCode()
1778 assertFalse(mDut.setCountryCode(WLAN0_IFACE_NAME, "U")); in testSetCountryCode()
1779 verify(mISupplicantStaIfaceMock, never()).setCountryCode(any(byte[].class)); in testSetCountryCode()
DSupplicantStaIfaceHalTest.java788 when(mStaIfaceHalAidlMock.setCountryCode(anyString(), anyString())) in testSetCountryCode()
790 assertTrue(mDut.setCountryCode(IFACE_NAME, countryCode)); in testSetCountryCode()
791 verify(mStaIfaceHalAidlMock).setCountryCode(eq(IFACE_NAME), eq(countryCode)); in testSetCountryCode()
DSupplicantStaIfaceHalHidlImplTest.java2078 when(mISupplicantStaIfaceMock.setCountryCode(any(byte[].class))).thenReturn(mStatusSuccess); in testSetCountryCode()
2082 assertFalse(mDut.setCountryCode(WLAN0_IFACE_NAME, testCountryCode)); in testSetCountryCode()
2083 verify(mISupplicantStaIfaceMock, never()).setCountryCode(any(byte[].class)); in testSetCountryCode()
2087 assertTrue(mDut.setCountryCode(WLAN0_IFACE_NAME, testCountryCode)); in testSetCountryCode()
2088 verify(mISupplicantStaIfaceMock).setCountryCode(eq(testCountryCode.getBytes())); in testSetCountryCode()
2093 assertFalse(mDut.setCountryCode(WLAN0_IFACE_NAME, null)); in testSetCountryCode()
2094 verify(mISupplicantStaIfaceMock, never()).setCountryCode(any(byte[].class)); in testSetCountryCode()
2096 assertFalse(mDut.setCountryCode(WLAN0_IFACE_NAME, "U")); in testSetCountryCode()
2097 verify(mISupplicantStaIfaceMock, never()).setCountryCode(any(byte[].class)); in testSetCountryCode()
/packages/modules/Uwb/service/java/com/android/server/uwb/
DUwbCountryCode.java189 setCountryCode(false); in setCountryCodeFromGeocodingLocation()
305 setCountryCode(false); in setTelephonyCountryCodeAndLastKnownCountryCode()
318 setCountryCode(false); in setWifiCountryCode()
331 setCountryCode(false); in setLocationCountryCode()
395 public Pair<Integer, String> setCountryCode(boolean forceUpdate) { in setCountryCode() method in UwbCountryCode
406 int status = mNativeUwbManager.setCountryCode(country.getBytes(StandardCharsets.UTF_8)); in setCountryCode()
469 setCountryCode(true); in setOverrideCountryCode()
477 setCountryCode(true); in clearOverrideCountryCode()
/packages/modules/Wifi/service/java/com/android/server/wifi/hal/
DWifiApIface.java92 public boolean setCountryCode(String countryCode) { in setCountryCode() method in WifiApIface
100 () -> mWifiApIface.setCountryCode(code)); in setCountryCode()
DWifiApIfaceAidlImpl.java117 public boolean setCountryCode(byte[] countryCode) { in setCountryCode() method in WifiApIfaceAidlImpl
122 mWifiApIface.setCountryCode(countryCode); in setCountryCode()
DIWifiApIface.java54 boolean setCountryCode(byte[] countryCode); in setCountryCode() method
DWifiApIfaceHidlImpl.java74 public boolean setCountryCode(byte[] countryCode) { in setCountryCode() method in WifiApIfaceHidlImpl
161 WifiStatus status = mWifiApIface.setCountryCode(countryCode); in setCountryCodeInternal()
DIWifiChip.java391 boolean setCountryCode(byte[] code); in setCountryCode() method
DWifiChip.java881 public boolean setCountryCode(String countryCode) { in setCountryCode() method in WifiChip
889 () -> mWifiChip.setCountryCode(code)); in setCountryCode()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DSoftApCapabilityTest.java46 capability.setCountryCode(DRIVER_COUNTRY_CODE); in testCopyOperator()
75 capability.setCountryCode(DRIVER_COUNTRY_CODE); in testParcelOperation()
/packages/modules/Connectivity/thread/tests/unit/src/com/android/server/thread/
DThreadNetworkCountryCodeTest.java154 .setCountryCode(any(), any(IOperationReceiver.class)); in setUp()
175 address.setCountryCode(countryCode); in newAddress()
410 verify(mThreadNetworkControllerService, never()).setCountryCode(any(), any()); in updateCountryCode_noForceUpdateDefaultCountryCode_noCountryCodeIsUpdated()
421 .setCountryCode(eq(DEFAULT_COUNTRY_CODE), mOperationReceiverCaptor.capture()); in updateCountryCode_forceUpdateDefaultCountryCode_countryCodeIsUpdated()
451 .setCountryCode(eq(TEST_COUNTRY_CODE_CN), mOperationReceiverCaptor.capture()); in setCountryCodeFailed_defaultCountryCodeAvailable_countryCodeIsNotUpdated()
/packages/modules/Wifi/framework/java/android/net/wifi/
DSoftApCapability.java196 public void setCountryCode(String countryCode) { in setCountryCode() method in SoftApCapability
371 capability.setCountryCode(in.readString());
/packages/modules/Wifi/service/java/com/android/server/wifi/
DScanOnlyModeImpl.java53 public boolean setCountryCode(String countryCode) { in setCountryCode() method in ScanOnlyModeImpl
DClientModeDefaults.java241 default boolean setCountryCode(String countryCode) { in setCountryCode() method
DClientMode.java289 boolean setCountryCode(String countryCode); in setCountryCode() method
DISupplicantStaIfaceHal.java464 boolean setCountryCode(@NonNull String ifaceName, String codeStr); in setCountryCode() method
/packages/modules/Uwb/indev_uwb_adaptation/java/com/android/server/uwb/indev/
DUwbServiceCore.java218 public boolean setCountryCode(byte[] countryCode) { in setCountryCode() method in UwbServiceCore
/packages/apps/Contacts/src/com/android/contacts/compat/
DPhoneNumberUtilsCompat.java161 builder.setCountryCode(Integer.toString(phoneNumber.getCountryCode())); in createTtsSpanLollipop()
/packages/modules/Wifi/framework/java/android/net/wifi/rtt/
DCivicLocation.java232 address.setCountryCode(mCountryCode); // Country in toAddress()

12