Test app standby APIs

Also revert a workaround for incorrect state in
AppIdleHistory.

Bug: 69867516
Bug: 63527785
Test: cts-tradefed run cts-dev -m CtsAppUsageHostTestCases

Change-Id: If3edb88f12d949ab78788e5ea27f0aee76cc4235
This commit is contained in:
Amith Yamasani
2017-11-29 11:55:59 -08:00
parent 9198dd3580
commit 1241e9aaf2

View File

@@ -139,8 +139,6 @@ abstract class AbstractRestrictBackgroundNetworkTestCase extends Instrumentation
enableLocation();
}
mSupported = setUpActiveNetworkMeteringState();
// TODO: Remove this once b/69867516 is fixed.
executeShellCommand("am set-standby-bucket " + TEST_APP2_PKG + " 12");
setAppIdle(false);
Log.i(TAG, "Apps status on " + getName() + ":\n"