1 /*
2  * Copyright (C) 2015 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 
17 #include <stdint.h>
18 #include <sys/types.h>
19 
20 #include <hardware/vehicle.h>
21 #include <vehicle-internal.h>
22 
23 static vehicle_prop_config_t AUDIO_TEST_PROPERTIES[] = {
24     {
25         .prop = VEHICLE_PROPERTY_AUDIO_FOCUS,
26         .access = VEHICLE_PROP_ACCESS_READ_WRITE,
27         .change_mode = VEHICLE_PROP_CHANGE_MODE_ON_CHANGE,
28         .value_type = VEHICLE_VALUE_TYPE_INT32_VEC4,
29         .config_flags = 0x0,
30         .min_sample_rate = 0,
31         .max_sample_rate = 0,
32         .hal_data = NULL,
33     },
34     {
35         .prop = VEHICLE_PROPERTY_INTERNAL_AUDIO_STREAM_STATE,
36         .access = VEHICLE_PROP_ACCESS_READ_WRITE,
37         .change_mode = VEHICLE_PROP_CHANGE_MODE_ON_CHANGE,
38         .value_type = VEHICLE_VALUE_TYPE_INT32_VEC2,
39         .min_sample_rate = 0,
40         .max_sample_rate = 0,
41         .hal_data = NULL,
42     },
43 };
44 
getTestPropertiesForAudio()45 vehicle_prop_config_t const * getTestPropertiesForAudio() {
46     return AUDIO_TEST_PROPERTIES;
47 }
48 
getNumTestPropertiesForAudio()49 int getNumTestPropertiesForAudio() {
50     return sizeof(AUDIO_TEST_PROPERTIES) / sizeof(vehicle_prop_config_t);
51 }
52 
53