Package-level declarations
This package contains tools for customising the region-specific elements of the digital cockpit environment such as language.
setSystemLocale is an API which allows for changing the Android system's language, reflected in all apps present on the system.
Types
Functions
Retrieves the current clock time format value at Settings.System.TIME_12_24 and returns the corresponding TimeFormat enum value.
Retrieves the current Vehicle Distance Unit setting at VehiclePropertyIds.DISTANCE_DISPLAY_UNITS and returns the corresponding DistanceDisplayUnit enum value. This API requires android.car.permission.READ_CAR_DISPLAY_UNITS to read from the vehicle property.
Retrieves the current Vehicle Temperature Unit setting at VehiclePropertyIds.HVAC_TEMPERATURE_DISPLAY_UNITS and returns the corresponding TemperatureDisplayUnit enum value. This API requires the signature permission android.car.permission.CONTROL_CAR_CLIMATE and android.car.Car.permission.PERMISSION_CONTROL_CAR_CLIMATE.
Sets Settings.System.TIME_12_24 to the time format setting determined by the timeValue parameter. This API Requires android.permission.WRITE_PERMISSIONS.
Sets DISTANCE_DISPLAY_UNITS vehicle property to the distance unit setting determined by the distanceDisplayUnit parameter. This API requires signature permissions, android.car.permission.CONTROL_CAR_DISPLAY_UNITS and android.car.permission.CAR_VENDOR_EXTENSION to write to the vehicle property.
Sets HVAC_TEMPERATURE_DISPLAY_UNITS vehicle property to the temperature unit setting determined by the temperatureDisplayUnit parameter. This API requires the signature permission android.car.permission.CONTROL_CAR_CLIMATE and android.car.Car.permission.PERMISSION_CONTROL_CAR_CLIMATE.