• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/SubscribeRequest.proto";
24import "android/hardware/automotive/vehicle/StatusCode.proto";
25import "android/hardware/automotive/vehicle/UnsubscribeRequest.proto";
26import "android/hardware/automotive/vehicle/VehiclePropConfig.proto";
27import "android/hardware/automotive/vehicle/VehiclePropValue.proto";
28import "android/hardware/automotive/vehicle/VehiclePropValueRequest.proto";
29import "google/protobuf/empty.proto";
30
31service VehicleServer {
32    rpc GetAllPropertyConfig(google.protobuf.Empty) returns (stream VehiclePropConfig) {}
33
34    rpc SetValues(VehiclePropValueRequests) returns (SetValueResults) {}
35
36    rpc GetValues(VehiclePropValueRequests) returns (GetValueResults) {}
37
38    rpc UpdateSampleRate(UpdateSampleRateRequest) returns (VehicleHalCallStatus) {}
39
40    rpc CheckHealth(google.protobuf.Empty) returns (VehicleHalCallStatus) {}
41
42    rpc Dump(DumpOptions) returns (DumpResult) {}
43
44    rpc StartPropertyValuesStream(google.protobuf.Empty) returns (stream VehiclePropValues) {}
45
46    rpc Subscribe(SubscribeRequest) returns (VehicleHalCallStatus) {}
47
48    rpc Unsubscribe(UnsubscribeRequest) returns (VehicleHalCallStatus) {}
49}
50