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 area ID. 25 */ getAreaId()26 public abstract int getAreaId(); 27 28 /** 29 * Get the min int value. 30 */ getMinInt32Value()31 public abstract int getMinInt32Value(); 32 33 /** 34 * Get the max int value. 35 */ getMaxInt32Value()36 public abstract int getMaxInt32Value(); 37 38 /** 39 * Get the min long value. 40 */ getMinInt64Value()41 public abstract long getMinInt64Value(); 42 43 /** 44 * Get the max long value. 45 */ getMaxInt64Value()46 public abstract long getMaxInt64Value(); 47 48 /** 49 * Get the min float value. 50 */ getMinFloatValue()51 public abstract float getMinFloatValue(); 52 53 /** 54 * Get the max float value. 55 */ getMaxFloatValue()56 public abstract float getMaxFloatValue(); 57 } 58