Searched defs:locale (Results 101 - 125 of 216) sorted by relevance

123456789

/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/
H A DGoogleSearch.java73 * Construct the language code (hl= paramater) for the given locale.
75 public static String getLanguage(Locale locale) { argument
76 String language = locale.getLanguage();
78 String country = locale.getCountry();
/packages/apps/Settings/src/com/android/settings/
H A DLocalePicker.java37 private static final String SAVE_TARGET_LOCALE = "locale";
64 public void onLocaleSelected(final Locale locale) { argument
66 mTargetLocale = locale;
70 LocalePicker.updateLocale(locale);
/packages/apps/Tag/canon/src/com/android/apps/tagcanon/
H A DTagCanon.java52 public static NdefRecord newTextRecord(String text, Locale locale, boolean encodeInUtf8) { argument
54 Preconditions.checkNotNull(locale);
56 byte[] langBytes = locale.getLanguage().getBytes(StandardCharsets.US_ASCII);
/packages/apps/Tag/src/com/android/apps/tag/record/
H A DMimeRecord.java66 public String getSnippet(Context context, Locale locale) { argument
H A DTextRecord.java61 public String getSnippet(Context context, Locale locale) { argument
129 public static NdefRecord newTextRecord(String text, Locale locale) { argument
130 return newTextRecord(text, locale, true);
133 public static NdefRecord newTextRecord(String text, Locale locale, boolean encodeInUtf8) { argument
135 Preconditions.checkNotNull(locale);
137 byte[] langBytes = locale.getLanguage().getBytes(Charset.forName("US-ASCII"));
H A DUriRecord.java103 public String getSnippet(Context context, Locale locale) { argument
H A DVCardRecord.java100 public String getSnippet(Context context, Locale locale) { argument
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
H A DLocaleUtils.java47 // The languages matches, but the country are different. Or, the reference locale requires a
48 // country and the tested locale does not have one.
50 // The languages and country match, but the variants are different. Or, the reference locale
51 // requires a variant and the tested locale does not have one.
53 // The required locale is null or empty so it will accept anything, and the tested locale
56 // The language matches, and the tested locale specifies a country but the reference locale
59 // The language and the country match, and the tested locale specifies a variant but the
60 // reference locale doe
207 isRtlLanguage(@onnull final Locale locale) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
H A DLocaleSpanCompatUtils.java35 // Note that LocaleSpan(Locale locale) has been introduced in API level 17
59 public static Object newLocaleSpan(final Locale locale) { argument
60 return CompatUtils.newInstance(LOCALE_SPAN_CONSTRUCTOR, locale);
70 * locale. If the region is already covered by one or more {@link LocaleSpan}, their ranges are
71 * updated so that each character has only one locale.
75 * @param locale the locale to be attached to the specified range.
79 final int end, final Locale locale) {
91 // expected locale.
92 // - Mark S as "to be merged" if S has the expected locale
78 updateLocaleSpan(final Spannable spannable, final int start, final int end, final Locale locale) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DContactsBinaryDictionary.java53 protected ContactsBinaryDictionary(final Context context, final Locale locale, argument
55 super(context, getDictName(name, locale, dictFile), locale, Dictionary.TYPE_CONTACTS,
57 mUseFirstLastBigrams = ContactsDictionaryUtils.useFirstLastBigramsForLocale(locale);
65 public static ContactsBinaryDictionary getDictionary(final Context context, final Locale locale, argument
67 return new ContactsBinaryDictionary(context, locale, dictFile, dictNamePrefix + NAME);
131 * bigrams depending on locale.
H A DDictionaryCollection.java38 public DictionaryCollection(final String dictType, final Locale locale) { argument
39 super(dictType, locale);
43 public DictionaryCollection(final String dictType, final Locale locale, argument
45 super(dictType, locale);
54 public DictionaryCollection(final String dictType, final Locale locale, argument
56 super(dictType, locale);
H A DDictionaryFacilitatorLruCache.java68 // Nothing to do if the locale is null. This would be the case before any get() calls.
90 public DictionaryFacilitator get(final Locale locale) { argument
92 if (!mDictionaryFacilitator.isForLocale(locale)) {
93 mLocale = locale;
H A DDictionaryStats.java37 @Nonnull final Locale locale,
42 mLocale = locale;
51 @Nonnull final Locale locale,
54 mLocale = locale;
36 DictionaryStats( @onnull final Locale locale, @Nonnull final String dictType, @Nullable final String dictFileName, @Nullable final File dictFile, final int contentVersion) argument
50 DictionaryStats( @onnull final Locale locale, @Nonnull final String dictType, final int wordCount) argument
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/
H A DUserHistoryDictionary.java47 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/java/src/com/android/inputmethod/latin/utils/
H A DCapsModeUtils.java42 * @param locale The locale for capitalizing.
46 final Locale locale) {
48 return s.toUpperCase(locale);
50 return StringUtils.capitalizeFirstCodePoint(s, locale);
45 applyAutoCapsMode(final String s, final int capitalizeMode, final Locale locale) argument
H A DWordInputEventForPersonalization.java59 final SpacingAndPunctuations spacingAndPunctuations, final Locale locale) {
88 ngramContext, tempWord, timestamp, locale);
100 final Locale locale) {
101 if (locale == null) {
57 createInputEventFrom( final List<String> tokens, final int timestamp, final SpacingAndPunctuations spacingAndPunctuations, final Locale locale) argument
98 detectWhetherVaildWordOrNotAndGetInputEvent( final NgramContext ngramContext, final String targetWord, final int timestamp, final Locale locale) argument
/packages/inputmethods/LatinIME/java-overridable/src/com/android/inputmethod/latin/touchinputconsumer/
H A DGestureConsumer.java42 final Locale locale, final Keyboard keyboard) {
53 public void onInit(final Locale locale, final Keyboard keyboard) { argument
56 public void onGestureStarted(final Locale locale, final Keyboard keyboard) { argument
40 newInstance( final EditorInfo editorInfo, final PrivateCommandPerformer commandPerformer, final Locale locale, final Keyboard keyboard) argument
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/
H A Ddictionary_structure_with_buffer_policy_factory.cpp57 const int formatVersion, const std::vector<int> &locale,
66 dictFormatVersion, locale, attributeMap);
72 dictFormatVersion, locale, attributeMap);
86 const std::vector<int> &locale,
88 HeaderPolicy headerPolicy(formatVersion, locale, attributeMap);
56 newPolicyForOnMemoryDict( const int formatVersion, const std::vector<int> &locale, const DictionaryHeaderStructurePolicy::AttributeMap *const attributeMap) argument
84 newPolicyForOnMemoryV4Dict( const FormatUtils::FORMAT_VERSION formatVersion, const std::vector<int> &locale, const DictionaryHeaderStructurePolicy::AttributeMap *const attributeMap) argument
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
H A Dadditional_proximity_chars.h43 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/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/
H A DArmenianPhonetic.java32 public ArmenianPhonetic(final Locale locale) { argument
33 super(new ArmenianPhoneticCustomizer(locale), ArmenianSymbols.class,
41 ArmenianPhoneticCustomizer(final Locale locale) { super(locale); } argument
H A DGreek.java33 public Greek(final Locale locale) { argument
34 super(new GreekCustomizer(locale), Symbols.class, SymbolsShifted.class);
41 GreekCustomizer(final Locale locale) { super(locale); } argument
H A DKannada.java32 public Kannada(final Locale locale) { argument
33 super(new KannadaCustomizer(locale), Symbols.class, SymbolsShifted.class);
40 KannadaCustomizer(final Locale locale) { super(locale); } argument
H A DKhmer.java33 public Khmer(final Locale locale) { argument
34 super(new KhmerCustomizer(locale), Symbols.class, SymbolsShifted.class);
41 KhmerCustomizer(final Locale locale) { super(locale); } argument
H A DLao.java33 public Lao(final Locale locale) { argument
34 super(new LaoCustomizer(locale), Symbols.class, SymbolsShifted.class);
41 LaoCustomizer(final Locale locale) { super(locale); } argument
H A DMalayalam.java32 public Malayalam(final Locale locale) { argument
33 super(new MalayalamCustomizer(locale), Symbols.class, SymbolsShifted.class);
40 MalayalamCustomizer(final Locale locale) { super(locale); } argument

Completed in 362 milliseconds

123456789