1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2023 The Android Open Source Project 4 ~ 5 ~ Licensed under the Apache License, Version 2.0 (the "License"); 6 ~ you may not use this file except in compliance with the License. 7 ~ You may obtain a copy of the License at 8 ~ 9 ~ http://www.apache.org/licenses/LICENSE-2.0 10 ~ 11 ~ Unless required by applicable law or agreed to in writing, software 12 ~ distributed under the License is distributed on an "AS IS" BASIS, 13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ~ See the License for the specific language governing permissions and 15 ~ limitations under the License. 16 --> 17<configuration description="TF Config for AdServices Ui Cts test"> 18 <!-- For this test suite to get picked up in presubmit --> 19 <option name="config-descriptor:metadata" key="mainline-param" 20 value="com.google.android.extservices.apex" /> 21 22 <!-- Prevent test from running on Android T+ --> 23 <object type="module_controller" 24 class="com.android.tradefed.testtype.suite.module.MaxSdkModuleController"> 25 <option name="max-sdk-level" value="32"/> 26 </object> 27 28 <!-- Prevent tests from running on Android R- --> 29 <object type="module_controller" 30 class="com.android.tradefed.testtype.suite.module.Sdk31ModuleController"/> 31 <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer"/> 32 33 <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer"> 34 <option name="run-command" value="device_config set_sync_disabled_for_tests persistent"/> 35 <option name="teardown-command" value="device_config set_sync_disabled_for_tests none"/> 36 37 <option name="run-command" value="setprop log.tag.adservices VERBOSE" /> 38 <option 39 name="run-command" 40 value="setprop debug.adservices.consent_notification_debug_mode false"/> 41 <option 42 name="run-command" 43 value="device_config put adservices ui_ota_strings_feature_enabled false"/> 44 <option 45 name="run-command" 46 value="device_config put adservices is_eea_device_feature_enabled true"/> 47 <option 48 name="run-command" 49 value="device_config put adservices is_eea_device false"/> 50 <option 51 name="run-command" 52 value="device_config put adservices ga_ux_enabled true"/> 53 <option 54 name="run-command" 55 value="device_config put adservices u18_ux_enabled true"/> 56 <option 57 name="run-command" 58 value="device_config put adservices consent_already_interacted_fix_enable false"/> 59 <option name="run-command" value="device_config put adservices global_kill_switch false"/> 60 <option name="run-command" value="device_config put adservices enable_back_compat true"/> 61 <option 62 name="run-command" 63 value="device_config put adservices adservice_enable_status true"/> 64 <option 65 name="run-command" 66 value="device_config put adservices adservice_enabled true"/> 67 <option 68 name="run-command" 69 value="device_config put ui_ota_strings_feature_enabled false"/> 70 <option 71 name="run-command" 72 value="device_config put adservices enable_ad_services_system_api true"/> 73 <option 74 name="run-command" 75 value="device_config put adservices eu_notif_flow_change_enabled false"/> 76 <option 77 name="run-command" 78 value="setprop debug.adservices.consent_notification_debug_mode false"/> 79 <option 80 name="run-command" 81 value="device_config put adservices is_eea_device_feature_enabled true"/> 82 <option 83 name="run-command" 84 value="setprop debug.adservices.consent_notification_debug_mode false"/> 85 <!-- override scheduling params so the test is unaffected by time of the day --> 86 <option 87 name="run-command" 88 value="device_config put adservices consent_notification_interval_begin_ms 0"/> 89 <!-- end of day (24 hours) --> 90 <option 91 name="run-command" 92 value="device_config put adservices consent_notification_interval_end_ms 86400000"/> 93 <option 94 name="run-command" 95 value="device_config put adservices consent_notification_minimal_delay_before_interval_ends 0"/> 96 </target_preparer> 97 98 <target_preparer class="com.android.tradefed.targetprep.RebootTargetPreparer"> 99 <option name="pre-reboot" value="true"/> 100 </target_preparer> 101 <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer"> 102 <option name="run-command" value="am wait-for-broadcast-idle"/> 103 </target_preparer> 104 105 <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller"> 106 <option name="cleanup-apks" value="true"/> 107 <option name="test-file-name" value="AdExtServicesGaUxGraduationChannelRowTest.apk"/> 108 </target_preparer> 109 110 <metrics_collector class="com.android.tradefed.device.metric.FilePullerLogCollector"> 111 <option name="directory-keys" value="/sdcard/Documents/adservices-tests" /> 112 <option name="clean-up" value="false" /> 113 <option name="collect-on-run-ended-only" value="true" /> 114 </metrics_collector> 115 116 <metrics_collector class="com.android.tradefed.device.metric.FilePullerLogCollector"> 117 <option name="directory-keys" value="/data/system/files" /> 118 <option name="clean-up" value="false" /> 119 <option name="collect-on-run-ended-only" value="true" /> 120 </metrics_collector> 121 122 <test class="com.android.tradefed.testtype.AndroidJUnitTest"> 123 <option name="package" value="com.android.adservices.tests.ui.gaux.graduationchannel"/> 124 </test> 125 126 <object type="module_controller" 127 class="com.android.tradefed.testtype.suite.module.MainlineTestModuleController"> 128 <option name="mainline-module-package-name" value="com.google.android.extservices"/> 129 </object> 130</configuration> 131