1*4d7e907cSAndroid Build Coastguard Worker<?xml version="1.0" encoding="UTF-8"?> 2*4d7e907cSAndroid Build Coastguard Worker<!-- Copyright 2020 The Android Open Source Project 3*4d7e907cSAndroid Build Coastguard Worker 4*4d7e907cSAndroid Build Coastguard Worker Licensed under the Apache License, Version 2.0 (the "License"); 5*4d7e907cSAndroid Build Coastguard Worker you may not use this file except in compliance with the License. 6*4d7e907cSAndroid Build Coastguard Worker You may obtain a copy of the License at 7*4d7e907cSAndroid Build Coastguard Worker 8*4d7e907cSAndroid Build Coastguard Worker http://www.apache.org/licenses/LICENSE-2.0 9*4d7e907cSAndroid Build Coastguard Worker 10*4d7e907cSAndroid Build Coastguard Worker Unless required by applicable law or agreed to in writing, software 11*4d7e907cSAndroid Build Coastguard Worker distributed under the License is distributed on an "AS IS" BASIS, 12*4d7e907cSAndroid Build Coastguard Worker WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*4d7e907cSAndroid Build Coastguard Worker See the License for the specific language governing permissions and 14*4d7e907cSAndroid Build Coastguard Worker limitations under the License. 15*4d7e907cSAndroid Build Coastguard Worker--> 16*4d7e907cSAndroid Build Coastguard Worker<!-- A sample Tuner Resource Manager use case priority configuration xml --> 17*4d7e907cSAndroid Build Coastguard Worker<config version="1.0" xmlns:xi="http://www.w3.org/2001/XMLSchema"> 18*4d7e907cSAndroid Build Coastguard Worker <!-- useCaseDefault section: 19*4d7e907cSAndroid Build Coastguard Worker Default value for predefined use cases priority hint. 20*4d7e907cSAndroid Build Coastguard Worker "fgPriority": priority when the use case is in foreground. Value range [0-1000]. 21*4d7e907cSAndroid Build Coastguard Worker "bgPriority": priority when the use case is in background. Value range [0-1000]. 22*4d7e907cSAndroid Build Coastguard Worker --> 23*4d7e907cSAndroid Build Coastguard Worker <useCaseDefault fgPriority="150" bgPriority="50"/> 24*4d7e907cSAndroid Build Coastguard Worker <!-- useCasePreDefined section: 25*4d7e907cSAndroid Build Coastguard Worker A list of predefined use cases and their foreground/background priority hint. 26*4d7e907cSAndroid Build Coastguard Worker Each use case has the following attributes: 27*4d7e907cSAndroid Build Coastguard Worker "type": type of the use case. Pre-defined use cases start with "USE_CASE_" 28*4d7e907cSAndroid Build Coastguard Worker and could only use the types defined in "predefinedUseCaseType" in xsd. 29*4d7e907cSAndroid Build Coastguard Worker "fgPriority": priority when the use case is in foreground. Value range [0-1000]. 30*4d7e907cSAndroid Build Coastguard Worker "bgPriority": priority when the use case is in background. Value range [0-1000]. 31*4d7e907cSAndroid Build Coastguard Worker --> 32*4d7e907cSAndroid Build Coastguard Worker <useCasePreDefined type="USE_CASE_RECORD" fgPriority="600" bgPriority="500"/> 33*4d7e907cSAndroid Build Coastguard Worker <useCasePreDefined type="USE_CASE_LIVE" fgPriority="490" bgPriority="400"/> 34*4d7e907cSAndroid Build Coastguard Worker <useCasePreDefined type="USE_CASE_PLAYBACK" fgPriority="480" bgPriority="300"/> 35*4d7e907cSAndroid Build Coastguard Worker <useCasePreDefined type="USE_CASE_SCAN" fgPriority="450" bgPriority="200"/> 36*4d7e907cSAndroid Build Coastguard Worker <useCasePreDefined type="USE_CASE_BACKGROUND" fgPriority="180" bgPriority="100"/> 37*4d7e907cSAndroid Build Coastguard Worker <!-- useCaseVendor section: 38*4d7e907cSAndroid Build Coastguard Worker A list of vendor defined use cases and their foreground/background priority hint. 39*4d7e907cSAndroid Build Coastguard Worker Each use case has the following attributes: 40*4d7e907cSAndroid Build Coastguard Worker "type": type of the use case. Vendor defined use cases start with "VENDOR_USE_CASE_". 41*4d7e907cSAndroid Build Coastguard Worker "fgPriority": priority when the use case is in foreground. Value range [0-1000]. 42*4d7e907cSAndroid Build Coastguard Worker "bgPriority": priority when the use case is in background. Value range [0-1000]. 43*4d7e907cSAndroid Build Coastguard Worker "id": Vendor defined use case must have an id greater than 1000 to be associated with. 44*4d7e907cSAndroid Build Coastguard Worker --> 45*4d7e907cSAndroid Build Coastguard Worker <useCaseVendor type="VENDOR_USE_CASE_SPECIAL_1" id="1001" fgPriority="300" bgPriority="80"/> 46*4d7e907cSAndroid Build Coastguard Worker <useCaseVendor type="VENDOR_USE_CASE_SPECIAL_2" id="1002" fgPriority="200" bgPriority="40"/> 47*4d7e907cSAndroid Build Coastguard Worker</config> 48