diff options
author | Takeshi Oishi <Takeshi.Oishi@jp.sony.com> | 2020-04-07 19:11:33 +0900 |
---|---|---|
committer | Dan Zhang <danielzhang@google.com> | 2020-09-23 16:52:01 +0000 |
commit | e2bebe89b98167449db35318bd5c073f3396abc9 (patch) | |
tree | d531391e40840b67f22745f11c425a39d0320d0d | |
parent | 94e272ca253ab20384c2f9b96ca09b7964c7e870 (diff) | |
download | cts-e2bebe89b98167449db35318bd5c073f3396abc9.tar.gz |
Remove exception conditions of FEATURE_CANT_SAVE_STATE
CTS expects any devices should define FEATURE_CANT_SAVE_STATE except Watch
even though CDD could accept the device without FEATURE_CANT_SAVE_STATE.
Therefore, the tests related to FEATURE_CANT_SAVE_STATE should be executed
when a device has the feature definition.
Bug: b/118475288
Test: run cts -m CtsAppTestCases
Change-Id: Id28d8437fd3bf5f0b2d94c7f80f3d8e78b1095b2
(cherry picked from commit 5aaa17c3ff6ed34362156758da0bd5cd88d492d8)
-rw-r--r-- | tests/app/src/android/app/cts/ActivityManagerProcessStateTest.java | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/tests/app/src/android/app/cts/ActivityManagerProcessStateTest.java b/tests/app/src/android/app/cts/ActivityManagerProcessStateTest.java index 9edfd093b35..90f00f3b1f3 100644 --- a/tests/app/src/android/app/cts/ActivityManagerProcessStateTest.java +++ b/tests/app/src/android/app/cts/ActivityManagerProcessStateTest.java @@ -1075,15 +1075,6 @@ public class ActivityManagerProcessStateTest extends InstrumentationTestCase { return true; } - // Most types of devices need to support this. - int mode = mContext.getResources().getConfiguration().uiMode - & Configuration.UI_MODE_TYPE_MASK; - if (mode != Configuration.UI_MODE_TYPE_WATCH - && mode != Configuration.UI_MODE_TYPE_APPLIANCE) { - // Most devices must support the can't save state feature. - throw new IllegalStateException("Devices that are not watches or appliances must " - + "support FEATURE_CANT_SAVE_STATE"); - } return false; } |