PropertyNotAvailableErrorCode

public final class PropertyNotAvailableErrorCode
extends Object

java.lang.Object
   ↳ android.car.hardware.property.PropertyNotAvailableErrorCode


Detailed error codes used in vehicle HAL interface. The list of error codes may be extended in future releases to include additional values.

Summary

Constants

int NOT_AVAILABLE

General not available error code.

int NOT_AVAILABLE_DISABLED

For features that are not available because the underlying feature is disabled.

int NOT_AVAILABLE_POOR_VISIBILITY

For features that are not available because of bad camera or sensor visibility.

int NOT_AVAILABLE_SAFETY

The feature cannot be accessed due to safety reasons.

int NOT_AVAILABLE_SPEED_HIGH

For features that are not available because the vehicle speed is too high.

int NOT_AVAILABLE_SPEED_LOW

For features that are not available because the vehicle speed is too low.

Public methods

static String toString(int propertyNotAvailableErrorCode)

Returns a user-friendly representation of a PropertyNotAvailableErrorCode.

Inherited methods

Constants

NOT_AVAILABLE

Added in API level 34
public static final int NOT_AVAILABLE

General not available error code. Used to support backward compatibility and when other error codes don't cover the not available reason.

Constant Value: 0 (0x00000000)

NOT_AVAILABLE_DISABLED

Added in API level 34
public static final int NOT_AVAILABLE_DISABLED

For features that are not available because the underlying feature is disabled.

Constant Value: 1 (0x00000001)

NOT_AVAILABLE_POOR_VISIBILITY

Added in API level 34
public static final int NOT_AVAILABLE_POOR_VISIBILITY

For features that are not available because of bad camera or sensor visibility. Examples might be bird poop blocking the camera or a bumper cover blocking an ultrasonic sensor.

Constant Value: 4 (0x00000004)

NOT_AVAILABLE_SAFETY

Added in API level 34
public static final int NOT_AVAILABLE_SAFETY

The feature cannot be accessed due to safety reasons. Eg. System could be in a faulty state, an object or person could be blocking the requested operation such as closing a trunk door, etc..

Constant Value: 5 (0x00000005)

NOT_AVAILABLE_SPEED_HIGH

Added in API level 34
public static final int NOT_AVAILABLE_SPEED_HIGH

For features that are not available because the vehicle speed is too high.

Constant Value: 3 (0x00000003)

NOT_AVAILABLE_SPEED_LOW

Added in API level 34
public static final int NOT_AVAILABLE_SPEED_LOW

For features that are not available because the vehicle speed is too low.

Constant Value: 2 (0x00000002)

Public methods

toString

Added in API level 34
public static String toString (int propertyNotAvailableErrorCode)

Returns a user-friendly representation of a PropertyNotAvailableErrorCode.

Parameters
propertyNotAvailableErrorCode int: Value is NOT_AVAILABLE, NOT_AVAILABLE_DISABLED, NOT_AVAILABLE_SPEED_LOW, NOT_AVAILABLE_SPEED_HIGH, NOT_AVAILABLE_POOR_VISIBILITY, or NOT_AVAILABLE_SAFETY

Returns
String