/frameworks/base/services/core/java/com/android/server/display/ |
H A D | DisplayBlanker.java | 23 void requestDisplayState(int state, int brightness); argument
|
H A D | DisplayPowerController.java | 69 * For debugging, you can make the color fade and brightness animations run 86 // The minimum reduction in brightness when dimmed. 108 // State machine constants for tracking initial brightness ramp skipping when enabled. 144 // The doze screen brightness. 147 // The dim screen brightness. 150 // The minimum screen brightness to use in a very dark room. 153 // The minimum allowed brightness. 156 // The maximum allowed brightness. 159 // True if auto-brightness should be used. 162 // True if should use light sensor to automatically determine doze screen brightness 1375 createAutoBrightnessSpline(int[] lux, int[] brightness) argument [all...] |
H A D | DisplayPowerState.java | 82 // animation is not playing. We don't know the screen's brightness though, 84 // Although we set the brightness to full on here, the display power controller 85 // will reset the brightness to a new level immediately before the changes 145 * Sets the display brightness. 147 * @param brightness The brightness, ranges from 0 (minimum / off) to 255 (brightest). 149 public void setScreenBrightness(int brightness) { argument 150 if (mScreenBrightness != brightness) { 152 Slog.d(TAG, "setScreenBrightness: brightness=" + brightness); [all...] |
H A D | LocalDisplayAdapter.java | 433 public Runnable requestDisplayStateLocked(final int state, final int brightness) { argument 434 // Assume that the brightness is off if the display is being turned off. 435 assert state != Display.STATE_OFF || brightness == PowerManager.BRIGHTNESS_OFF; 438 final boolean brightnessChanged = (mBrightness != brightness) && mBacklight != null; 450 mBrightness = brightness; 476 // so that it can apply appropriate VR brightness settings. Also, update the 477 // brightness so the state is propogated to light. 486 // Apply brightness changes given that we are in a non-suspended state. 488 setDisplayBrightness(brightness); 525 private void setDisplayBrightness(int brightness) { [all...] |
H A D | DisplayManagerService.java | 199 // The overall display brightness. 442 private void requestGlobalDisplayStateInternal(int state, int brightness) { argument 447 brightness = PowerManager.BRIGHTNESS_OFF; 448 } else if (brightness < 0) { 449 brightness = PowerManager.BRIGHTNESS_DEFAULT; 450 } else if (brightness > PowerManager.BRIGHTNESS_ON) { 451 brightness = PowerManager.BRIGHTNESS_ON; 461 && mGlobalDisplayBrightness == brightness) { 467 + ", brightness=" + brightness [all...] |
H A D | DisplayDevice.java | 132 * @param brightness The new display brightness. 136 public Runnable requestDisplayStateLocked(int state, int brightness) { argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
H A D | DozeBrightnessHostForwarder.java | 20 * Forwards the currently used brightness to {@link DozeHost}. 32 public void setDozeScreenBrightness(int brightness) { argument 33 super.setDozeScreenBrightness(brightness); 34 mHost.setDozeScreenBrightness(brightness);
|
H A D | DozeScreenBrightness.java | 30 * Controls the screen brightness when dozing. 111 int brightness = computeBrightness(mLastSensorValue); 112 boolean brightnessReady = brightness > 0; 114 mDozeService.setDozeScreenBrightness(brightness); 120 // sensor reports a new brightness. This ensures that when the screen comes on 121 // again, it will only show after the brightness sensor has stabilized, 125 // Only unblank scrim once brightness is ready. 167 // Sensor is not enabled, hence we use the default brightness and are always ready.
|
H A D | DozeMachine.java | 366 /** Set screen brightness */ 367 void setDozeScreenBrightness(int brightness); argument 392 public void setDozeScreenBrightness(int brightness) { argument 393 mDelegate.setDozeScreenBrightness(brightness);
|
/frameworks/base/media/mca/filterpacks/native/imageproc/ |
H A D | brightness.c | 26 float brightness; member in struct:__anon1250 43 if (strcmp(key, "brightness") == 0) 44 ((BrightnessParameters*)user_data)->brightness = atof(value); 78 const float brightness = params->brightness; local 80 // Run the brightness adjustment 81 const int factor = (int)(brightness * 255.0f);
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
H A D | DozeServiceFake.java | 56 public void setDozeScreenBrightness(int brightness) { argument 57 screenBrightness = brightness;
|
/frameworks/base/services/core/java/com/android/server/lights/ |
H A D | Light.java | 28 * Light brightness is managed by a user setting. 33 * Light brightness is managed by a light sensor. 42 public abstract void setBrightness(int brightness); argument 43 public abstract void setBrightness(int brightness, int brightnessMode); argument
|
H A D | LightsService.java | 41 public void setBrightness(int brightness) { argument 42 setBrightness(brightness, BRIGHTNESS_MODE_USER); 46 public void setBrightness(int brightness, int brightnessMode) { argument 51 ": brightness=0x" + Integer.toHexString(brightness)); 55 int color = brightness & 0x000000ff; 112 // current brightness or other values when leaving VR so we avoid any incorrect 113 // jumps. The code that calls this method will immediately issue a brightness
|
/frameworks/base/services/core/jni/ |
H A D | com_android_server_lights_LightsService.cpp | 74 static bool validate(jint light, jint flash, jint brightness) { argument 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); local 116 if (brightness == Brightness::LOW_PERSISTENCE) { 119 // Only set non-brightness setting [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
H A D | AvgBrightnessFilter.java | 54 float brightness; 57 brightness = brightnessOperator(inputImage.getWidth(),inputImage.getHeight(), inputBuffer); 61 if (mLogVerbose) Log.v(TAG, "contrastRatio: " + brightness); 65 brightnessOutFrame.setValue(brightness);
|
H A D | ImageGoodnessFilter.java | 83 .addInputPort("brightness", Signature.PORT_REQUIRED, floatT) 118 getConnectedInputPort("brightness").pullFrame().asFrameValue(); 119 float brightness = ((Float)brightnessFrameValue.getValue()).floatValue(); 140 contrastRating, colorfulness, brightness); 224 float brightness) { 235 colorfulness, brightness, score); 239 colorfulness, brightness, score); 242 colorfulness, brightness, score); 249 float contrastRating, float colorfulness, float brightness, float score) { 257 score += brightnessScore(brightness); 222 computePictureScore(float vector_accel, float sharpness, float underExposure, float overExposure, float contrastRating, float colorfulness, float brightness) argument 248 subComputeScore(float sharpness, float underExposure, float overExposure, float contrastRating, float colorfulness, float brightness, float score) argument 386 brightnessScore(float brightness) argument [all...] |
H A D | CSVWriterFilter.java | 60 .addInputPort("brightness", Signature.PORT_REQUIRED, floatT) 94 getConnectedInputPort("brightness").pullFrame().asFrameValue(); 95 float brightness = ((Float)brightnessValue.getValue()).floatValue(); 134 underExposure + "," + colorfulness + "," + contrast + "," + brightness + 137 underExposure + "," + colorfulness + "," + contrast + "," + brightness +
|
/frameworks/base/core/java/android/os/ |
H A D | PowerManagerInternal.java | 80 * Used by the window manager to override the screen brightness based on the 85 * @param brightness The overridden brightness, or -1 to disable the override. 87 public abstract void setScreenBrightnessOverrideFromWindowManager(int brightness); argument 118 * @param screenBrightness The overridden screen brightness, or
|
H A D | IPowerManager.aidl | 66 // temporarily overrides the screen brightness settings to allow the user to 68 void setTemporaryScreenBrightnessSettingOverride(int brightness);
|
H A D | PowerManager.java | 143 * Wake lock level: Ensures that the screen is on at full brightness; 161 * full brightness. 504 * Gets the minimum supported screen brightness setting. 515 * Gets the maximum supported screen brightness setting. 526 * Gets the default screen brightness setting. 535 * Gets the minimum supported screen brightness setting for VR Mode. 544 * Gets the maximum supported screen brightness setting for VR Mode. 555 * Gets the default screen brightness for VR setting. 831 * Boosts the brightness of the screen to maximum for a predetermined 854 * Returns whether the screen brightness i 877 setBacklightBrightness(int brightness) argument [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/ |
H A D | Android.mk | 32 brightness.cpp \
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | QSAnimator.java | 228 // Make brightness appear static position and alpha in through second half. 229 View brightness = mQsPanel.getBrightnessView(); 230 if (brightness != null) { 231 firstPageBuilder.addFloat(brightness, "translationY", heightDiff, 0); 233 .addFloat(brightness, "alpha", 0, 1) 236 mAllViews.add(brightness);
|
/frameworks/base/core/java/android/service/dreams/ |
H A D | DreamService.java | 732 * Gets the screen brightness to use while dozing. 734 * @return The screen brightness while dozing as a value between 747 * Sets the screen brightness to use while dozing. 752 * The dream may set a different brightness before starting to doze and may adjust 753 * the brightness while dozing to conserve power and achieve various effects. 755 * Note that dream may specify any brightness in the full 0-255 range, including 756 * values that are less than the minimum value for manual screen brightness 761 * The available range of display brightness values and their behavior while dozing is 766 * @param brightness The screen brightness whil 773 setDozeScreenBrightness(int brightness) argument [all...] |
/frameworks/base/media/mca/filterpacks/ |
H A D | Android.mk | 44 LOCAL_SRC_FILES += native/imageproc/brightness.c \
|
/frameworks/base/core/java/com/android/internal/app/ |
H A D | IBatteryStats.aidl | 90 void noteScreenBrightness(int brightness);
|