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 /** 20 * HalAreaConfig represents a vehicle area config. 21 */ 22 public abstract class HalAreaConfig { 23 /** 24 * Get the access mode. 25 */ getAccess()26 public abstract int getAccess(); 27 28 /** 29 * Get the area ID. 30 */ getAreaId()31 public abstract int getAreaId(); 32 33 /** 34 * Get the min int value. 35 */ getMinInt32Value()36 public abstract int getMinInt32Value(); 37 38 /** 39 * Get the max int value. 40 */ getMaxInt32Value()41 public abstract int getMaxInt32Value(); 42 43 /** 44 * Get the min long value. 45 */ getMinInt64Value()46 public abstract long getMinInt64Value(); 47 48 /** 49 * Get the max long value. 50 */ getMaxInt64Value()51 public abstract long getMaxInt64Value(); 52 53 /** 54 * Get the min float value. 55 */ getMinFloatValue()56 public abstract float getMinFloatValue(); 57 58 /** 59 * Get the max float value. 60 */ getMaxFloatValue()61 public abstract float getMaxFloatValue(); 62 63 /** 64 * Get list of supported enum values. 65 */ getSupportedEnumValues()66 public abstract long[] getSupportedEnumValues(); 67 68 /** 69 * Returns whether variable update rate is supported. 70 */ isVariableUpdateRateSupported()71 public boolean isVariableUpdateRateSupported() { 72 return false; 73 } 74 } 75