1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 /* 4 ** Copyright 2015, The Android Open Source Project 5 ** 6 ** Licensed under the Apache License, Version 2.0 (the "License"); 7 ** you may not use this file except in compliance with the License. 8 ** You may obtain a copy of the License at 9 ** 10 ** http://www.apache.org/licenses/LICENSE-2.0 11 ** 12 ** Unless required by applicable law or agreed to in writing, software 13 ** distributed under the License is distributed on an "AS IS" BASIS, 14 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 ** See the License for the specific language governing permissions and 16 ** limitations under the License. 17 */ 18 --> 19 20 <!-- Resources to configure car service based on each OEM's preference. --> 21 22 <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> 23 <!-- Audio routing policy for all H/W variants. Each item represents policy for one variant. 24 25 Each item is defined in this format: 26 physicalStreamNumber:(streamType,)*StreamType#physicalStreamNumber:... 27 28 Stream type is logical stream type to route to the physical stream. Currently defined 29 types are: call, media, nav_guidance, voice_command, alarm, notification, system, safety, 30 and unknown 31 unknown is for stream not tagged with specific contents. 32 physicalStreamNumber should be [0, maxNumberOfPhysicalStream - 1]. 33 There is no "radio" as radio routing is outside android (for external module) or same as 34 music (for android internal module) 35 OEM can put multiple policies as item and VEHICLE_PROPERTY_AUDIO_HW_VARIANT in vehicle HAL 36 can decide which policy to use for the given H/W. This allows OEMs to support multuple 37 audio policy from single android S/W by detecting system's audio capability in 38 vehicle HAL.--> 39 <string-array translatable="false" name="audioRoutingPolicy"> 40 <!-- alll logical streams into single physical stream 0. --> 41 <item>"0:call,media,nav_guidance,voice_command,alarm,notification,system,safety,unknown"</item> 42 <!-- call and media to physical stream 0 while all others go to physical stream 1 --> 43 <item>"0:call,media,unknown#1:nav_guidance,voice_command,alarm,notification,system,safety"</item> 44 </string-array> 45 46 <!-- This is kernel device node to allow input event injection for key inputs coming 47 from vehicle hal --> 48 <string name="inputInjectionDeviceNode">/dev/input/event2</string> 49 50 <string name="instrumentClusterRendererPackage">android.car.cluster.demorenderer</string> 51 <string name="instrumentClusterRendererFactoryClass">android.car.cluster.demorenderer.InstrumentClusterRendererFactory</string> 52 </resources> 53