Package: android.hardware.tests.extension.light@2.0

types

Properties

Default

enum Default: int32_t
Details
Members
INTERPOLATION_OMEGA = 2

Brightness

enum Brightness: android.hardware.light@2.0::Brightness

One possibility is renaming an old type.Another possibility is taking advantages of the different namespaces.

Details
Members
EXTREME
Say we're really going to use the phone as a heater.
THE_SUN
Sometimes at night, we need it to be day.

LightState

struct LightState {android state; int32_t interpolationOmega; Brightness brightness}

Structs can't inherit eachother in hidl.Use composition instead.In this case, I won't use inheritence because I want to replace Brightness with the new enumeration.

Details
Members
state
interpolationOmega
This is the secret sauce that will really make this extension shine.No other person has such a cool feature in their hals.Don't forget to describe all details of parameters.An interface is a contract, and specifying this contract to the letter is what allows that contracted to be maintained.:)
So, this parameter represents the speed at which brightness is changed to the new value in the three dimensional space with coordinates RGB from the red, blue, and green.
brightness
Include new values.