/packages/modules/Uwb/service/tests/src/com/android/server/uwb/ |
D | UwbCountryCodeTest.java | 81 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 …]
|
D | UwbServiceCoreTest.java | 230 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/ |
D | WifiCountryCodeTest.java | 100 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 …]
|
D | SupplicantStaIfaceHalAidlImplTest.java | 1559 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()
|
D | WifiNativeTest.java | 1341 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()
|
D | SupplicantStaIfaceHalHidlImplTest.java | 1891 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()
|
D | SupplicantStaIfaceHalTest.java | 787 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()
|
D | WifiVendorHalTest.java | 1841 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/ |
D | UwbCountryCode.java | 148 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()
|
D | UwbServiceCore.java | 512 mUwbCountryCode.setCountryCode(true); in enableInternal()
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
D | SoftApCapabilityTest.java | 46 capability.setCountryCode(DRIVER_COUNTRY_CODE); in testCopyOperator() 75 capability.setCountryCode(DRIVER_COUNTRY_CODE); in testParcelOperation()
|
/packages/modules/Wifi/framework/java/android/net/wifi/ |
D | SoftApCapability.java | 196 public void setCountryCode(String countryCode) { in setCountryCode() method in SoftApCapability 357 capability.setCountryCode(in.readString());
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | ScanOnlyModeImpl.java | 53 public boolean setCountryCode(String countryCode) { in setCountryCode() method in ScanOnlyModeImpl
|
D | ClientModeDefaults.java | 197 default boolean setCountryCode(String countryCode) { in setCountryCode() method
|
D | ClientMode.java | 237 boolean setCountryCode(String countryCode); in setCountryCode() method
|
D | ISupplicantStaIfaceHal.java | 465 boolean setCountryCode(@NonNull String ifaceName, String codeStr); in setCountryCode() method
|
D | SupplicantStaIfaceHalAidlImpl.java | 1874 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()
|
D | WifiCountryCode.java | 549 if (!cm.setCountryCode(country)) { in setCountryCodeNative()
|
D | SupplicantStaIfaceHal.java | 1639 public boolean setCountryCode(@NonNull String ifaceName, String codeStr) { in setCountryCode() method in SupplicantStaIfaceHal 1645 return mStaIfaceHal.setCountryCode(ifaceName, codeStr); in setCountryCode()
|
D | ConcreteClientModeManager.java | 1416 public boolean setCountryCode(String countryCode) { in setCountryCode() method in ConcreteClientModeManager 1417 return getClientMode().setCountryCode(countryCode); in setCountryCode()
|
D | SupplicantStaIfaceHalHidlImpl.java | 2303 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/ |
D | PhoneNumberUtilsCompat.java | 161 builder.setCountryCode(Integer.toString(phoneNumber.getCountryCode())); in createTtsSpanLollipop()
|
/packages/modules/Uwb/service/java/com/android/server/uwb/jni/ |
D | NativeUwbManager.java | 293 public byte setCountryCode(byte[] countryCode) { in setCountryCode() method in NativeUwbManager
|
/packages/modules/Wifi/framework/java/android/net/wifi/rtt/ |
D | CivicLocation.java | 231 address.setCountryCode(mCountryCode); // Country in toAddress()
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | ReverseGeocoder.java | 387 address.setCountryCode(readUTF(dis)); in lookupAddress()
|