aboutsummaryrefslogtreecommitdiffstats
path: root/ide_common/src/com/android/ide/common
diff options
context:
space:
mode:
Diffstat (limited to 'ide_common/src/com/android/ide/common')
-rw-r--r--ide_common/src/com/android/ide/common/resources/configuration/CountryCodeQualifier.java5
-rw-r--r--ide_common/src/com/android/ide/common/resources/configuration/DensityQualifier.java5
-rw-r--r--ide_common/src/com/android/ide/common/resources/configuration/KeyboardStateQualifier.java5
-rw-r--r--ide_common/src/com/android/ide/common/resources/configuration/LanguageQualifier.java5
-rw-r--r--ide_common/src/com/android/ide/common/resources/configuration/NavigationMethodQualifier.java5
-rw-r--r--ide_common/src/com/android/ide/common/resources/configuration/NavigationStateQualifier.java5
-rw-r--r--ide_common/src/com/android/ide/common/resources/configuration/NetworkCodeQualifier.java5
-rw-r--r--ide_common/src/com/android/ide/common/resources/configuration/NightModeQualifier.java5
-rw-r--r--ide_common/src/com/android/ide/common/resources/configuration/RegionQualifier.java5
-rw-r--r--ide_common/src/com/android/ide/common/resources/configuration/ResourceQualifier.java12
-rw-r--r--ide_common/src/com/android/ide/common/resources/configuration/ScreenDimensionQualifier.java10
-rw-r--r--ide_common/src/com/android/ide/common/resources/configuration/ScreenHeightQualifier.java5
-rw-r--r--ide_common/src/com/android/ide/common/resources/configuration/ScreenOrientationQualifier.java5
-rw-r--r--ide_common/src/com/android/ide/common/resources/configuration/ScreenRatioQualifier.java5
-rw-r--r--ide_common/src/com/android/ide/common/resources/configuration/ScreenSizeQualifier.java5
-rw-r--r--ide_common/src/com/android/ide/common/resources/configuration/ScreenWidthQualifier.java5
-rw-r--r--ide_common/src/com/android/ide/common/resources/configuration/SmallestScreenWidthQualifier.java5
-rw-r--r--ide_common/src/com/android/ide/common/resources/configuration/TextInputMethodQualifier.java5
-rw-r--r--ide_common/src/com/android/ide/common/resources/configuration/TouchScreenQualifier.java5
-rw-r--r--ide_common/src/com/android/ide/common/resources/configuration/UiModeQualifier.java5
-rw-r--r--ide_common/src/com/android/ide/common/resources/configuration/VersionQualifier.java5
21 files changed, 117 insertions, 0 deletions
diff --git a/ide_common/src/com/android/ide/common/resources/configuration/CountryCodeQualifier.java b/ide_common/src/com/android/ide/common/resources/configuration/CountryCodeQualifier.java
index 7195ba5..eb7cc0d 100644
--- a/ide_common/src/com/android/ide/common/resources/configuration/CountryCodeQualifier.java
+++ b/ide_common/src/com/android/ide/common/resources/configuration/CountryCodeQualifier.java
@@ -94,6 +94,11 @@ public final class CountryCodeQualifier extends ResourceQualifier {
}
@Override
+ public int since() {
+ return 1;
+ }
+
+ @Override
public boolean isValid() {
return mCode != DEFAULT_CODE;
}
diff --git a/ide_common/src/com/android/ide/common/resources/configuration/DensityQualifier.java b/ide_common/src/com/android/ide/common/resources/configuration/DensityQualifier.java
index bb23b44..a9e4a01 100644
--- a/ide_common/src/com/android/ide/common/resources/configuration/DensityQualifier.java
+++ b/ide_common/src/com/android/ide/common/resources/configuration/DensityQualifier.java
@@ -60,6 +60,11 @@ public final class DensityQualifier extends EnumBasedResourceQualifier {
}
@Override
+ public int since() {
+ return 4;
+ }
+
+ @Override
public boolean checkAndSet(String value, FolderConfiguration config) {
Density density = Density.getEnum(value);
if (density == null) {
diff --git a/ide_common/src/com/android/ide/common/resources/configuration/KeyboardStateQualifier.java b/ide_common/src/com/android/ide/common/resources/configuration/KeyboardStateQualifier.java
index 1ca5dad..1397808 100644
--- a/ide_common/src/com/android/ide/common/resources/configuration/KeyboardStateQualifier.java
+++ b/ide_common/src/com/android/ide/common/resources/configuration/KeyboardStateQualifier.java
@@ -56,6 +56,11 @@ public final class KeyboardStateQualifier extends EnumBasedResourceQualifier {
}
@Override
+ public int since() {
+ return 1;
+ }
+
+ @Override
public boolean checkAndSet(String value, FolderConfiguration config) {
KeyboardState orientation = KeyboardState.getEnum(value);
if (orientation != null) {
diff --git a/ide_common/src/com/android/ide/common/resources/configuration/LanguageQualifier.java b/ide_common/src/com/android/ide/common/resources/configuration/LanguageQualifier.java
index 972a50f..76514e2 100644
--- a/ide_common/src/com/android/ide/common/resources/configuration/LanguageQualifier.java
+++ b/ide_common/src/com/android/ide/common/resources/configuration/LanguageQualifier.java
@@ -87,6 +87,11 @@ public final class LanguageQualifier extends ResourceQualifier {
}
@Override
+ public int since() {
+ return 1;
+ }
+
+ @Override
public boolean isValid() {
return mValue != null;
}
diff --git a/ide_common/src/com/android/ide/common/resources/configuration/NavigationMethodQualifier.java b/ide_common/src/com/android/ide/common/resources/configuration/NavigationMethodQualifier.java
index 6c7e31f..f40bc6c 100644
--- a/ide_common/src/com/android/ide/common/resources/configuration/NavigationMethodQualifier.java
+++ b/ide_common/src/com/android/ide/common/resources/configuration/NavigationMethodQualifier.java
@@ -56,6 +56,11 @@ public final class NavigationMethodQualifier extends EnumBasedResourceQualifier
}
@Override
+ public int since() {
+ return 1;
+ }
+
+ @Override
public boolean checkAndSet(String value, FolderConfiguration config) {
Navigation method = Navigation.getEnum(value);
if (method != null) {
diff --git a/ide_common/src/com/android/ide/common/resources/configuration/NavigationStateQualifier.java b/ide_common/src/com/android/ide/common/resources/configuration/NavigationStateQualifier.java
index 9b1e07e..91b81df 100644
--- a/ide_common/src/com/android/ide/common/resources/configuration/NavigationStateQualifier.java
+++ b/ide_common/src/com/android/ide/common/resources/configuration/NavigationStateQualifier.java
@@ -56,6 +56,11 @@ public final class NavigationStateQualifier extends EnumBasedResourceQualifier {
}
@Override
+ public int since() {
+ return 1;
+ }
+
+ @Override
public boolean checkAndSet(String value, FolderConfiguration config) {
NavigationState state = NavigationState.getEnum(value);
if (state != null) {
diff --git a/ide_common/src/com/android/ide/common/resources/configuration/NetworkCodeQualifier.java b/ide_common/src/com/android/ide/common/resources/configuration/NetworkCodeQualifier.java
index 295e8ab..1ef2015 100644
--- a/ide_common/src/com/android/ide/common/resources/configuration/NetworkCodeQualifier.java
+++ b/ide_common/src/com/android/ide/common/resources/configuration/NetworkCodeQualifier.java
@@ -94,6 +94,11 @@ public final class NetworkCodeQualifier extends ResourceQualifier {
}
@Override
+ public int since() {
+ return 1;
+ }
+
+ @Override
public boolean isValid() {
return mCode != DEFAULT_CODE;
}
diff --git a/ide_common/src/com/android/ide/common/resources/configuration/NightModeQualifier.java b/ide_common/src/com/android/ide/common/resources/configuration/NightModeQualifier.java
index 9e49091..d3b6760 100644
--- a/ide_common/src/com/android/ide/common/resources/configuration/NightModeQualifier.java
+++ b/ide_common/src/com/android/ide/common/resources/configuration/NightModeQualifier.java
@@ -56,6 +56,11 @@ public final class NightModeQualifier extends EnumBasedResourceQualifier {
}
@Override
+ public int since() {
+ return 8;
+ }
+
+ @Override
public boolean checkAndSet(String value, FolderConfiguration config) {
NightMode mode = NightMode.getEnum(value);
if (mode != null) {
diff --git a/ide_common/src/com/android/ide/common/resources/configuration/RegionQualifier.java b/ide_common/src/com/android/ide/common/resources/configuration/RegionQualifier.java
index 2b9c29e..bd033bd 100644
--- a/ide_common/src/com/android/ide/common/resources/configuration/RegionQualifier.java
+++ b/ide_common/src/com/android/ide/common/resources/configuration/RegionQualifier.java
@@ -92,6 +92,11 @@ public final class RegionQualifier extends ResourceQualifier {
}
@Override
+ public int since() {
+ return 1;
+ }
+
+ @Override
public boolean isValid() {
return mValue != null;
}
diff --git a/ide_common/src/com/android/ide/common/resources/configuration/ResourceQualifier.java b/ide_common/src/com/android/ide/common/resources/configuration/ResourceQualifier.java
index 9f0b07f..2997c8f 100644
--- a/ide_common/src/com/android/ide/common/resources/configuration/ResourceQualifier.java
+++ b/ide_common/src/com/android/ide/common/resources/configuration/ResourceQualifier.java
@@ -35,6 +35,18 @@ public abstract class ResourceQualifier implements Comparable<ResourceQualifier>
public abstract String getShortName();
/**
+ * Returns when this qualifier was added to Android.
+ */
+ public abstract int since();
+
+ /**
+ * Whether this qualifier is deprecated.
+ */
+ public boolean deprecated() {
+ return false;
+ }
+
+ /**
* Returns whether the qualifier has a valid filter value.
*/
public abstract boolean isValid();
diff --git a/ide_common/src/com/android/ide/common/resources/configuration/ScreenDimensionQualifier.java b/ide_common/src/com/android/ide/common/resources/configuration/ScreenDimensionQualifier.java
index 9b42b88..dce6c68 100644
--- a/ide_common/src/com/android/ide/common/resources/configuration/ScreenDimensionQualifier.java
+++ b/ide_common/src/com/android/ide/common/resources/configuration/ScreenDimensionQualifier.java
@@ -71,6 +71,16 @@ public final class ScreenDimensionQualifier extends ResourceQualifier {
}
@Override
+ public int since() {
+ return 1;
+ }
+
+ @Override
+ public boolean deprecated() {
+ return true;
+ }
+
+ @Override
public boolean isValid() {
return mValue1 != DEFAULT_SIZE && mValue2 != DEFAULT_SIZE;
}
diff --git a/ide_common/src/com/android/ide/common/resources/configuration/ScreenHeightQualifier.java b/ide_common/src/com/android/ide/common/resources/configuration/ScreenHeightQualifier.java
index 5437f71..08bba61 100644
--- a/ide_common/src/com/android/ide/common/resources/configuration/ScreenHeightQualifier.java
+++ b/ide_common/src/com/android/ide/common/resources/configuration/ScreenHeightQualifier.java
@@ -56,6 +56,11 @@ public final class ScreenHeightQualifier extends ResourceQualifier {
}
@Override
+ public int since() {
+ return 13;
+ }
+
+ @Override
public boolean hasFakeValue() {
return false;
}
diff --git a/ide_common/src/com/android/ide/common/resources/configuration/ScreenOrientationQualifier.java b/ide_common/src/com/android/ide/common/resources/configuration/ScreenOrientationQualifier.java
index c26a6f4..732a078 100644
--- a/ide_common/src/com/android/ide/common/resources/configuration/ScreenOrientationQualifier.java
+++ b/ide_common/src/com/android/ide/common/resources/configuration/ScreenOrientationQualifier.java
@@ -55,6 +55,11 @@ public final class ScreenOrientationQualifier extends EnumBasedResourceQualifier
}
@Override
+ public int since() {
+ return 1;
+ }
+
+ @Override
public boolean checkAndSet(String value, FolderConfiguration config) {
ScreenOrientation orientation = ScreenOrientation.getEnum(value);
if (orientation != null) {
diff --git a/ide_common/src/com/android/ide/common/resources/configuration/ScreenRatioQualifier.java b/ide_common/src/com/android/ide/common/resources/configuration/ScreenRatioQualifier.java
index 4cbf0a4..b45946b 100644
--- a/ide_common/src/com/android/ide/common/resources/configuration/ScreenRatioQualifier.java
+++ b/ide_common/src/com/android/ide/common/resources/configuration/ScreenRatioQualifier.java
@@ -52,6 +52,11 @@ public class ScreenRatioQualifier extends EnumBasedResourceQualifier {
}
@Override
+ public int since() {
+ return 4;
+ }
+
+ @Override
public boolean checkAndSet(String value, FolderConfiguration config) {
ScreenRatio size = ScreenRatio.getEnum(value);
if (size != null) {
diff --git a/ide_common/src/com/android/ide/common/resources/configuration/ScreenSizeQualifier.java b/ide_common/src/com/android/ide/common/resources/configuration/ScreenSizeQualifier.java
index 7ab6dd8..77193a2 100644
--- a/ide_common/src/com/android/ide/common/resources/configuration/ScreenSizeQualifier.java
+++ b/ide_common/src/com/android/ide/common/resources/configuration/ScreenSizeQualifier.java
@@ -56,6 +56,11 @@ public class ScreenSizeQualifier extends EnumBasedResourceQualifier {
}
@Override
+ public int since() {
+ return 4;
+ }
+
+ @Override
public boolean checkAndSet(String value, FolderConfiguration config) {
ScreenSize size = ScreenSize.getEnum(value);
if (size != null) {
diff --git a/ide_common/src/com/android/ide/common/resources/configuration/ScreenWidthQualifier.java b/ide_common/src/com/android/ide/common/resources/configuration/ScreenWidthQualifier.java
index cf1e71a..ab9134b 100644
--- a/ide_common/src/com/android/ide/common/resources/configuration/ScreenWidthQualifier.java
+++ b/ide_common/src/com/android/ide/common/resources/configuration/ScreenWidthQualifier.java
@@ -56,6 +56,11 @@ public final class ScreenWidthQualifier extends ResourceQualifier {
}
@Override
+ public int since() {
+ return 13;
+ }
+
+ @Override
public boolean hasFakeValue() {
return false;
}
diff --git a/ide_common/src/com/android/ide/common/resources/configuration/SmallestScreenWidthQualifier.java b/ide_common/src/com/android/ide/common/resources/configuration/SmallestScreenWidthQualifier.java
index 2f82e79..35d1ab1 100644
--- a/ide_common/src/com/android/ide/common/resources/configuration/SmallestScreenWidthQualifier.java
+++ b/ide_common/src/com/android/ide/common/resources/configuration/SmallestScreenWidthQualifier.java
@@ -56,6 +56,11 @@ public final class SmallestScreenWidthQualifier extends ResourceQualifier {
}
@Override
+ public int since() {
+ return 13;
+ }
+
+ @Override
public boolean hasFakeValue() {
return false;
}
diff --git a/ide_common/src/com/android/ide/common/resources/configuration/TextInputMethodQualifier.java b/ide_common/src/com/android/ide/common/resources/configuration/TextInputMethodQualifier.java
index 3d772aa..784d43d 100644
--- a/ide_common/src/com/android/ide/common/resources/configuration/TextInputMethodQualifier.java
+++ b/ide_common/src/com/android/ide/common/resources/configuration/TextInputMethodQualifier.java
@@ -57,6 +57,11 @@ public final class TextInputMethodQualifier extends EnumBasedResourceQualifier {
}
@Override
+ public int since() {
+ return 1;
+ }
+
+ @Override
public boolean checkAndSet(String value, FolderConfiguration config) {
Keyboard method = Keyboard.getEnum(value);
if (method != null) {
diff --git a/ide_common/src/com/android/ide/common/resources/configuration/TouchScreenQualifier.java b/ide_common/src/com/android/ide/common/resources/configuration/TouchScreenQualifier.java
index eeb68d2..dce9f1d 100644
--- a/ide_common/src/com/android/ide/common/resources/configuration/TouchScreenQualifier.java
+++ b/ide_common/src/com/android/ide/common/resources/configuration/TouchScreenQualifier.java
@@ -57,6 +57,11 @@ public final class TouchScreenQualifier extends EnumBasedResourceQualifier {
}
@Override
+ public int since() {
+ return 1;
+ }
+
+ @Override
public boolean checkAndSet(String value, FolderConfiguration config) {
TouchScreen type = TouchScreen.getEnum(value);
if (type != null) {
diff --git a/ide_common/src/com/android/ide/common/resources/configuration/UiModeQualifier.java b/ide_common/src/com/android/ide/common/resources/configuration/UiModeQualifier.java
index f9ad0b7..1e302c5 100644
--- a/ide_common/src/com/android/ide/common/resources/configuration/UiModeQualifier.java
+++ b/ide_common/src/com/android/ide/common/resources/configuration/UiModeQualifier.java
@@ -56,6 +56,11 @@ public final class UiModeQualifier extends EnumBasedResourceQualifier {
}
@Override
+ public int since() {
+ return 8;
+ }
+
+ @Override
public boolean checkAndSet(String value, FolderConfiguration config) {
UiMode mode = UiMode.getEnum(value);
if (mode != null) {
diff --git a/ide_common/src/com/android/ide/common/resources/configuration/VersionQualifier.java b/ide_common/src/com/android/ide/common/resources/configuration/VersionQualifier.java
index 2adf9a4..078d4af 100644
--- a/ide_common/src/com/android/ide/common/resources/configuration/VersionQualifier.java
+++ b/ide_common/src/com/android/ide/common/resources/configuration/VersionQualifier.java
@@ -95,6 +95,11 @@ public final class VersionQualifier extends ResourceQualifier {
}
@Override
+ public int since() {
+ return 1;
+ }
+
+ @Override
public boolean isValid() {
return mVersion != DEFAULT_VERSION;
}