• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
21/* Must be in sync with VehiclePropertyStatus.aidl. */
22enum VehiclePropertyStatus {
23    /* Property is available and behaving normally */
24    AVAILABLE = 0;
25    /* A property in this state is not available for reading and writing.  This
26     * is a transient state that depends on the availability of the underlying
27     * implementation (e.g. hardware or driver). It MUST NOT be used to
28     * represent features that this vehicle is always incapable of.  A get() of
29     * a property in this state MAY return an undefined value, but MUST
30     * correctly describe its status as UNAVAILABLE A set() of a property in
31     * this state MAY return NOT_AVAILABLE. The HAL implementation MUST ignore
32     * the value of the status field when writing a property value coming from
33     * Android. */
34    UNAVAILABLE = 1;
35    /* There is an error with this property. */
36    ERROR = 2;
37};
38