/frameworks/base/tests/TtsTests/src/com/android/speech/tts/ |
D | TtsEnginesTests.java | 6 import java.util.Locale; 17 assertEquals(new Locale("en", "US"), mTtsHelper.parseLocaleString("eng-usa")); in testParseLocaleString() 18 assertEquals(new Locale("en", "US"), mTtsHelper.parseLocaleString("eng-USA")); in testParseLocaleString() 19 assertEquals(new Locale("en", "US"), mTtsHelper.parseLocaleString("en-US")); in testParseLocaleString() 20 assertEquals(new Locale("en", "US"), mTtsHelper.parseLocaleString("en_us")); in testParseLocaleString() 21 assertEquals(new Locale("en", "US"), mTtsHelper.parseLocaleString("eng_US")); in testParseLocaleString() 22 assertEquals(new Locale("en", "US", "foobar"), in testParseLocaleString() 24 assertEquals(new Locale("en", "", "foobar"), mTtsHelper.parseLocaleString("eng__foobar")); in testParseLocaleString() 28 assertEquals(new Locale("en"), mTtsHelper.parseLocaleString("eng")); in testParseLocaleString() 29 assertEquals(new Locale("en","US","var"), mTtsHelper.parseLocaleString("eng-USA-var")); in testParseLocaleString() [all …]
|
/frameworks/base/core/tests/overlaytests/OverlayTest/src/com/android/overlaytest/ |
D | OverlayBaseTest.java | 12 import java.util.Locale; 39 private void setLocale(Locale locale) { in setLocale() 40 Locale.setDefault(locale); in setLocale() 274 setLocale(new Locale("sv", "SE")); in testMatrix100000() 280 setLocale(new Locale("sv", "SE")); in testMatrix100001() 286 setLocale(new Locale("sv", "SE")); in testMatrix100010() 292 setLocale(new Locale("sv", "SE")); in testMatrix100011() 298 setLocale(new Locale("sv", "SE")); in testMatrix100100() 304 setLocale(new Locale("sv", "SE")); in testMatrix100101() 310 setLocale(new Locale("sv", "SE")); in testMatrix100110() [all …]
|
/frameworks/base/core/java/android/text/ |
D | Hyphenator.java | 29 import java.util.Locale; 46 final static HashMap<Locale, Hyphenator> sMap = new HashMap<Locale, Hyphenator>(); 56 public static long get(@Nullable Locale locale) { in get() 66 Locale languageOnlyLocale = new Locale(locale.getLanguage()); in get() 76 Locale scriptOnlyLocale = new Locale.Builder() in get() 93 String patternFilename = "hyph-"+languageTag.toLowerCase(Locale.US)+".pat.txt"; in loadHyphenator() 156 sMap.put(Locale.forLanguageTag(languageTag), h); in init() 163 sMap.put(Locale.forLanguageTag(language), sMap.get(Locale.forLanguageTag(fallback))); in init()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | AndroidLocale.java | 23 import java.util.Locale; 35 public static String toLanguageTag(Locale locale) { in toLanguageTag() 40 String adjusted = languageCode.toLowerCase(Locale.US); in adjustLanguageCode() 54 public static Locale forLanguageTag(String tag) { in forLanguageTag() 58 public static String getScript(Locale locale) { in getScript() 62 public static Locale getDefault() { in getDefault() 65 Locale locale = context.getConfiguration().locale; in getDefault() 70 return Locale.getDefault(); in getDefault()
|
/frameworks/base/core/tests/inputmethodtests/src/android/os/ |
D | InputMethodTest.java | 33 import java.util.Locale; 43 private static final Locale LOCALE_EN = new Locale("en"); 44 private static final Locale LOCALE_EN_US = new Locale("en", "US"); 45 private static final Locale LOCALE_EN_GB = new Locale("en", "GB"); 46 private static final Locale LOCALE_EN_IN = new Locale("en", "IN"); 47 private static final Locale LOCALE_FI = new Locale("fi"); 48 private static final Locale LOCALE_FI_FI = new Locale("fi", "FI"); 49 private static final Locale LOCALE_FIL = new Locale("fil"); 50 private static final Locale LOCALE_FIL_PH = new Locale("fil", "PH"); 51 private static final Locale LOCALE_FR = new Locale("fr"); [all …]
|
/frameworks/support/v4/java/android/support/v4/text/ |
D | ICUCompat.java | 21 import java.util.Locale; 26 public String maximizeAndGetScript(Locale locale); in maximizeAndGetScript() 31 public String maximizeAndGetScript(Locale locale) { in maximizeAndGetScript() 38 public String maximizeAndGetScript(Locale locale) { in maximizeAndGetScript() 45 public String maximizeAndGetScript(Locale locale) { in maximizeAndGetScript() 86 public static String maximizeAndGetScript(Locale locale) { in maximizeAndGetScript()
|
D | TextUtilsCompat.java | 24 import java.util.Locale; 62 public int getLayoutDirectionFromLocale(@Nullable Locale locale) { in getLayoutDirectionFromLocale() 87 private static int getLayoutDirectionFromFirstChar(@NonNull Locale locale) { in getLayoutDirectionFromFirstChar() 107 public int getLayoutDirectionFromLocale(@Nullable Locale locale) { in getLayoutDirectionFromLocale() 142 public static int getLayoutDirectionFromLocale(@Nullable Locale locale) { in getLayoutDirectionFromLocale() 146 public static final Locale ROOT = new Locale("", "");
|
/frameworks/base/core/java/android/text/style/ |
D | LocaleSpan.java | 24 import java.util.Locale; 30 private final Locale mLocale; 37 public LocaleSpan(Locale locale) { in LocaleSpan() 42 mLocale = new Locale(src.readString(), src.readString(), src.readString()); in LocaleSpan() 77 public Locale getLocale() { in getLocale() 91 private static void apply(Paint paint, Locale locale) { in apply()
|
/frameworks/base/core/tests/coretests/src/android/text/format/ |
D | FormatterTest.java | 25 import java.util.Locale; 29 private Locale mOriginalLocale; 46 private void setLocale(Locale locale) { in setLocale() 52 Locale.setDefault(locale); in setLocale() 57 setLocale(Locale.ENGLISH); in testFormatBytes() 93 setLocale(new Locale("es", "ES")); in testFormatBytes()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | MccTable.java | 36 import java.util.Locale; 94 Locale locale = new Locale("", entry.mIso); in defaultTimeZoneForMcc() 128 Locale likelyLocale = ICU.addLikelySubtags(new Locale("und", entry.mIso)); in defaultLanguageForMcc() 226 private static final Map<Locale, Locale> FALLBACKS = new HashMap<Locale, Locale>(); 229 FALLBACKS.put(Locale.CANADA, Locale.US); in FALLBACKS.put() 239 private static Locale chooseBestFallback(Locale target, List<Locale> candidates) { in chooseBestFallback() 244 Locale fallback = target; in chooseBestFallback() 267 private static Locale getLocaleForLanguageCountry(Context context, String language, in getLocaleForLanguageCountry() 277 final Locale target = new Locale(language, country); in getLocaleForLanguageCountry() 286 List<Locale> languageMatches = new ArrayList<>(); in getLocaleForLanguageCountry() [all …]
|
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/ |
D | AssetJsonWriter.java | 24 import java.util.Locale; 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/location/java/android/location/ |
D | GeocoderParams.java | 23 import java.util.Locale; 36 private Locale mLocale; 48 public GeocoderParams(Context context, Locale locale) { in GeocoderParams() 56 public Locale getLocale() { in getLocale() 74 gp.mLocale = new Locale(language, country, variant);
|
/frameworks/base/core/java/android/speech/tts/ |
D | TtsEngines.java | 47 import java.util.Locale; 84 for (String language : Locale.getISOLanguages()) { 86 normalizeLanguage.put(new Locale(language).getISO3Language(), language); in normalizeLanguage.put() 94 for (String country : Locale.getISOCountries()) { 96 normalizeCountry.put(new Locale("", country).getISO3Country(), country); in normalizeCountry.put() argument 330 public Locale getLocalePrefForEngine(String engineName) { in getLocalePrefForEngine() 337 public Locale getLocalePrefForEngine(String engineName, String prefValue) { in getLocalePrefForEngine() 344 return Locale.getDefault(); in getLocalePrefForEngine() 347 Locale result = parseLocaleString(localeString); in getLocalePrefForEngine() 350 result = Locale.US; in getLocalePrefForEngine() [all …]
|
/frameworks/base/core/java/com/android/internal/inputmethod/ |
D | InputMethodUtils.java | 46 import java.util.Locale; 59 private static final Locale ENGLISH_LOCALE = new Locale("en"); 70 private static final Locale[] SEARCH_ORDER_OF_FALLBACK_LOCALES = { 71 Locale.ENGLISH, // "en" 72 Locale.US, // "en_US" 73 Locale.UK, // "en_GB" 126 @Nullable final Locale requiredLocale, final boolean checkCountry, in isSystemImeThatHasSubtypeOf() 141 public static Locale getFallbackLocaleForDefaultIme(final ArrayList<InputMethodInfo> imis, in getFallbackLocaleForDefaultIme() 146 for (final Locale fallbackLocale : SEARCH_ORDER_OF_FALLBACK_LOCALES) { in getFallbackLocaleForDefaultIme() 157 for (final Locale fallbackLocale : SEARCH_ORDER_OF_FALLBACK_LOCALES) { in getFallbackLocaleForDefaultIme() [all …]
|
/frameworks/base/core/java/android/hardware/soundtrigger/ |
D | KeyphraseMetadata.java | 21 import java.util.Locale; 31 public final ArraySet<Locale> supportedLocales; 34 public KeyphraseMetadata(int id, String keyphrase, ArraySet<Locale> supportedLocales, in KeyphraseMetadata() 58 public boolean supportsLocale(Locale locale) { in supportsLocale()
|
/frameworks/support/v4/api23/android/support/v4/text/ |
D | ICUCompatApi23.java | 23 import java.util.Locale; 36 new Class[]{ Locale.class }); 43 public static String maximizeAndGetScript(Locale locale) { in maximizeAndGetScript() 46 return ((Locale) sAddLikelySubtagsMethod.invoke(null, args)).getScript(); in maximizeAndGetScript()
|
/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/ |
D | WifiP2pDnsSdServiceInfo.java | 25 import java.util.Locale; 130 sb.append(String.format(Locale.US, "%02x", data.length)); in createPtrServiceQuery() 187 dnsName = dnsName.toLowerCase(Locale.ROOT); // TODO: is this right? in createRequest() 190 sb.append(String.format(Locale.US, "%04x", dnsType)); in createRequest() 191 sb.append(String.format(Locale.US, "%02x", version)); in createRequest() 218 sb.append(String.format(Locale.US, "%02x", dnsName.length())); in compressDnsName() 228 sb.append(String.format(Locale.US, "%02x", name.length())); in compressDnsName()
|
D | WifiP2pServiceRequest.java | 23 import java.util.Locale; 139 sb.append(String.format(Locale.US, "%02x", (mLength) & 0xff)); in getSupplicantQuery() 140 sb.append(String.format(Locale.US, "%02x", (mLength >> 8) & 0xff)); in getSupplicantQuery() 141 sb.append(String.format(Locale.US, "%02x", mProtocolType)); in getSupplicantQuery() 142 sb.append(String.format(Locale.US, "%02x", mTransId)); in getSupplicantQuery() 172 query = query.toLowerCase(Locale.ROOT); in validateQuery()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | LocalePicker.java | 42 import java.util.Locale; 51 public void onLocaleSelected(Locale locale); in onLocaleSelected() 60 Locale locale; 62 public LocaleInfo(String label, Locale locale) { in LocaleInfo() 71 public Locale getLocale() { in getLocale() 105 final Locale l = Locale.forLanguageTag(locale.replace('_', '-')); in getAllAssetLocales() 197 Locale l, String[] specialLocaleCodes, String[] specialLocaleNames) { 235 final Locale locale = ((LocaleInfo)getListAdapter().getItem(position)).locale; 244 public static void updateLocale(Locale locale) {
|
/frameworks/base/core/java/android/view/ |
D | AccessibilityIterators.java | 23 import java.util.Locale; 71 private Locale mLocale; 75 public static CharacterTextSegmentIterator getInstance(Locale locale) { in getInstance() 82 private CharacterTextSegmentIterator(Locale locale) { in CharacterTextSegmentIterator() 148 Locale locale = newConfig.locale; in onConfigurationChanged() 160 protected void onLocaleChanged(Locale locale) { in onLocaleChanged() 168 public static WordTextSegmentIterator getInstance(Locale locale) { in getInstance() 175 private WordTextSegmentIterator(Locale locale) { in WordTextSegmentIterator() 180 protected void onLocaleChanged(Locale locale) { in onLocaleChanged()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/datetime/ |
D | ZoneGetter.java | 38 import java.util.Locale; 57 Locale locale = Locale.getDefault(); in getTimeZoneOffsetAndName() 69 final Locale locale = Locale.getDefault(); in getZonesList() 146 private static String getZoneDisplayName(Locale locale, TimeZone tz, Date now, in getZoneDisplayName() 161 private static String getZoneExemplarLocation(Locale locale, TimeZone tz) { in getZoneExemplarLocation() 196 private static String getZoneLongName(Locale locale, TimeZone tz, Date now) { in getZoneLongName() 202 private static String getGmtOffsetString(Locale locale, TimeZone tz, Date now) { in getGmtOffsetString()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/anqp/ |
D | I18Name.java | 6 import java.util.Locale; 17 private final Locale mLocale; 29 mLocale = Locale.forLanguageTag(language); in I18Name() 33 public Locale getLocale() { in getLocale()
|
D | IconInfo.java | 6 import java.util.Locale; 18 private final Locale mLocale; 29 mLocale = Locale.forLanguageTag(Constants.getString(payload, 3, StandardCharsets.US_ASCII)); in IconInfo() 42 public Locale getLocale() { in getLocale()
|
/frameworks/support/tests/java/android/support/v4/text/ |
D | IcuCompatTest.java | 21 import java.util.Locale; 25 assertEquals("Latn", ICUCompat.maximizeAndGetScript(new Locale("en", "US"))); in testMaximizeAndGetScript() 26 assertEquals("Visp", ICUCompat.maximizeAndGetScript(Locale.forLanguageTag("en-Visp-US"))); in testMaximizeAndGetScript()
|
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
D | TimeZonePickerUtils.java | 29 import java.util.Locale; 39 private Locale mDefaultLocale; 72 final Locale defaultLocale = Locale.getDefault(); in getGmtDisplayName() 164 return tz.getDisplayName(daylightTime, TimeZone.LONG, Locale.getDefault()); in getDisplayName() 180 return tz.getDisplayName(daylightTime, TimeZone.LONG, Locale.getDefault()); in getDisplayName()
|