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
38 lines
1.8 KiB
XML
38 lines
1.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2015 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<configuration description="Config for CTS net host test cases">
|
|
<option name="test-suite-tag" value="cts" />
|
|
<option name="config-descriptor:metadata" key="component" value="networking" />
|
|
<option name="config-descriptor:metadata" key="parameter" value="instant_app" />
|
|
<option name="config-descriptor:metadata" key="parameter" value="not_multi_abi" />
|
|
<option name="config-descriptor:metadata" key="parameter" value="secondary_user" />
|
|
|
|
<target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
|
|
<option name="teardown-command" value="cmd power set-mode 0" />
|
|
<option name="teardown-command" value="cmd battery reset" />
|
|
</target_preparer>
|
|
|
|
<test class="com.android.compatibility.common.tradefed.testtype.JarHostTest" >
|
|
<option name="jar" value="CtsHostsideNetworkTests.jar" />
|
|
<option name="runtime-hint" value="3m56s" />
|
|
</test>
|
|
|
|
<metrics_collector class="com.android.tradefed.device.metric.FilePullerLogCollector">
|
|
<option name="directory-keys" value="/sdcard/CtsHostsideNetworkTests" />
|
|
<option name="collect-on-run-ended-only" value="true" />
|
|
</metrics_collector>
|
|
</configuration>
|