From 1881bc644fe252d3b4c78fff9d7f8dd958e44f14 Mon Sep 17 00:00:00 2001 From: Kweku Adams Date: Tue, 8 Oct 2019 14:55:49 -0700 Subject: [PATCH] Change network parole while charging tests. The periodic parole window is the 10 minute window that occurs every 24 hours to let RARE apps run. Now that we have the quota system in place, there's no need to have the periodic parole window. Alarms and jobs will still be allowed to run when charging. Network will continue to be restricted for RARE apps even when charging. JobScheduler requests an exception for RARE jobs in quota, so they will still be able to run. With this change, idle apps should still not get network when charging unless JobScheduler requests it, so we have to update the tests. Bug: 136184981 Test: atest AppStandbyControllerTests Test: atest CtsAlarmManagerTestCases Test: atest com.android.cts.net.HostsideRestrictBackgroundNetworkTests Test: atest com.android.server.AlarmManagerServiceTest Test: atest com.android.server.AppStateTrackerTest Test: atest com.android.server.job.controllers.QuotaControllerTest Change-Id: Icd7b6eff8777f9b53a10eca521b73988f58f2d84 --- tests/cts/hostside/AndroidTest.xml | 2 - .../net/hostside/AbstractAppIdleTestCase.java | 4 +- ...ractRestrictBackgroundNetworkTestCase.java | 8 --- .../cts/net/NetPolicyTestsPreparer.java | 63 ------------------- 4 files changed, 2 insertions(+), 75 deletions(-) delete mode 100644 tests/cts/hostside/src/com/android/cts/net/NetPolicyTestsPreparer.java diff --git a/tests/cts/hostside/AndroidTest.xml b/tests/cts/hostside/AndroidTest.xml index 5479c51a4c..6ba6f42409 100644 --- a/tests/cts/hostside/AndroidTest.xml +++ b/tests/cts/hostside/AndroidTest.xml @@ -20,8 +20,6 @@