Searched defs:locale (Results 1 - 25 of 222) sorted by relevance

123456789

/packages/apps/Settings/tests/robotests/src/com/android/internal/app/
H A DLocalePickerWithRegion.java9 void onLocaleSelected(LocaleStore.LocaleInfo locale); argument
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
H A DShadowTextUtils.java37 public static int getLayoutDirectionFromLocale(Locale locale) { argument
38 return ((locale != null && !locale.equals(Locale.ROOT)
39 && ULocale.forLocale(locale).isRightToLeft())
H A DShadowLibcoreTimeZoneNames.java45 public String[][] create(Locale locale) { argument
54 ReflectionHelpers.ClassParameter.from(String.class, locale.toLanguageTag()),
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/
H A DUserDictionaryLocalePicker.java34 public void onLocaleSelected(Locale locale); argument
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/customizer/
H A DEnglishCustomizer.java24 public EnglishCustomizer(final Locale locale) { super(locale); } argument
H A DEuroCustomizer.java29 public EuroCustomizer(final Locale locale) { argument
30 super(locale);
H A DItalianCustomizer.java24 public ItalianCustomizer(final Locale locale) { super(locale); } argument
H A DNoLanguageCustomizer.java24 public NoLanguageCustomizer(final Locale locale) { super(locale); } argument
H A DPortugueseCustomizer.java24 public PortugueseCustomizer(final Locale locale) { super(locale); } argument
H A DTurkicCustomizer.java27 public TurkicCustomizer(final Locale locale) { super(locale); } argument
/packages/apps/Contacts/src/com/android/contacts/datepicker/
H A DTwoDigitFormatter.java26 final Locale locale = Locale.getDefault();
27 init(locale);
30 private void init(Locale locale) { argument
31 mFmt = createFormatter(locale);
32 mZeroDigit = getZeroDigit(locale);
46 private static char getZeroDigit(Locale locale) { argument
49 return DecimalFormatSymbols.getInstance(locale).getZeroDigit();
52 private java.util.Formatter createFormatter(Locale locale) { argument
53 return new java.util.Formatter(mBuilder, locale);
/packages/apps/Contacts/src/com/android/contacts/util/
H A DTelephonyManagerUtils.java46 * back to the locale setting.
48 public static String getCurrentCountryIso(Context context, Locale locale) { argument
56 countryIso = locale.getCountry();
57 Log.w(LOG_TAG, "No CountryDetector; falling back to countryIso based on locale: "
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
H A DDeviceOwnerInitializeProvisioningTask.java30 * Initialization of locale and timezone.
47 setLocale(mProvisioningParams.locale);
67 private void setLocale(Locale locale) { argument
68 if (locale == null || locale.equals(Locale.getDefault())) {
72 // If locale is different from current locale this results in a configuration change,
74 LocalePicker.updateLocale(locale);
76 ProvisionLogger.loge("Failed to set the system locale.", e);
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
H A DLocaleTestUtils.java26 * Utility class to save and restore the locale of the system.
30 * This can be used for tests that assume to be run in a certain locale, e.g., because they
32 * will behave in a specific locale.
34 * In your test, you can change the locale with the following code:
68 * Create a new instance that can be used to set and reset the locale for the given context.
70 * @param context the context on which to alter the locale
78 * Set the locale to the given value and saves the previous value.
80 * @param locale the value to which the locale should be set
81 * @throws IllegalStateException if the locale wa
83 setLocale(Locale locale) argument
114 setResourcesLocale(Resources resources, Locale locale) argument
[all...]
/packages/apps/Tag/src/com/android/apps/tag/message/
H A DParsedNdefMessage.java50 * most appropriate for the given {@code locale}.
52 public String getSnippet(Context context, Locale locale) { argument
80 return record.getSnippet(context, locale);
/packages/apps/Tag/src/com/android/apps/tag/record/
H A DParsedNdefRecord.java40 public String getSnippet(Context context, Locale locale) { argument
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
H A DSuggestionSpanUtils.java61 final Context context, final String text, @Nonnull final Locale locale) {
66 final SuggestionSpan suggestionSpan = new SuggestionSpan(context, locale,
75 final String pickedWord, final SuggestedWords suggestedWords, final Locale locale) {
95 final SuggestionSpan suggestionSpan = new SuggestionSpan(context, locale,
60 getTextWithAutoCorrectionIndicatorUnderline( final Context context, final String text, @Nonnull final Locale locale) argument
74 getTextWithSuggestionSpan(final Context context, final String pickedWord, final SuggestedWords suggestedWords, final Locale locale) argument
H A DUserDictionaryCompatUtils.java29 final int freq, final String shortcut, final Locale locale) {
31 addWordWithShortcut(context, word, freq, shortcut, locale);
35 final Locale currentLocale = context.getResources().getConfiguration().locale;
36 final int localeType = currentLocale.equals(locale)
45 final int freq, final String shortcut, final Locale locale) {
46 UserDictionary.Words.addWord(context, word, freq, shortcut, locale);
28 addWord(final Context context, final String word, final int freq, final String shortcut, final Locale locale) argument
44 addWordWithShortcut(final Context context, final String word, final int freq, final String shortcut, final Locale locale) argument
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DContactsDictionaryUtils.java46 * Returns true if the locale supports using first name and last name as bigrams.
48 public static boolean useFirstLastBigramsForLocale(final Locale locale) { argument
50 if (locale != null && locale.getLanguage().equals(Locale.ENGLISH.getLanguage())) {
H A DDictionaryFactory.java41 * locale. If none is found, it falls back to the built-in dictionary - if any.
43 * @param locale the locale for which to create the dictionary
47 final Locale locale) {
48 if (null == locale) {
49 Log.e(TAG, "No locale defined for dictionary");
50 return new DictionaryCollection(Dictionary.TYPE_MAIN, locale,
51 createReadOnlyBinaryDictionary(context, locale));
56 BinaryDictionaryGetter.getDictionaryFiles(locale, context, true);
61 false /* useFullEditDistance */, locale, Dictionar
46 createMainDictionaryFromManager(final Context context, final Locale locale) argument
127 createReadOnlyBinaryDictionary(final Context context, final Locale locale) argument
[all...]
H A DWordListInfo.java26 public WordListInfo(final String id, final String locale, final String rawChecksum) { argument
28 mLocale = locale;
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/
H A DBulgarian.java29 public Bulgarian(final Locale locale) { argument
30 super(new BulgarianCustomizer(locale), Symbols.class, SymbolsShifted.class);
39 BulgarianCustomizer(final Locale locale) { argument
40 super(locale);
41 mEastSlavicCustomizer = new EastSlavicCustomizer(locale);
H A DBulgarianBds.java28 public BulgarianBds(final Locale locale) { argument
29 super(new BulgarianBdsCustomizer(locale), Symbols.class, SymbolsShifted.class);
36 BulgarianBdsCustomizer(final Locale locale) { super(locale); } argument
H A DHindiCompact.java34 public HindiCompact(final Locale locale) { argument
35 super(new HindiCompactCustomizer(locale), HindiSymbols.class, SymbolsShifted.class);
42 HindiCompactCustomizer(final Locale locale) { super(locale); } argument
H A DMongolian.java28 public Mongolian(final Locale locale) { argument
29 super(new MongolianCustomizer(locale), Symbols.class, SymbolsShifted.class);
36 MongolianCustomizer(final Locale locale) { super(locale); } argument

Completed in 4441 milliseconds

123456789