/frameworks/base/services/core/java/com/android/server/display/ |
D | BrightnessMappingStrategy.java | 264 public abstract float convertToNits(float brightness); in convertToNits() argument 276 public abstract void addUserDataPoint(float lux, float brightness); in addUserDataPoint() argument 346 protected static float normalizeAbsoluteBrightness(int brightness) { in normalizeAbsoluteBrightness() argument 347 return BrightnessSynchronizer.brightnessIntToFloat(brightness); in normalizeAbsoluteBrightness() 351 float[] luxLevels, float[] brightnessLevels, float lux, float brightness) { in insertControlPoint() argument 359 newBrightnessLevels[idx] = brightness; in insertControlPoint() 363 newBrightnessLevels[idx] = brightness; in insertControlPoint() 371 newBrightnessLevels[idx] = brightness; in insertControlPoint() 392 private void smoothCurve(float[] lux, float[] brightness, int idx) { in smoothCurve() argument 394 PLOG.logCurve("unsmoothed curve", lux, brightness); in smoothCurve() [all …]
|
D | BrightnessSetting.java | 99 void setBrightness(float brightness) { in setBrightness() argument 100 if (Float.isNaN(brightness)) { in setBrightness() 105 if (brightness == mBrightness) { in setBrightness() 109 mBrightness = brightness; in setBrightness() 111 brightness); in setBrightness() local 118 private void notifyListeners(float brightness) { in notifyListeners() argument 120 l.onBrightnessChanged(brightness); in notifyListeners() 132 void onBrightnessChanged(float brightness); in onBrightnessChanged() argument
|
D | DisplayManagerShellCommand.java | 101 float brightness = -1.0f; in setBrightness() local 103 brightness = Float.parseFloat(brightnessText); in setBrightness() 106 if (brightness < 0 || brightness > 1) { in setBrightness() 113 dm.setBrightness(Display.DEFAULT_DISPLAY, brightness); in setBrightness()
|
D | DisplayPowerState.java | 170 public void setSdrScreenBrightness(float brightness) { in setSdrScreenBrightness() argument 171 if (mSdrScreenBrightness != brightness) { in setSdrScreenBrightness() 173 Slog.d(TAG, "setSdrScreenBrightness: brightness=" + brightness); in setSdrScreenBrightness() 176 mSdrScreenBrightness = brightness; in setSdrScreenBrightness() 197 public void setScreenBrightness(float brightness) { in setScreenBrightness() argument 198 if (mScreenBrightness != brightness) { in setScreenBrightness() 200 Slog.d(TAG, "setScreenBrightness: brightness=" + brightness); in setScreenBrightness() 203 mScreenBrightness = brightness; in setScreenBrightness()
|
D | DisplayPowerController.java | 823 final float brightness = convertToNits(mPowerState.getScreenBrightness()); in initialize() local 824 if (brightness >= PowerManager.BRIGHTNESS_MIN) { in initialize() 825 mBrightnessTracker.start(brightness); in initialize() 1496 public void setTemporaryBrightness(float brightness) { in setTemporaryBrightness() argument 1498 Float.floatToIntBits(brightness), 0 /*unused*/); in setTemporaryBrightness() 1511 mCachedBrightnessInfo.brightness, in getBrightnessInfo() 1518 private void saveBrightnessInfo(float brightness) { in saveBrightnessInfo() argument 1520 mCachedBrightnessInfo.brightness = brightness; in saveBrightnessInfo() 1695 private boolean isValidBrightnessValue(float brightness) { in isValidBrightnessValue() argument 1696 return brightness >= PowerManager.BRIGHTNESS_MIN in isValidBrightnessValue() [all …]
|
D | BrightnessTracker.java | 316 public void notifyBrightnessChanged(float brightness, boolean userInitiated, in notifyBrightnessChanged() argument 321 brightness, userInitiated)); in notifyBrightnessChanged() 324 userInitiated ? 1 : 0, 0 /*unused*/, new BrightnessChangeValues(brightness, in notifyBrightnessChanged() 330 private void handleBrightnessChanged(float brightness, boolean userInitiated, in handleBrightnessChanged() argument 342 mLastBrightness = brightness; in handleBrightnessChanged() 352 builder.setBrightness(brightness); in handleBrightnessChanged() 408 * brightness); in handleBrightnessChanged() 423 Slog.d(TAG, "Event " + event.brightness + " " + event.packageName); in handleBrightnessChanged() 566 out.attributeFloat(null, ATTR_NITS, toWrite[i].brightness); in writeEventsLocked() 715 Slog.i(TAG, "Read event " + event.brightness in readEventsLocked() [all …]
|
/frameworks/native/services/inputflinger/reader/controller/ |
D | PeripheralController.cpp | 46 static inline int32_t toArgb(int32_t brightness, int32_t red, int32_t green, int32_t blue) { in toArgb() argument 47 return (brightness & 0xff) << 24 | (red & 0xff) << 16 | (green & 0xff) << 8 | (blue & 0xff); in toArgb() 72 int brightness = brightnessOpt.value(); in getRawLightBrightness() local 79 brightness = brightness * ratio; in getRawLightBrightness() 83 brightness, ratio); in getRawLightBrightness() 85 return brightness; in getRawLightBrightness() 88 void PeripheralController::Light::setRawLightBrightness(int32_t rawLightId, int32_t brightness) { in setRawLightBrightness() argument 98 brightness = ceil(brightness / ratio); in setRawLightBrightness() 102 brightness, ratio); in setRawLightBrightness() 104 context.setLightBrightness(rawLightId, brightness); in setRawLightBrightness() [all …]
|
/frameworks/base/services/core/jni/ |
D | com_android_server_lights_LightsService.cpp | 44 static bool validate(jint light, jint flash, jint brightness) { in validate() argument 59 if (brightness != static_cast<jint>(Brightness::USER) && in validate() 60 brightness != static_cast<jint>(Brightness::SENSOR) && in validate() 61 brightness != static_cast<jint>(Brightness::LOW_PERSISTENCE)) { in validate() 62 ALOGE("Invalid brightness parameter %d.", brightness); in validate() 66 if (brightness == static_cast<jint>(Brightness::LOW_PERSISTENCE) && in validate() 82 Brightness brightness = static_cast<Brightness>(brightnessMode); in constructState() local 86 if (brightness == Brightness::LOW_PERSISTENCE) { in constructState() 96 state.brightnessMode = brightness; in constructState()
|
/frameworks/base/core/java/android/hardware/display/ |
D | BrightnessInfo.java | 61 public final float brightness; field in BrightnessInfo 75 public BrightnessInfo(float brightness, float brightnessMinimum, float brightnessMaximum, in BrightnessInfo() argument 77 this.brightness = brightness; in BrightnessInfo() 105 dest.writeFloat(brightness); in writeToParcel() 125 brightness = source.readFloat(); in BrightnessInfo()
|
D | BrightnessChangeEvent.java | 36 public final float brightness; field in BrightnessChangeEvent 126 private BrightnessChangeEvent(float brightness, long timeStamp, String packageName, in BrightnessChangeEvent() argument 132 this.brightness = brightness; in BrightnessChangeEvent() 155 this.brightness = other.brightness; in BrightnessChangeEvent() 177 brightness = source.readFloat(); in BrightnessChangeEvent() 215 dest.writeFloat(brightness); in writeToParcel() 259 public Builder setBrightness(float brightness) { in setBrightness() argument 260 mBrightness = brightness; in setBrightness()
|
D | BrightnessCorrection.java | 91 public float apply(@FloatRange(from = 0.0) float brightness) { in apply() 92 return mImplementation.apply(brightness); in apply() 189 float apply(float brightness); in apply() argument 224 public float apply(float brightness) { in apply() argument 225 return MathUtils.exp(mScale * MathUtils.log(brightness) + mTranslate); in apply()
|
D | IDisplayManager.aidl | 133 void setTemporaryBrightness(int displayId, float brightness); in setTemporaryBrightness() argument 136 void setBrightness(int displayId, float brightness); in setBrightness() argument
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
D | ImageGoodnessFilter.java | 119 float brightness = ((Float)brightnessFrameValue.getValue()).floatValue(); in onProcess() local 140 contrastRating, colorfulness, brightness); in onProcess() 224 float brightness) { in computePictureScore() argument 235 colorfulness, brightness, score); in computePictureScore() 239 colorfulness, brightness, score); in computePictureScore() 242 colorfulness, brightness, score); in computePictureScore() 249 float contrastRating, float colorfulness, float brightness, float score) { in subComputeScore() argument 257 score += brightnessScore(brightness); in subComputeScore() 386 private float brightnessScore(float brightness) { in brightnessScore() argument 388 brightnessMean = brightness; in brightnessScore() [all …]
|
D | AvgBrightnessFilter.java | 54 float brightness; in onProcess() local 57 brightness = brightnessOperator(inputImage.getWidth(),inputImage.getHeight(), inputBuffer); in onProcess() 61 if (mLogVerbose) Log.v(TAG, "contrastRatio: " + brightness); in onProcess() 65 brightnessOutFrame.setValue(brightness); in onProcess()
|
D | CSVWriterFilter.java | 95 float brightness = ((Float)brightnessValue.getValue()).floatValue(); in onProcess() local 134 underExposure + "," + colorfulness + "," + contrast + "," + brightness + in onProcess() 137 underExposure + "," + colorfulness + "," + contrast + "," + brightness + in onProcess()
|
/frameworks/base/media/mca/filterpacks/native/imageproc/ |
D | brightness.c | 26 float brightness; member 44 ((BrightnessParameters*)user_data)->brightness = atof(value); in brightness_setvalue() 78 const float brightness = params->brightness; in brightness_process() local 81 const int factor = (int)(brightness * 255.0f); in brightness_process()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
D | BrightnessTrackerTest.java | 289 final float brightness = 0.5f; in testBrightnessEvent() local 295 notifyBrightnessChanged(mTracker, brightness, displayId); in testBrightnessEvent() 307 assertEquals(brightness, event.brightness, FLOAT_DELTA); in testBrightnessEvent() 319 final int brightness = 130; in testBrightnessFullPopulatedEvent() local 333 notifyBrightnessChanged(mTracker, brightness, displayId); in testBrightnessFullPopulatedEvent() 345 assertEquals(brightness, event.brightness, FLOAT_DELTA); in testBrightnessFullPopulatedEvent() 352 assertEquals(brightness * mRbcOffsetFactor, event.reduceBrightColorsOffset, FLOAT_DELTA); in testBrightnessFullPopulatedEvent() 389 assertEquals(firstUserUpdateBrightness, events.get(0).brightness, FLOAT_DELTA); in testIgnoreAutomaticBrightnessChange() 392 assertEquals(secondUserUpdateBrightness, events.get(1).brightness, FLOAT_DELTA); in testIgnoreAutomaticBrightnessChange() 402 for (int brightness = 0; brightness <= 255; ++brightness) { in testLimitedBufferSize() [all …]
|
D | HighBrightnessModeControllerTest.java | 420 float brightness = 0.5f; in testHdrBrightnessScaledNormalBrightness() local 422 DEFAULT_MIN, DEFAULT_MAX, brightness); // map value from normal range to hdr range in testHdrBrightnessScaledNormalBrightness() 423 hbmc.onBrightnessChanged(brightness); in testHdrBrightnessScaledNormalBrightness() 428 brightness = 0.33f; in testHdrBrightnessScaledNormalBrightness() 430 DEFAULT_MIN, DEFAULT_MAX, brightness); // map value from normal range to hdr range in testHdrBrightnessScaledNormalBrightness() 431 hbmc.onBrightnessChanged(brightness); in testHdrBrightnessScaledNormalBrightness() 436 brightness = DEFAULT_MIN; in testHdrBrightnessScaledNormalBrightness() 438 hbmc.onBrightnessChanged(brightness); in testHdrBrightnessScaledNormalBrightness() 443 brightness = TRANSITION_POINT; in testHdrBrightnessScaledNormalBrightness() 445 hbmc.onBrightnessChanged(brightness); in testHdrBrightnessScaledNormalBrightness()
|
D | BrightnessMappingStrategyTest.java | 207 final float brightness = physical.getBrightness(lux); in testPhysicalStrategyMappingBetweenControlPoints() local 208 final float nits = brightnessToNits.interpolate(brightness); in testPhysicalStrategyMappingBetweenControlPoints() 380 float brightness = strategy.getBrightness(LUX_LEVELS[i]); in assertStrategyAdaptsToUserDataPoints() local 382 prevBrightness >= brightness); in assertStrategyAdaptsToUserDataPoints() 383 prevBrightness = brightness; in assertStrategyAdaptsToUserDataPoints() 401 float brightness = strategy.getBrightness(lux); in assertStrategyAdaptsToUserDataPoints() local 403 prevBrightness <= brightness); in assertStrategyAdaptsToUserDataPoints() 404 prevBrightness = brightness; in assertStrategyAdaptsToUserDataPoints()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeBrightnessHostForwarder.java | 32 public void setDozeScreenBrightness(int brightness) { in setDozeScreenBrightness() argument 33 super.setDozeScreenBrightness(brightness); in setDozeScreenBrightness() 34 mHost.setDozeScreenBrightness(brightness); in setDozeScreenBrightness()
|
D | DozeScreenBrightness.java | 153 int brightness = computeBrightness(sensorValue); in updateBrightnessAndReady() local 154 boolean brightnessReady = brightness > 0; in updateBrightnessAndReady() 156 mDozeService.setDozeScreenBrightness(clampToUserSetting(brightness)); in updateBrightnessAndReady() 198 private int clampToUserSetting(int brightness) { in clampToUserSetting() argument 202 return Math.min(brightness, userSetting); in clampToUserSetting() 210 private int clampToDimBrightnessForScreenOff(int brightness) { in clampToDimBrightnessForScreenOff() argument 214 return Math.min(mScreenBrightnessDim, brightness); in clampToDimBrightnessForScreenOff() 216 return brightness; in clampToDimBrightnessForScreenOff()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeServiceFake.java | 56 public void setDozeScreenBrightness(int brightness) { in setDozeScreenBrightness() argument 57 screenBrightness = brightness; in setDozeScreenBrightness()
|
/frameworks/base/services/core/java/com/android/server/lights/ |
D | LogicalLight.java | 60 public abstract void setBrightness(float brightness); in setBrightness() argument 65 public abstract void setBrightness(float brightness, int brightnessMode); in setBrightness() argument
|
D | LightsService.java | 279 public void setBrightness(float brightness) { in setBrightness() argument 280 setBrightness(brightness, BRIGHTNESS_MODE_USER); in setBrightness() 284 public void setBrightness(float brightness, int brightnessMode) { in setBrightness() argument 285 if (Float.isNaN(brightness)) { in setBrightness() 286 Slog.w(TAG, "Brightness is not valid: " + brightness); in setBrightness() 293 + ": brightness=" + brightness); in setBrightness() 296 int brightnessInt = BrightnessSynchronizer.brightnessFloatToInt(brightness); in setBrightness()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
D | QSPanelControllerTest.java | 44 import com.android.systemui.settings.brightness.BrightnessController; 45 import com.android.systemui.settings.brightness.BrightnessSlider; 46 import com.android.systemui.settings.brightness.ToggleSlider;
|