• 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 
17 package com.android.car.hal;
18 
19 import android.annotation.Nullable;
20 import android.hardware.automotive.vehicle.HasSupportedValueInfo;
21 
22 /**
23  * HalAreaConfig represents a vehicle area config.
24  */
25 public abstract class HalAreaConfig {
26     /**
27      * Get the access mode.
28      */
getAccess()29     public abstract int getAccess();
30 
31     /**
32      * Get the area ID.
33      */
getAreaId()34     public abstract int getAreaId();
35 
36     /**
37      * Get the min int value.
38      */
getMinInt32Value()39     public abstract int getMinInt32Value();
40 
41     /**
42      * Get the max int value.
43      */
getMaxInt32Value()44     public abstract int getMaxInt32Value();
45 
46     /**
47      * Get the min long value.
48      */
getMinInt64Value()49     public abstract long getMinInt64Value();
50 
51     /**
52      * Get the max long value.
53      */
getMaxInt64Value()54     public abstract long getMaxInt64Value();
55 
56     /**
57      * Get the min float value.
58      */
getMinFloatValue()59     public abstract float getMinFloatValue();
60 
61     /**
62      * Get the max float value.
63      */
getMaxFloatValue()64     public abstract float getMaxFloatValue();
65 
66     /**
67      * Get list of supported enum values.
68      */
getSupportedEnumValues()69     public abstract long[] getSupportedEnumValues();
70 
71     /**
72      * Returns whether variable update rate is supported.
73      */
isVariableUpdateRateSupported()74     public boolean isVariableUpdateRateSupported() {
75         return false;
76     }
77 
78     /**
79      * Gets the {@code hasSupportedValueInfo} field.
80      */
getHasSupportedValueInfo()81     public @Nullable HasSupportedValueInfo getHasSupportedValueInfo() {
82         return null;
83     }
84 }
85