blob: 958703242070aebe45abf5263f137dd37b778e83 [file] [log] [blame]
Steve Paikc36f8ee2017-11-09 16:05:37 -08001/*
2 * Copyright (C) 2017 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 */
16package android.car;
17
18import android.annotation.IntDef;
Kai1599ef82019-02-28 15:03:05 -080019
Steve Paikc36f8ee2017-11-09 16:05:37 -080020import java.lang.annotation.Retention;
21import java.lang.annotation.RetentionPolicy;
22
23/**
24 * FuelType denotes the different fuels a vehicle may use.
Steve Paikc36f8ee2017-11-09 16:05:37 -080025 */
26public final class FuelType {
27 /**
28 * List of Fuel Types from VHAL
29 */
30 public static final int UNKNOWN = 0;
31 /** Unleaded gasoline */
32 public static final int UNLEADED = 1;
33 /** Leaded gasoline */
34 public static final int LEADED = 2;
Kai1599ef82019-02-28 15:03:05 -080035 /** #1 Grade Diesel */
Steve Paikc36f8ee2017-11-09 16:05:37 -080036 public static final int DIESEL_1 = 3;
Kai1599ef82019-02-28 15:03:05 -080037 /** #2 Grade Diesel */
Steve Paikc36f8ee2017-11-09 16:05:37 -080038 public static final int DIESEL_2 = 4;
39 /** Biodiesel */
40 public static final int BIODIESEL = 5;
41 /** 85% ethanol/gasoline blend */
42 public static final int E85 = 6;
43 /** Liquified petroleum gas */
44 public static final int LPG = 7;
45 /** Compressed natural gas */
46 public static final int CNG = 8;
47 /** Liquified natural gas */
48 public static final int LNG = 9;
49 /** Electric */
50 public static final int ELECTRIC = 10;
51 /** Hydrogen fuel cell */
52 public static final int HYDROGEN = 11;
53 /**
54 * Fuel type to use when no other types apply. Before using this value, work with
55 * Google to see if the FuelType enum can be extended with an appropriate value.
56 */
57 public static final int OTHER = 12;
58
Kai48106a92018-12-18 13:26:19 -080059 /** @hide */
Steve Paikc36f8ee2017-11-09 16:05:37 -080060 @IntDef({
61 UNKNOWN,
62 UNLEADED,
63 LEADED,
64 DIESEL_1,
65 DIESEL_2,
66 BIODIESEL,
67 E85,
68 LPG,
69 CNG,
70 LNG,
71 ELECTRIC,
72 HYDROGEN,
73 OTHER
74 })
Kai48106a92018-12-18 13:26:19 -080075 @Retention(RetentionPolicy.SOURCE)
Steve Paikc36f8ee2017-11-09 16:05:37 -080076 public @interface Enum {}
77
Steve Paikc36f8ee2017-11-09 16:05:37 -080078 private FuelType() {}
79}