Home
last modified time | relevance | path

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

12

/packages/modules/Uwb/service/tests/src/com/android/server/uwb/
DUwbCountryCodeTest.java81 when(mNativeUwbManager.setCountryCode(any())).thenReturn( in setUp()
90 verify(mNativeUwbManager).setCountryCode( in testSetDefaultCountryCodeWhenNoCountryCodeAvailable()
98 verify(mNativeUwbManager).setCountryCode( in testInitializeCountryCodeFromTelephony()
109 verify(mNativeUwbManager).setCountryCode( in testInitializeCountryCodeFromTelephonyVerifyListener()
120 mUwbCountryCode.setCountryCode(false); in testSetCountryCodeFromTelephony()
122 verify(mNativeUwbManager, never()).setCountryCode( in testSetCountryCodeFromTelephony()
132 mUwbCountryCode.setCountryCode(true); in testSetCountryCodeWithForceUpdateFromTelephony()
134 verify(mNativeUwbManager).setCountryCode( in testSetCountryCodeWithForceUpdateFromTelephony()
144 mUwbCountryCode.setCountryCode(false); in testSetCountryCodeFromOemWhenTelephonyAndWifiNotAvailable()
146 verify(mNativeUwbManager, never()).setCountryCode( in testSetCountryCodeFromOemWhenTelephonyAndWifiNotAvailable()
[all …]
DUwbServiceCoreTest.java230 when(mUwbCountryCode.setCountryCode(anyBoolean())).thenReturn(true); in enableUwb()
252 verify(mUwbCountryCode).setCountryCode(true); in testEnable()
266 verify(mUwbCountryCode).setCountryCode(true); in testEnableWhenAlreadyEnabled()
297 when(mUwbCountryCode.setCountryCode(anyBoolean())).thenReturn(true); in testDisableWhenAlreadyDisabled()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiCountryCodeTest.java100 when(mClientModeManager.setCountryCode(anyString())).thenReturn(true); in setUp()
136 }).when(mClientModeManager).setCountryCode( in createWifiCountryCode()
163 verify(mClientModeManager).setCountryCode(anyString()); in useDefaultCountryCode()
178 verify(mClientModeManager).setCountryCode(anyString()); in useTelephonyCountryCodeOnBootup()
194 verify(mClientModeManager).setCountryCode(anyString()); in useTelephonyCountryCodeOnChange()
218 verify(mClientModeManager, times(3)).setCountryCode(anyString()); in telephonyCountryCodeChangeAfterSupplicantStarts()
243 verify(mClientModeManager, times(3)).setCountryCode(anyString()); in telephonyCountryCodeChangeAfterSupplicantStop()
251 verify(mClientModeManager, times(3)).setCountryCode(anyString()); in telephonyCountryCodeChangeAfterSupplicantStop()
292 verify(mClientModeManager, times(2)).setCountryCode(anyString()); in telephonyCountryCodeChangeAfterL2Connected()
333 verify(mClientModeManager, times(2)).setCountryCode(anyString()); in telephonyCountryCodeChangeAfterL2ConnectedOnTwoClientModeManager()
[all …]
DSupplicantStaIfaceHalAidlImplTest.java1559 doNothing().when(mISupplicantStaIfaceMock).setCountryCode(any(byte[].class)); in testSetCountryCode()
1563 assertFalse(mDut.setCountryCode(WLAN0_IFACE_NAME, testCountryCode)); in testSetCountryCode()
1564 verify(mISupplicantStaIfaceMock, never()).setCountryCode(any(byte[].class)); in testSetCountryCode()
1568 assertTrue(mDut.setCountryCode(WLAN0_IFACE_NAME, testCountryCode)); in testSetCountryCode()
1569 verify(mISupplicantStaIfaceMock).setCountryCode(eq(testCountryCode.getBytes())); in testSetCountryCode()
1574 assertFalse(mDut.setCountryCode(WLAN0_IFACE_NAME, null)); in testSetCountryCode()
1575 verify(mISupplicantStaIfaceMock, never()).setCountryCode(any(byte[].class)); in testSetCountryCode()
1577 assertFalse(mDut.setCountryCode(WLAN0_IFACE_NAME, "U")); in testSetCountryCode()
1578 verify(mISupplicantStaIfaceMock, never()).setCountryCode(any(byte[].class)); in testSetCountryCode()
DWifiNativeTest.java1341 when(mStaIfaceHal.setCountryCode(any(), any())).thenReturn(true); in testSetStaCountryCodeSuccessful()
1345 verify(mStaIfaceHal).setCountryCode(WIFI_IFACE_NAME, testCountryCode); in testSetStaCountryCodeSuccessful()
1353 when(mStaIfaceHal.setCountryCode(any(), any())).thenReturn(false); in testSetStaCountryCodeFailure()
1357 verify(mStaIfaceHal).setCountryCode(WIFI_IFACE_NAME, testCountryCode); in testSetStaCountryCodeFailure()
DSupplicantStaIfaceHalHidlImplTest.java1891 when(mISupplicantStaIfaceMock.setCountryCode(any(byte[].class))).thenReturn(mStatusSuccess); in testSetCountryCode()
1895 assertFalse(mDut.setCountryCode(WLAN0_IFACE_NAME, testCountryCode)); in testSetCountryCode()
1896 verify(mISupplicantStaIfaceMock, never()).setCountryCode(any(byte[].class)); in testSetCountryCode()
1900 assertTrue(mDut.setCountryCode(WLAN0_IFACE_NAME, testCountryCode)); in testSetCountryCode()
1901 verify(mISupplicantStaIfaceMock).setCountryCode(eq(testCountryCode.getBytes())); in testSetCountryCode()
1906 assertFalse(mDut.setCountryCode(WLAN0_IFACE_NAME, null)); in testSetCountryCode()
1907 verify(mISupplicantStaIfaceMock, never()).setCountryCode(any(byte[].class)); in testSetCountryCode()
1909 assertFalse(mDut.setCountryCode(WLAN0_IFACE_NAME, "U")); in testSetCountryCode()
1910 verify(mISupplicantStaIfaceMock, never()).setCountryCode(any(byte[].class)); in testSetCountryCode()
DSupplicantStaIfaceHalTest.java787 when(mStaIfaceHalAidlMock.setCountryCode(anyString(), anyString())) in testSetCountryCode()
789 assertTrue(mDut.setCountryCode(IFACE_NAME, countryCode)); in testSetCountryCode()
790 verify(mStaIfaceHalAidlMock).setCountryCode(eq(IFACE_NAME), eq(countryCode)); in testSetCountryCode()
DWifiVendorHalTest.java1841 when(mIWifiApIface.setCountryCode(any())) in testSetApCountryCode()
1855 verify(mIWifiApIface).setCountryCode(eq(expected)); in testSetApCountryCode()
1865 when(mIWifiApIface.setCountryCode(any())) in testRemoteExceptionIsHandled()
4040 when(mIWifiChipV15.setCountryCode(any())).thenReturn(mWifiStatusSuccess); in testSetCountryCodeWithHalV1_5()
4046 verify(mIWifiChipV15, never()).setCountryCode(any()); in testSetCountryCodeWithHalV1_5()
4050 verify(mIWifiChipV15).setCountryCode(eq(expected)); in testSetCountryCodeWithHalV1_5()
/packages/modules/Uwb/service/java/com/android/server/uwb/
DUwbCountryCode.java148 return setCountryCode(false); in setTelephonyCountryCode()
161 return setCountryCode(false); in setWifiCountryCode()
184 public boolean setCountryCode(boolean forceUpdate) { in setCountryCode() method in UwbCountryCode
195 int status = mNativeUwbManager.setCountryCode(country.getBytes(StandardCharsets.UTF_8)); in setCountryCode()
241 setCountryCode(true); in setOverrideCountryCode()
249 setCountryCode(true); in clearOverrideCountryCode()
DUwbServiceCore.java512 mUwbCountryCode.setCountryCode(true); in enableInternal()
/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/Wifi/framework/java/android/net/wifi/
DSoftApCapability.java196 public void setCountryCode(String countryCode) { in setCountryCode() method in SoftApCapability
357 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.java197 default boolean setCountryCode(String countryCode) { in setCountryCode() method
DClientMode.java237 boolean setCountryCode(String countryCode); in setCountryCode() method
DISupplicantStaIfaceHal.java465 boolean setCountryCode(@NonNull String ifaceName, String codeStr); in setCountryCode() method
DSupplicantStaIfaceHalAidlImpl.java1874 public boolean setCountryCode(@NonNull String ifaceName, String codeStr) { in setCountryCode() method in SupplicantStaIfaceHalAidlImpl
1883 return setCountryCode(ifaceName, countryCodeBytes); in setCountryCode()
1887 private boolean setCountryCode(@NonNull String ifaceName, byte[/* 2 */] code) { in setCountryCode() method in SupplicantStaIfaceHalAidlImpl
1895 iface.setCountryCode(code); in setCountryCode()
DWifiCountryCode.java549 if (!cm.setCountryCode(country)) { in setCountryCodeNative()
DSupplicantStaIfaceHal.java1639 public boolean setCountryCode(@NonNull String ifaceName, String codeStr) { in setCountryCode() method in SupplicantStaIfaceHal
1645 return mStaIfaceHal.setCountryCode(ifaceName, codeStr); in setCountryCode()
DConcreteClientModeManager.java1416 public boolean setCountryCode(String countryCode) { in setCountryCode() method in ConcreteClientModeManager
1417 return getClientMode().setCountryCode(countryCode); in setCountryCode()
DSupplicantStaIfaceHalHidlImpl.java2303 public boolean setCountryCode(@NonNull String ifaceName, String codeStr) { in setCountryCode() method in SupplicantStaIfaceHalHidlImpl
2308 return setCountryCode(ifaceName, countryCodeBytes); in setCountryCode()
2313 private boolean setCountryCode(@NonNull String ifaceName, byte[/* 2 */] code) { in setCountryCode() method in SupplicantStaIfaceHalHidlImpl
2319 SupplicantStatus status = iface.setCountryCode(code); in setCountryCode()
/packages/apps/Contacts/src/com/android/contacts/compat/
DPhoneNumberUtilsCompat.java161 builder.setCountryCode(Integer.toString(phoneNumber.getCountryCode())); in createTtsSpanLollipop()
/packages/modules/Uwb/service/java/com/android/server/uwb/jni/
DNativeUwbManager.java293 public byte setCountryCode(byte[] countryCode) { in setCountryCode() method in NativeUwbManager
/packages/modules/Wifi/framework/java/android/net/wifi/rtt/
DCivicLocation.java231 address.setCountryCode(mCountryCode); // Country in toAddress()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DReverseGeocoder.java387 address.setCountryCode(readUTF(dis)); in lookupAddress()

12