/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
MccTable.java | 234 String[] locales = context.getAssets().getLocales(); local 235 final int N = locales.length; 238 // only match full (lang + country) locales 239 if (locales[i]!=null && locales[i].length() >= 5 && 240 locales[i].substring(0,2).equals(language)) { 241 if (locales[i].substring(3,5).equals(country)) { 242 bestMatch = locales[i]; 245 bestMatch = locales[i];
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
UserDictionaryAddWordContents.java | 80 // It may also be the empty string, which means "all locales" 144 // In this class we use the empty string to represent 'all locales' and mLocale cannot 145 // be null. However the addWord method takes null to mean 'all locales'. 213 // Helper method to get the list of locales to display for this word 215 final TreeSet<String> locales = UserDictionaryList.getUserDictionaryLocalesSet(activity); local 217 locales.remove(mLocale); // mLocale may not be null 220 locales.remove(systemLocale); // system locale may not be null 221 locales.remove(""); // Remove the empty string if it's there 229 for (final String l : locales) {
|
/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/ |
BreakIteratorTest.java | 166 Locale[] locales = BreakIterator.getAvailableLocales(); local 167 assertTrue(locales.length > 0);
|
DateFormatSymbolsTest.java | 57 Locale[] locales = DateFormatSymbols.getAvailableLocales(); local 58 assertNotNull(locales); 61 for (Locale locale : locales) { 80 Locale[] locales = DateFormatSymbols.getAvailableLocales(); 81 assertNotNull(locales); 84 for (Locale locale : locales) {
|
DecimalFormatSymbolsTest.java | 66 Locale[] locales = DecimalFormatSymbols.getAvailableLocales(); local 67 assertNotNull(locales); 70 for (Locale locale : locales) { 89 Locale[] locales = DecimalFormatSymbols.getAvailableLocales(); 90 assertNotNull(locales); 93 for (Locale locale : locales) {
|
/external/icu4c/samples/layout/ |
pflow.c | 114 pl_localeRuns *locales = NULL; local 143 locales = pl_openEmptyLocaleRuns(0); 168 pl_resetLocaleRuns(locales); 169 pl_addLocaleRun(locales, TEST_LOCALE, pEnd - pStart); 172 paragraphLayout = pl_create(pStart, pEnd - pStart, fr, NULL, NULL, locales, flow->fParagraphLevel, FALSE, status); 216 pl_closeLocaleRuns(locales);
|
/external/icu4c/test/intltest/ |
tzfmttst.cpp | 86 // Set up test locales 94 const Locale *LOCALES; 98 LOCALES = testLocales; 101 LOCALES = Locale::getAvailableLocales(nLocales); 111 SimpleDateFormat gmtFmt(UnicodeString("ZZZZ"), LOCALES[locidx], status); 121 SimpleDateFormat *sdf = new SimpleDateFormat((UnicodeString)PATTERNS[patidx], LOCALES[locidx], status); 124 PATTERNS[patidx] + " for locale " + LOCALES[locidx].getName() + " - " + u_errorName(status)); 191 + ", locale=" + LOCALES[locidx].getName() + ", pattern=" + PATTERNS[patidx] 196 + ", locale=" + LOCALES[locidx].getName() + ", pattern=" + PATTERNS[patidx] 226 + ", locale=" + LOCALES[locidx].getName() + ", pattern=" + PATTERNS[patidx 255 const Locale* locales; \/\/ Static member in struct:LocaleData [all...] |
itrbnf.cpp | 1813 const Locale* locales = Locale::getAvailableLocales(count); local [all...] |
regcoll.cpp | 930 const Locale *locales = Locale::getAvailableLocales(localeCount); local 937 c = Collator::createInstance(locales[i], status); 944 msg += locales[i].getName(); [all...] |
icusvtst.cpp | 1197 StringEnumeration* locales = service.getAvailableLocales(); local [all...] |
loctest.cpp | 686 logln(UnicodeString("Number of locales returned = ") + locCount); 1196 const char** locales = localeArr; local 1439 Locale locales [] = { Locale("no", "NO"), local [all...] |
numrgts.cpp | 1639 const Locale *locales = Locale::getAvailableLocales(count); local [all...] |
calregts.cpp | 1234 Locale locales [] = { Locale::getChinese(), Locale::getChina() }; local [all...] |
/libcore/luni/src/test/java/tests/api/java/util/ |
CurrencyTest.java | 199 ArrayList<Locale> locales = new ArrayList<Locale>(); local 202 locales.add(desiredLocale); 206 Locale[] loc1 = locales.toArray(new Locale[locales.size()]); 214 // Starting CLDR 1.7 release, currency symbol for CAD changed to CA$ in some locales such as ja.
|
CalendarTest.java | 480 private static final Locale[] locales = new Locale[] { Locale.getDefault(), field in class:CalendarTest 638 Locale[] locales = Calendar.getAvailableLocales(); local 640 for (int i = 0; i < locales.length; i++) { 641 Locale l = locales[i]; 797 for (Locale locale : locales) { 909 for (Locale locale : locales) { 955 for (Locale locale : locales) { [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/ |
UserDictionaryAddWordContents.java | 98 // It may also be the empty string, which means "all locales" 165 // In this class we use the empty string to represent 'all locales' and mLocale cannot 166 // be null. However the addWord method takes null to mean 'all locales'. 234 // Helper method to get the list of locales to display for this word 236 final TreeSet<String> locales = UserDictionaryList.getUserDictionaryLocalesSet(activity); local 238 locales.remove(mLocale); // mLocale may not be null 241 locales.remove(systemLocale); // system locale may not be null 242 locales.remove(""); // Remove the empty string if it's there 250 for (final String l : locales) {
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/ |
ConfigurationDescription.java | 205 String locales[] = localeString.split(SEP_LOCALE); local 206 if (locales[0].length() > 0) { 207 language = new LanguageQualifier(locales[0]); 209 if (locales.length > 1 && locales[1].length() > 0) { 210 region = new RegionQualifier(locales[1]);
|
VaryingConfiguration.java | 169 List<Locale> locales = mConfigChooser.getLocaleList(); local 170 for (Locale l : locales) {
|
Configuration.java | 177 // rendering targets, the set of available locales etc, which 741 String locales[] = values[2].split(SEP_LOCALE); local 742 if (locales.length >= 2) { 743 if (locales[0].length() > 0) { 744 language = new LanguageQualifier(locales[0]); 746 if (locales[1].length() > 0) { 747 region = new RegionQualifier(locales[1]); 825 String locales[] = values[0].split(SEP_LOCALE); local 826 if (locales.length >= 2) { 827 if (locales[0].length() > 0) [all...] |
/development/apps/CustomLocale/src/com/android/customlocale2/ |
CustomLocaleActivity.java | 49 * Displays the list of system locales as well as maintain a custom list of user 50 * locales. The user can select a locale and apply it or it can create or remove 70 /** List view displaying system and custom locales. */ 213 // Insert all system locales 214 String[] locales = getAssets().getLocales(); local 215 for (String locale : locales) { 221 locales = null; 223 // Insert all custom locales 238 // Sort all locales by code 323 // Enable the remove button only for custom locales and set the tag to the local [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
CalendarTest.java | 480 private static final Locale[] locales = new Locale[] { Locale.getDefault(), field in class:CalendarTest 638 Locale[] locales = Calendar.getAvailableLocales(); local 640 for (int i = 0; i < locales.length; i++) { 641 Locale l = locales[i]; 797 for (Locale locale : locales) { 909 for (Locale locale : locales) { 955 for (Locale locale : locales) { [all...] |
/frameworks/base/core/jni/ |
android_util_AssetManager.cpp | 478 Vector<String8> locales; local 485 am->getLocales(&locales); 487 const int N = locales.size(); 495 jstring str = env->NewStringUTF(locales[i].string()); [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
RuimRecords.java | 565 String[] locales = mContext.getAssets().getLocales(); local 567 if ((languages == null) || (locales == null)) return null; 573 for (int j = 0; j < locales.length; j++) { 574 if (locales[j] != null && locales[j].length() >= 2 && 575 locales[j].substring(0, 2).equals(lang)) {
|
/libcore/luni/src/main/java/java/util/ |
ResourceBundle.java | 335 List<Locale> locales = control.getCandidateLocales(baseName, targetLocale); local 336 if (locales == null) { 348 for (Locale locale : locales) { 390 || (Locale.ROOT.equals(ret.getLocale()) && (!(locales.size() == 1 && locales 807 * Returns a list of candidate locales according to {@code baseName} in [all...] |
/frameworks/base/tools/aapt/ |
Command.cpp | 602 Vector<String8> locales; local 603 res.getLocales(&locales); 793 const size_t NL = locales.size(); 795 const char* localeStr = locales[i].string(); [all...] |