/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | LocaleSet.java | 52 static boolean isLanguageChinese(@Nullable Locale locale) { argument 53 return locale != null && "zh".equals(locale.getLanguage()); 57 static boolean isLanguageJapanese(@Nullable Locale locale) { argument 58 return locale != null && "ja".equals(locale.getLanguage()); 62 static boolean isLanguageKorean(@Nullable Locale locale) { argument 63 return locale != null && "ko".equals(locale.getLanguage()); 67 static boolean isLocaleCJK(@Nullable Locale locale) { argument 73 getLikelyScript(Locale locale) argument 86 getScriptIfChinese(@ullable Locale locale) argument 90 isLocaleSimplifiedChinese(@ullable Locale locale) argument 95 isLocaleTraditionalChinese(@ullable Locale locale) argument [all...] |
/packages/apps/Settings/tests/robotests/src/com/android/internal/app/ |
H A D | LocalePickerWithRegion.java | 9 void onLocaleSelected(LocaleStore.LocaleInfo locale); argument
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/ |
H A D | additional_proximity_chars.h | 43 AK_FORCE_INLINE static bool isEnLocale(const std::vector<int> *locale) { argument 45 if (locale->size() < NCHARS) { 49 if ((*locale)[i] != LOCALE_EN_US[i]) { 57 static int getAdditionalCharsSize(const std::vector<int> *locale, const int c) { argument 58 if (!isEnLocale(locale)) { 77 static const int *getAdditionalChars(const std::vector<int> *locale, const int c) { argument 78 if (!isEnLocale(locale)) {
|
/packages/apps/Contacts/src/com/android/contacts/datepicker/ |
H A D | TwoDigitFormatter.java | 26 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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | WordListInfo.java | 26 public WordListInfo(final String id, final String locale, final String rawChecksum) { argument 28 mLocale = locale;
|
H A D | ContactsDictionaryUtils.java | 46 * 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 D | DicTraverseSession.java | 49 private static native long setDicTraverseSessionNative(String locale, long dictSize); argument 56 public DicTraverseSession(Locale locale, long dictionary, long dictSize) { argument 58 locale != null ? locale.toString() : "", dictSize); 75 private static long createNativeDicTraverseSession(String locale, long dictSize) { argument 76 return setDicTraverseSessionNative(locale, dictSize);
|
H A D | DictionaryFactory.java | 41 * 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...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/customizer/ |
H A D | FrenchCustomizer.java | 25 public FrenchCustomizer(final Locale locale) { super(locale); } argument 93 public FrenchEuroCustomizer(final Locale locale) { argument 94 super(locale); 95 mEuroCustomizer = new EuroCustomizer(locale);
|
H A D | EnglishCustomizer.java | 24 public EnglishCustomizer(final Locale locale) { super(locale); } argument
|
H A D | ItalianCustomizer.java | 24 public ItalianCustomizer(final Locale locale) { super(locale); } argument
|
H A D | PortugueseCustomizer.java | 24 public PortugueseCustomizer(final Locale locale) { super(locale); } argument
|
H A D | TurkicCustomizer.java | 27 public TurkicCustomizer(final Locale locale) { super(locale); } argument
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/ |
H A D | LocaleTestUtils.java | 26 * 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/Settings/src/com/android/settings/inputmethod/ |
H A D | UserDictionarySettingsUtils.java | 33 // CAVEAT: localeStr should not be null because a null locale stands for the system 34 // locale in UserDictionary.Words.addWord. 37 final Locale locale = Utils.createLocaleFromString(localeStr); 38 final Locale systemLocale = context.getResources().getConfiguration().locale; 39 return locale.getDisplayName(systemLocale);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/ |
H A D | UserDictionarySettingsUtils.java | 34 // CAVEAT: localeStr should not be null because a null locale stands for the system 35 // locale in UserDictionary.Words.addWord. 38 final Locale locale = LocaleUtils.constructLocaleFromString(localeStr); 39 final Locale systemLocale = context.getResources().getConfiguration().locale; 40 return locale.getDisplayName(systemLocale);
|
H A D | UserDictionaryLocalePicker.java | 34 public void onLocaleSelected(Locale locale); argument
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
H A D | ShadowTextUtils.java | 37 public static int getLayoutDirectionFromLocale(Locale locale) { argument 38 return ((locale != null && !locale.equals(Locale.ROOT) 39 && ULocale.forLocale(locale).isRightToLeft())
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
H A D | RunInLocale.java | 30 * Execute {@link #job(Resources)} method in specified system locale exclusively. 33 * @param newLocale the locale to change to. Run in system locale if null. 39 if (newLocale == null || newLocale.equals(conf.locale)) { 42 final Locale savedLocale = conf.locale; 44 conf.locale = newLocale; 48 conf.locale = savedLocale;
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/ |
H A D | KeyboardTextsSetTests.java | 61 final Locale locale = SubtypeLocaleUtils.getSubtypeLocale(subtype); 62 textsSet.setLocale(locale, context); 65 assertNotNull("Switch to alpha key label of " + locale, switchToAlphaKeyLabel); 66 assertFalse("Switch to alpha key label of " + locale, switchToAlphaKeyLabel.isEmpty()); 87 final Locale locale = SubtypeLocaleUtils.getSubtypeLocale(subtype); 88 textsSet.setLocale(locale, context); 91 assertNotNull(name + " of " + locale, text); 92 assertFalse(name + " of " + locale, text.isEmpty());
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
H A D | UserDictionaryCompatUtils.java | 29 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/personalization/ |
H A D | UserHistoryDictionary.java | 47 UserHistoryDictionary(final Context context, final Locale locale, argument 49 super(context, getUserHistoryDictName(NAME, locale, null /* dictFile */, account), locale, Dictionary.TYPE_USER_HISTORY, null); 59 static String getUserHistoryDictName(final String name, final Locale locale, argument 62 return getDictName(name, locale, dictFile); 64 return getUserHistoryDictNamePerAccount(name, locale, dictFile, account); 70 private static String getUserHistoryDictNamePerAccount(final String name, final Locale locale, argument 75 String dictName = name + "." + locale.toString(); 85 public static UserHistoryDictionary getDictionary(final Context context, final Locale locale, argument 87 return PersonalizationHelper.getUserHistoryDictionary(context, locale, accoun [all...] |
/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/ |
H A D | LocaleUtils.java | 46 * Creates a locale from a string specification. 69 throw new RuntimeException("Unknown locale format: " + localeStr); 80 throw new RuntimeException("Unknown locale format: " + localeStr); 88 throw new RuntimeException("Unknown locale format: " + localeStr); 91 final Locale locale = builder.build(); 92 sLocaleCache.put(localeStr, locale); 93 return locale; 151 public static String getLocaleCode(final Locale locale) { argument 152 if (locale == DEFAULT_LOCALE) { 155 return locale 158 getLocaleDisplayName(final Locale locale) argument [all...] |
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
H A D | DeviceOwnerInitializeProvisioningTask.java | 30 * 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/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/ |
H A D | Bulgarian.java | 29 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);
|