1/* 2 * Copyright (C) 2023 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/DumpOptions.proto"; 22import "android/hardware/automotive/vehicle/DumpResult.proto"; 23import "android/hardware/automotive/vehicle/GetMinMaxSupportedValuesTypes.proto"; 24import "android/hardware/automotive/vehicle/GetSupportedValuesListsTypes.proto"; 25import "android/hardware/automotive/vehicle/SubscribeRequest.proto"; 26import "android/hardware/automotive/vehicle/StatusCode.proto"; 27import "android/hardware/automotive/vehicle/UnsubscribeRequest.proto"; 28import "android/hardware/automotive/vehicle/VehiclePropConfig.proto"; 29import "android/hardware/automotive/vehicle/VehiclePropValue.proto"; 30import "android/hardware/automotive/vehicle/VehiclePropValueRequest.proto"; 31import "google/protobuf/empty.proto"; 32 33service VehicleServer { 34 rpc GetAllPropertyConfig(google.protobuf.Empty) returns (stream VehiclePropConfig) {} 35 36 rpc SetValues(VehiclePropValueRequests) returns (SetValueResults) {} 37 38 rpc GetValues(VehiclePropValueRequests) returns (GetValueResults) {} 39 40 rpc UpdateSampleRate(UpdateSampleRateRequest) returns (VehicleHalCallStatus) {} 41 42 rpc CheckHealth(google.protobuf.Empty) returns (VehicleHalCallStatus) {} 43 44 rpc Dump(DumpOptions) returns (DumpResult) {} 45 46 rpc StartPropertyValuesStream(google.protobuf.Empty) returns (stream VehiclePropValues) {} 47 48 rpc Subscribe(SubscribeRequest) returns (VehicleHalCallStatus) {} 49 50 rpc Unsubscribe(UnsubscribeRequest) returns (VehicleHalCallStatus) {} 51 52 rpc GetMinMaxSupportedValues(GetMinMaxSupportedValuesRequest) 53 returns (GetMinMaxSupportedValuesResult) {} 54 55 rpc GetSupportedValuesLists(GetSupportedValuesListsRequest) 56 returns (GetSupportedValuesListsResult) {} 57} 58