1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright 2017 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<configuration description="Runs Bluetooth Test Cases."> 17 <option name="test-suite-tag" value="apct" /> 18 <option name="test-suite-tag" value="apct-instrumentation" /> 19 <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller"> 20 <option name="cleanup-apks" value="true" /> 21 <option name="test-file-name" value="GoogleBluetoothInstrumentationTests.apk" /> 22 </target_preparer> 23 <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer"> 24 <option name="force-root" value="true" /> 25 </target_preparer> 26 <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer"> 27 <option name="throw-if-cmd-fail" value="true" /> 28 <option name="run-command" value="input keyevent KEYCODE_WAKEUP" /> 29 <option name="run-command" value="wm dismiss-keyguard" /> 30 <option name="run-command" value="settings put global ble_scan_always_enabled 0" /> 31 <option name="run-command" value="cmd bluetooth_manager disable" /> 32 <option name="run-command" value="cmd bluetooth_manager wait-for-state:STATE_OFF" /> 33 <option name="teardown-command" value="cmd bluetooth_manager enable" /> 34 <option name="teardown-command" value="cmd bluetooth_manager wait-for-state:STATE_ON" /> 35 <option name="teardown-command" value="settings put global ble_scan_always_enabled 1" /> 36 </target_preparer> 37 <target_preparer class="com.android.tradefed.targetprep.FolderSaver"> 38 <option name="device-path" value="/data/vendor/ssrdump" /> 39 </target_preparer> 40 <option name="test-tag" value="GoogleBluetoothInstrumentationTests" /> 41 <test class="com.android.tradefed.testtype.AndroidJUnitTest" > 42 <option name="package" value="com.android.bluetooth.tests" /> 43 <!-- include and exclude filters go into /data/local/tmp/ajur/ by default 44 However it's prohibited for access by system uid packages. 45 So instead we use the app cache folder for filter --> 46 <option name="test-filter-dir" value="/data/data/com.google.android.bluetooth/cache" /> 47 <option name="hidden-api-checks" value="false"/> 48 </test> 49 50 <!-- Only run if the Google Bluetooth Mainline module is installed. --> 51 <object type="module_controller" 52 class="com.android.tradefed.testtype.suite.module.MainlineTestModuleController"> 53 <option name="enable" value="true" /> 54 <option name="mainline-module-package-name" value="com.google.android.btservices" /> 55 </object> 56</configuration> 57