blob: 6f04626ba88de74e5b3b8779a8bc756effcb3757 [file] [log] [blame]
Pavel Maltseve2603e32016-10-25 16:03:23 -07001/*
2 * Copyright (C) 2016 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#ifndef android_hardware_vehicle_V2_0_impl_DefaultConfig_H_
18#define android_hardware_vehicle_V2_0_impl_DefaultConfig_H_
19
20#include <android/hardware/vehicle/2.0/IVehicle.h>
21
22namespace android {
23namespace hardware {
24namespace vehicle {
25namespace V2_0 {
26
27namespace impl {
28
29const VehiclePropConfig kVehicleProperties[] = {
30 {
31 .prop = VehicleProperty::INFO_MAKE,
32 .access = VehiclePropertyAccess::READ,
33 .changeMode = VehiclePropertyChangeMode::STATIC,
34 .permissionModel = VehiclePermissionModel::OEM_ONLY,
35 },
36
37 {
38 .prop = VehicleProperty::HVAC_FAN_SPEED,
39 .access = VehiclePropertyAccess::READ_WRITE,
40 .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
41 .permissionModel = VehiclePermissionModel::NO_RESTRICTION,
42 .supportedAreas = static_cast<int32_t>(
43 VehicleAreaZone::ROW_1_LEFT | VehicleAreaZone::ROW_1_RIGHT),
44 .areaConfigs = init_hidl_vec({
45 VehicleAreaConfig {
46 .areaId = val(VehicleAreaZone::ROW_2_LEFT),
47 .minInt32Value = 1,
48 .maxInt32Value = 7},
49 VehicleAreaConfig {
50 .areaId = val(VehicleAreaZone::ROW_1_RIGHT),
51 .minInt32Value = 1,
52 .maxInt32Value = 5,
53 }
54 }),
55 },
56
57 {
58 .prop = VehicleProperty::INFO_FUEL_CAPACITY,
59 .access = VehiclePropertyAccess::READ,
60 .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
61 .permissionModel = VehiclePermissionModel::OEM_ONLY,
62 .areaConfigs = init_hidl_vec({
63 VehicleAreaConfig {
64 .minFloatValue = 0,
65 .maxFloatValue = 1.0
66 }
67 })
68 },
69
70 {
71 .prop = VehicleProperty::DISPLAY_BRIGHTNESS,
72 .access = VehiclePropertyAccess::READ_WRITE,
73 .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
74 .permissionModel = VehiclePermissionModel::OEM_ONLY,
75 .areaConfigs = init_hidl_vec({
76 VehicleAreaConfig {
77 .minInt32Value = 0,
78 .maxInt32Value = 10
79 }
80 })
81 }
82};
83
84} // impl
85
86} // namespace V2_0
87} // namespace vehicle
88} // namespace hardware
89} // namespace android
90
91#endif // android_hardware_vehicle_V2_0_impl_DefaultConfig_H_