CDD: Require Data Saver for Handheld and clarify the intent requirement
- AOSP already provides the implementation for Data Saver.
- Add the intent name to provide the setting for Data Saver.
Bug: 62544519
Change-Id: I68ee0a513f62921a33daecfe504566d8f0181f90
diff --git a/7_hardware-compatibility/7_4_data-connectivity.md b/7_hardware-compatibility/7_4_data-connectivity.md
index c4c82fb..29a6495 100644
--- a/7_hardware-compatibility/7_4_data-connectivity.md
+++ b/7_hardware-compatibility/7_4_data-connectivity.md
@@ -337,23 +337,28 @@
### 7.4.7\. Data Saver
-Device implementations with a metered connection are STRONGLY RECOMMENDED to provide the
+[SR] If a device implementation includes a metered connection, it is STRONGLY RECOMMENDED to provide the
data saver mode.
+[HH] If a Handheld device implementation includes a metered connection, it:
+
+[H-1-1] MUST provide the data saver mode.
+
If a device implementation provides the data saver mode, it:
-* MUST support all the APIs in the `ConnectivityManager` class as described in the
+[C-1-1] MUST support all the APIs in the `ConnectivityManager` class as described in the
[SDK documentation](https://developer.android.com/training/basics/network-ops/data-saver.html)
-* MUST provide a user interface in the settings, allowing users to add
+[C-1-2] MUST provide a user interface in the settings, that handles the
+ [`Settings.ACTION_IGNORE_BACKGROUND_DATA_RESTRICTIONS_SETTINGS`](https://developer.android.com/reference/android/provider/Settings.html#ACTION_IGNORE_BACKGROUND_DATA_RESTRICTIONS_SETTINGS) intent, allowing users to add
applications to or remove applications from the whitelist.
-Conversely if a device implementation does not provide the data saver mode, it:
+If a device implementation does not provide the data saver mode, it:
-* MUST return the value `RESTRICT_BACKGROUND_STATUS_DISABLED` for
+[C-2-1] MUST return the value `RESTRICT_BACKGROUND_STATUS_DISABLED` for
[`ConnectivityManager.getRestrictBackgroundStatus()`](https://developer.android.com/reference/android/net/ConnectivityManager.html#getRestrictBackgroundStatus%28%29)
-* MUST not broadcast `ConnectivityManager.ACTION_RESTRICT_BACKGROUND_CHANGED`
+[C-2-2] MUST NOT broadcast `ConnectivityManager.ACTION_RESTRICT_BACKGROUND_CHANGED`
-* MUST have an activity that handles the `Settings.ACTION_IGNORE_BACKGROUND_DATA_RESTRICTIONS_SETTINGS`
- intent but MAY implement it as a no-op.
+[C-2-3] MUST have an activity that handles the `Settings.ACTION_IGNORE_BACKGROUND_DATA_RESTRICTIONS_SETTINGS`
+ intent but MAY implement it as a no-op.
\ No newline at end of file