aboutsummaryrefslogtreecommitdiff
path: root/car-lib/src/android/car/drivingstate
diff options
context:
space:
mode:
authorRam Periathiruvadi <ramperry@google.com>2018-04-13 12:22:13 -0700
committerRam Periathiruvadi <ramperry@google.com>2018-04-13 12:22:13 -0700
commitd980d620528b7716e4ba2be622668394067a05a0 (patch)
tree9792fed9f33d37e9b600c086b2dbb5c0c2b047a2 /car-lib/src/android/car/drivingstate
parent13e944dec3d25c713325b01fa82f3831e9228f62 (diff)
downloadCar-d980d620528b7716e4ba2be622668394067a05a0.tar.gz
Update javadoc about new CarUxRestrictions APIs
Bug: 76018251 Test: compile and boot Change-Id: I0a8dd54e95be407bd94f64afbc879c89a7eacb35
Diffstat (limited to 'car-lib/src/android/car/drivingstate')
-rw-r--r--car-lib/src/android/car/drivingstate/CarUxRestrictions.java39
1 files changed, 33 insertions, 6 deletions
diff --git a/car-lib/src/android/car/drivingstate/CarUxRestrictions.java b/car-lib/src/android/car/drivingstate/CarUxRestrictions.java
index f0a894e7d5..81dae9799e 100644
--- a/car-lib/src/android/car/drivingstate/CarUxRestrictions.java
+++ b/car-lib/src/android/car/drivingstate/CarUxRestrictions.java
@@ -260,11 +260,27 @@ public class CarUxRestrictions implements Parcelable {
}
/**
- * Get the maximum number of cumulative content items that can be displayed when
+ * Get the maximum allowable number of content items that can be displayed to a user during
+ * traversal through any one path in a single task, when
* {@link CarUxRestrictions#UX_RESTRICTIONS_LIMIT_CONTENT} is imposed.
* <p>
- * Please refer to this and {@link #getMaxContentDepth()} to know the upper bounds of
- * content serving when the restriction is in place.
+ * For example, if a task involving only one view, this represents the maximum allowable number
+ * of content items in this single view.
+ * <p>
+ * However, if the task involves selection of a content item in an originating view that then
+ * surfaces a secondary view to the user, then this value represents the maximum allowable
+ * number of content items between the originating and secondary views combined.
+ * <p>
+ * Specifically, if the maximum allowable value was 60 and a task involved browsing a list of
+ * countries and then viewing the top songs within a country, it would be acceptable to do
+ * either of the following:
+ * <ul>
+ * <li> list 10 countries, and then display the top 50 songs after country selection, or
+ * <li> list 20 countries, and then display the top 40 songs after country selection.
+ * </ul>
+ * <p>
+ * Please refer to this and {@link #getMaxContentDepth()} to know the upper bounds on the
+ * content display when the restriction is in place.
*
* @return maximum number of cumulative items that can be displayed
*/
@@ -273,11 +289,22 @@ public class CarUxRestrictions implements Parcelable {
}
/**
- * Get the maximum number of levels that the user can navigate to when
+ * Get the maximum allowable number of content depth levels or view traversals through any one
+ * path in a single task. This is applicable when
* {@link CarUxRestrictions#UX_RESTRICTIONS_LIMIT_CONTENT} is imposed.
* <p>
- * Please refer to this and {@link #getMaxCumulativeContentItems()} to know the upper bounds of
- * content serving when the restriction is in place.
+ * For example, if a task involves only selecting an item from a single list on one view,
+ * the task's content depth would be considered 1.
+ * <p>
+ * However, if the task involves selection of a content item in an originating view that then
+ * surfaces a secondary view to the user, the task's content depth would be considered 2.
+ * <p>
+ * Specifically, if a task involved browsing a list of countries, selecting a genre within the
+ * country, and then viewing the top songs within a country, the task's content depth would be
+ * considered 3.
+ * <p>
+ * Please refer to this and {@link #getMaxCumulativeContentItems()} to know the upper bounds on
+ * the content display when the restriction is in place.
*
* @return maximum number of cumulative items that can be displayed
*/