1 /* 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 */ 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 * EvConnectorType denotes the different connectors a EV may use. 25 * 26 * @deprecated Use {@link android.car.hardware.property.EvChargingConnectorType} as the return value 27 * of {@link android.car.hardware.property.CarPropertyManager#getProperty(int, int)} instead. 28 */ 29 @Deprecated 30 public final class EvConnectorType { 31 /** 32 * List of EV Connector Types used in {@link CarInfoManager#getEvConnectorTypes()}. 33 * If a vehicle does not know the type, it will return UNKNOWN. 34 * The vehicle returns OTHER when no other types apply. 35 * <b>Note:</b> The connector types in Java API have different values than the ones in VHAL. 36 */ 37 public static final int UNKNOWN = 0; 38 /** Connector type SAE J1772 */ 39 public static final int J1772 = 1; 40 /** IEC 62196 Type 2 connector */ 41 public static final int MENNEKES = 2; 42 /** CHAdeMo fast charger connector */ 43 public static final int CHADEMO = 3; 44 /** Combined Charging System Combo 1 */ 45 public static final int COMBO_1 = 4; 46 /** Combined Charging System Combo 2 */ 47 public static final int COMBO_2 = 5; 48 /** Connector of Tesla Roadster */ 49 public static final int TESLA_ROADSTER = 6; 50 /** High Power Wall Charger of Tesla */ 51 public static final int TESLA_HPWC = 7; 52 /** Supercharger of Tesla */ 53 public static final int TESLA_SUPERCHARGER = 8; 54 /** GBT_AC Fast Charging Standard */ 55 public static final int GBT = 9; 56 /** GBT_DC Fast Charging Standard */ 57 public static final int GBT_DC = 10; 58 /** IEC_TYPE_3_AC connector */ 59 public static final int SCAME = 11; 60 61 /** 62 * Connector type to use when no other types apply. 63 */ 64 public static final int OTHER = 101; 65 66 /** @hide */ 67 @IntDef({ 68 UNKNOWN, 69 J1772, 70 MENNEKES, 71 CHADEMO, 72 COMBO_1, 73 COMBO_2, 74 TESLA_ROADSTER, 75 TESLA_HPWC, 76 TESLA_SUPERCHARGER, 77 GBT, 78 GBT_DC, 79 SCAME, 80 OTHER 81 }) 82 @Retention(RetentionPolicy.SOURCE) 83 public @interface Enum {} 84 EvConnectorType()85 private EvConnectorType() {} 86 } 87