Home
last modified time | relevance | path

Searched refs:qualifier (Results 1 – 25 of 48) sorted by relevance

12

/sdk/sdk_common/src/com/android/ide/common/resources/configuration/
DFolderConfiguration.java210 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 …]
DScreenDimensionQualifier.java100 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 …]
DVersionQualifier.java54 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 …]
DLanguageQualifier.java41 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()
DRegionQualifier.java43 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()
DSmallestScreenWidthQualifier.java79 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()
DScreenHeightQualifier.java79 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()
DScreenWidthQualifier.java79 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()
DCountryCodeQualifier.java54 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()
DNetworkCodeQualifier.java54 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()
DKeyboardStateQualifier.java67 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()
DDensityQualifier.java87 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()
DUiModeQualifier.java67 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()
DTextInputMethodQualifier.java68 TextInputMethodQualifier qualifier = new TextInputMethodQualifier(); in checkAndSet() local
69 qualifier.mValue = method; in checkAndSet()
70 config.setTextInputMethodQualifier(qualifier); in checkAndSet()
DNavigationStateQualifier.java67 NavigationStateQualifier qualifier = new NavigationStateQualifier(); in checkAndSet() local
68 qualifier.mValue = state; in checkAndSet()
69 config.setNavigationStateQualifier(qualifier); in checkAndSet()
DTouchScreenQualifier.java68 TouchScreenQualifier qualifier = new TouchScreenQualifier(); in checkAndSet() local
69 qualifier.mValue = type; in checkAndSet()
70 config.setTouchTypeQualifier(qualifier); in checkAndSet()
DEnumBasedResourceQualifier.java40 public boolean equals(Object qualifier) { in equals() argument
41 if (qualifier instanceof EnumBasedResourceQualifier) { in equals()
42 return getEnumValue() == ((EnumBasedResourceQualifier)qualifier).getEnumValue(); in equals()
DResourceQualifier.java83 public boolean isMatchFor(ResourceQualifier qualifier) { in isMatchFor() argument
84 return equals(qualifier); in isMatchFor()
DScreenRatioQualifier.java63 ScreenRatioQualifier qualifier = new ScreenRatioQualifier(size); in checkAndSet() local
64 config.setScreenRatioQualifier(qualifier); in checkAndSet()
DNavigationMethodQualifier.java67 NavigationMethodQualifier qualifier = new NavigationMethodQualifier(method); in checkAndSet() local
68 config.setNavigationMethodQualifier(qualifier); in checkAndSet()
DNightModeQualifier.java67 NightModeQualifier qualifier = new NightModeQualifier(mode); in checkAndSet() local
68 config.setNightModeQualifier(qualifier); in checkAndSet()
DScreenSizeQualifier.java67 ScreenSizeQualifier qualifier = new ScreenSizeQualifier(size); in checkAndSet() local
68 config.setScreenSizeQualifier(qualifier); in checkAndSet()
DScreenOrientationQualifier.java66 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/
DConfigurationSelector.java234 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/
DTypoDetector.java117 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()

12