/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/common/ |
D | StringUtilsTests.java | 34 private static final Locale US = Locale.US; field in StringUtilsTests 47 assert_toTitleCaseOfKeyLabel(US, null, null); in test_toTitleCaseOfKeyLabel() 48 assert_toTitleCaseOfKeyLabel(US, "", ""); in test_toTitleCaseOfKeyLabel() 49 assert_toTitleCaseOfKeyLabel(US, "aeiou", "AEIOU"); in test_toTitleCaseOfKeyLabel() 64 assert_toTitleCaseOfKeyLabel(US, in test_toTitleCaseOfKeyLabel() 130 assert_toTitleCaseOfKeyCode(US, Constants.CODE_ENTER, Constants.CODE_ENTER); in test_toTitleCaseOfKeyCode() 131 assert_toTitleCaseOfKeyCode(US, Constants.CODE_SPACE, Constants.CODE_SPACE); in test_toTitleCaseOfKeyCode() 132 assert_toTitleCaseOfKeyCode(US, Constants.CODE_COMMA, Constants.CODE_COMMA); in test_toTitleCaseOfKeyCode() 137 assert_toTitleCaseOfKeyCode(US, 0x0069, 0x0049); // i -> I in test_toTitleCaseOfKeyCode() 138 assert_toTitleCaseOfKeyCode(US, 0x0131, 0x0049); // ı -> I in test_toTitleCaseOfKeyCode() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
D | LanguageOnSpacebarUtilsTests.java | 68 EN_US_QWERTY = findSubtypeOf(Locale.US.toString(), "qwerty"); in setUp() 113 assertFormatType(EN_US_QWERTY, true, Locale.US, FORMAT_TYPE_NONE); in testOneSubtypeImplicitlyEnabled() 132 assertFormatType(EN_GB_QWERTY, false, Locale.US, FORMAT_TYPE_LANGUAGE_ONLY); in testOneSubtypeExplicitlyEnabled() 136 assertFormatType(FR_AZERTY, false, Locale.US, FORMAT_TYPE_LANGUAGE_ONLY); in testOneSubtypeExplicitlyEnabled() 140 assertFormatType(FR_CA_QWERTY, false, Locale.US, FORMAT_TYPE_LANGUAGE_ONLY); in testOneSubtypeExplicitlyEnabled() 157 assertFormatType(EN_US_QWERTY, false, Locale.US, FORMAT_TYPE_LANGUAGE_ONLY); in testTwoSubtypesExplicitlyEnabled() 158 assertFormatType(FR_AZERTY, false, Locale.US, FORMAT_TYPE_LANGUAGE_ONLY); in testTwoSubtypesExplicitlyEnabled() 165 assertFormatType(EN_US_QWERTY, false, Locale.US, FORMAT_TYPE_LANGUAGE_ONLY); in testTwoSubtypesExplicitlyEnabled() 166 assertFormatType(ZZ_QWERTY, false, Locale.US, FORMAT_TYPE_FULL_LOCALE); in testTwoSubtypesExplicitlyEnabled() 177 assertFormatType(EN_US_QWERTY, false, Locale.US, FORMAT_TYPE_FULL_LOCALE); in testMultiSubtypeWithSameLanuageAndSameLayout() [all …]
|
/packages/services/Telephony/tests/src/com/android/phone/tests/ |
D | CallForwardInfoTest.java | 40 assertNotNull(PhoneNumberUtils.formatNumber("+12345678900", Locale.US.getCountry())); in testCallForwardNumberResponses() 41 assertNotNull(PhoneNumberUtils.formatNumber("123-456-7890", Locale.US.getCountry())); in testCallForwardNumberResponses() 42 assertNotNull(PhoneNumberUtils.formatNumber("#123", Locale.US.getCountry())); in testCallForwardNumberResponses() 43 assertNotNull(PhoneNumberUtils.formatNumber("*12", Locale.US.getCountry())); in testCallForwardNumberResponses() 45 assertNull(PhoneNumberUtils.formatNumber("a", Locale.US.getCountry())); in testCallForwardNumberResponses() 46 assertNull(PhoneNumberUtils.formatNumber("a1", Locale.US.getCountry())); in testCallForwardNumberResponses()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | DatabaseWrapper.java | 112 LogUtil.v(LogUtil.BUGLE_DATABASE_PERF_TAG, String.format(Locale.US, in printTiming() 161 printTiming(t1, String.format(Locale.US, in endTransaction() 192 printTiming(t1, String.format(Locale.US, in insertWithOnConflict() 264 String.format(Locale.US, "query %s with %s ==> %d", in query() 295 String.format(Locale.US, "query %s with %s ==> %d", in query() 313 String.format(Locale.US, "queryNumEntries %s with %s ==> %d", table, in queryNumEntries() 332 String.format(Locale.US, "rawQuery %s ==> %d", sql, cursor.getCount())); in rawQuery() 352 printTiming(t1, String.format(Locale.US, "update %s with %s ==> %d", in update() 373 String.format(Locale.US, "delete from %s with %s ==> %d", table, in delete() 394 printTiming(t1, String.format(Locale.US, "insert to %s", table)); in insert() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | DateUtils.java | 47 new SimpleDateFormat("yyyy-MM-dd'T'HH:mm'Z'", Locale.US), 48 new SimpleDateFormat("yyyyMMdd", Locale.US), 49 new SimpleDateFormat("yyyyMMdd'T'HHmmssSSS'Z'", Locale.US), 50 new SimpleDateFormat("yyyyMMdd'T'HHmmss'Z'", Locale.US), 51 new SimpleDateFormat("yyyyMMdd'T'HHmm'Z'", Locale.US), 104 final Calendar calendar = Calendar.getInstance(UTC_TIMEZONE, Locale.US); in getUtcDate() 113 final Calendar calendar = Calendar.getInstance(UTC_TIMEZONE, Locale.US); in getUtcDate()
|
D | CommonDateUtils.java | 29 new SimpleDateFormat("--MM-dd", Locale.US); 31 new SimpleDateFormat("yyyy-MM-dd", Locale.US); 33 new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", Locale.US); 35 new SimpleDateFormat("--MM-dd'T'HH:mm:ss.SSS'Z'", Locale.US);
|
/packages/apps/Dialer/java/com/android/contacts/common/util/ |
D | CommonDateUtils.java | 27 new SimpleDateFormat("--MM-dd", Locale.US); 29 new SimpleDateFormat("yyyy-MM-dd", Locale.US); 31 new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", Locale.US); 33 new SimpleDateFormat("--MM-dd'T'HH:mm:ss.SSS'Z'", Locale.US);
|
/packages/modules/Wifi/framework/java/android/net/wifi/p2p/nsd/ |
D | WifiP2pDnsSdServiceInfo.java | 133 sb.append(String.format(Locale.US, "%02x", data.length)); in createPtrServiceQuery() 194 sb.append(String.format(Locale.US, "%04x", dnsType)); in createRequest() 195 sb.append(String.format(Locale.US, "%02x", version)); in createRequest() 222 sb.append(String.format(Locale.US, "%02x", dnsName.length())); in compressDnsName() 232 sb.append(String.format(Locale.US, "%02x", name.length())); in compressDnsName()
|
D | WifiP2pServiceRequest.java | 142 sb.append(String.format(Locale.US, "%02x", (mLength) & 0xff)); in getSupplicantQuery() 143 sb.append(String.format(Locale.US, "%02x", (mLength >> 8) & 0xff)); in getSupplicantQuery() 144 sb.append(String.format(Locale.US, "%02x", mProtocolType)); in getSupplicantQuery() 145 sb.append(String.format(Locale.US, "%02x", mTransId)); in getSupplicantQuery()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/util/ |
D | StatusTextUtils.java | 61 buffer.append(String.format(Locale.US, "<font color=%s>", audioPositionColor)); in getStatusWarningInHTML() 64 Locale.US, in getStatusWarningInHTML() 72 Locale.US, in getStatusWarningInHTML() 79 Locale.US, in getStatusWarningInHTML()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datetime/timezone/ |
D | BaseTimeZoneAdapterTest.java | 38 TestItem US = new TestItem("United States"); in testFilter() local 44 items.add(US); in testFilter() 51 assertSearch(adapter, "Unit", US, UK); in testFilter() 92 super(items, position -> {}, Locale.US, false /* showItemSummary */, in TestTimeZoneAdapter()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datetime/timezone/model/ |
D | TimeZoneDataTest.java | 75 CountryTimeZones US = mock(CountryTimeZones.class); in testLookupCountryCodesForZoneId() local 76 when(US.getCountryIso()).thenReturn("us"); in testLookupCountryCodesForZoneId() 77 when(US.getTimeZoneMappings()).thenReturn(Arrays.asList( in testLookupCountryCodesForZoneId() 90 .thenReturn(Arrays.asList(US, GB)); in testLookupCountryCodesForZoneId()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/ |
D | ImapFolder.java | 301 Locale.US, in fetchInternal() 509 mp.setSubType(bs.getStringOrEmpty(i).getString().toLowerCase(Locale.US)); in parseBodyStructure() 533 final String mimeType = (type.getString() + "/" + subType.getString()).toLowerCase(Locale.US); in parseBodyStructure() 593 bodyDisposition.getStringOrEmpty(0).getString().toLowerCase(Locale.US); in parseBodyStructure() 609 Locale.US, in parseBodyStructure() 614 .toLowerCase(Locale.US), in parseBodyStructure() 622 contentDisposition.append(String.format(Locale.US, ";\n size=%d", size)); in parseBodyStructure() 698 Locale.US, in setFlags() 719 String.format(Locale.US, ImapConstants.SELECT + " \"%s\"", name)); in doSelect() 762 String.format(Locale.US, ImapConstants.GETQUOTAROOT + " \"%s\"", name)); in getQuota()
|
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/ |
D | LocationUrlBuilder.java | 126 String url = String.format(Locale.US, "geo: %s?q=%s", latLong, latLong); in getShowMapIntent() 132 String.format(Locale.US, "(%s, %s)", addressLine1.toString(), addressLine2.toString()); in getShowMapIntent() 134 url += String.format(Locale.US, "(%s)", addressLine1.toString()); in getShowMapIntent() 140 Locale.US, in getShowMapIntent()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/action/ |
D | KlpActionLabelTests.java | 94 doTestActionKeysInLocaleWithStringResources(italian, Locale.ITALIAN, Locale.US); in testActionLabelInOtherLocale() 105 doTestActionKeysInLocaleWithStringResources(noLanguage, Locale.US, Locale.US); in testNoLanguageSubtypeActionLabel() 158 doTestActionKeysInLocaleWithKeyboardTextsSet(hiLatn, hi_ZZ, Locale.US); in testHinglishActionLabel() 175 doTestActionKeysInLocaleWithKeyboardTextsSet(srLatn, sr_ZZ, Locale.US); in testSerbianLatinActionLabel()
|
/packages/apps/Dialer/java/com/android/dialer/assisteddialing/ |
D | LocationDetector.java | 59 return Optional.of(userProvidedHomeCountry.toUpperCase(Locale.US)); in getUpperCaseUserHomeCountry() 65 return Optional.of(telephonyManager.getSimCountryIso().toUpperCase(Locale.US)); in getUpperCaseUserHomeCountry() 76 return Optional.of(telephonyManager.getNetworkCountryIso().toUpperCase(Locale.US)); in getUpperCaseUserRoamingCountry()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/compat/ |
D | SuggestionSpanUtilsTest.java | 243 final SuggestionSpan enUsLocaleSpan = new SuggestionSpan(Locale.US, suggestions, 0); in testFindFirstLocaleFromSuggestionSpans() 252 assertEquals(Locale.US, SuggestionSpanUtils.findFirstLocaleFromSuggestionSpans( in testFindFirstLocaleFromSuggestionSpans() 255 assertEquals(Locale.US, SuggestionSpanUtils.findFirstLocaleFromSuggestionSpans( in testFindFirstLocaleFromSuggestionSpans() 258 assertEquals(Locale.US, SuggestionSpanUtils.findFirstLocaleFromSuggestionSpans( in testFindFirstLocaleFromSuggestionSpans()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | Dates.java | 184 if (locale.equals(Locale.US)) { in getThisWeekTimestamp() 203 if (locale.equals(Locale.US)) { in getThisYearTimestamp() 219 if (locale.equals(Locale.US)) { in getOlderThanAYearTimestamp() 227 if (locale.equals(Locale.US)) { in getOlderThanAYearTimestamp()
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | SQLiteTokenizer.java | 215 switch (token.toUpperCase(Locale.US)) { in isKeyword() 264 switch (token.toLowerCase(Locale.US)) { in isFunction() 285 switch (token.toUpperCase(Locale.US)) { in isType()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiCountryCode.java | 189 return WifiCountryCode.isValid(country) ? country.toUpperCase(Locale.US) : null; in getOemDefaultCountryCode() 285 mOverrideCountryCode = countryCode.toUpperCase(Locale.US); in setOverrideCountryCode() 323 mTelephonyCountryCode = countryCode.toUpperCase(Locale.US); in setTelephonyCountryCode() 389 countryCode.toUpperCase(Locale.US)); in setDefaultCountryCode()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | DictionaryFacilitatorLruCacheTests.java | 40 final DictionaryFacilitator dictionaryFacilitatorEnUs = cache.get(Locale.US); in testGetFacilitator() 42 assertTrue(dictionaryFacilitatorEnUs.isForLocale(Locale.US)); in testGetFacilitator()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/language/ |
D | LocalePreferenceProviderTest.java | 101 LocaleStore.getLocaleInfo(Locale.US))); in testPopulateBasePreference_noSubSections() 118 LocaleStore.getLocaleInfo(Locale.US))); in testPopulateBasePreference_withSubSections() 151 LocaleStore.getLocaleInfo(Locale.US))); in testClickListenerTriggered()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/datetime/timezone/ |
D | TimeZoneInfoTest.java | 37 Formatter formatter = new Formatter(Locale.US, now); in testFormat() 51 Formatter formatter = new Formatter(Locale.US, date); in getGmtOffset_zoneLordHowe_correctGmtOffset()
|
D | RegionZonePickerTest.java | 43 Formatter formatter = new Formatter(Locale.US, now); in compareTimeZoneInfo_matchGmtOrder() 50 new TimeZoneInfoComparator(Collator.getInstance(Locale.US), now); in compareTimeZoneInfo_matchGmtOrder()
|
/packages/apps/TV/tuner/tests/robotests/javatests/com/android/tv/tuner/util/ |
D | PostalCodeUtilsTest.java | 52 assertThat(PostalCodeUtils.matches(postcode, Locale.US.getCountry())).isTrue(); in validPostcodesUs() 66 assertThat(PostalCodeUtils.matches(postcode, Locale.US.getCountry())).isFalse(); in invalidPostcodesUs()
|