/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() 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 …]
|
D | FlagManagerTest.java | 31 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()
|
D | ConfigurationTest.java | 66 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/ |
D | Locale.java | 31 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()
|
D | LocaleMenuListener.java | 48 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()
|
D | Configuration.java | 149 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 …]
|
D | FlagManager.java | 29 import java.util.Locale; 115 Locale locale = Locale.getDefault(); in getFlag() 208 String flagFileName = base.toLowerCase(Locale.US) + ".png"; //$NON-NLS-1$ in getIcon()
|
D | ConfigurationMatcher.java | 188 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()
|
D | VaryingConfiguration.java | 164 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()
|
D | ConfigurationChooser.java | 144 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 …]
|
D | ConfigurationDescription.java | 92 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()
|
D | NestedConfiguration.java | 195 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/ |
D | AdtUtilsTest.java | 20 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/ |
D | TypedVariable.java | 3 import java.util.Locale; 18 return valueOf(name.toUpperCase(Locale.US)); in get() 23 System.err.println(" " + s.name().toLowerCase(Locale.US)); in get()
|
D | Parameter.java | 51 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()
|
D | TemplateMetadata.java | 68 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/ |
D | FingerprintUtils.java | 19 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/ |
D | GLListProperty.java | 21 import java.util.Locale; 176 pp.prettyPrint(String.format(Locale.US, "Index %d:", i)); in prettyPrint()
|
D | GLSparseArrayProperty.java | 21 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/ |
D | TextAttributeDescriptor.java | 36 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/ |
D | DomUtilities.java | 57 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/ |
D | LintPreferencePage.java | 85 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()
|
D | AdtPrefs.java | 35 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/ |
D | NewItemSelectionDialog.java | 45 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/ |
D | AddSuppressAttribute.java | 47 import java.util.Locale; 191 targetApi = buildCode.toLowerCase(Locale.US); in createFixes()
|