/frameworks/base/libs/androidfw/tests/ |
D | ResourceTimer_test.cpp | 32 unsigned int US(int us) { in US() function 44 timer.record(US(i)); in TEST() 47 ASSERT_THAT(timer.total, US((101 * 100)/2)); in TEST() 48 ASSERT_THAT(timer.mintime, US(1)); in TEST() 49 ASSERT_THAT(timer.maxtime, US(100)); in TEST() 52 ASSERT_THAT(timer.largest[0], US(100)); in TEST() 53 ASSERT_THAT(timer.largest[1], US(99)); in TEST() 54 ASSERT_THAT(timer.largest[2], US(98)); in TEST() 55 ASSERT_THAT(timer.largest[3], US(97)); in TEST() 56 ASSERT_THAT(timer.largest[4], US(96)); in TEST() [all …]
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/inputmethod/ |
D | InputMethodSubtypePreferenceTest.java | 41 createPreference("", "en_US", Locale.US), 42 createPreference("E", "en_US", Locale.US), 43 createPreference("Z", "en_US", Locale.US), 45 createPreference("", "en", Locale.US), 46 createPreference("E", "en", Locale.US), 47 createPreference("Z", "en", Locale.US), 49 createPreference("", "ja", Locale.US), 50 createPreference("A", "hi_IN", Locale.US), 51 createPreference("B", "", Locale.US), 52 createPreference("E", "ja", Locale.US), [all …]
|
/frameworks/opt/localepicker/tests/src/com/android/localepicker/ |
D | LocaleHelperTest.java | 37 String sentenceCase = LocaleHelper.toSentenceCase("hello Google", Locale.US); in toSentenceCase_shouldUpperCaseFirstLetter() 43 String lowerCase = LocaleHelper.normalizeForSearch("english", Locale.US); in normalizeForSearch_sameStrings_shouldBeEqualAfterNormalized() 44 String upperCase = LocaleHelper.normalizeForSearch("ENGLISH", Locale.US); in normalizeForSearch_sameStrings_shouldBeEqualAfterNormalized() 51 LocaleHelper.getDisplayName(Locale.US, Locale.US, /* sentenceCase */ true); in getDisplayName_shouldReturnLocaleDisplayName() 60 Locale.US, in getDisplayName_withDifferentLocale_shouldReturnLocalizedDisplayName() 74 LocaleInfo unitedStates = LocaleStore.getLocaleInfo(Locale.US); in localeInfoComparator_shouldSortLocales() 79 list.sort(new LocaleInfoComparator(Locale.US, /* countryMode */ false)); in localeInfoComparator_shouldSortLocales()
|
D | SuggestedLocaleAdapterTest.java | 44 mLocaleOptions.add(LocaleStore.getLocaleInfo(Locale.US)); in setUp() 53 mEnglishCountryOptions.add(LocaleStore.getLocaleInfo(Locale.US)); in setUp() 69 suggestedLocaleAdapter.sort(new LocaleInfoComparator(Locale.US, /* countryMode */ false)); in suggestedLocaleAdapter_notCountryMode_shouldDisplayLocalesSorted() 95 suggestedLocaleAdapter.sort(new LocaleInfoComparator(Locale.US, /* countryMode */ true)); in suggestedLocaleAdapter_countryMode_shouldDisplayCountriesSorted()
|
/frameworks/base/apct-tests/perftests/core/src/android/libcore/regression/ |
D | BreakIteratorPerfTest.java | 43 Locale.US, 84 Locale.US, 137 TABS(Locale.US, "one\t\t\t\t\t\t\t\t\t\t\t\t\t\ttwo\n"), 138 ACCENT(Locale.US, "e\u0301\u00e9\nwhich is:\n\"e\\u0301\\u00e9\""), 139 EMOJI(Locale.US, ">>\ud83d\ude01<<\nwhich is:\n\">>\\ud83d\\ude01<<\""), 140 SPACES(Locale.US, " leading spaces and trailing ones too "), 141 EMPTY(Locale.US, ""), 142 NEWLINE(Locale.US, "\\n:\n"),
|
D | ExpensiveObjectsPerfTest.java | 79 Collator.getInstance(Locale.US); in timeNewCollator() 85 Collator c = Collator.getInstance(Locale.US); in timeClonedCollator() 96 new DateFormatSymbols(Locale.US); in timeNewDateFormatSymbols() 102 DateFormatSymbols dfs = new DateFormatSymbols(Locale.US); in timeClonedDateFormatSymbols() 113 new DecimalFormatSymbols(Locale.US); in timeNewDecimalFormatSymbols() 119 DecimalFormatSymbols dfs = new DecimalFormatSymbols(Locale.US); in timeClonedDecimalFormatSymbols() 130 NumberFormat.getInstance(Locale.US); in timeNewNumberFormat() 136 NumberFormat nf = NumberFormat.getInstance(Locale.US); in timeClonedNumberFormat() 153 NumberFormat nf = NumberFormat.getInstance(Locale.US); in timeNumberFormatTrivialFormatDouble()
|
D | SchemePrefixPerfTest.java | 59 return spec.substring(0, colon).toLowerCase(Locale.US); in JAVA() 80 return matcher.group(1).toLowerCase(Locale.US); in REGEX()
|
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/ |
D | AssetJsonWriter.java | 56 mWriter.name(key.toLowerCase(Locale.US)); in writeFieldLower() 57 mWriter.value(value.toLowerCase(Locale.US)); in writeFieldLower() 77 mWriter.name(key.toLowerCase(Locale.US)); in writeArrayUpper() 80 mWriter.value(value.toUpperCase(Locale.US)); in writeArrayUpper()
|
/frameworks/base/libs/androidfw/ |
D | ResourceTimer.cpp | 45 static const unsigned int US = 1000; variable 267 const int ResourceTimer::Timer::range[] = { 100 * US, 1000 * US, 10*1000 * US, 100*1000 * US }; 268 const int ResourceTimer::Timer::width[] = { 1 * US, 10 * US, 100 * US, 1000 * US };
|
/frameworks/base/core/tests/coretests/src/android/text/format/ |
D | DateFormatTest.java | 68 assertFalse(DateFormat.is24HourLocale(Locale.US)); in testIs24HourLocale() 74 DateFormatSymbols dfs = DateFormat.getIcuDateFormatSymbols(Locale.US); in testgetIcuDateFormatSymbols() 101 Locale enUS = Locale.US; in testGetDateFormatOrder() 151 assertIllegalArgumentException(Locale.US, "jmma"); in testGetBestDateTimePattern_disableDuplicateField() 152 assertIllegalArgumentException(Locale.US, "ahmma"); in testGetBestDateTimePattern_disableDuplicateField() 159 assertEquals("h:mm a", DateFormat.getBestDateTimePattern(Locale.US, "jmma")); in testGetBestDateTimePattern_enableDuplicateField() 160 assertEquals("h:mm a", DateFormat.getBestDateTimePattern(Locale.US, "ahmma")); in testGetBestDateTimePattern_enableDuplicateField()
|
D | FormatterTest.java | 66 setLocale(Locale.US); in testFormatBytes() 113 setLocale(Locale.US); in testFormatBytesSi() 123 setLocale(Locale.US); in testFormatBytesIec() 139 setLocale(Locale.US); in testFormatShortElapsedTime() 173 setLocale(Locale.US); in testFormatShortElapsedTimeRoundingUpToMinutes() 233 setLocale(Locale.US); in testFormatFileSize_enUS()
|
D | DateIntervalFormatTest.java | 67 Calendar c = Calendar.getInstance(tz, ULocale.US); in test_formatDateInterval() 325 ULocale l = ULocale.US; in test8862241() 341 ULocale l = ULocale.US; in test10089890() 366 ULocale l = ULocale.US; in test10318326() 398 ULocale l = ULocale.US; in test10560853_when_time_not_displayed() 426 ULocale l = ULocale.US; in test10560853_for_single_day_events() 441 ULocale l = ULocale.US; in test_single_day_events_later_than_epoch() 461 ULocale l = ULocale.US; in test_single_day_events_not_in_UTC() 483 ULocale l = ULocale.US; in test10209343_when_not_this_year() 511 ULocale l = ULocale.US; in test10209343_when_this_year() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | SnapshotStatistics.java | 374 pw.format(Locale.US, "%-23s", title); in dumpPrefix() 376 pw.format(Locale.US, "%11s", durationToString(now - mStartTimeUs)); in dumpPrefix() 378 pw.format(Locale.US, " %11s", durationToString(now - mStopTimeUs)); in dumpPrefix() 380 pw.format(Locale.US, " %11s", "now"); in dumpPrefix() 397 pw.format(Locale.US, " %10s %10s %10s %10s %10s %10s", in dumpStats() 401 pw.format(Locale.US, in dumpStats() 417 pw.format(Locale.US, " %10s", in dumpTimes() 420 pw.format(Locale.US, " %10s", in dumpTimes() 424 pw.format(Locale.US, " %10d", mTimes[i]); in dumpTimes() 438 pw.format(Locale.US, " %10s", TextUtils.formatSimple("<= %d", keys[i])); in dumpUsage() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | BilingualSuggestedLocaleAdapterTest.java | 45 mLocaleOptions.add(LocaleStore.getLocaleInfo(Locale.US)); in setUp() 54 mEnglishCountryOptions.add(LocaleStore.getLocaleInfo(Locale.US)); in setUp() 70 mLocaleOptions, /* countryMode */ false, Locale.US); in suggestedLocaleAdapter_notCountryMode_shouldDisplayLocalesSorted() 71 suggestedLocaleAdapter.sort(new LocaleInfoComparator(Locale.US, /* countryMode */ false)); in suggestedLocaleAdapter_notCountryMode_shouldDisplayLocalesSorted() 92 mEnglishCountryOptions, /* countryMode */ true, Locale.US); in suggestedLocaleAdapter_countryMode_shouldDisplayCountriesSorted() 93 suggestedLocaleAdapter.sort(new LocaleInfoComparator(Locale.US, /* countryMode */ true)); in suggestedLocaleAdapter_countryMode_shouldDisplayCountriesSorted()
|
/frameworks/base/services/core/java/com/android/server/textservices/ |
D | LocaleUtils.java | 116 if (!Locale.US.equals(systemLocaleLanguageCountry)) { in getSuitableLocalesForSpellChecker() 117 locales.add(Locale.US); in getSuitableLocalesForSpellChecker() 130 locales.add(Locale.US); in getSuitableLocalesForSpellChecker() 146 locales.add(Locale.US); in getSuitableLocalesForSpellChecker()
|
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/hp/ |
D | MDnsUtils.java | 64 || containsString(container.toLowerCase(Locale.US), value.toLowerCase(Locale.US)) in containsVendor() 65 || containsString(container.toUpperCase(Locale.US), value.toUpperCase(Locale.US))) in containsVendor()
|
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/xerox/ |
D | MDnsUtils.java | 78 … || containsString(container.toLowerCase(Locale.US), value.toLowerCase(Locale.US)) in containsVendor() 79 … || containsString(container.toUpperCase(Locale.US), value.toUpperCase(Locale.US))) in containsVendor()
|
/frameworks/base/services/backup/java/com/android/server/backup/transport/ |
D | TransportStats.java | 77 Locale.US, "%sAverage connection time: %.2f ms", prefix, stats.average)); in dumpStats() 78 pw.println(String.format(Locale.US, "%sMax connection time: %d ms", prefix, stats.max)); in dumpStats() 79 pw.println(String.format(Locale.US, "%sMin connection time: %d ms", prefix, stats.min)); in dumpStats() 80 pw.println(String.format(Locale.US, "%sNumber of connections: %d ", prefix, stats.n)); in dumpStats()
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/ |
D | RecoverySnapshotStorage.java | 88 String.format(Locale.US, "Error persisting snapshot for %d to disk", uid), in put() 106 Log.e(TAG, String.format(Locale.US, "Error reading snapshot for %d from disk", uid), e); in get() 170 return String.format(Locale.US, "%d.xml", uid); in getSnapshotFileName()
|
D | ApplicationKeyStorage.java | 75 Log.i(TAG, String.format(Locale.US, "Get %d/%d/%s", userId, uid, alias)); in getGrantAlias() 82 Log.i(TAG, String.format(Locale.US, "Set %d/%d/%s: %d bytes of key material", in setSymmetricKeyEntry() 100 Log.i(TAG, String.format(Locale.US, "Del %d/%d/%s", userId, uid, alias)); in deleteEntry()
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/serialization/ |
D | KeyChainSnapshotDeserializer.java | 147 Locale.US, "Unexpected tag %s in keyChainSnapshot", name)); in deserializeInternal() 199 Locale.US, "Unexpected tag %s in wrappedApplicationKey", name)); in readWrappedApplicationKey() 255 Locale.US, in readKeyChainProtectionParams() 303 Locale.US, in readKeyDerivationParams() 344 Locale.US, "%s expected int but got '%s'", tagName, text), e); in readIntTag() 358 Locale.US, "%s expected long but got '%s'", tagName, text), e); in readLongTag() 381 Locale.US, in readBlobTag()
|
/frameworks/base/core/java/android/database/sqlite/ |
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()
|
/frameworks/base/core/proto/android/input/ |
D | keyboard_configured.proto | 41 // PK language language tag (e.g. en-US, ru-Cyrl, etc). This will follow 44 // Selected keyboard layout name (e.g. English(US), English(Dvorak), etc.) 52 // Language tag provided by IME (e.g. en-US, ru-Cyrl etc.)
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/ |
D | PlatformKeyManager.java | 214 Log.i(TAG, String.format(Locale.US, in getEncryptKey() 266 Log.i(TAG, String.format(Locale.US, in getDecryptKey() 310 Log.e(TAG, String.format(Locale.US, "The platform key for user %d became invalid.", in ensureDecryptionKeyIsValid() 337 Locale.US, "Platform key generation %d exists already.", generationId)); in init() 344 Log.w(TAG, String.format(Locale.US, "Platform generation ID was %d but no " in init()
|
/frameworks/base/apct-tests/perftests/core/src/android/widget/ |
D | TextViewOnMeasurePerfTest.java | 113 textView.setTextLocale(Locale.US); in testMeasure_AtMost() 130 textView.setTextLocale(Locale.US); in testMeasure_Exactly() 147 textView.setTextLocale(Locale.US); in testMeasure_Unspecified()
|