Home
last modified time | relevance | path

Searched refs:locales (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/base/core/java/com/android/internal/app/
DLocalePicker.java91 final String[] locales = Resources.getSystem().getAssets().getLocales(); in constructAdapter() local
94 Arrays.sort(locales); in constructAdapter()
95 final int origSize = locales.length; in constructAdapter()
99 final String s = locales[i]; in constructAdapter()
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/
DCdmaLteUiccRecords.java362 String[] locales = phone.getContext().getAssets().getLocales(); in findBestLanguage() local
364 if ((languages == null) || (locales == null)) return null; in findBestLanguage()
370 for (int j = 0; j < locales.length; j++) { in findBestLanguage()
371 if (locales[j] != null && locales[j].length() >= 2 && in findBestLanguage()
372 locales[j].substring(0, 2).equals(lang)) { in findBestLanguage()
/frameworks/base/telephony/java/com/android/internal/telephony/
DPhoneBase.java643 String[] locales = mContext.getAssets().getLocales(); in setSystemLocale() local
644 final int N = locales.length; in setSystemLocale()
648 if (locales[i]!=null && locales[i].length() >= 5 && in setSystemLocale()
649 locales[i].substring(0,2).equals(language)) { in setSystemLocale()
650 if (locales[i].substring(3,5).equals(country)) { in setSystemLocale()
651 bestMatch = locales[i]; in setSystemLocale()
654 bestMatch = locales[i]; in setSystemLocale()
/frameworks/base/tools/aapt/
DCommand.cpp590 Vector<String8> locales; in doDump() local
591 res.getLocales(&locales); in doDump()
767 const size_t NL = locales.size(); in doDump()
769 const char* localeStr = locales[i].string(); in doDump()
1336 const size_t NL = locales.size(); in doDump()
1338 const char* localeStr = locales[i].string(); in doDump()
DResourceTable.cpp2480 for (set<String8>::const_iterator locales = configSet.begin(); in validateLocalizations() local
2481 locales != configSet.end(); in validateLocalizations()
2482 locales++) { in validateLocalizations()
2483 fprintf(stdout, " %s", (*locales).string()); in validateLocalizations()
/frameworks/base/docs/html/resources/tutorials/localization/
Dindex.jd183 flags for different locales, this code will sometimes assign a different flag.
228 will render differently in different locales. In this application, the default
231 plan for how the application will appear in different locales.</p>
318 specifies which ones will be loaded for which locales. (For more about the
528 alternate locales via the Settings application, or might offer only a few. The
529 emulator, on the other hand, will offer a selection of all the locales that are
544 <p>For a list of locales available on different versions of the Android platform,
547 href="{@docRoot}sdk/android-2.0.html#locs">Android 2.0 locales</a>.</p>
549 <p>Run the application for each of the expected locales, plus one unexpected
/frameworks/base/include/utils/
DAssetManager.h218 void getLocales(Vector<String8>* locales) const;
DResourceTypes.h2063 void getLocales(Vector<String8>* locales) const;
/frameworks/base/docs/html/sdk/
Dandroid-2.3.4.jd270 built-in locales. In some cases, region-specific strings are available for the
271 locales. In other cases, a default version of the language is used. The
347 locales than are included in the SDK system image. All of the supported locales
Dandroid-2.2.jd389 built-in locales. In some cases, region-specific strings are available for the
390 locales. In other cases, a default version of the language is used. The
432 <p>Localized UI strings match the locales that are accessible
435 <p class="note"><strong>Note:</strong> Android supports more locales than are listed above. However,
437 only what's included in the system image for the SDK. All of Android's supported locales are
Dandroid-2.1.jd297 built-in locales. In some cases, region-specific strings are available for the
298 locales. In other cases, a default version of the language is used. The
340 <p>Localized UI strings match the locales that are accessible
Dandroid-1.5.jd307 built-in locales. In some cases, region-specific strings are available for the
308 locales. In other cases, a default version of the language is used. The
350 <p>Localized UI strings match the locales that are accessible
Dandroid-2.0.1.jd169 built-in locales. In some cases, region-specific strings are available for the
170 locales. In other cases, a default version of the language is used. The
212 <p>Localized UI strings match the locales that are accessible
Dandroid-2.3.3.jd310 built-in locales. In some cases, region-specific strings are available for the
311 locales. In other cases, a default version of the language is used. The
385 locales than are included in the SDK system image. All of the supported locales
Dandroid-2.0.jd158 built-in locales. In some cases, region-specific strings are available for the
159 locales. In other cases, a default version of the language is used. The
201 <p>Localized UI strings match the locales that are accessible
Dandroid-1.6.jd438 built-in locales. In some cases, region-specific strings are available for the
439 locales. In other cases, a default version of the language is used. The
481 <p>Localized UI strings match the locales that are accessible
Dandroid-3.2.jd649 built-in locales. In some cases, region-specific strings are available for the
650 locales. In other cases, a default version of the language is used. The
724 locales than are included in the SDK system image. All of the supported locales
Dandroid-2.3.jd833 built-in locales. In some cases, region-specific strings are available for the
834 locales. In other cases, a default version of the language is used. The
908 locales than are included in the SDK system image. All of the supported locales
Dandroid-3.1.jd1015 built-in locales. In some cases, region-specific strings are available for the
1016 locales. In other cases, a default version of the language is used. The
1090 locales than are included in the SDK system image. All of the supported locales
Dandroid-1.1.jd141 <p>Localized UI strings match the locales that are displayable in
Dandroid-3.0.jd1093 built-in locales. In some cases, region-specific strings are available for the
1094 locales. In other cases, a default version of the language is used. The
1168 locales than are included in the SDK system image. All of the supported locales
/frameworks/base/core/jni/
Dandroid_util_AssetManager.cpp478 Vector<String8> locales; in android_content_AssetManager_getLocales() local
485 am->getLocales(&locales); in android_content_AssetManager_getLocales()
487 const int N = locales.size(); in android_content_AssetManager_getLocales()
495 jstring str = env->NewStringUTF(locales[i].string()); in android_content_AssetManager_getLocales()
/frameworks/base/docs/html/guide/topics/resources/
Dlocalization.jd12 <li>Android lets you create different resource sets for different locales.</li>
63 graphics in ways appropriate to the locales where your application will be used.
118 different locales.</p></td>
422 the devices available to consumers in other geographies. The locales available
437 system image does not explicitly support. (For a list of supported locales in
/frameworks/base/libs/utils/
DAssetManager.cpp748 void AssetManager::getLocales(Vector<String8>* locales) const in getLocales()
752 res->getLocales(locales); in getLocales()
DResourceTypes.cpp3898 void ResTable::getLocales(Vector<String8>* locales) const in getLocales()
3908 const size_t J = locales->size(); in getLocales()
3911 if (0 == strcmp(locale, (*locales)[j].string())) { in getLocales()
3916 locales->add(String8(locale)); in getLocales()

12