1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2021 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16<!-- 17 ! Test that APKs which target the current sdk version (which is greater than 28) can access the 18 ! android.test.base by explicitly requesting it with a <uses-library../> entry in the 19 ! AndroidManifest.xml. 20 !--> 21<configuration description="Config for CTS Android Test Base Uses Library API Signature test cases"> 22 <option name="test-suite-tag" value="cts" /> 23 <option name="config-descriptor:metadata" key="component" value="systems" /> 24 <option name="config-descriptor:metadata" key="parameter" value="instant_app" /> 25 <option name="config-descriptor:metadata" key="parameter" value="not_multi_abi" /> 26 <option name="config-descriptor:metadata" key="parameter" value="secondary_user" /> 27 <option name="config-descriptor:metadata" key="parameter" value="secondary_user_on_secondary_display" /> 28 <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller"> 29 <option name="cleanup-apks" value="true" /> 30 <option name="test-file-name" value="CtsAndroidTestBaseUsesLibraryApiSignatureTestCases.apk" /> 31 </target_preparer> 32 <test class="com.android.tradefed.testtype.AndroidJUnitTest" > 33 <option name="package" value="android.signature.cts.api.android_test_base_uses_library" /> 34 <option name="runner" value="androidx.test.runner.AndroidJUnitRunner" /> 35 <option name="class" value="android.signature.cts.api.uses_library.test.base.SignatureTest" /> 36 <!-- 37 ! android.test.base classes must be accessible to this test as this test specifically 38 ! requests them using a <uses-library android:name="android.test.base"/> in its manifest. 39 !--> 40 <option name="instrumentation-arg" key="expected-api-files" value="android-test-base-current.api.gz" /> 41 <!-- 42 ! android.test.mock and android.test.runner classes must not be accessible to this test as 43 ! they are only provided when specifically requested using a <uses-library> element in the 44 ! manifest. 45 !--> 46 <option name="instrumentation-arg" key="unexpected-api-files" value="android-test-runner-current.api.gz,android-test-mock-current.api.gz" /> 47 <option name="runtime-hint" value="5s" /> 48 <!-- Disable hidden API checks (http://b/171459260). --> 49 <option name="hidden-api-checks" value="false" /> 50 </test> 51</configuration> 52