/frameworks/av/include/media/ |
H A D | mediascanner.h | 81 void setLocale(const char *locale); 86 const char *locale() const; 89 // current locale (like "ja_JP"), created/destroyed with strdup()/free() 112 void setLocale(const char* locale);
|
/frameworks/av/media/libmedia/ |
H A D | MediaScanner.cpp | 40 void MediaScanner::setLocale(const char *locale) { argument 45 if (locale) { 46 mLocale = strdup(locale); 50 const char *MediaScanner::locale() const { function in class:android::MediaScanner 100 client.setLocale(locale());
|
H A D | MediaScannerClient.cpp | 34 void MediaScannerClient::setLocale(const char* locale) argument 36 mLocale = locale; // not currently used
|
/frameworks/av/media/libstagefright/ |
H A D | StagefrightMediaScanner.cpp | 113 client.setLocale(locale());
|
/frameworks/base/core/java/android/app/ |
H A D | ActivityThread.java | 4124 // Ask text layout engine to free its caches if there is a locale change 4339 * Initialize the default locale in this process for the reasons we set the time zone. 4341 Locale.setDefault(data.config.locale);
|
H A D | ResourcesManager.java | 275 if (config.locale != null) { 276 Locale.setDefault(config.locale);
|
/frameworks/base/core/java/android/content/res/ |
H A D | AssetManager.java | 661 * Change the locale being used by this asset manager. Not for use by 665 public native final void setLocale(String locale); argument 674 * <p>On SDK 20 (Android 4.4W: Kitkat for watches) and below, locale strings 685 public native final void setConfiguration(int mcc, int mnc, String locale, argument
|
H A D | Configuration.java | 39 * user-specified configuration options (locale and scaling) as well 78 * Current user preference for the locale, corresponding to 79 * <a href="{@docRoot}guide/topics/resources/providing-resources.html#LocaleQualifier">locale</a> 82 public Locale locale; field in class:Configuration 626 if (o.locale != null) { 627 locale = (Locale) o.locale.clone(); 666 if (locale != null) { 668 sb.append(locale); 670 sb.append(" ?locale"); 1319 setLayoutDirection(Locale locale) argument 1335 localeToResourceQualifier(Locale locale) argument [all...] |
H A D | Resources.java | 342 mPluralRule = NativePluralRules.forLocale(mConfiguration.locale); 414 return String.format(mConfiguration.locale, raw, formatArgs); 445 return String.format(mConfiguration.locale, raw, formatArgs); 1799 if (mConfiguration.locale == null) { 1800 mConfiguration.locale = Locale.getDefault(); 1801 mConfiguration.setLayoutDirection(mConfiguration.locale); 1809 String locale = null; 1810 if (mConfiguration.locale != null) { 1811 locale = adjustLanguageTag(mConfiguration.locale [all...] |
/frameworks/base/core/java/android/database/sqlite/ |
H A D | SQLiteConnection.java | 125 private static native void nativeRegisterLocalizedCollators(long connectionPtr, String locale); argument 360 final String newLocale = mConfiguration.locale.toString(); 371 execute("CREATE TABLE IF NOT EXISTS android_metadata (locale TEXT)", null, null); 373 // Check whether the locale was actually changed. 374 final String oldLocale = executeForString("SELECT locale FROM android_metadata " 375 + "UNION SELECT NULL ORDER BY locale DESC LIMIT 1", null, null); 380 // Go ahead and update the indexes using the new locale. 385 execute("INSERT INTO android_metadata (locale) VALUES(?)", 393 throw new SQLiteException("Failed to change locale for db '" + mConfiguration.label 416 boolean localeChanged = !configuration.locale [all...] |
H A D | SQLiteDatabase.java | 62 * two more, <code>LOCALIZED</code>, which changes with the system's current locale, 64 * to the current locale. 658 * <p>Sets the locale of the database to the the system's current locale. 676 * <p>Sets the locale of the database to the the system's current locale. 819 * <p>Sets the locale of the database to the the system's current locale. 1745 * Sets the locale for this database. Does nothing if this database has 1748 * @param locale Th 1754 setLocale(Locale locale) argument [all...] |
H A D | SQLiteDatabaseConfiguration.java | 73 * The database locale. 77 public Locale locale; field in class:SQLiteDatabaseConfiguration 110 locale = Locale.getDefault(); 145 locale = other.locale;
|
/frameworks/base/core/java/android/hardware/soundtrigger/ |
H A D | KeyphraseEnrollmentInfo.java | 79 * Intent extra: The voice locale to use while managing the keyphrase. 206 // Try adding locales if the locale string is non-empty. 250 * for the locale. 257 * @param locale The locale for which the enrollment needs to be performed. 259 * given keyphrase/locale combination isn't possible. 261 public Intent getManageKeyphraseIntent(int action, String keyphrase, Locale locale) { argument 267 if (getKeyphraseMetadata(keyphrase, locale) != null) { 271 .putExtra(EXTRA_VOICE_KEYPHRASE_LOCALE, locale.toLanguageTag()) 279 * Gets the {@link KeyphraseMetadata} for the given keyphrase and locale, nul 288 getKeyphraseMetadata(String keyphrase, Locale locale) argument [all...] |
H A D | KeyphraseMetadata.java | 56 * @return Indicates if we support the given locale. 58 public boolean supportsLocale(Locale locale) { argument 59 return supportedLocales.isEmpty() || supportedLocales.contains(locale);
|
H A D | SoundTrigger.java | 265 public final String locale; field in class:SoundTrigger.Keyphrase 274 public Keyphrase(int id, int recognitionModes, String locale, String text, int[] users) { argument 277 this.locale = locale; 296 String locale = in.readString(); 304 return new Keyphrase(id, recognitionModes, locale, text, users); 311 dest.writeString(locale); 332 result = prime * result + ((locale == null) ? 0 : locale.hashCode()); 354 if (locale [all...] |
/frameworks/base/core/java/android/provider/ |
H A D | SearchIndexableData.java | 40 * The locale for the data 42 public Locale locale; field in class:SearchIndexableData 124 locale = Locale.getDefault(); 144 sb.append("locale: "); 145 sb.append(locale);
|
H A D | UserDictionary.java | 30 * frequency information and locale information. 81 * The locale that this word belongs to. Null if it pertains to all 85 public static final String LOCALE = "locale"; 117 * specified locale type. 125 * @param localeType the locale type for this word. It should be one of 136 final Locale locale; 139 locale = Locale.getDefault(); 141 locale = null; 144 addWord(context, word, frequency, null, locale); 148 * locale typ 158 addWord(Context context, String word, int frequency, String shortcut, Locale locale) argument [all...] |
/frameworks/base/core/java/android/service/textservice/ |
H A D | SpellCheckerService.java | 65 * locale before {@link SpellCheckerService.Session#onCreate()} </p> 242 public InternalISpellCheckerSession(String locale, ISpellCheckerSessionListener listener, argument 246 mLocale = locale; 316 String locale, ISpellCheckerSessionListener listener, Bundle bundle) { 321 new InternalISpellCheckerSession(locale, listener, bundle, session); 365 public SentenceLevelAdapter(Locale locale) { argument 366 mWordIterator = new WordIterator(locale); 315 getISpellCheckerSession( String locale, ISpellCheckerSessionListener listener, Bundle bundle) argument
|
/frameworks/base/core/java/android/service/voice/ |
H A D | AlwaysOnHotwordDetector.java | 328 * @param locale The java locale for the detector. 335 public AlwaysOnHotwordDetector(String text, Locale locale, Callback callback, argument 340 mLocale = locale; 342 mKeyphraseMetadata = mKeyphraseEnrollmentInfo.getKeyphraseMetadata(text, locale); 733 // No enrollment application supports this keyphrase/locale 743 private boolean internalGetIsEnrolled(int keyphraseId, Locale locale) { argument 746 mVoiceInteractionService, keyphraseId, locale.toLanguageTag());
|
H A D | VoiceInteractionService.java | 203 * Creates an {@link AlwaysOnHotwordDetector} for the given keyphrase and locale. 209 * @param locale The locale for which the enrollment needs to be performed. 211 * @return An always-on hotword detector for the given keyphrase and locale. 214 String keyphrase, Locale locale, AlwaysOnHotwordDetector.Callback callback) { 221 mHotwordDetector = new AlwaysOnHotwordDetector(keyphrase, locale, callback, 213 createAlwaysOnHotwordDetector( String keyphrase, Locale locale, AlwaysOnHotwordDetector.Callback callback) argument
|
/frameworks/base/core/java/android/speech/srec/ |
H A D | Recognizer.java | 139 * @param locale <code>Locale</code> corresponding to the desired language, 143 public static String getConfigDir(Locale locale) { argument 144 if (locale == null) locale = Locale.US; 146 locale.toString().replace('_', '.').toLowerCase(Locale.ROOT); 442 || SR_VocabularyGetLanguage ( applicationData.vocabulary, &applicationData.locale ) 701 // ESR_Locale* locale); 715 // private static native void SR_RecognizerResultGetLocale(long recognizer, ESR_Locale* locale);
|
/frameworks/base/core/java/android/speech/tts/ |
H A D | TextToSpeech.java | 135 * Denotes the language is available exactly as specified by the locale. 141 * by the locale, but not the variant. 146 * Denotes the language is available for the language by the locale, 379 * locale have to be requested by passing following extra parameters: 444 * the TextToSpeech engine specifies the locale associated with each resource file. 1266 * Queries the engine for the set of features it supports for a given locale. 1277 * @param locale The locale to query features for. 1284 public Set<String> getFeatures(final Locale locale) { argument 1291 locale [all...] |
H A D | TextToSpeechService.java | 82 * service to expose multiple backends for a single locale. Each one of them can have a different 93 * {@link #onGetDefaultVoiceNameFor(String, String, String)} is a link between locale and voice 98 * If the client uses a voice instead of a locale, {@link SynthesisRequest} will contain the 102 * pre-existing locale-based implementation. 171 * @return Code indicating the support status for the locale. 211 * @return Code indicating the support status for the locale. 255 private int getExpectedLanguageAvailableStatus(Locale locale) { argument 257 if (locale.getVariant().isEmpty()) { 258 if (locale.getCountry().isEmpty()) { 274 * the locale' [all...] |
H A D | TtsEngines.java | 67 /** Locale delimiter used by the old-style 3 char locale string format (like "eng-usa") */ 70 /** Locale delimiter used by the new-style locale string format (Locale.toString() results, 324 * Returns the default locale for a given TTS engine. Attempts to read the 326 * default phone locale is returned. 328 * @param engineName the engine to return the locale for. 329 * @return the locale preference for this engine. Will be non null. 337 * Returns the default locale for a given TTS engine from given settings string. */ 350 Log.w(TAG, "Failed to parse locale " + localeString + ", returning en_US instead"); 361 * True if a given TTS engine uses the default phone locale as a default locale 471 toOldLocaleStringFormat(Locale locale) argument [all...] |
H A D | Voice.java | 30 * multiple voices for each locale, with different set of features. 71 Locale locale, 77 this.mLocale = locale; 123 * @return The voice's locale 189 .append(", locale: ").append(mLocale) 70 Voice(String name, Locale locale, int quality, int latency, boolean requiresNetworkConnection, Set<String> features) argument
|