/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | PersonalDictionaryLookupTest.java | 140 PersonalDictionaryLookup lookup = setUpShortcut(Locale.US); in testShortcutKeyMatching() 142 assertEquals("Expansion", lookup.expandShortcut("shortcut", Locale.US)); in testShortcutKeyMatching() 143 assertNull(lookup.expandShortcut("Shortcut", Locale.US)); in testShortcutKeyMatching() 144 assertNull(lookup.expandShortcut("SHORTCUT", Locale.US)); in testShortcutKeyMatching() 145 assertNull(lookup.expandShortcut("shortcu", Locale.US)); in testShortcutKeyMatching() 146 assertNull(lookup.expandShortcut("shortcutt", Locale.US)); in testShortcutKeyMatching() 153 PersonalDictionaryLookup lookup = setUpShortcut(Locale.US); in testShortcutMatchesInputCountry() 155 verifyWordExists(lookup.getShortcutsForLocale(Locale.US), "shortcut"); in testShortcutMatchesInputCountry() 161 assertEquals("Expansion", lookup.expandShortcut("shortcut", Locale.US)); in testShortcutMatchesInputCountry() 174 verifyWordExists(lookup.getShortcutsForLocale(Locale.US), "shortcut"); in testShortcutMatchesInputLanguage() [all …]
|
D | DictionaryFacilitatorLruCacheTests.java | 30 final DictionaryFacilitator dictionaryFacilitatorEnUs = cache.get(Locale.US); in testGetFacilitator() 32 assertTrue(dictionaryFacilitatorEnUs.isForLocale(Locale.US)); in testGetFacilitator()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/common/ |
D | StringUtilsTests.java | 26 private static final Locale US = Locale.US; field in StringUtilsTests 38 assert_toTitleCaseOfKeyLabel(US, null, null); in test_toTitleCaseOfKeyLabel() 39 assert_toTitleCaseOfKeyLabel(US, "", ""); in test_toTitleCaseOfKeyLabel() 40 assert_toTitleCaseOfKeyLabel(US, "aeiou", "AEIOU"); in test_toTitleCaseOfKeyLabel() 55 assert_toTitleCaseOfKeyLabel(US, in test_toTitleCaseOfKeyLabel() 120 assert_toTitleCaseOfKeyCode(US, Constants.CODE_ENTER, Constants.CODE_ENTER); in test_toTitleCaseOfKeyCode() 121 assert_toTitleCaseOfKeyCode(US, Constants.CODE_SPACE, Constants.CODE_SPACE); in test_toTitleCaseOfKeyCode() 122 assert_toTitleCaseOfKeyCode(US, Constants.CODE_COMMA, Constants.CODE_COMMA); in test_toTitleCaseOfKeyCode() 127 assert_toTitleCaseOfKeyCode(US, 0x0069, 0x0049); // i -> I in test_toTitleCaseOfKeyCode() 128 assert_toTitleCaseOfKeyCode(US, 0x0131, 0x0049); // ı -> I in test_toTitleCaseOfKeyCode() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
D | LanguageOnSpacebarUtilsTests.java | 60 EN_US_QWERTY = findSubtypeOf(Locale.US.toString(), "qwerty"); in setUp() 104 assertFormatType(EN_US_QWERTY, true, Locale.US, FORMAT_TYPE_NONE); in testOneSubtypeImplicitlyEnabled() 122 assertFormatType(EN_GB_QWERTY, false, Locale.US, FORMAT_TYPE_LANGUAGE_ONLY); in testOneSubtypeExplicitlyEnabled() 126 assertFormatType(FR_AZERTY, false, Locale.US, FORMAT_TYPE_LANGUAGE_ONLY); in testOneSubtypeExplicitlyEnabled() 130 assertFormatType(FR_CA_QWERTY, false, Locale.US, FORMAT_TYPE_LANGUAGE_ONLY); in testOneSubtypeExplicitlyEnabled() 145 assertFormatType(EN_US_QWERTY, false, Locale.US, FORMAT_TYPE_LANGUAGE_ONLY); in testTwoSubtypesExplicitlyEnabled() 146 assertFormatType(FR_AZERTY, false, Locale.US, FORMAT_TYPE_LANGUAGE_ONLY); in testTwoSubtypesExplicitlyEnabled() 153 assertFormatType(EN_US_QWERTY, false, Locale.US, FORMAT_TYPE_LANGUAGE_ONLY); in testTwoSubtypesExplicitlyEnabled() 154 assertFormatType(ZZ_QWERTY, false, Locale.US, FORMAT_TYPE_FULL_LOCALE); in testTwoSubtypesExplicitlyEnabled() 164 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/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 …]
|
D | Pop3Store.java | 564 response = executeSimpleCommand(String.format(Locale.US, "RETR %d", messageId)); in fetchBody() 569 String.format(Locale.US, "TOP %d %d", messageId, lines)); in fetchBody() 573 String.format(Locale.US, "RETR %d", messageId)); in fetchBody() 660 executeSimpleCommand(String.format(Locale.US, "DELE %s", msgNum)); in setFlags()
|
/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);
|
D | ContactPhotoUtils.java | 82 SimpleDateFormat dateFormat = new SimpleDateFormat(PHOTO_DATE_FORMAT, Locale.US); in generateTempPhotoFileName() 88 SimpleDateFormat dateFormat = new SimpleDateFormat(PHOTO_DATE_FORMAT, Locale.US); in generateTempCroppedPhotoFileName()
|
/packages/apps/Dialer/java/com/android/contacts/common/util/ |
D | DateUtils.java | 46 new SimpleDateFormat("yyyy-MM-dd'T'HH:mm'Z'", Locale.US), 47 new SimpleDateFormat("yyyyMMdd", Locale.US), 48 new SimpleDateFormat("yyyyMMdd'T'HHmmssSSS'Z'", Locale.US), 49 new SimpleDateFormat("yyyyMMdd'T'HHmmss'Z'", Locale.US), 50 new SimpleDateFormat("yyyyMMdd'T'HHmm'Z'", Locale.US), 103 final Calendar calendar = Calendar.getInstance(UTC_TIMEZONE, Locale.US); in getUtcDate() 112 final Calendar calendar = Calendar.getInstance(UTC_TIMEZONE, Locale.US); in getUtcDate()
|
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\"", mName)); in doSelect() 761 String.format(Locale.US, ImapConstants.GETQUOTAROOT + " \"%s\"", mName)); in getQuota()
|
/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/TV/src/com/android/tv/tuner/util/ |
D | StatusTextUtils.java | 58 buffer.append(String.format(Locale.US, "<font color=%s>", audioPositionColor)); in getStatusWarningInHTML() 60 String.format(Locale.US, "audioPositionMs: %d (%d)<br>", audioPositionUs / 1000, in getStatusWarningInHTML() 64 buffer.append(String.format(Locale.US, "audioPtsMs: %d (%d, %d)<br>", audioPtsUs / 1000, in getStatusWarningInHTML() 66 buffer.append(String.format(Locale.US, "videoPtsMs: %d (%d, %d)<br>", videoPtsUs / 1000, in getStatusWarningInHTML()
|
/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/compat/ |
D | SuggestionSpanUtilsTest.java | 225 final SuggestionSpan enUsLocaleSpan = new SuggestionSpan(Locale.US, suggestions, 0); in testFindFirstLocaleFromSuggestionSpans() 234 assertEquals(Locale.US, SuggestionSpanUtils.findFirstLocaleFromSuggestionSpans( in testFindFirstLocaleFromSuggestionSpans() 237 assertEquals(Locale.US, SuggestionSpanUtils.findFirstLocaleFromSuggestionSpans( in testFindFirstLocaleFromSuggestionSpans() 240 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 | TelephonyBackupAgent.java | 368 String.format(Locale.US, SMS_BACKUP_FILE_FORMAT, fileNum++)); in onFullBackup() 370 backupAll(data, mmsCursor, String.format(Locale.US, in onFullBackup() 377 String.format(Locale.US, SMS_BACKUP_FILE_FORMAT, fileNum++)); in onFullBackup() 382 String.format(Locale.US, MMS_BACKUP_FILE_FORMAT, fileNum++)); in onFullBackup() 634 final String where = String.format(Locale.US, "%s = %d and %s = %s", 645 final String where = String.format(Locale.US, "%s = %d", 667 subscriptionInfo.getCountryIso().toUpperCase(Locale.US)); 1029 final String srcName = String.format(Locale.US, "text.%06d.txt", 0);
|
/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/apps/Messaging/src/com/android/messaging/sms/ |
D | MmsUtils.java | 163 Locale.US, 173 Locale.US, 1235 Locale.US, in getMediaTypeSelectionSql() 1266 Locale.US, in deleteMediaMessages() 1297 Locale.US, in deleteMediaMessages() 1369 Locale.US, in deleteMessagesOlderThan() 1377 Locale.US, in deleteMessagesOlderThan() 1398 Locale.US, in updateSmsReadStatus() 1411 Locale.US, in updateSmsReadStatus() 1660 Locale.US, in loadMms()
|
/packages/apps/TV/src/com/android/tv/tuner/data/ |
D | PsipData.java | 214 .format(Locale.US, "ShortName: %s LongName: %s ServiceType: %d ChannelTsid: %x " in toString() 433 return String.format(Locale.US, in toString() 669 return String.format(Locale.US, in toString()
|
/packages/services/NetworkRecommendation/src/com/android/networkrecommendation/util/ |
D | Blog.java | 143 : String.format(Locale.US, format, args); in buildMessage() 163 return String.format(Locale.US, "[%d] %s: %s", in buildMessage()
|