Home | History | Annotate | Download | only in car
      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 import android.annotation.SystemApi;
     20 
     21 import java.lang.annotation.Retention;
     22 import java.lang.annotation.RetentionPolicy;
     23 
     24 /**
     25  * Represents vehicle area such as window, door, seat, zone, etc.
     26  * See also {@link android.car.VehicleDoor}, {@link android.car.VehicleSeat},
     27  * {@link android.car.VehicleWindow}, {@link android.car.VehicleZone}
     28  *
     29  * @hide
     30  */
     31 @SystemApi
     32 public final class VehicleAreaType {
     33     /** Used for global properties */
     34     public static final int VEHICLE_AREA_TYPE_NONE = 0;
     35 
     36     public static final int VEHICLE_AREA_TYPE_ZONE = 1;
     37     public static final int VEHICLE_AREA_TYPE_WINDOW = 2;
     38     public static final int VEHICLE_AREA_TYPE_SEAT = 3;
     39     public static final int VEHICLE_AREA_TYPE_DOOR = 4;
     40     public static final int VEHICLE_AREA_TYPE_MIRROR = 5;
     41     private VehicleAreaType() {}
     42 
     43     /** @hide */
     44     @IntDef({
     45         VEHICLE_AREA_TYPE_NONE,
     46         VEHICLE_AREA_TYPE_ZONE,
     47         VEHICLE_AREA_TYPE_WINDOW,
     48         VEHICLE_AREA_TYPE_SEAT,
     49         VEHICLE_AREA_TYPE_DOOR,
     50         VEHICLE_AREA_TYPE_MIRROR
     51     })
     52     @Retention(RetentionPolicy.SOURCE)
     53     public @interface VehicleAreaTypeValue {}
     54 }
     55