1 /* 2 * Copyright (C) 2016 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 package android.car; 17 18 import android.annotation.IntDef; 19 20 import java.lang.annotation.Retention; 21 import java.lang.annotation.RetentionPolicy; 22 23 /** 24 * Represents vehicle area such as window, door, seat, etc. 25 * See also {@link VehicleAreaDoor}, {@link VehicleAreaSeat}, 26 * {@link VehicleAreaWindow}, 27 */ 28 public final class VehicleAreaType { 29 /** Used for global properties */ 30 public static final int VEHICLE_AREA_TYPE_GLOBAL = 0; 31 /** Area type is Window */ 32 public static final int VEHICLE_AREA_TYPE_WINDOW = 2; 33 /** Area type is Seat */ 34 public static final int VEHICLE_AREA_TYPE_SEAT = 3; 35 /** Area type is Door */ 36 public static final int VEHICLE_AREA_TYPE_DOOR = 4; 37 /** Area type is Mirror */ 38 public static final int VEHICLE_AREA_TYPE_MIRROR = 5; 39 /** Area type is Wheel */ 40 public static final int VEHICLE_AREA_TYPE_WHEEL = 6; VehicleAreaType()41 private VehicleAreaType() {} 42 43 /** @hide */ 44 @IntDef(prefix = {"VEHICLE_AREA_TYPE_"}, value = { 45 VEHICLE_AREA_TYPE_GLOBAL, 46 VEHICLE_AREA_TYPE_WINDOW, 47 VEHICLE_AREA_TYPE_SEAT, 48 VEHICLE_AREA_TYPE_DOOR, 49 VEHICLE_AREA_TYPE_MIRROR, 50 VEHICLE_AREA_TYPE_WHEEL 51 }) 52 @Retention(RetentionPolicy.SOURCE) 53 public @interface VehicleAreaTypeValue {} 54 } 55