xref: /aosp_15_r20/frameworks/base/tests/BackgroundDexOptServiceIntegrationTests/AndroidTest.xml (revision d57664e9bc4670b3ecf6748a746a57c557b6bc9e)
1*d57664e9SAndroid Build Coastguard Worker<?xml version="1.0" encoding="utf-8"?>
2*d57664e9SAndroid Build Coastguard Worker<!-- Copyright (C) 2017 The Android Open Source Project
3*d57664e9SAndroid Build Coastguard Worker
4*d57664e9SAndroid Build Coastguard Worker     Licensed under the Apache License, Version 2.0 (the "License");
5*d57664e9SAndroid Build Coastguard Worker     you may not use this file except in compliance with the License.
6*d57664e9SAndroid Build Coastguard Worker     You may obtain a copy of the License at
7*d57664e9SAndroid Build Coastguard Worker
8*d57664e9SAndroid Build Coastguard Worker          http://www.apache.org/licenses/LICENSE-2.0
9*d57664e9SAndroid Build Coastguard Worker
10*d57664e9SAndroid Build Coastguard Worker     Unless required by applicable law or agreed to in writing, software
11*d57664e9SAndroid Build Coastguard Worker     distributed under the License is distributed on an "AS IS" BASIS,
12*d57664e9SAndroid Build Coastguard Worker     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*d57664e9SAndroid Build Coastguard Worker     See the License for the specific language governing permissions and
14*d57664e9SAndroid Build Coastguard Worker     limitations under the License.
15*d57664e9SAndroid Build Coastguard Worker-->
16*d57664e9SAndroid Build Coastguard Worker<configuration description="Runs BackgroundDexOptService Integration Tests">
17*d57664e9SAndroid Build Coastguard Worker    <!--DeviceSetup should go before TimeSetter because it stops automatic update of time-->
18*d57664e9SAndroid Build Coastguard Worker    <target_preparer
19*d57664e9SAndroid Build Coastguard Worker        class="com.android.tradefed.targetprep.DeviceSetup">
20*d57664e9SAndroid Build Coastguard Worker        <option name="auto-update-time" value="OFF"/>
21*d57664e9SAndroid Build Coastguard Worker        <option name="auto-update-timezone" value="OFF"/>
22*d57664e9SAndroid Build Coastguard Worker        <option name="set-property" key="pm.dexopt.downgrade_after_inactive_days" value="2"/>
23*d57664e9SAndroid Build Coastguard Worker        <option name="set-property" key="pm.dexopt.disable_bg_dexopt" value="true"/>
24*d57664e9SAndroid Build Coastguard Worker        <option name="set-property" key="pm.dexopt.inactive" value="verify"/>
25*d57664e9SAndroid Build Coastguard Worker        <option name="set-property" key="pm.dexopt.bg-dexopt" value="speed"/>
26*d57664e9SAndroid Build Coastguard Worker        <option name="restore-settings" value="true"/>
27*d57664e9SAndroid Build Coastguard Worker        <option name="restore-properties" value="true"/>
28*d57664e9SAndroid Build Coastguard Worker    </target_preparer>
29*d57664e9SAndroid Build Coastguard Worker
30*d57664e9SAndroid Build Coastguard Worker    <!--Test app needs to be installed when we change its settings below-->
31*d57664e9SAndroid Build Coastguard Worker    <target_preparer class="com.android.tradefed.targetprep.TestAppInstallSetup">
32*d57664e9SAndroid Build Coastguard Worker        <option name="test-file-name" value="BackgroundDexOptServiceIntegrationTests.apk"/>
33*d57664e9SAndroid Build Coastguard Worker        <option name="cleanup-apks" value="true"/>
34*d57664e9SAndroid Build Coastguard Worker    </target_preparer>
35*d57664e9SAndroid Build Coastguard Worker
36*d57664e9SAndroid Build Coastguard Worker    <target_preparer class="com.android.tradefed.targetprep.SetPackagesRecentlyUsed">
37*d57664e9SAndroid Build Coastguard Worker        <option name="package-recently-used-time" value="0d"/>
38*d57664e9SAndroid Build Coastguard Worker        <option name="package-recently-used-name" value="com.android.frameworks.bgdexopttest"/>
39*d57664e9SAndroid Build Coastguard Worker    </target_preparer>
40*d57664e9SAndroid Build Coastguard Worker
41*d57664e9SAndroid Build Coastguard Worker    <target_preparer class="com.android.tradefed.targetprep.RestartSystemServerTargetPreparer"/>
42*d57664e9SAndroid Build Coastguard Worker
43*d57664e9SAndroid Build Coastguard Worker    <target_preparer class="com.android.tradefed.targetprep.DeviceStorageFiller">
44*d57664e9SAndroid Build Coastguard Worker        <!--32GB-->
45*d57664e9SAndroid Build Coastguard Worker        <!--necessary because a package cannot create a file larger than 100GB-->
46*d57664e9SAndroid Build Coastguard Worker        <option name="free-bytes" value="34359738368"/>
47*d57664e9SAndroid Build Coastguard Worker    </target_preparer>
48*d57664e9SAndroid Build Coastguard Worker
49*d57664e9SAndroid Build Coastguard Worker    <option name="test-suite-tag" value="apct"/>
50*d57664e9SAndroid Build Coastguard Worker    <option name="test-tag" value="BackgroundDexOptServiceIntegrationTests"/>
51*d57664e9SAndroid Build Coastguard Worker    <test class="com.android.tradefed.testtype.AndroidJUnitTest">
52*d57664e9SAndroid Build Coastguard Worker        <option name="package" value="com.android.frameworks.bgdexopttest"/>
53*d57664e9SAndroid Build Coastguard Worker        <option name="runner" value="androidx.test.runner.AndroidJUnitRunner"/>
54*d57664e9SAndroid Build Coastguard Worker    </test>
55*d57664e9SAndroid Build Coastguard Worker</configuration>
56