Home
last modified time | relevance | path

Searched refs:brightness (Results 1 – 25 of 70) sorted by relevance

123

/frameworks/base/services/core/java/com/android/server/display/
DBrightnessMappingStrategy.java257 public abstract void addUserDataPoint(float lux, float brightness); in addUserDataPoint() argument
279 protected float normalizeAbsoluteBrightness(int brightness) { in normalizeAbsoluteBrightness() argument
280 brightness = MathUtils.constrain(brightness, in normalizeAbsoluteBrightness()
282 return (float) brightness / PowerManager.BRIGHTNESS_ON; in normalizeAbsoluteBrightness()
286 float[] luxLevels, float[] brightnessLevels, float lux, float brightness) { in insertControlPoint() argument
294 newBrightnessLevels[idx] = brightness; in insertControlPoint()
298 newBrightnessLevels[idx] = brightness; in insertControlPoint()
306 newBrightnessLevels[idx] = brightness; in insertControlPoint()
327 private void smoothCurve(float[] lux, float[] brightness, int idx) { in smoothCurve() argument
329 PLOG.logCurve("unsmoothed curve", lux, brightness); in smoothCurve()
[all …]
DDisplayPowerController.java699 final float brightness = convertToNits(mPowerState.getScreenBrightness()); in initialize() local
700 if (brightness >= 0.0f) { in initialize()
701 mBrightnessTracker.start(brightness); in initialize()
783 int brightness = PowerManager.BRIGHTNESS_DEFAULT; in updatePowerState() local
797 brightness = mPowerRequest.dozeScreenBrightness; in updatePowerState()
851 brightness = PowerManager.BRIGHTNESS_OFF; in updatePowerState()
857 brightness = mScreenBrightnessForVr; in updatePowerState()
861 if (brightness < 0 && mPowerRequest.screenBrightnessOverride > 0) { in updatePowerState()
862 brightness = mPowerRequest.screenBrightnessOverride; in updatePowerState()
873 && brightness < 0 in updatePowerState()
[all …]
DDisplayManagerShellCommand.java90 float brightness = -1.0f; in setBrightness() local
92 brightness = Float.parseFloat(brightnessText); in setBrightness()
95 if (brightness < 0 || brightness > 1) { in setBrightness()
99 mService.setBrightness((int) (brightness * 255)); in setBrightness()
DDisplayPowerState.java149 public void setScreenBrightness(int brightness) { in setScreenBrightness() argument
150 if (mScreenBrightness != brightness) { in setScreenBrightness()
152 Slog.d(TAG, "setScreenBrightness: brightness=" + brightness); in setScreenBrightness()
155 mScreenBrightness = brightness; in setScreenBrightness()
311 int brightness = mScreenState != Display.STATE_OFF
313 if (mPhotonicModulator.setState(mScreenState, brightness)) {
DBrightnessTracker.java301 public void notifyBrightnessChanged(float brightness, boolean userInitiated, in notifyBrightnessChanged() argument
306 brightness, userInitiated)); in notifyBrightnessChanged()
309 userInitiated ? 1 : 0, 0 /*unused*/, new BrightnessChangeValues(brightness, in notifyBrightnessChanged()
315 private void handleBrightnessChanged(float brightness, boolean userInitiated, in handleBrightnessChanged() argument
327 mLastBrightness = brightness; in handleBrightnessChanged()
337 builder.setBrightness(brightness); in handleBrightnessChanged()
403 Slog.d(TAG, "Event " + event.brightness + " " + event.packageName); in handleBrightnessChanged()
547 out.attribute(null, ATTR_NITS, Float.toString(toWrite[i].brightness)); in writeEventsLocked()
626 String brightness = parser.getAttributeValue(null, ATTR_NITS); in readEventsLocked() local
627 builder.setBrightness(Float.parseFloat(brightness)); in readEventsLocked()
[all …]
DLocalDisplayAdapter.java476 public Runnable requestDisplayStateLocked(final int state, final int brightness) { in requestDisplayStateLocked() argument
478 assert state != Display.STATE_OFF || brightness == PowerManager.BRIGHTNESS_OFF; in requestDisplayStateLocked()
481 final boolean brightnessChanged = (mBrightness != brightness) && mBacklight != null; in requestDisplayStateLocked()
493 mBrightness = brightness; in requestDisplayStateLocked()
535 setDisplayBrightness(brightness); in requestDisplayStateLocked()
596 private void setDisplayBrightness(int brightness) { in requestDisplayStateLocked() argument
600 + ", brightness=" + brightness + ")"); in requestDisplayStateLocked()
604 + "id=" + physicalDisplayId + ", brightness=" + brightness + ")"); in requestDisplayStateLocked()
606 mBacklight.setBrightness(brightness); in requestDisplayStateLocked()
608 "ScreenBrightness", brightness); in requestDisplayStateLocked()
DDisplayBlanker.java23 void requestDisplayState(int state, int brightness); in requestDisplayState() argument
DDisplayManagerService.java527 private void requestGlobalDisplayStateInternal(int state, int brightness) { in requestGlobalDisplayStateInternal() argument
532 brightness = PowerManager.BRIGHTNESS_OFF; in requestGlobalDisplayStateInternal()
533 } else if (brightness < 0) { in requestGlobalDisplayStateInternal()
534 brightness = PowerManager.BRIGHTNESS_DEFAULT; in requestGlobalDisplayStateInternal()
535 } else if (brightness > PowerManager.BRIGHTNESS_ON) { in requestGlobalDisplayStateInternal()
536 brightness = PowerManager.BRIGHTNESS_ON; in requestGlobalDisplayStateInternal()
546 && mGlobalDisplayBrightness == brightness) { in requestGlobalDisplayStateInternal()
552 + ", brightness=" + brightness + ")"); in requestGlobalDisplayStateInternal()
554 mGlobalDisplayBrightness = brightness; in requestGlobalDisplayStateInternal()
2191 public void setTemporaryBrightness(int brightness) { in setTemporaryBrightness() argument
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_lights_LightsService.cpp44 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/
DBrightnessChangeEvent.java38 public final float brightness; field in BrightnessChangeEvent
105 private BrightnessChangeEvent(float brightness, long timeStamp, String packageName, in BrightnessChangeEvent() argument
110 this.brightness = brightness; in BrightnessChangeEvent()
129 this.brightness = other.brightness; in BrightnessChangeEvent()
147 brightness = source.readFloat(); in BrightnessChangeEvent()
181 dest.writeFloat(brightness); in writeToParcel()
217 public Builder setBrightness(float brightness) { in setBrightness() argument
218 mBrightness = brightness; in setBrightness()
DBrightnessCorrection.java93 public float apply(@FloatRange(from = 0.0) float brightness) { in apply()
94 return mImplementation.apply(brightness); in apply()
196 float apply(float brightness); in apply() argument
231 public float apply(float brightness) { in apply() argument
232 return MathUtils.exp(mScale * MathUtils.log(brightness) + mTranslate); in apply()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DImageGoodnessFilter.java119 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 …]
DAvgBrightnessFilter.java54 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()
DCSVWriterFilter.java95 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/services/tests/servicestests/src/com/android/server/display/
DBrightnessTrackerTest.java255 final int brightness = 20; in testBrightnessEvent() local
260 notifyBrightnessChanged(mTracker, brightness); in testBrightnessEvent()
271 assertEquals(brightness, event.brightness, FLOAT_DELTA); in testBrightnessEvent()
283 final int brightness = 130; in testBrightnessFullPopulatedEvent() local
293 notifyBrightnessChanged(mTracker, brightness); in testBrightnessFullPopulatedEvent()
304 assertEquals(brightness, event.brightness, FLOAT_DELTA); in testBrightnessFullPopulatedEvent()
348 assertEquals(firstUserUpdateBrightness, events.get(0).brightness, FLOAT_DELTA); in testIgnoreAutomaticBrightnessChange()
351 assertEquals(secondUserUpdateBrightness, events.get(1).brightness, FLOAT_DELTA); in testIgnoreAutomaticBrightnessChange()
361 for (int brightness = 0; brightness <= 255; ++brightness) { in testLimitedBufferSize()
364 notifyBrightnessChanged(mTracker, brightness); in testLimitedBufferSize()
[all …]
DBrightnessMappingStrategyTest.java336 float brightness = strategy.getBrightness(LUX_LEVELS[i]); in assertStrategyAdaptsToUserDataPoints() local
338 prevBrightness >= brightness); in assertStrategyAdaptsToUserDataPoints()
339 prevBrightness = brightness; in assertStrategyAdaptsToUserDataPoints()
357 float brightness = strategy.getBrightness(lux); in assertStrategyAdaptsToUserDataPoints() local
359 prevBrightness <= brightness); in assertStrategyAdaptsToUserDataPoints()
360 prevBrightness = brightness; in assertStrategyAdaptsToUserDataPoints()
/frameworks/base/media/mca/filterpacks/native/imageproc/
Dbrightness.c26 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/packages/SystemUI/src/com/android/systemui/doze/
DDozeBrightnessHostForwarder.java32 public void setDozeScreenBrightness(int brightness) { in setDozeScreenBrightness() argument
33 super.setDozeScreenBrightness(brightness); in setDozeScreenBrightness()
34 mHost.setDozeScreenBrightness(brightness); in setDozeScreenBrightness()
DDozeScreenBrightness.java151 int brightness = computeBrightness(sensorValue); in updateBrightnessAndReady() local
152 boolean brightnessReady = brightness > 0; in updateBrightnessAndReady()
154 mDozeService.setDozeScreenBrightness(clampToUserSetting(brightness)); in updateBrightnessAndReady()
194 private int clampToUserSetting(int brightness) { in clampToUserSetting() argument
198 return Math.min(brightness, userSetting); in clampToUserSetting()
DDozeMachine.java402 void setDozeScreenBrightness(int brightness); in setDozeScreenBrightness() argument
427 public void setDozeScreenBrightness(int brightness) { in setDozeScreenBrightness() argument
428 mDelegate.setDozeScreenBrightness(brightness); in setDozeScreenBrightness()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeServiceFake.java56 public void setDozeScreenBrightness(int brightness) { in setDozeScreenBrightness() argument
57 screenBrightness = brightness; in setDozeScreenBrightness()
/frameworks/base/services/core/java/com/android/server/lights/
DLogicalLight.java60 public abstract void setBrightness(int brightness); in setBrightness() argument
65 public abstract void setBrightness(int brightness, int brightnessMode); in setBrightness() argument
DLightsService.java252 public void setBrightness(int brightness) { in setBrightness() argument
253 setBrightness(brightness, BRIGHTNESS_MODE_USER); in setBrightness()
257 public void setBrightness(int brightness, int brightnessMode) { in setBrightness() argument
262 + ": brightness=0x" + Integer.toHexString(brightness)); in setBrightness()
279 (float) brightness / mSurfaceControlMaximumBrightness); in setBrightness()
281 int color = brightness & 0x000000ff; in setBrightness()
/frameworks/base/core/java/android/service/dreams/
DDreamService.java829 public void setDozeScreenBrightness(int brightness) { in setDozeScreenBrightness() argument
830 if (brightness != PowerManager.BRIGHTNESS_DEFAULT) { in setDozeScreenBrightness()
831 brightness = clampAbsoluteBrightness(brightness); in setDozeScreenBrightness()
833 if (mDozeScreenBrightness != brightness) { in setDozeScreenBrightness()
834 mDozeScreenBrightness = brightness; in setDozeScreenBrightness()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSAnimator.java272 View brightness = mQsPanel.getBrightnessView(); in updateAnimators() local
273 if (brightness != null) { in updateAnimators()
274 firstPageBuilder.addFloat(brightness, "translationY", heightDiff, 0); in updateAnimators()
276 .addFloat(brightness, "alpha", 0, 1) in updateAnimators()
279 mAllViews.add(brightness); in updateAnimators()

123