Lines Matching refs:qualifier
204 * Implementation of {@link VerifyListener} for the Density qualifier.
209 * Implementation of {@link VerifyListener} for the Screen Dimension qualifier.
230 /** mode forcing the qualifier values to be valid on a device.
231 * For instance {@link Density#NODPI} is a valid qualifier for a resource configuration but
235 * which non-empty qualifier to select. */
245 * Returns true of the qualifier is accepted.
247 boolean accept(ResourceQualifier qualifier);
332 ResourceQualifier qualifier = (ResourceQualifier)first;
334 mBaseConfiguration.removeQualifier(qualifier);
335 mSelectedConfiguration.addQualifier(qualifier);
339 mSelectionTableViewer.setSelection(new StructuredSelection(qualifier), true);
357 ResourceQualifier qualifier = (ResourceQualifier)first;
359 mSelectedConfiguration.removeQualifier(qualifier);
360 mBaseConfiguration.addQualifier(qualifier);
390 // always show the qualifier value in this case.
438 // 4th column is the detail of the selected qualifier
568 * Returns the first invalid qualifier of the configuration being edited/created,
731 public abstract void setQualifier(ResourceQualifier qualifier);
768 // empty string, means a qualifier with no value.
769 // Since the qualifier classes are immutable, and we don't want to
770 // remove the qualifier from the configuration, we create a new default one.
774 CountryCodeQualifier qualifier = CountryCodeQualifier.getQualifier(
776 if (qualifier != null) {
777 mSelectedConfiguration.setCountryCodeQualifier(qualifier);
795 public void setQualifier(ResourceQualifier qualifier) {
796 CountryCodeQualifier q = (CountryCodeQualifier)qualifier;
834 // empty string, means a qualifier with no value.
835 // Since the qualifier classes are immutable, and we don't want to
836 // remove the qualifier from the configuration, we create a new default one.
840 NetworkCodeQualifier qualifier
842 if (qualifier != null) {
843 mSelectedConfiguration.setNetworkCodeQualifier(qualifier);
861 public void setQualifier(ResourceQualifier qualifier) {
862 NetworkCodeQualifier q = (NetworkCodeQualifier)qualifier;
924 // empty string, means no qualifier.
925 // Since the qualifier classes are immutable, and we don't want to
926 // remove the qualifier from the configuration, we create a new default one.
929 LocaleQualifier qualifier = LocaleQualifier.getQualifier(value);
930 if (qualifier != null) {
931 mSelectedConfiguration.setLocaleQualifier(qualifier);
943 public void setQualifier(ResourceQualifier qualifier) {
944 LocaleQualifier q = (LocaleQualifier)qualifier;
987 // empty selection, means no qualifier.
988 // Since the qualifier classes are immutable, and we don't want to
989 // remove the qualifier from the configuration, we create a new default one.
999 public void setQualifier(ResourceQualifier qualifier) {
1000 LayoutDirectionQualifier q = (LayoutDirectionQualifier)qualifier;
1048 // if one of the strings is empty, reset to no qualifier.
1049 // Since the qualifier classes are immutable, and we don't want to
1050 // remove the qualifier from the configuration, we create a new default one.
1054 SmallestScreenWidthQualifier qualifier = SmallestScreenWidthQualifier.getQualifier(
1057 if (qualifier != null) {
1058 mSelectedConfiguration.setSmallestScreenWidthQualifier(qualifier);
1060 // Failure! Looks like the value is wrong, reset the qualifier
1061 // Since the qualifier classes are immutable, and we don't want to
1062 // remove the qualifier from the configuration, we create a new default one.
1073 public void setQualifier(ResourceQualifier qualifier) {
1074 SmallestScreenWidthQualifier q = (SmallestScreenWidthQualifier)qualifier;
1116 // if one of the strings is empty, reset to no qualifier.
1117 // Since the qualifier classes are immutable, and we don't want to
1118 // remove the qualifier from the configuration, we create a new default one.
1121 ScreenWidthQualifier qualifier = ScreenWidthQualifier.getQualifier(size);
1123 if (qualifier != null) {
1124 mSelectedConfiguration.setScreenWidthQualifier(qualifier);
1126 // Failure! Looks like the value is wrong, reset the qualifier
1127 // Since the qualifier classes are immutable, and we don't want to
1128 // remove the qualifier from the configuration, we create a new default one.
1139 public void setQualifier(ResourceQualifier qualifier) {
1140 ScreenWidthQualifier q = (ScreenWidthQualifier)qualifier;
1182 // if one of the strings is empty, reset to no qualifier.
1183 // Since the qualifier classes are immutable, and we don't want to
1184 // remove the qualifier from the configuration, we create a new default one.
1187 ScreenHeightQualifier qualifier = ScreenHeightQualifier.getQualifier(size);
1189 if (qualifier != null) {
1190 mSelectedConfiguration.setScreenHeightQualifier(qualifier);
1192 // Failure! Looks like the value is wrong, reset the qualifier
1193 // Since the qualifier classes are immutable, and we don't want to
1194 // remove the qualifier from the configuration, we create a new default one.
1205 public void setQualifier(ResourceQualifier qualifier) {
1206 ScreenHeightQualifier q = (ScreenHeightQualifier)qualifier;
1247 // empty selection, means no qualifier.
1248 // Since the qualifier classes are immutable, and we don't want to
1249 // remove the qualifier from the configuration, we create a new default one.
1259 public void setQualifier(ResourceQualifier qualifier) {
1260 ScreenSizeQualifier q = (ScreenSizeQualifier)qualifier;
1305 // empty selection, means no qualifier.
1306 // Since the qualifier classes are immutable, and we don't want to
1307 // remove the qualifier from the configuration, we create a new default one.
1317 public void setQualifier(ResourceQualifier qualifier) {
1318 ScreenRatioQualifier q = (ScreenRatioQualifier)qualifier;
1363 // empty selection, means no qualifier.
1364 // Since the qualifier classes are immutable, and we don't want to
1365 // remove the qualifier from the configuration, we create a new default one.
1375 public void setQualifier(ResourceQualifier qualifier) {
1376 ScreenOrientationQualifier q = (ScreenOrientationQualifier)qualifier;
1421 // empty selection, means no qualifier.
1422 // Since the qualifier classes are immutable, and we don't want to
1423 // remove the qualifier from the configuration, we create a new default one.
1432 public void setQualifier(ResourceQualifier qualifier) {
1433 UiModeQualifier q = (UiModeQualifier)qualifier;
1478 // empty selection, means no qualifier.
1479 // Since the qualifier classes are immutable, and we don't want to
1480 // remove the qualifier from the configuration, we create a new default one.
1489 public void setQualifier(ResourceQualifier qualifier) {
1490 NightModeQualifier q = (NightModeQualifier)qualifier;
1535 // empty selection, means no qualifier.
1536 // Since the qualifier classes are immutable, and we don't want to
1537 // remove the qualifier from the configuration, we create a new default one.
1547 public void setQualifier(ResourceQualifier qualifier) {
1548 DensityQualifier q = (DensityQualifier)qualifier;
1593 // empty selection, means no qualifier.
1594 // Since the qualifier classes are immutable, and we don't want to
1595 // remove the qualifier from the configuration, we create a new default one.
1604 public void setQualifier(ResourceQualifier qualifier) {
1605 TouchScreenQualifier q = (TouchScreenQualifier)qualifier;
1650 // empty selection, means no qualifier.
1651 // Since the qualifier classes are immutable, and we don't want to
1652 // remove the qualifier from the configuration, we create a new default one.
1662 public void setQualifier(ResourceQualifier qualifier) {
1663 KeyboardStateQualifier q = (KeyboardStateQualifier)qualifier;
1708 // empty selection, means no qualifier.
1709 // Since the qualifier classes are immutable, and we don't want to
1710 // remove the qualifier from the configuration, we create a new default one.
1720 public void setQualifier(ResourceQualifier qualifier) {
1721 TextInputMethodQualifier q = (TextInputMethodQualifier)qualifier;
1766 // empty selection, means no qualifier.
1767 // Since the qualifier classes are immutable, and we don't want to
1768 // remove the qualifier from the configuration, we create a new default one.
1777 public void setQualifier(ResourceQualifier qualifier) {
1778 NavigationStateQualifier q = (NavigationStateQualifier)qualifier;
1824 // empty selection, means no qualifier.
1825 // Since the qualifier classes are immutable, and we don't want to
1826 // remove the qualifier from the configuration, we create a new default one.
1836 public void setQualifier(ResourceQualifier qualifier) {
1837 NavigationMethodQualifier q = (NavigationMethodQualifier)qualifier;
1892 // if one of the strings is empty, reset to no qualifier.
1893 // Since the qualifier classes are immutable, and we don't want to
1894 // remove the qualifier from the configuration, we create a new default one.
1897 ScreenDimensionQualifier qualifier = ScreenDimensionQualifier.getQualifier(size1,
1900 if (qualifier != null) {
1901 mSelectedConfiguration.setScreenDimensionQualifier(qualifier);
1903 // Failure! Looks like the value is wrong, reset the qualifier
1904 // Since the qualifier classes are immutable, and we don't want to
1905 // remove the qualifier from the configuration, we create a new default one.
1916 public void setQualifier(ResourceQualifier qualifier) {
1917 ScreenDimensionQualifier q = (ScreenDimensionQualifier)qualifier;
1956 // empty string, means a qualifier with no value.
1957 // Since the qualifier classes are immutable, and we don't want to
1958 // remove the qualifier from the configuration, we create a new default one.
1962 VersionQualifier qualifier = VersionQualifier.getQualifier(
1964 if (qualifier != null) {
1965 mSelectedConfiguration.setVersionQualifier(qualifier);
1982 public void setQualifier(ResourceQualifier qualifier) {
1983 VersionQualifier q = (VersionQualifier)qualifier;