1/* 2 * Copyright (C) 2021 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 17syntax = "proto3"; 18 19package android.hardware.automotive.vehicle.proto; 20 21import "android/hardware/automotive/vehicle/VehiclePropertyStatus.proto"; 22 23/* Must be in sync with VehiclePropValue.aidl. */ 24message VehiclePropValue { 25 /* Time is elapsed nanoseconds since boot */ 26 int64 timestamp = 1; 27 28 /* Area type(s) for non-global property it must be one of the value from 29 * VehicleArea* enums or 0 for global properties. */ 30 int32 area_id = 2; 31 32 /* Property identifier */ 33 int32 prop = 3; 34 35 /* Status of the property */ 36 VehiclePropertyStatus status = 4; 37 38 /* This is used for properties of types VehiclePropertyType#INT 39 * and VehiclePropertyType#INT_VEC */ 40 repeated int32 int32_values = 5; 41 42 /* This is used for properties of types VehiclePropertyType#FLOAT 43 * and VehiclePropertyType#FLOAT_VEC */ 44 repeated float float_values = 6; 45 46 /* This is used for properties of type VehiclePropertyType#INT64 */ 47 repeated int64 int64_values = 7; 48 49 /* This is used for properties of type VehiclePropertyType#BYTES */ 50 bytes byte_values = 8; 51 52 /* This is used for properties of type VehiclePropertyType#STRING */ 53 string string_value = 9; 54}; 55 56message VehiclePropValues { 57 repeated VehiclePropValue values = 1; 58} 59