1<?xml version='1.0' encoding='utf-8'?> 2 3<!-- Sample power policy XML configuration 4 5 Power policy XML configuration should be copied to /vendor/etc/automotive/power_policy.xml. 6 Use power_policy_configuration.dtd with xmllint tool, to validate XML configuration file 7--> 8 9<powerPolicy version="1.0"> 10 <!-- version section contains a “version" tag in the form “major.minor" e.g version="1.0" --> 11 12 <policyGroups> 13 <policyGroup id="basic_policy_group"> 14 <defaultPolicy state="WaitForVHAL" id="sample_policy_01"/> 15 <defaultPolicy state="On" id="sample_policy_02"/> 16 </policyGroup> 17 <policyGroup id="no_default_policy"> 18 <noDefaultPolicy state="WaitForVHAL"/> 19 <noDefaultPolicy state="On"/> 20 </policyGroup> 21 <policyGroup id="mixed_default_policy"> 22 <noDefaultPolicy state="WaitForVHAL"/> 23 <defaultPolicy state="On" id="sample_policy_02"/> 24 </policyGroup> 25 </policyGroups> 26 27 <policies> 28 <policy id="sample_policy_01"> 29 <otherComponents behavior="off"/> 30 <component id="POWER_COMPONENT_AUDIO">on</component> 31 <component id="POWER_COMPONENT_DISPLAY">on</component> 32 <component id="POWER_COMPONENT_WIFI">on</component> 33 <component id="POWER_COMPONENT_VISUAL_INTERACTION">on</component> 34 <component id="POWER_COMPONENT_TRUSTED_DEVICE_DETECTION">on</component> 35 </policy> 36 <policy id="sample_policy_02"> 37 <otherComponents behavior="untouched"/> 38 <component id="POWER_COMPONENT_AUDIO">on</component> 39 <component id="POWER_COMPONENT_DISPLAY">on</component> 40 <component id="POWER_COMPONENT_BLUETOOTH">off</component> 41 <component id="POWER_COMPONENT_WIFI">off</component> 42 <component id="POWER_COMPONENT_VOICE_INTERACTION">on</component> 43 <component id="POWER_COMPONENT_VISUAL_INTERACTION">on</component> 44 <component id="POWER_COMPONENT_TRUSTED_DEVICE_DETECTION">on</component> 45 </policy> 46 <policy id="sample_policy_03"> 47 <otherComponents behavior="on"/> 48 <component id="POWER_COMPONENT_AUDIO">off</component> 49 <component id="POWER_COMPONENT_VOICE_INTERACTION">off</component> 50 <component id="POWER_COMPONENT_VISUAL_INTERACTION">off</component> 51 <component id="POWER_COMPONENT_TRUSTED_DEVICE_DETECTION">off</component> 52 </policy> 53 <policy id="sample_policy_04"> 54 <component id="POWER_COMPONENT_AUDIO">off</component> 55 <component id="POWER_COMPONENT_WIFI">on</component> 56 <component id="POWER_COMPONENT_VOICE_INTERACTION">off</component> 57 <component id="POWER_COMPONENT_VISUAL_INTERACTION">off</component> 58 <component id="POWER_COMPONENT_TRUSTED_DEVICE_DETECTION">off</component> 59 </policy> 60 </policies> 61 62 <systemPolicyOverrides> 63 <policy id="system_power_policy_no_user_interaction"> 64 <component id="POWER_COMPONENT_BLUETOOTH">on</component> 65 <component id="POWER_COMPONENT_NFC">on</component> 66 <component id="POWER_COMPONENT_TRUSTED_DEVICE_DETECTION">off</component> 67 </policy> 68 </systemPolicyOverrides> 69 70</powerPolicy> 71