Home
last modified time | relevance | path

Searched refs:Locale (Results 1 – 25 of 44) sorted by relevance

12

/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/configuration/
DLocaleTest.java27 Locale locale = Locale.create("en-rUS"); in test1()
35 Locale locale = Locale.create("zh"); in test2()
43 Locale locale = Locale.create("zh"); in testEquals()
62 assertEquals(Locale.ANY, Locale.ANY); in test()
63 assertFalse(Locale.ANY.hasLanguage()); in test()
64 assertFalse(Locale.ANY.hasRegion()); in test()
66 assertFalse(Locale.create(new LocaleQualifier(LocaleQualifier.FAKE_VALUE)).hasLanguage()); in test()
68 assertFalse(Locale.create(new LocaleQualifier(LocaleQualifier.FAKE_VALUE)).hasRegion()); in test()
70 assertEquals(Locale.create(qualifier1), Locale.create(qualifier1)); in test()
71 assertTrue(Locale.create(qualifier1).hasLanguage()); in test()
[all …]
DFlagManagerTest.java31 import java.util.Locale;
50 Locale.setDefault(Locale.US); in testGetFlagImage()
52 Locale.setDefault(Locale.UK); in testGetFlagImage()
54 Locale.setDefault(Locale.CANADA); in testGetFlagImage()
59 Locale.setDefault(new Locale("pt", "br")); in testGetFlagImage()
62 Locale.setDefault(new Locale("pt", "pt")); in testGetFlagImage()
76 Locale.setDefault(Locale.CANADA); in testGetFlagImage()
110 code = code.toUpperCase(Locale.US); in testAvailableImages()
158 sb.append(code.toLowerCase(Locale.US)).append(SdkConstants.DOT_PNG).append(" ("); in testAvailableImages()
DConfigurationTest.java66 assertEquals(Locale.ANY, configuration.getLocale()); in test()
68 Locale language = Locale.create(new LocaleQualifier("nb")); in test()
123 Locale locale = Locale.create(new LocaleQualifier("nb")); in testCopy()
133 configuration.setLocale(Locale.ANY, false); in testCopy()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/
DLocale.java31 public class Locale { class
40 public static final Locale ANY = new Locale(ANY_QUALIFIER);
55 private Locale(@NonNull in Locale() method in Locale
68 public static Locale create(@NonNull in create()
70 return new Locale(locale); in create()
79 public static Locale create(FolderConfiguration folder) { in create()
84 return new Locale(locale); in create()
96 public static Locale create(@NonNull in create()
103 return new Locale(qualifier); in create()
174 Locale other = (Locale) obj; in equals()
DLocaleMenuListener.java48 private final Locale mLocale;
53 @Nullable Locale locale) { in LocaleMenuListener()
81 List<Locale> locales = chooser.getLocaleList(); in show()
82 Locale current = configuration.getLocale(); in show()
84 for (Locale locale : locales) { in show()
DConfiguration.java149 private Locale mLocale = Locale.ANY;
296 public Locale getLocale() { in getLocale()
471 public void setLocale(@NonNull Locale locale, boolean skipSync) { in setLocale()
564 Locale locale = getLocale(); in syncFolderConfig()
630 Locale locale = getLocale(); in toPersistentString()
767 LocaleQualifier locale = Locale.ANY_QUALIFIER; in initialize()
778 mLocale = Locale.create(locale); in initialize()
806 Pair<Locale, IAndroidTarget> pair = loadRenderState(mConfigChooser); in initialize()
838 static Pair<Locale, IAndroidTarget> loadRenderState(ConfigurationChooser chooser) { in loadRenderState()
847 Locale locale = Locale.ANY; in loadRenderState()
[all …]
DFlagManager.java29 import java.util.Locale;
115 Locale locale = Locale.getDefault(); in getFlag()
208 String flagFileName = base.toLowerCase(Locale.US) + ".png"; //$NON-NLS-1$ in getIcon()
DConfigurationMatcher.java188 List<Locale> localeList = mConfigChooser.getLocaleList(); in adaptConfigSelection()
204 Locale locale = localeList.get(i); in adaptConfigSelection()
222 Locale locale = localeList.get(localeIndex); in adaptConfigSelection()
250 List<Locale> localeList = mConfigChooser.getLocaleList(); in findAndSetCompatibleConfig()
286 Locale l = localeList.get(i); in findAndSetCompatibleConfig()
401 Pair<Locale, IAndroidTarget> state = Configuration.loadRenderState(mConfigChooser); in addRenderTargetToBundles()
451 java.util.Locale defaultLocale = java.util.Locale.getDefault(); in getLocaleMatch()
456 List<Locale> localeList = mConfigChooser.getLocaleList(); in getLocaleMatch()
459 Locale locale = localeList.get(l); in getLocaleMatch()
DVaryingConfiguration.java164 public Locale getLocale() { in getLocale()
168 Locale locale = mParent.getLocale(); in getLocale()
170 List<Locale> locales = mConfigChooser.getLocaleList(); in getLocale()
171 for (Locale l : locales) { in getLocale()
DConfigurationChooser.java144 private final List<Locale > mLocaleList = new ArrayList<Locale>();
375 public List<Locale> getLocaleList() { in getLocaleList()
1112 void selectLocale(@Nullable Locale locale) { in selectLocale()
1130 Image getFlagImage(@Nullable Locale locale) { in getFlagImage()
1171 private boolean setLocale(@Nullable Locale locale) { in setLocale()
1309 @Nullable Locale locale, in getLocaleLabel()
1522 Locale prev = mConfiguration.getLocale(); in onLocaleChange()
1523 Locale locale = (Locale) mLocaleCombo.getData(); in onLocaleChange()
1525 locale = Locale.ANY; in onLocaleChange()
1685 Pair<Locale, IAndroidTarget> pair = Configuration.loadRenderState(this); in syncRenderState()
[all …]
DConfigurationDescription.java92 public Locale locale = Locale.ANY;
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()
DNestedConfiguration.java195 public Locale getLocale() { in getLocale()
204 public void setLocale(@NonNull Locale locale, boolean skipSync) { in setLocale()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/
DAdtUtilsTest.java20 import java.util.Locale;
100 Locale originalDefaultLocale = Locale.getDefault(); in testFormatFloatValueLocale()
103 Locale.setDefault(Locale.FRENCH); in testFormatFloatValueLocale()
111 Locale.setDefault(originalDefaultLocale); in testFormatFloatValueLocale()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/templates/
DTypedVariable.java3 import java.util.Locale;
18 return valueOf(name.toUpperCase(Locale.US)); in get()
23 System.err.println(" " + s.name().toLowerCase(Locale.US)); in get()
DParameter.java51 import java.util.Locale;
71 return Type.valueOf(name.toUpperCase(Locale.US)); in get()
76 AdtPlugin.printErrorToConsole(" " + s.name().toLowerCase(Locale.US)); in get()
138 return Constraint.valueOf(name.toUpperCase(Locale.US)); in get()
146 AdtPlugin.printErrorToConsole(" " + s.name().toLowerCase(Locale.US)); in get()
DTemplateMetadata.java68 import java.util.Locale;
241 typeString = typeString.toUpperCase(Locale.US); in getIconState()
274 shapeString = shapeString.toUpperCase(Locale.US); in getIconState()
297 sourceTypeString = sourceTypeString.toUpperCase(Locale.US); in getIconState()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/utils/
DFingerprintUtils.java19 import java.util.Locale;
61 return sb.toString().toUpperCase(Locale.US); in toHexadecimalString()
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/state/
DGLListProperty.java21 import java.util.Locale;
176 pp.prettyPrint(String.format(Locale.US, "Index %d:", i)); in prettyPrint()
DGLSparseArrayProperty.java21 import java.util.Locale;
160 pp.prettyPrint(String.format(Locale.US, "Index %d:", key)); in prettyPrint()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/descriptors/
DTextAttributeDescriptor.java36 import java.util.Locale;
200 sb.append(f.toString().toLowerCase(Locale.US)); in getTooltip()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DDomUtilities.java57 import java.util.Locale;
501 seen.add(id.substring(NEW_ID_PREFIX.length()).toLowerCase(Locale.US)); in addLowercaseIds()
503 seen.add(id.substring(ID_PREFIX.length()).toLowerCase(Locale.US)); in addLowercaseIds()
505 seen.add(id.toLowerCase(Locale.US)); in addLowercaseIds()
533 ids.add(id.toLowerCase(Locale.US)); in getFreeWidgetId()
545 } while (ids.contains(generated.toLowerCase(Locale.US))); in getFreeWidgetId()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/preferences/
DLintPreferencePage.java85 import java.util.Locale;
571 .toLowerCase(Locale.US).startsWith(filter.substring(1))) in filterMatches()
572 || issue.getCategory().getName().toLowerCase(Locale.US).startsWith(filter) in filterMatches()
573 || issue.getCategory().getFullName().toLowerCase(Locale.US).startsWith(filter) in filterMatches()
574 || issue.getId().toLowerCase(Locale.US).contains(filter) in filterMatches()
575 || issue.getBriefDescription(RAW).toLowerCase(Locale.US).contains(filter); in filterMatches()
617 filter = filter.toLowerCase(Locale.US); in inputChanged()
DAdtPrefs.java35 import java.util.Locale;
276 mPreviewMode = RenderPreviewMode.valueOf(previewMode.toUpperCase(Locale.US)); in loadValues()
592 store.setValue(PREFS_PREVIEWS, previewMode.name().toLowerCase(Locale.US)); in setPreviewMode()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ui/tree/
DNewItemSelectionDialog.java45 import java.util.Locale;
315 name = name.substring(1).toLowerCase(Locale.US); in setInitialSelection()
323 String name2 = desc.getXmlLocalName().toLowerCase(Locale.US); in setInitialSelection()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/
DAddSuppressAttribute.java47 import java.util.Locale;
191 targetApi = buildCode.toLowerCase(Locale.US); in createFixes()

12