Lines Matching defs:brightness
33 using Brightness = ::android::hardware::light::V2_0::Brightness;
74 static bool validate(jint light, jint flash, jint brightness) {
89 if (brightness != static_cast<jint>(Brightness::USER) &&
90 brightness != static_cast<jint>(Brightness::SENSOR) &&
91 brightness != static_cast<jint>(Brightness::LOW_PERSISTENCE)) {
92 ALOGE("Invalid brightness parameter %d.", brightness);
96 if (brightness == static_cast<jint>(Brightness::LOW_PERSISTENCE) &&
112 Brightness brightness = static_cast<Brightness>(brightnessMode);
116 if (brightness == Brightness::LOW_PERSISTENCE) {
119 // Only set non-brightness settings when not in low-persistence mode
126 state.brightnessMode = brightness;
148 ALOGE("Brightness parameter not supported on this device: %d",