/packages/apps/Settings/src/com/android/settings/ |
H A D | LocalePicker.java | 29 public void onLocaleSelected(Locale locale) { argument 31 LocalePicker.updateLocale(locale);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | WordListInfo.java | 25 public WordListInfo(final String id, final String locale) { argument 27 mLocale = locale;
|
H A D | SynchronouslyLoadedContactsBinaryDictionary.java | 28 public SynchronouslyLoadedContactsBinaryDictionary(final Context context, final Locale locale) { argument 29 super(context, Suggest.DIC_CONTACTS, locale);
|
H A D | SynchronouslyLoadedUserBinaryDictionary.java | 25 public SynchronouslyLoadedUserBinaryDictionary(final Context context, final String locale) { argument 26 this(context, locale, false); 29 public SynchronouslyLoadedUserBinaryDictionary(final Context context, final String locale, argument 31 super(context, locale, alsoUseMoreRestrictiveLocales);
|
H A D | WhitelistDictionary.java | 39 public WhitelistDictionary(final Context context, final Locale locale) { argument 49 job.runInLocale(context.getResources(), locale);
|
H A D | SynchronouslyLoadedUserDictionary.java | 26 public SynchronouslyLoadedUserDictionary(final Context context, final String locale) { argument 27 this(context, locale, false); 30 public SynchronouslyLoadedUserDictionary(final Context context, final String locale, argument 32 super(context, locale, alsoUseMoreRestrictiveLocales);
|
H A D | DictionaryFactory.java | 42 * locale. If none is found, it falls back to the built-in dictionary - if any. 44 * @param locale the locale for which to create the dictionary 49 final Locale locale, final boolean useFullEditDistance) { 50 if (null == locale) { 51 Log.e(TAG, "No locale defined for dictionary"); 52 return new DictionaryCollection(createBinaryDictionary(context, locale)); 57 BinaryDictionaryGetter.getDictionaryFiles(locale, context); 62 useFullEditDistance, locale); 79 * locale 48 createMainDictionaryFromManager(final Context context, final Locale locale, final boolean useFullEditDistance) argument 84 createMainDictionaryFromManager(final Context context, final Locale locale) argument 95 createBinaryDictionary(final Context context, final Locale locale) argument 139 createDictionaryForTest(Context context, File dictionary, long startOffset, long length, final boolean useFullEditDistance, Locale locale) argument 156 isDictionaryAvailable(Context context, Locale locale) argument 169 getMainDictionaryResourceIdIfAvailableForLocale(final Resources res, final Locale locale) argument 196 getMainDictionaryResourceId(final Resources res, final Locale locale) argument [all...] |
H A D | StringUtils.java | 167 public static String toTitleCase(String s, Locale locale) { argument 180 return s.toUpperCase(locale).charAt(0) + s.substring(1);
|
H A D | UserBinaryDictionary.java | 55 public UserBinaryDictionary(final Context context, final String locale) { argument 56 this(context, locale, false); 59 public UserBinaryDictionary(final Context context, final String locale, argument 61 super(context, getFilenameWithLocale(NAME, locale), Suggest.DIC_USER); 62 if (null == locale) throw new NullPointerException(); // Catch the error earlier 63 mLocale = locale; 91 // Split the locale. For example "en" => ["en"], "de_DE" => ["de", "DE"], 93 // This is correct for locale processing. 99 final StringBuilder request = new StringBuilder("(locale is NULL)"); 102 // and request = "(locale i [all...] |
H A D | UserDictionary.java | 57 public UserDictionary(final Context context, final String locale) { argument 58 this(context, locale, false); 61 public UserDictionary(final Context context, final String locale, argument 64 if (null == locale) throw new NullPointerException(); // Catch the error earlier 65 mLocale = locale; 93 // Split the locale. For example "en" => ["en"], "de_DE" => ["de", "DE"], 95 // This is correct for locale processing. 101 final StringBuilder request = new StringBuilder("(locale is NULL)"); 104 // and request = "(locale is NULL)" 113 // 0 | "(locale i [all...] |
H A D | BinaryDictionaryFileDumper.java | 82 * Queries a content provider for the list of word lists for a specific locale 85 private static List<WordListInfo> getWordListWordListInfos(final Locale locale, argument 88 final Uri.Builder builder = getProviderUriBuilder(locale.toString()); 136 * to the cache file name designated by its id and locale, overwriting it if already present 139 private static AssetFileAddress cacheWordList(final String id, final String locale, argument 152 final String outputFileName = BinaryDictionaryGetter.getCacheFileName(id, locale, context); 246 * Queries a content provider for word list data for some locale and cache the returned files 248 * This will query a content provider for word list data for a given locale, and copy the 255 public static List<AssetFileAddress> cacheWordListsFromContentProvider(final Locale locale, argument 258 final List<WordListInfo> idList = getWordListWordListInfos(locale, contex [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/util/ |
H A D | LocaleTestUtils.java | 26 * Utility class to save and restore the locale of the system. 28 * This can be used for tests that assume to be run in a certain locale, e.g., because they 30 * will behave in a specific locale. 32 * In your test, you can change the locale with the following code: 66 * Create a new instance that can be used to set and reset the locale for the given context. 68 * @param context the context on which to alter the locale 76 * Set the locale to the given value and saves the previous value. 78 * @param locale the value to which the locale should be set 79 * @throws IllegalStateException if the locale wa 81 setLocale(Locale locale) argument 112 setResourcesLocale(Resources resources, Locale locale) argument [all...] |
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
H A D | UserDictionaryList.java | 57 String locale = cursor.getString(columnIndex); 58 localeList.add(null != locale ? locale : ""); 66 * Creates the entries that allow the user to go into the user dictionary for each locale. 78 for (String locale : localeList) { 79 userDictGroup.addPreference(createUserDictionaryPreference(locale, activity)); 86 * @param locale The locale for which this user dictionary is for. 89 protected Preference createUserDictionaryPreference(String locale, Activity activity) { argument 92 if (null == locale) { [all...] |
H A D | UserDictionaryAddWordFragment.java | 126 final LocaleRenderer locale = (LocaleRenderer)parent.getItemAtPosition(pos); 127 if (locale.isMoreLanguages()) { 131 mContents.updateLocale(locale.getLocaleString()); 142 // Called by the locale picker 144 public void onLocaleSelected(final Locale locale) { argument 145 mContents.updateLocale(locale.toString());
|
/packages/apps/Tag/src/com/android/apps/tag/message/ |
H A D | ParsedNdefMessage.java | 50 * 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 D | ParsedNdefRecord.java | 40 public String getSnippet(Context context, Locale locale) { argument
|
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/java/src/com/android/inputmethod/latin/spellcheck/ |
H A D | DictionaryPool.java | 34 final Locale locale) { 38 mLocale = locale; 33 DictionaryPool(final int maxSize, final AndroidSpellCheckerService service, final Locale locale) argument
|
/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/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(Charsets.US_ASCII);
|
/packages/apps/Mms/src/com/android/mms/transaction/ |
H A D | HttpUtils.java | 64 // Once it becomes possible for the user to change the locale 324 * Return the Accept-Language header. Use the current locale plus 325 * US if we are in a different locale than US. 329 public static String getCurrentAcceptLanguage(Locale locale) { argument 331 addLocaleToHttpAcceptLanguage(buffer, locale); 333 if (!Locale.US.equals(locale)) { 365 Locale locale) { 366 String language = convertObsoleteLanguageCodeToNew(locale.getLanguage()); 369 String country = locale.getCountry(); 364 addLocaleToHttpAcceptLanguage(StringBuilder builder, Locale locale) argument
|
/packages/apps/Settings/src/com/android/settings/tts/ |
H A D | TtsEngineSettingsFragment.java | 227 private void updateLanguageTo(String locale) { argument 228 mEnginesHelper.updateLocalePrefForEngine(getEngineName(), locale); 230 String[] localeArray = TtsEngines.parseLocalePref(locale);
|