/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/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/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/UnifiedEmail/src/org/apache/james/mime4j/util/ |
D | CharsetUtil.java | 1027 decodingSupported.add(JAVA_CHARSETS[i].canonical.toLowerCase(Locale.US)); in decodingSupported.add() argument 1033 encodingSupported.add(JAVA_CHARSETS[i].canonical.toLowerCase(Locale.US)); in encodingSupported.add() argument 1042 charsetMap.put(c.canonical.toLowerCase(Locale.US), c); in c.canonical.toLowerCase() argument 1044 charsetMap.put(c.mime.toLowerCase(Locale.US), c); in c.mime.toLowerCase() argument 1048 charsetMap.put(c.aliases[j].toLowerCase(Locale.US), c); in charsetMap.put() argument 1140 return encodingSupported.contains(charsetName.toLowerCase(Locale.US)); in isEncodingSupported() 1155 return decodingSupported.contains(charsetName.toLowerCase(Locale.US)); in isDecodingSupported() 1166 Charset c = charsetMap.get(charsetName.toLowerCase(Locale.US)); in toMimeCharset() 1185 Charset c = charsetMap.get(charsetName.toLowerCase(Locale.US)); in toJavaCharset()
|
/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/Email/provider_src/com/android/email/mail/store/ |
D | ImapFolder.java | 198 connection.executeSimpleCommand(String.format(Locale.US, in exists() 244 connection.executeSimpleCommand(String.format(Locale.US, in create() 269 String.format(Locale.US, ImapConstants.UID_COPY + " %s \"%s\"", in copyMessages() 358 String.format(Locale.US, in getUnreadMessageCount() 517 searchForUids(String.format(Locale.US, "%d:%d NOT DELETED", start, end)), listener); in getMessages() 526 final SimpleDateFormat formatter = new SimpleDateFormat("dd-LLL-yyyy", Locale.US); in generateDateRangeCommand() 679 mConnection.sendCommand(String.format(Locale.US, in fetchInternal() 879 mp.setSubType(bs.getStringOrEmpty(i).getString().toLowerCase(Locale.US)); in parseBodyStructure() 904 (type.getString() + "/" + subType.getString()).toLowerCase(Locale.US); in parseBodyStructure() 962 bodyDisposition.getStringOrEmpty(0).getString().toLowerCase(Locale.US); in parseBodyStructure() [all …]
|
/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/apps/Dialer/java/com/android/voicemail/impl/mail/store/ |
D | ImapFolder.java | 301 Locale.US, in fetchInternal() 508 mp.setSubType(bs.getStringOrEmpty(i).getString().toLowerCase(Locale.US)); in parseBodyStructure() 532 final String mimeType = (type.getString() + "/" + subType.getString()).toLowerCase(Locale.US); in parseBodyStructure() 592 bodyDisposition.getStringOrEmpty(0).getString().toLowerCase(Locale.US); in parseBodyStructure() 608 Locale.US, in parseBodyStructure() 613 .toLowerCase(Locale.US), in parseBodyStructure() 621 contentDisposition.append(String.format(Locale.US, ";\n size=%d", size)); in parseBodyStructure() 697 Locale.US, in setFlags() 718 String.format(Locale.US, ImapConstants.SELECT + " \"%s\"", name)); in doSelect() 761 String.format(Locale.US, ImapConstants.GETQUOTAROOT + " \"%s\"", name)); in getQuota()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datetime/timezone/model/ |
D | TimeZoneDataTest.java | 73 CountryTimeZones US = mock(CountryTimeZones.class); in testLookupCountryCodesForZoneId() local 74 when(US.getCountryIso()).thenReturn("us"); in testLookupCountryCodesForZoneId() 75 when(US.getTimeZoneMappings()).thenReturn(Arrays.asList( in testLookupCountryCodesForZoneId() 85 .thenReturn(Arrays.asList(US, GB)); in testLookupCountryCodesForZoneId()
|
/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()
|
D | TimeZoneInfoTest.java | 36 Formatter formatter = new Formatter(Locale.US, now); in testFormat() 50 Formatter formatter = new Formatter(Locale.US, date); in getGmtOffset_zoneLordHowe_correctGmtOffset()
|
D | RegionZonePickerTest.java | 42 Formatter formatter = new Formatter(Locale.US, now); in compareTimeZoneInfo_matchGmtOrder() 49 new TimeZoneInfoComparator(Collator.getInstance(Locale.US), now); in compareTimeZoneInfo_matchGmtOrder()
|
/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/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/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/apps/Car/Settings/tests/robotests/src/com/android/car/settings/language/ |
D | LocalePreferenceProviderTest.java | 90 LocaleStore.getLocaleInfo(Locale.US))); in testPopulateBasePreference_noSubSections() 107 LocaleStore.getLocaleInfo(Locale.US))); in testPopulateBasePreference_withSubSections() 140 LocaleStore.getLocaleInfo(Locale.US))); in testClickListenerTriggered()
|
/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/services/BuiltInPrintService/src/com/android/bips/ipp/ |
D | Backend.java | 75 nativeSetSourceInfo(context.getString(R.string.app_name).toLowerCase(Locale.US), in Backend() 76 getApplicationVersion(context).toLowerCase(Locale.US), in Backend() 77 BackendConstants.WPRINT_APPLICATION_ID.toLowerCase(Locale.US)); in Backend()
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | EventFieldEditorView.java | 166 final Calendar calendar = Calendar.getInstance(DateUtils.UTC_TIMEZONE, Locale.US); in onLabelRebuilt() 202 final Calendar calendar = Calendar.getInstance(DateUtils.UTC_TIMEZONE, Locale.US); in createDatePickerDialog() 236 Calendar.getInstance(DateUtils.UTC_TIMEZONE, Locale.US); in createDatePickerDialog()
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | TelephonyBackupAgent.java | 390 String.format(Locale.US, SMS_BACKUP_FILE_FORMAT, fileNum++)); in onFullBackup() 392 backupAll(data, mmsCursor, String.format(Locale.US, in onFullBackup() 399 String.format(Locale.US, SMS_BACKUP_FILE_FORMAT, fileNum++)); in onFullBackup() 404 String.format(Locale.US, MMS_BACKUP_FILE_FORMAT, fileNum++)); in onFullBackup() 677 final String where = String.format(Locale.US, "%s = %d and %s = %s", 688 final String where = String.format(Locale.US, "%s = %d", 710 subscriptionInfo.getCountryIso().toUpperCase(Locale.US)); 1129 final String srcName = String.format(Locale.US, "text.%06d.txt", 0);
|