/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/ |
H A D | GoogleSearch.java | 73 * 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 D | LocalePicker.java | 37 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 D | TagCanon.java | 52 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 D | MimeRecord.java | 66 public String getSnippet(Context context, Locale locale) { argument
|
H A D | TextRecord.java | 61 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 D | UriRecord.java | 103 public String getSnippet(Context context, Locale locale) { argument
|
H A D | VCardRecord.java | 100 public String getSnippet(Context context, Locale locale) { argument
|
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/ |
H A D | LocaleUtils.java | 47 // 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 D | LocaleSpanCompatUtils.java | 35 // 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 D | ContactsBinaryDictionary.java | 53 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 D | DictionaryCollection.java | 38 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 D | DictionaryFacilitatorLruCache.java | 68 // 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 D | DictionaryStats.java | 37 @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 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/java/src/com/android/inputmethod/latin/utils/ |
H A D | CapsModeUtils.java | 42 * @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 D | WordInputEventForPersonalization.java | 59 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 D | GestureConsumer.java | 42 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 D | dictionary_structure_with_buffer_policy_factory.cpp | 57 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 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/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/ |
H A D | ArmenianPhonetic.java | 32 public ArmenianPhonetic(final Locale locale) { argument 33 super(new ArmenianPhoneticCustomizer(locale), ArmenianSymbols.class, 41 ArmenianPhoneticCustomizer(final Locale locale) { super(locale); } argument
|
H A D | Greek.java | 33 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 D | Kannada.java | 32 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 D | Khmer.java | 33 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 D | Lao.java | 33 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 D | Malayalam.java | 32 public Malayalam(final Locale locale) { argument 33 super(new MalayalamCustomizer(locale), Symbols.class, SymbolsShifted.class); 40 MalayalamCustomizer(final Locale locale) { super(locale); } argument
|