VehicleGear

public final class VehicleGear
extends Object

java.lang.Object
   ↳ android.car.VehicleGear


List of enums for vehicle gears.

Summary

Constants

int GEAR_DRIVE

int GEAR_EIGHTH

int GEAR_FIFTH

int GEAR_FIRST

int GEAR_FOURTH

int GEAR_NEUTRAL

int GEAR_NINTH

int GEAR_PARK

int GEAR_REVERSE

int GEAR_SECOND

int GEAR_SEVENTH

int GEAR_SIXTH

int GEAR_THIRD

int GEAR_UNKNOWN

GEAR_* represents meaning of value for VehiclePropertyIds#GEAR_SELECTION and VehiclePropertyIds#CURRENT_GEAR.

Public methods

static String toString(int o)

Inherited methods

Constants

GEAR_DRIVE

Added in API level 30
public static final int GEAR_DRIVE

Constant Value: 8 (0x00000008)

GEAR_EIGHTH

Added in API level 30
public static final int GEAR_EIGHTH

Constant Value: 2048 (0x00000800)

GEAR_FIFTH

Added in API level 30
public static final int GEAR_FIFTH

Constant Value: 256 (0x00000100)

GEAR_FIRST

Added in API level 30
public static final int GEAR_FIRST

Constant Value: 16 (0x00000010)

GEAR_FOURTH

Added in API level 30
public static final int GEAR_FOURTH

Constant Value: 128 (0x00000080)

GEAR_NEUTRAL

Added in API level 30
public static final int GEAR_NEUTRAL

Constant Value: 1 (0x00000001)

GEAR_NINTH

Added in API level 30
public static final int GEAR_NINTH

Constant Value: 4096 (0x00001000)

GEAR_PARK

Added in API level 30
public static final int GEAR_PARK

Constant Value: 4 (0x00000004)

GEAR_REVERSE

Added in API level 30
public static final int GEAR_REVERSE

Constant Value: 2 (0x00000002)

GEAR_SECOND

Added in API level 30
public static final int GEAR_SECOND

Constant Value: 32 (0x00000020)

GEAR_SEVENTH

Added in API level 30
public static final int GEAR_SEVENTH

Constant Value: 1024 (0x00000400)

GEAR_SIXTH

Added in API level 30
public static final int GEAR_SIXTH

Constant Value: 512 (0x00000200)

GEAR_THIRD

Added in API level 30
public static final int GEAR_THIRD

Constant Value: 64 (0x00000040)

GEAR_UNKNOWN

Added in API level 30
public static final int GEAR_UNKNOWN

GEAR_* represents meaning of value for VehiclePropertyIds#GEAR_SELECTION and VehiclePropertyIds#CURRENT_GEAR. VehicleGear#GEAR_PARK and VehicleGear#GEAR_DRIVE only apply to the VehiclePropertyIds#GEAR_SELECTION property for a vehicle with an automatic transmission.

Constant Value: 0 (0x00000000)

Public methods

toString

Added in API level 30
public static String toString (int o)

Parameters
o int: Integer

Returns
String String