summaryrefslogtreecommitdiffstats
path: root/core/java/android/content
diff options
context:
space:
mode:
authorTodd Kennedy <toddke@google.com>2015-04-22 14:28:25 -0700
committerTodd Kennedy <toddke@google.com>2015-04-22 14:28:25 -0700
commit7f95a00ec0ed9d48579e758249e7ffb06371b2b8 (patch)
treecb3cd79eea5cb09ce455f7e0696cd0f3c9635942 /core/java/android/content
parent4ff2617265500ecf6ccd48ded034fdc7e4c90e35 (diff)
downloadframeworks_base-7f95a00ec0ed9d48579e758249e7ffb06371b2b8.zip
frameworks_base-7f95a00ec0ed9d48579e758249e7ffb06371b2b8.tar.gz
frameworks_base-7f95a00ec0ed9d48579e758249e7ffb06371b2b8.tar.bz2
Add hardware feature describing a car
We need to define a hardware feature for when Android is running embedded on a vehicle's headunit. This is not applicable when running Android on a phone and projecting onto a headunit. Bug: 20016089 Change-Id: I70e94564f7493afe70a49bf582a627c5ea9f0a60
Diffstat (limited to 'core/java/android/content')
-rw-r--r--core/java/android/content/pm/PackageManager.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/core/java/android/content/pm/PackageManager.java b/core/java/android/content/pm/PackageManager.java
index a0cec50..e4108b1 100644
--- a/core/java/android/content/pm/PackageManager.java
+++ b/core/java/android/content/pm/PackageManager.java
@@ -1574,6 +1574,21 @@ public abstract class PackageManager {
/**
* Feature for {@link #getSystemAvailableFeatures} and
* {@link #hasSystemFeature}: This is a device dedicated to showing UI
+ * on a vehicle headunit. A headunit here is defined to be inside a
+ * vehicle that may or may not be moving. A headunit uses either a
+ * primary display in the center console and/or additional displays in
+ * the instrument cluster or elsewhere in the vehicle. Headunit display(s)
+ * have limited size and resolution. The user will likely be focused on
+ * driving so limiting driver distraction is a primary concern. User input
+ * can be a variety of hard buttons, touch, rotary controllers and even mouse-
+ * like interfaces.
+ */
+ @SdkConstant(SdkConstantType.FEATURE)
+ public static final String FEATURE_AUTOMOTIVE = "android.hardware.type.automotive";
+
+ /**
+ * Feature for {@link #getSystemAvailableFeatures} and
+ * {@link #hasSystemFeature}: This is a device dedicated to showing UI
* on a television. Television here is defined to be a typical living
* 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