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
diff --git a/tests/app/src/android/app/cts/ActivityManagerProcessStateTest.java b/tests/app/src/android/app/cts/ActivityManagerProcessStateTest.java
index b105b92..0de8c47 100644
--- a/tests/app/src/android/app/cts/ActivityManagerProcessStateTest.java
+++ b/tests/app/src/android/app/cts/ActivityManagerProcessStateTest.java
@@ -1219,15 +1219,6 @@
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;
}