EnergyProfile

public final class EnergyProfile
extends Object

java.lang.Object
   ↳ androidx.car.app.hardware.info.EnergyProfile


Information about car hardware fuel profile such as fuel types and connector ports.

Summary

Nested classes

class EnergyProfile.Builder

A builder of EnergyProfile

Constants

int EVCONNECTOR_TYPE_CHADEMO

CHAdeMo fast charger connector

int EVCONNECTOR_TYPE_COMBO_1

Combined Charging System Combo 1

int EVCONNECTOR_TYPE_COMBO_2

Combined Charging System Combo 2

int EVCONNECTOR_TYPE_GBT

GBT_AC Fast Charging Standard

int EVCONNECTOR_TYPE_GBT_DC

GBT_DC Fast Charging Standard

int EVCONNECTOR_TYPE_J1772

Connector type SAE J1772

int EVCONNECTOR_TYPE_MENNEKES

IEC 62196 Type 2 connector

int EVCONNECTOR_TYPE_OTHER

Connector type to use when no other types apply.

int EVCONNECTOR_TYPE_SCAME

IEC_TYPE_3_AC connector

int EVCONNECTOR_TYPE_TESLA_HPWC

High Power Wall Charger of Tesla

int EVCONNECTOR_TYPE_TESLA_ROADSTER

Connector of Tesla Roadster

int EVCONNECTOR_TYPE_TESLA_SUPERCHARGER

Supercharger of Tesla

int EVCONNECTOR_TYPE_UNKNOWN

Unknown connector type.

int FUEL_TYPE_BIODIESEL

Biodiesel

int FUEL_TYPE_CNG

Compressed natural gas

int FUEL_TYPE_DIESEL_1

#1 Grade Diesel

int FUEL_TYPE_DIESEL_2

#2 Grade Diesel

int FUEL_TYPE_E85

85% ethanol/gasoline blend

int FUEL_TYPE_ELECTRIC

Electric

int FUEL_TYPE_HYDROGEN

Hydrogen fuel cell

int FUEL_TYPE_LEADED

Leaded gasoline

int FUEL_TYPE_LNG

Liquified natural gas

int FUEL_TYPE_LPG

Liquified petroleum gas

int FUEL_TYPE_OTHER

Fuel type to use when no other types apply.

int FUEL_TYPE_UNKNOWN

Unknown fuel type

int FUEL_TYPE_UNLEADED

Unleaded gasoline

Public methods

boolean equals(Object other)
CarValue<List<Integer>> getEvConnectorTypes()

Returns an array of the available EV connectors.

CarValue<List<Integer>> getFuelTypes()

Returns an array of the available fuel types.

int hashCode()
String toString()

Inherited methods

Constants

EVCONNECTOR_TYPE_CHADEMO

public static final int EVCONNECTOR_TYPE_CHADEMO

CHAdeMo fast charger connector

Constant Value: 3 (0x00000003)

EVCONNECTOR_TYPE_COMBO_1

public static final int EVCONNECTOR_TYPE_COMBO_1

Combined Charging System Combo 1

Constant Value: 4 (0x00000004)

EVCONNECTOR_TYPE_COMBO_2

public static final int EVCONNECTOR_TYPE_COMBO_2

Combined Charging System Combo 2

Constant Value: 5 (0x00000005)

EVCONNECTOR_TYPE_GBT

public static final int EVCONNECTOR_TYPE_GBT

GBT_AC Fast Charging Standard

Constant Value: 9 (0x00000009)

EVCONNECTOR_TYPE_GBT_DC

public static final int EVCONNECTOR_TYPE_GBT_DC

GBT_DC Fast Charging Standard

Constant Value: 10 (0x0000000a)

EVCONNECTOR_TYPE_J1772

public static final int EVCONNECTOR_TYPE_J1772

Connector type SAE J1772

Constant Value: 1 (0x00000001)

EVCONNECTOR_TYPE_MENNEKES

public static final int EVCONNECTOR_TYPE_MENNEKES

IEC 62196 Type 2 connector

Constant Value: 2 (0x00000002)

EVCONNECTOR_TYPE_OTHER

public static final int EVCONNECTOR_TYPE_OTHER

Connector type to use when no other types apply.

Constant Value: 101 (0x00000065)

EVCONNECTOR_TYPE_SCAME

public static final int EVCONNECTOR_TYPE_SCAME

IEC_TYPE_3_AC connector

Constant Value: 11 (0x0000000b)

EVCONNECTOR_TYPE_TESLA_HPWC

public static final int EVCONNECTOR_TYPE_TESLA_HPWC

High Power Wall Charger of Tesla

Constant Value: 7 (0x00000007)

EVCONNECTOR_TYPE_TESLA_ROADSTER

public static final int EVCONNECTOR_TYPE_TESLA_ROADSTER

Connector of Tesla Roadster

Constant Value: 6 (0x00000006)

EVCONNECTOR_TYPE_TESLA_SUPERCHARGER

public static final int EVCONNECTOR_TYPE_TESLA_SUPERCHARGER

Supercharger of Tesla

Constant Value: 8 (0x00000008)

EVCONNECTOR_TYPE_UNKNOWN

public static final int EVCONNECTOR_TYPE_UNKNOWN

Unknown connector type.

Constant Value: 0 (0x00000000)

FUEL_TYPE_BIODIESEL

public static final int FUEL_TYPE_BIODIESEL

Biodiesel

Constant Value: 5 (0x00000005)

FUEL_TYPE_CNG

public static final int FUEL_TYPE_CNG

Compressed natural gas

Constant Value: 8 (0x00000008)

FUEL_TYPE_DIESEL_1

public static final int FUEL_TYPE_DIESEL_1

#1 Grade Diesel

Constant Value: 3 (0x00000003)

FUEL_TYPE_DIESEL_2

public static final int FUEL_TYPE_DIESEL_2

#2 Grade Diesel

Constant Value: 4 (0x00000004)

FUEL_TYPE_E85

public static final int FUEL_TYPE_E85

85% ethanol/gasoline blend

Constant Value: 6 (0x00000006)

FUEL_TYPE_ELECTRIC

public static final int FUEL_TYPE_ELECTRIC

Electric

Constant Value: 10 (0x0000000a)

FUEL_TYPE_HYDROGEN

public static final int FUEL_TYPE_HYDROGEN

Hydrogen fuel cell

Constant Value: 11 (0x0000000b)

FUEL_TYPE_LEADED

public static final int FUEL_TYPE_LEADED

Leaded gasoline

Constant Value: 2 (0x00000002)

FUEL_TYPE_LNG

public static final int FUEL_TYPE_LNG

Liquified natural gas

Constant Value: 9 (0x00000009)

FUEL_TYPE_LPG

public static final int FUEL_TYPE_LPG

Liquified petroleum gas

Constant Value: 7 (0x00000007)

FUEL_TYPE_OTHER

public static final int FUEL_TYPE_OTHER

Fuel type to use when no other types apply.

Constant Value: 12 (0x0000000c)

FUEL_TYPE_UNKNOWN

public static final int FUEL_TYPE_UNKNOWN

Unknown fuel type

Constant Value: 0 (0x00000000)

FUEL_TYPE_UNLEADED

public static final int FUEL_TYPE_UNLEADED

Unleaded gasoline

Constant Value: 1 (0x00000001)

Public methods

equals

public boolean equals (Object other)

Parameters
other Object

Returns
boolean

getEvConnectorTypes

public CarValue<List<Integer>> getEvConnectorTypes ()

Returns an array of the available EV connectors.

If a vehicle does not know the EV connector type it will return EVCONNECTOR_TYPE_UNKNOWN or CarValue.STATUS_UNIMPLEMENTED. If the value is known but not in the current list EVCONNECTOR_TYPE_UNKNOWN will be returned.

Returns
CarValue<List<Integer>>

getFuelTypes

public CarValue<List<Integer>> getFuelTypes ()

Returns an array of the available fuel types.

If a vehicle does not know the fuel type it will return FUEL_TYPE_UNKNOWN or CarValue.STATUS_UNIMPLEMENTED. If the value is known but not in the current list EVCONNECTOR_TYPE_UNKNOWN will be returned.

Returns
CarValue<List<Integer>>

hashCode

public int hashCode ()

Returns
int

toString

public String toString ()

Returns
String