summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorTim Kilbourn <tkilbourn@google.com>2014-03-07 15:13:48 -0800
committerTim Kilbourn <tkilbourn@google.com>2014-03-13 15:02:54 -0700
commitf94b6a93a4afa910f4ee4869f001183f7b4c1de7 (patch)
tree860424258c61d30319f1334e1421054dbc8010bc /core/java/android
parentaa737c49df79749fe92b89d745eba7442762e2b5 (diff)
Add leanback device features.
android.software.leanback - the device supports leanback UIs. android.software.leanback_only - the device ONLY supports leanback UIs. leanback_only is a hidden feature for now. Change-Id: I497bd96464125ad81212c804e150f210f3e95af2
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/content/pm/PackageManager.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/core/java/android/content/pm/PackageManager.java b/core/java/android/content/pm/PackageManager.java
index 6440f0bab0eb..34a6f1d0d726 100644
--- a/core/java/android/content/pm/PackageManager.java
+++ b/core/java/android/content/pm/PackageManager.java
@@ -1225,6 +1225,26 @@ public abstract class PackageManager {
/**
* Feature for {@link #getSystemAvailableFeatures} and
+ * {@link #hasSystemFeature}: The device supports leanback UI. This is
+ * typically used in a living room television experience, but is a software
+ * feature unlike {@link #FEATURE_TELEVISION}. Devices running with this
+ * feature will use resources associated with the "television" UI mode.
+ */
+ @SdkConstant(SdkConstantType.FEATURE)
+ public static final String FEATURE_LEANBACK = "android.software.leanback";
+
+ /**
+ * Feature for {@link #getSystemAvailableFeatures} and
+ * {@link #hasSystemFeature}: The device supports only leanback UI. Only
+ * applications designed for this experience should be run, though this is
+ * not enforced by the system.
+ * @hide
+ */
+ @SdkConstant(SdkConstantType.FEATURE)
+ public static final String FEATURE_LEANBACK_ONLY = "android.software.leanback_only";
+
+ /**
+ * Feature for {@link #getSystemAvailableFeatures} and
* {@link #hasSystemFeature}: The device supports WiFi (802.11) networking.
*/
@SdkConstant(SdkConstantType.FEATURE)
@@ -1244,6 +1264,7 @@ public abstract class PackageManager {
* room television experience: displayed on a big screen, where the user
* is sitting far away from it, and the dominant form of input will be
* something like a DPAD, not through touch or mouse.
+ * @deprecated use {@link #FEATURE_LEANBACK} instead.
*/
@SdkConstant(SdkConstantType.FEATURE)
public static final String FEATURE_TELEVISION = "android.hardware.type.television";