Lines Matching refs:nits
50 float nits) const { in NitsToBrightness()
51 BrightnessMode mode = GetBrightnessModeForNits(nits); in NitsToBrightness()
57 const float brightness = LinearInterpolation(nits, in NitsToBrightness()
74 std::optional<float> nits = DbvToNits(bm, dbv); in DbvToBrightness() local
75 if (nits == std::nullopt) { in DbvToBrightness()
79 return NitsToBrightness(nits.value()); in DbvToBrightness()
89 float nits = LinearInterpolation(brightness, range.brightness_min, range.brightness_max, in BrightnessToNits() local
91 if (isnan(nits)) { in BrightnessToNits()
95 return nits; in BrightnessToNits()
99 float nits) const { in NitsToDbv()
106 dbv = LinearInterpolation(nits, range.nits_min, range.nits_max, range.dbv_min, range.dbv_max); in NitsToDbv()
119 float nits = 0.0; in DbvToNits() local
121 nits = LinearInterpolation(dbv, range.dbv_min, range.dbv_max, range.nits_min, range.nits_max); in DbvToNits()
122 if (isnan(nits)) { in DbvToNits()
125 return nits; in DbvToNits()
457 int BrightnessController::setBrightnessNits(float nits, const nsecs_t vsyncNs) { in setBrightnessNits() argument
458 ALOGI("%s set brightness to %f nits", __func__, nits); in setBrightnessNits()
461 mBrightnessTable->NitsToBrightness(nits) : std::nullopt; in setBrightnessNits()
464 ALOGI("%s could not find brightness for %f nits", __func__, nits); in setBrightnessNits()
914 float *nits) { in queryBrightness() argument
938 if (nits) { in queryBrightness()
939 *nits = 0; in queryBrightness()
966 if (nits) { in queryBrightness()
967 *nits = nits_value.value(); in queryBrightness()