Searched refs:locales (Results 1 - 12 of 12) sorted by relevance

/frameworks/base/core/java/android/hardware/soundtrigger/
H A DKeyphraseEnrollmentInfo.java196 // Get the supported locales.
205 ArraySet<Locale> locales = new ArraySet<>();
206 // Try adding locales if the locale string is non-empty.
211 locales.add(Locale.forLanguageTag(supportedLocalesDelimited[i]));
215 // to be affected by a malformed metadata because invalid locales were specified
232 mKeyphrases[0] = new KeyphraseMetadata(searchKeyphraseId, searchKeyphrase, locales,
/frameworks/base/core/java/com/android/internal/app/
H A DLocalePicker.java89 final String[] locales = Resources.getSystem().getAssets().getLocales();
90 List<String> localeList = new ArrayList<String>(locales.length);
91 Collections.addAll(localeList, locales);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DMccTable.java279 // TODO: this should really follow the CLDR chain of parent locales!
283 List<String> locales = new ArrayList<>(Arrays.asList(localeArray));
286 locales.remove("ar-XB");
287 locales.remove("en-XA");
290 for (String locale : locales) {
293 // Only consider locales with both language and country.
322 Slog.d(LOG_TAG, "getLocaleForLanguageCountry: no locales for language " +
/frameworks/base/libs/androidfw/
H A DAssetManager.cpp390 Vector<String8> locales; local
393 res->getLocales(&locales);
395 const size_t localesSize = locales.size();
398 if (locales[i].find(kFilPrefix) == 0) {
818 void AssetManager::getLocales(Vector<String8>* locales) const
822 res->getLocales(locales);
825 const size_t numLocales = locales->size();
827 const String8& localeStr = locales->itemAt(i);
831 locales->editItemAt(i) = replaced;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
H A DSIMRecords.java1367 String[] locales = mContext.getAssets().getLocales();
1369 if ((languages == null) || (locales == null)) return null;
1376 for (int j = 0; j < locales.length; j++) {
1377 if (locales[j] != null && locales[j].length() >= 2 &&
1378 locales[j].substring(0, 2).equalsIgnoreCase(lang)) {
H A DRuimRecords.java726 final String[] locales = ctx.getAssets().getLocales();
727 final String[] localeLangs = new String[locales.length];
728 for (int i = 0; i < locales.length; ++i) {
729 final String localeStr = locales[i];
/frameworks/base/include/androidfw/
H A DAssetManager.h225 * Get the known locales for this asset manager object.
227 void getLocales(Vector<String8>* locales) const;
H A DResourceTypes.h1228 // with respect to their locales, a negative integer if |o| is more specific
1784 void getLocales(Vector<String8>* locales) const;
/frameworks/base/tools/aapt/
H A DCommand.cpp762 Vector<String8> locales; local
763 res.getLocales(&locales);
1081 const size_t NL = locales.size();
1083 const char* localeStr = locales[i].string();
1984 printf("locales:");
1985 const size_t NL = locales.size();
1987 const char* localeStr = locales[i].string();
H A DResourceTable.cpp2689 for (map<String8, SourcePos>::const_iterator locales = configSrcMap.begin();
2690 locales != configSrcMap.end();
2691 locales++) {
2692 locales->second.printf("locale %s found", locales->first.string());
/frameworks/base/core/java/android/speech/tts/
H A DTextToSpeech.java1567 HashSet<Locale> locales = new HashSet<Locale>();
1569 locales.add(voice.getLocale());
1571 return locales;
/frameworks/base/core/jni/
H A Dandroid_util_AssetManager.cpp567 Vector<String8> locales; local
574 am->getLocales(&locales);
576 const int N = locales.size();
584 jstring str = env->NewStringUTF(locales[i].string());

Completed in 201 milliseconds