aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVikas Marwaha <vikasmarwaha@google.com>2019-08-24 00:35:16 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2019-08-24 00:35:16 +0000
commitd1466030565fa421e8afdbe6952ecf3fcfa75610 (patch)
treeae779c9b2bb7badb6d3b1a9765abd1e650cf2aa2
parentd170d390d5ca78c582591f08044dd45a2106ae18 (diff)
parentacd4f250fc47bf6c76b9f060053757ee9e2775db (diff)
downloadplatform_compatibility_cdd-d1466030565fa421e8afdbe6952ecf3fcfa75610.tar.gz
platform_compatibility_cdd-d1466030565fa421e8afdbe6952ecf3fcfa75610.tar.bz2
platform_compatibility_cdd-d1466030565fa421e8afdbe6952ecf3fcfa75610.zip
Merge "CDD: Update aspect ratio requirement for devices with UI_MODE_TYPE_NORMAL" into qt-dev
-rw-r--r--7_hardware-compatibility/7_1_display-and-graphics.md48
1 files changed, 30 insertions, 18 deletions
diff --git a/7_hardware-compatibility/7_1_display-and-graphics.md b/7_hardware-compatibility/7_1_display-and-graphics.md
index 77f4d990..1de293fa 100644
--- a/7_hardware-compatibility/7_1_display-and-graphics.md
+++ b/7_hardware-compatibility/7_1_display-and-graphics.md
@@ -74,24 +74,36 @@ APIs and [Configuration](
https://developer.android.com/reference/android/content/res/Configuration.html)
APIs, MUST meet the following requirements:
-* [C-0-1] Device implementations with the Configuration.uiMode set as
- UI_MODE_TYPE_NORMAL MUST have an aspect ratio value between 1.3333 (4:3) and
- 1.86 (roughly 16:9), unless the app can be deemed as ready to be stretched
- longer by meeting one of the following conditions:
-
- * The app has declared that it supports a larger screen aspect ratio through
- the android.max_aspect metadata value.
-
- * The app declares it is resizeable via the [android:resizeableActivity](
- https://developer.android.com/guide/topics/ui/multi-window.html#configuring)
- attribute or is targeting API level 24 or higher and does not declare it
- is not resizeable via the `android:resizeableActivity` attribute.
-
- * The app is targeting API level 26 or higher and does not declare a
- [`android:maxAspectRatio`] that would restrict the allowed aspect ratio.
- 04:36PM
-
-* [C-0-2] Device implementations with the `Configuration.uiMode` set as
+* [C-0-1] Device implementations with `Configuration.uiMode` set to
+ `UI_MODE_TYPE_NORMAL` MUST have an aspect ratio value less than or equal
+ to 1.86 (roughly 16:9), unless the app meets one of the following
+ conditions:
+
+ * The app has declared that it supports a larger screen aspect ratio
+ through the [`android.max_aspect`](
+ https://developer.android.com/guide/practices/screens-distribution)
+ metadata value.
+ * The app declares it is resizeable via the [android:resizeableActivity](
+ https://developer.android.com/guide/topics/ui/multi-window.html#configuring)
+ attribute.
+ * The app targets API level 24 or higher and does not declare an
+ [`android:maxAspectRatio`](
+ https://developer.android.com/reference/android/R.attr.html#maxAspectRatio)
+ that would restrict the allowed aspect ratio.
+
+* [C-0-2] Device implementations with `Configuration.uiMode` set to
+ `UI_MODE_TYPE_NORMAL` MUST have an aspect ratio value equal to or greater
+ than 1.3333 (4:3), unless the app can be stretched wider by meeting one of
+ the following conditions:
+
+ * The app declares it is resizeable via the [android:resizeableActivity](
+ https://developer.android.com/guide/topics/ui/multi-window.html#configuring)
+ attribute.
+ * The app declares an [`android:minAspectRatio`](
+ https://developer.android.com/reference/android/R.attr.html#minAspectRatio)
+ that would restrict the allowed aspect ratio.
+
+* [C-0-3] Device implementations with the `Configuration.uiMode` set as
`UI_MODE_TYPE_WATCH` MUST have an aspect ratio value set as 1.0 (1:1).
#### 7.1.1.3\. Screen Density