/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/configuration/ |
D | LocaleTest.java | 27 Locale locale = Locale.create("en-rUS"); in test1() local 28 assertEquals("en", locale.qualifier.getLanguage()); in test1() 29 assertEquals("US", locale.qualifier.getRegion()); in test1() 30 assertTrue(locale.hasLanguage()); in test1() 31 assertTrue(locale.hasRegion()); in test1() 35 Locale locale = Locale.create("zh"); in test2() local 36 assertEquals("zh", locale.qualifier.getLanguage()); in test2() 37 assertNull(locale.qualifier.getRegion()); in test2() 38 assertTrue(locale.hasLanguage()); in test2() 39 assertFalse(locale.hasRegion()); in test2() [all …]
|
D | ConfigurationTest.java | 123 Locale locale = Locale.create(new LocaleQualifier("nb")); in testCopy() local 124 configuration.setLocale(locale, false /* skipSync */); in testCopy() 127 assertEquals(locale, copy.getLocale()); in testCopy() 137 assertTrue(copy.getFullConfig().getLocaleQualifier().equals(locale.qualifier)); in testCopy() 138 assertEquals(locale, copy.getLocale()); in testCopy()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/ |
D | Locale.java | 56 LocaleQualifier locale) { in Locale() 57 qualifier = locale; in Locale() 69 LocaleQualifier locale) { in create() 70 return new Locale(locale); in create() 80 LocaleQualifier locale = folder.getLocaleQualifier(); in create() local 81 if (locale == null) { in create() 84 return new Locale(locale); in create()
|
D | FlagManager.java | 115 Locale locale = Locale.getDefault(); in getFlag() local 116 if (language.equals(locale.getLanguage())) { in getFlag() 117 Image flag = getFlag(locale.getCountry()); in getFlag() 142 public Image getFlag(@Nullable LocaleQualifier locale) { in getFlag() argument 143 if (locale == null) { in getFlag() 146 String languageCode = locale.getLanguage(); in getFlag() 147 String regionCode = locale.getRegion(); in getFlag()
|
D | LocaleMenuListener.java | 53 @Nullable Locale locale) { in LocaleMenuListener() argument 56 mLocale = locale; in LocaleMenuListener() 84 for (Locale locale : locales) { in show() 85 String title = ConfigurationChooser.getLocaleLabel(chooser, locale, false); in show() 88 Image image = locale.getFlagImage(); in show() 91 boolean selected = current == locale; in show() 97 locale); in show()
|
D | Configuration.java | 471 public void setLocale(@NonNull Locale locale, boolean skipSync) { in setLocale() argument 472 mLocale = locale; in setLocale() 564 Locale locale = getLocale(); in syncFolderConfig() local 565 mFullConfig.setLocaleQualifier(locale.qualifier); in syncFolderConfig() 566 if (!locale.hasLanguage()) { in syncFolderConfig() 577 if (layoutLib.isRtl(locale.toLocaleId())) { in syncFolderConfig() 630 Locale locale = getLocale(); in toPersistentString() local 631 if (isLocaleSpecificLayout() && locale != null && locale.qualifier.hasLanguage()) { in toPersistentString() 633 sb.append(locale.qualifier.getLanguage()); in toPersistentString() 635 if (locale.qualifier.hasRegion()) { in toPersistentString() [all …]
|
D | ConfigurationDescription.java | 92 public Locale locale = Locale.ANY; field in ConfigurationDescription 152 description.locale = configuration.getLocale(); in fromConfiguration() 207 … description.locale = Locale.create(LocaleQualifier.getQualifier(language + "-r" + locales[1])); in fromXml() 209 description.locale = Locale.create(new LocaleQualifier(language)); in fromXml() 212 description.locale = Locale.ANY; in fromXml() 283 if (locale != null && (locale.hasLanguage() || locale.hasRegion())) { in toXml() 285 if (locale.hasRegion()) { in toXml() 286 value = locale.qualifier.getLanguage() + SEP_LOCALE + locale.qualifier.getRegion(); in toXml() 288 value = locale.qualifier.getLanguage(); in toXml()
|
D | ConfigurationChooser.java | 1112 void selectLocale(@Nullable Locale locale) { in selectLocale() argument 1116 mLocaleCombo.setData(locale); in selectLocale() 1117 String label = Strings.nullToEmpty(getLocaleLabel(this, locale, true)); in selectLocale() 1120 Image image = getFlagImage(locale); in selectLocale() 1130 Image getFlagImage(@Nullable Locale locale) { in getFlagImage() argument 1131 if (locale != null) { in getFlagImage() 1132 return locale.getFlagImage(); in getFlagImage() 1171 private boolean setLocale(@Nullable Locale locale) { in setLocale() argument 1172 boolean changed = !Objects.equal(mConfiguration.getLocale(), locale); in setLocale() 1173 selectLocale(locale); in setLocale() [all …]
|
D | VaryingConfiguration.java | 168 Locale locale = mParent.getLocale(); in getLocale() local 169 if (isAlternatingLocale() && locale != null) { in getLocale() 176 if (!l.equals(locale)) { in getLocale() 177 locale = l; in getLocale() 183 return locale; in getLocale()
|
D | NestedConfiguration.java | 204 public void setLocale(@NonNull Locale locale, boolean skipSync) { in setLocale() argument 206 super.setLocale(locale, skipSync); in setLocale() 208 mParent.setLocale(locale, skipSync); in setLocale()
|
D | ConfigurationMatcher.java | 204 Locale locale = localeList.get(i); in adaptConfigSelection() local 207 testConfig.setLocaleQualifier(locale.qualifier); in adaptConfigSelection() 222 Locale locale = localeList.get(localeIndex); in adaptConfigSelection() local 223 mConfiguration.setLocale(locale, true); in adaptConfigSelection() 226 mConfigChooser.selectLocale(locale); in adaptConfigSelection() 459 Locale locale = localeList.get(l); in getLocaleMatch() local 460 LocaleQualifier qualifier = locale.qualifier; in getLocaleMatch()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
D | RenderPreviewList.java | 157 description.locale != null ? description.locale : chooserConfig.getLocale(), in createPreviews()
|
D | RenderPreviewManager.java | 804 for (Locale locale : chooser.getLocaleList()) { in createLocaleVariation() 805 LocaleQualifier qualifier = locale.qualifier; in createLocaleVariation() 934 for (Locale locale : locales) { in addLocalePreviews() 935 if (!locale.hasLanguage() && !locale.hasRegion()) { in addLocalePreviews() 940 configuration.setLocale(locale, false); in addLocalePreviews() 942 String displayName = ConfigurationChooser.getLocaleLabel(chooser, locale, false); in addLocalePreviews() 951 Locale locale = configuration.getLocale(); in addLocalePreviews() local 952 String label = ConfigurationChooser.getLocaleLabel(chooser, locale, false); in addLocalePreviews()
|
D | RenderPreview.java | 985 Locale locale = mConfiguration.getLocale(); in paintTitle() local 986 if (locale != null && (locale.hasLanguage() || locale.hasRegion()) in paintTitle() 989 icon = locale.getFlagImage(); in paintTitle()
|
/sdk/eclipse/ |
D | dictionary.txt | 163 locale
|
D | changes.txt | 6 * Improved flag and locale data in the configuration chooser 181 * Fix locale bug affecting Turkish locales in particular (issue
|
/sdk/eclipse/buildConfig/ |
D | build.properties | 83 #jnlp.locale=<a locale>
|
/sdk/ |
D | changes.txt | 177 - Fixed location control in DDMS to work in any locale not using '.' as a
|