/sdk/sdk_common/src/com/android/ide/common/resources/configuration/ |
D | FolderConfiguration.java | 210 public void addQualifier(ResourceQualifier qualifier) { in addQualifier() argument 211 if (qualifier instanceof CountryCodeQualifier) { in addQualifier() 212 mQualifiers[INDEX_COUNTRY_CODE] = qualifier; in addQualifier() 214 } else if (qualifier instanceof NetworkCodeQualifier) { in addQualifier() 215 mQualifiers[INDEX_NETWORK_CODE] = qualifier; in addQualifier() 217 } else if (qualifier instanceof LanguageQualifier) { in addQualifier() 218 mQualifiers[INDEX_LANGUAGE] = qualifier; in addQualifier() 220 } else if (qualifier instanceof RegionQualifier) { in addQualifier() 221 mQualifiers[INDEX_REGION] = qualifier; in addQualifier() 223 } else if (qualifier instanceof SmallestScreenWidthQualifier) { in addQualifier() [all …]
|
D | ScreenDimensionQualifier.java | 100 ScreenDimensionQualifier qualifier = getQualifier(d1, d2); in checkAndSet() local 101 if (qualifier != null) { in checkAndSet() 102 config.setScreenDimensionQualifier(qualifier); in checkAndSet() 110 public boolean equals(Object qualifier) { in equals() argument 111 if (qualifier instanceof ScreenDimensionQualifier) { in equals() 112 ScreenDimensionQualifier q = (ScreenDimensionQualifier)qualifier; in equals() 129 ScreenDimensionQualifier qualifier = new ScreenDimensionQualifier(); in getQualifier() local 132 qualifier.mValue1 = s1; in getQualifier() 133 qualifier.mValue2 = s2; in getQualifier() 135 qualifier.mValue1 = s2; in getQualifier() [all …]
|
D | VersionQualifier.java | 54 VersionQualifier qualifier = new VersionQualifier(); in getQualifier() local 55 qualifier.mVersion = code; in getQualifier() 56 return qualifier; in getQualifier() 114 VersionQualifier qualifier = getQualifier(value); in checkAndSet() local 115 if (qualifier != null) { in checkAndSet() 116 config.setVersionQualifier(qualifier); in checkAndSet() 124 public boolean equals(Object qualifier) { in equals() argument 125 if (qualifier instanceof VersionQualifier) { in equals() 126 return mVersion == ((VersionQualifier)qualifier).mVersion; in equals() 133 public boolean isMatchFor(ResourceQualifier qualifier) { in isMatchFor() argument [all …]
|
D | LanguageQualifier.java | 41 LanguageQualifier qualifier = new LanguageQualifier(); in getQualifier() local 42 qualifier.mValue = segment; in getQualifier() 44 return qualifier; in getQualifier() 106 LanguageQualifier qualifier = getQualifier(value); in checkAndSet() local 107 if (qualifier != null) { in checkAndSet() 108 config.setLanguageQualifier(qualifier); in checkAndSet() 116 public boolean equals(Object qualifier) { in equals() argument 117 if (qualifier instanceof LanguageQualifier) { in equals() 119 return ((LanguageQualifier)qualifier).mValue == null; in equals() 121 return mValue.equals(((LanguageQualifier)qualifier).mValue); in equals()
|
D | RegionQualifier.java | 43 RegionQualifier qualifier = new RegionQualifier(); in getQualifier() local 44 qualifier.mValue = m.group(1); in getQualifier() 46 return qualifier; in getQualifier() 111 RegionQualifier qualifier = getQualifier(value); in checkAndSet() local 112 if (qualifier != null) { in checkAndSet() 113 config.setRegionQualifier(qualifier); in checkAndSet() 121 public boolean equals(Object qualifier) { in equals() argument 122 if (qualifier instanceof RegionQualifier) { in equals() 124 return ((RegionQualifier)qualifier).mValue == null; in equals() 126 return mValue.equals(((RegionQualifier)qualifier).mValue); in equals()
|
D | SmallestScreenWidthQualifier.java | 79 SmallestScreenWidthQualifier qualifier = getQualifier(v); in checkAndSet() local 80 if (qualifier != null) { in checkAndSet() 81 config.setSmallestScreenWidthQualifier(qualifier); in checkAndSet() 93 SmallestScreenWidthQualifier qualifier = new SmallestScreenWidthQualifier(); in getQualifier() local 94 qualifier.mValue = dp; in getQualifier() 95 return qualifier; in getQualifier() 104 public boolean isMatchFor(ResourceQualifier qualifier) { in isMatchFor() argument 106 if (qualifier instanceof SmallestScreenWidthQualifier) { in isMatchFor() 107 return mValue <= ((SmallestScreenWidthQualifier) qualifier).mValue; in isMatchFor()
|
D | ScreenHeightQualifier.java | 79 ScreenHeightQualifier qualifier = getQualifier(v); in checkAndSet() local 80 if (qualifier != null) { in checkAndSet() 81 config.setScreenHeightQualifier(qualifier); in checkAndSet() 93 ScreenHeightQualifier qualifier = new ScreenHeightQualifier(); in getQualifier() local 94 qualifier.mValue = dp; in getQualifier() 95 return qualifier; in getQualifier() 104 public boolean isMatchFor(ResourceQualifier qualifier) { in isMatchFor() argument 106 if (qualifier instanceof ScreenHeightQualifier) { in isMatchFor() 107 return mValue <= ((ScreenHeightQualifier) qualifier).mValue; in isMatchFor()
|
D | ScreenWidthQualifier.java | 79 ScreenWidthQualifier qualifier = getQualifier(v); in checkAndSet() local 80 if (qualifier != null) { in checkAndSet() 81 config.setScreenWidthQualifier(qualifier); in checkAndSet() 93 ScreenWidthQualifier qualifier = new ScreenWidthQualifier(); in getQualifier() local 94 qualifier.mValue = dp; in getQualifier() 95 return qualifier; in getQualifier() 104 public boolean isMatchFor(ResourceQualifier qualifier) { in isMatchFor() argument 106 if (qualifier instanceof ScreenWidthQualifier) { in isMatchFor() 107 return mValue <= ((ScreenWidthQualifier) qualifier).mValue; in isMatchFor()
|
D | CountryCodeQualifier.java | 54 CountryCodeQualifier qualifier = new CountryCodeQualifier(code); in getQualifier() local 55 return qualifier; in getQualifier() 113 CountryCodeQualifier qualifier = getQualifier(value); in checkAndSet() local 114 if (qualifier != null) { in checkAndSet() 115 config.setCountryCodeQualifier(qualifier); in checkAndSet() 123 public boolean equals(Object qualifier) { in equals() argument 124 if (qualifier instanceof CountryCodeQualifier) { in equals() 125 return mCode == ((CountryCodeQualifier)qualifier).mCode; in equals()
|
D | NetworkCodeQualifier.java | 54 NetworkCodeQualifier qualifier = new NetworkCodeQualifier(code); in getQualifier() local 55 return qualifier; in getQualifier() 125 NetworkCodeQualifier qualifier = new NetworkCodeQualifier(code); in checkAndSet() local 126 config.setNetworkCodeQualifier(qualifier); in checkAndSet() 134 public boolean equals(Object qualifier) { in equals() argument 135 if (qualifier instanceof NetworkCodeQualifier) { in equals() 136 return mCode == ((NetworkCodeQualifier)qualifier).mCode; in equals()
|
D | KeyboardStateQualifier.java | 67 KeyboardStateQualifier qualifier = new KeyboardStateQualifier(); in checkAndSet() local 68 qualifier.mValue = orientation; in checkAndSet() 69 config.setKeyboardStateQualifier(qualifier); in checkAndSet() 77 public boolean isMatchFor(ResourceQualifier qualifier) { in isMatchFor() argument 78 if (qualifier instanceof KeyboardStateQualifier) { in isMatchFor() 79 KeyboardStateQualifier referenceQualifier = (KeyboardStateQualifier)qualifier; in isMatchFor()
|
D | DensityQualifier.java | 87 DensityQualifier qualifier = new DensityQualifier(); in checkAndSet() local 88 qualifier.mValue = density; in checkAndSet() 89 config.setDensityQualifier(qualifier); in checkAndSet() 97 public boolean isMatchFor(ResourceQualifier qualifier) { in isMatchFor() argument 98 if (qualifier instanceof DensityQualifier) { in isMatchFor()
|
D | UiModeQualifier.java | 67 UiModeQualifier qualifier = new UiModeQualifier(mode); in checkAndSet() local 68 config.setUiModeQualifier(qualifier); in checkAndSet() 76 public boolean isMatchFor(ResourceQualifier qualifier) { in isMatchFor() argument 83 return ((UiModeQualifier)qualifier).mValue == mValue; in isMatchFor()
|
D | TextInputMethodQualifier.java | 68 TextInputMethodQualifier qualifier = new TextInputMethodQualifier(); in checkAndSet() local 69 qualifier.mValue = method; in checkAndSet() 70 config.setTextInputMethodQualifier(qualifier); in checkAndSet()
|
D | NavigationStateQualifier.java | 67 NavigationStateQualifier qualifier = new NavigationStateQualifier(); in checkAndSet() local 68 qualifier.mValue = state; in checkAndSet() 69 config.setNavigationStateQualifier(qualifier); in checkAndSet()
|
D | TouchScreenQualifier.java | 68 TouchScreenQualifier qualifier = new TouchScreenQualifier(); in checkAndSet() local 69 qualifier.mValue = type; in checkAndSet() 70 config.setTouchTypeQualifier(qualifier); in checkAndSet()
|
D | EnumBasedResourceQualifier.java | 40 public boolean equals(Object qualifier) { in equals() argument 41 if (qualifier instanceof EnumBasedResourceQualifier) { in equals() 42 return getEnumValue() == ((EnumBasedResourceQualifier)qualifier).getEnumValue(); in equals()
|
D | ResourceQualifier.java | 83 public boolean isMatchFor(ResourceQualifier qualifier) { in isMatchFor() argument 84 return equals(qualifier); in isMatchFor()
|
D | ScreenRatioQualifier.java | 63 ScreenRatioQualifier qualifier = new ScreenRatioQualifier(size); in checkAndSet() local 64 config.setScreenRatioQualifier(qualifier); in checkAndSet()
|
D | NavigationMethodQualifier.java | 67 NavigationMethodQualifier qualifier = new NavigationMethodQualifier(method); in checkAndSet() local 68 config.setNavigationMethodQualifier(qualifier); in checkAndSet()
|
D | NightModeQualifier.java | 67 NightModeQualifier qualifier = new NightModeQualifier(mode); in checkAndSet() local 68 config.setNightModeQualifier(qualifier); in checkAndSet()
|
D | ScreenSizeQualifier.java | 67 ScreenSizeQualifier qualifier = new ScreenSizeQualifier(size); in checkAndSet() local 68 config.setScreenSizeQualifier(qualifier); in checkAndSet()
|
D | ScreenOrientationQualifier.java | 66 ScreenOrientationQualifier qualifier = new ScreenOrientationQualifier(orientation); in checkAndSet() local 67 config.setScreenOrientationQualifier(qualifier); in checkAndSet()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/ui/ |
D | ConfigurationSelector.java | 234 boolean accept(ResourceQualifier qualifier); in accept() argument 319 ResourceQualifier qualifier = (ResourceQualifier)first; in ConfigurationSelector() 321 mBaseConfiguration.removeQualifier(qualifier); in ConfigurationSelector() 322 mSelectedConfiguration.addQualifier(qualifier); in ConfigurationSelector() 326 mSelectionTableViewer.setSelection(new StructuredSelection(qualifier), true); in ConfigurationSelector() 344 ResourceQualifier qualifier = (ResourceQualifier)first; in ConfigurationSelector() 346 mSelectedConfiguration.removeQualifier(qualifier); in ConfigurationSelector() 347 mBaseConfiguration.addQualifier(qualifier); in ConfigurationSelector() 721 public abstract void setQualifier(ResourceQualifier qualifier); in setQualifier() argument 764 CountryCodeQualifier qualifier = CountryCodeQualifier.getQualifier( in onTextChange() local [all …]
|
/sdk/lint/libs/lint_checks/src/com/android/tools/lint/checks/ |
D | TypoDetector.java | 117 for (String qualifier : Splitter.on('-').split(parent)) { in initLocale() 118 int qualifierLength = qualifier.length(); in initLocale() 120 char first = qualifier.charAt(0); in initLocale() 121 char second = qualifier.charAt(1); in initLocale() 123 mLanguage = qualifier; in initLocale() 125 } else if (qualifierLength == 3 && qualifier.charAt(0) == 'r') { in initLocale() 126 char first = qualifier.charAt(1); in initLocale() 127 char second = qualifier.charAt(2); in initLocale()
|