/aosp14/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | TextGammaActivity.java | 40 final GammaTextView gamma = new GammaTextView(this); in onCreate() local 41 layout.addView(gamma, new LinearLayout.LayoutParams( in onCreate() 49 Bitmap b = Bitmap.createBitmap(gamma.getWidth(), gamma.getHeight(), in onCreate() 53 gamma.draw(c); in onCreate() 91 final GammaTextView gamma = new GammaTextView(this); in onCreate() local 96 layout.addView(gamma, lp); in onCreate()
|
/aosp14/frameworks/base/libs/hwui/utils/ |
H A D | HostColorSpace.cpp | 72 static ColorSpace::transfer_function toOETF(float gamma) { in toOETF() argument 73 if (gamma == 1.0f) { in toOETF() 76 return std::bind(safePow, _1, 1.0f / gamma); in toOETF() 80 if (gamma == 1.0f) { in toEOTF() 83 return std::bind(safePow, _1, gamma); in toEOTF() 136 float gamma, in ColorSpace() argument 142 , mOETF(toOETF(gamma)) 143 , mEOTF(toEOTF(gamma)) 187 float gamma, in ColorSpace() argument 193 , mOETF(toOETF(gamma)) [all …]
|
/aosp14/frameworks/base/graphics/java/android/graphics/ |
H A D | TableMaskFilter.java | 42 public static TableMaskFilter CreateGammaTable(float gamma) { in CreateGammaTable() argument 43 return new TableMaskFilter(nativeNewGamma(gamma)); in CreateGammaTable() 48 private static native long nativeNewGamma(float gamma); in nativeNewGamma() argument
|
H A D | ColorSpace.java | 2744 double gamma) { in Rgb() argument 2745 … this(name, computePrimaries(toXYZ), computeWhitePoint(toXYZ), gamma, 0.0f, 1.0f, MIN_ID); in Rgb() 2784 double gamma) { in Rgb() argument 2785 this(name, primaries, whitePoint, gamma, 0.0f, 1.0f, MIN_ID); in Rgb() 2829 double gamma, in Rgb() argument 2834 gamma == 1.0 ? DoubleUnaryOperator.identity() : in Rgb() 2835 x -> Math.pow(x < 0.0 ? 0.0 : x, 1 / gamma), in Rgb() 2836 gamma == 1.0 ? DoubleUnaryOperator.identity() : in Rgb() 2837 x -> Math.pow(x < 0.0 ? 0.0 : x, gamma), in Rgb() 2838 min, max, new TransferParameters(1.0, 0.0, 0.0, 0.0, gamma), id); in Rgb()
|
/aosp14/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
H A D | BrightnessMappingStrategyTest.java | 611 float gamma = 0.5f; in testGammaCorrectionLowChangeAtCenter() local 612 strategy.addUserDataPoint(x2, (float) MathUtils.pow(y2, gamma)); in testGammaCorrectionLowChangeAtCenter() 613 assertEquals(MathUtils.pow(y1, gamma), strategy.getBrightness(x1), 0.0001f /* tolerance */); in testGammaCorrectionLowChangeAtCenter() 614 assertEquals(MathUtils.pow(y2, gamma), strategy.getBrightness(x2), 0.0001f /* tolerance */); in testGammaCorrectionLowChangeAtCenter() 615 assertEquals(MathUtils.pow(y3, gamma), strategy.getBrightness(x3), 0.0001f /* tolerance */); in testGammaCorrectionLowChangeAtCenter() 642 float gamma = 0.25f; in testGammaCorrectionHighChangeAtCenter() local 644 strategy.addUserDataPoint(x2, (float) MathUtils.pow(y2, gamma)); in testGammaCorrectionHighChangeAtCenter() 647 assertEquals(MathUtils.pow(y2, gamma), in testGammaCorrectionHighChangeAtCenter() 695 float gamma = (float) MathUtils.pow(MAXIMUM_GAMMA, -adjustment); in testGammaCorrectionChangeAtEdges() local 698 assertEquals(MathUtils.pow(y2, gamma), strategy.getBrightness(x2), 0.0001f /* tolerance */); in testGammaCorrectionChangeAtEdges() [all …]
|
/aosp14/frameworks/base/core/res/res/raw/ |
H A D | color_fade_frag.frag | 6 uniform float gamma; 12 vec3 rgb = pow(color.rgb * opacity, vec3(gamma));
|
/aosp14/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/hdr/ |
H A D | GainmapMetadataEditor.kt | 35 var gamma: Float, 160 ((currentMetadata.gamma - minGamma) / maxGamma * maxProgress).toInt()) 178 "%.3f".format(currentMetadata.gamma)) 196 gainmap!!.setGamma(newMetadata.gamma, newMetadata.gamma, newMetadata.gamma) 250 currentMetadata.gamma = newValue
|
/aosp14/frameworks/base/packages/SystemUI/accessibility/accessibilitymenu/src/com/android/systemui/accessibility/accessibilitymenu/ |
H A D | AccessibilityMenuService.java | 311 int gamma = BrightnessUtils.convertLinearToGammaFloat( in adjustBrightness() local 316 gamma = Math.max( in adjustBrightness() 318 Math.min(BrightnessUtils.GAMMA_SPACE_MAX, gamma + increment)); in adjustBrightness() 321 gamma, in adjustBrightness() 328 (gamma / (BrightnessUtils.GAMMA_SPACE_MAX / 100)))); in adjustBrightness()
|
/aosp14/frameworks/base/libs/hwui/jni/ |
H A D | MaskFilter.cpp | 55 static jlong createGammaTable(JNIEnv* env, jobject, jfloat gamma) { in createGammaTable() argument 56 SkMaskFilter* filter = SkTableMaskFilter::CreateGamma(gamma); in createGammaTable()
|
/aosp14/frameworks/base/services/core/java/com/android/server/display/ |
H A D | BrightnessMappingStrategy.java | 534 float gamma = Float.NaN; in inferAutoBrightnessAdjustment() local 547 gamma = MathUtils.log(desiredBrightness) / MathUtils.log(currentBrightness); in inferAutoBrightnessAdjustment() 549 adjustment = -MathUtils.log(gamma) / MathUtils.log(maxGamma); in inferAutoBrightnessAdjustment() 554 MathUtils.pow(maxGamma, -adjustment) + " == " + gamma); in inferAutoBrightnessAdjustment() 555 Slog.d(TAG, "inferAutoBrightnessAdjustment: " + currentBrightness + "^" + gamma + "=" + in inferAutoBrightnessAdjustment() 556 MathUtils.pow(currentBrightness, gamma) + " == " + desiredBrightness); in inferAutoBrightnessAdjustment() 569 float gamma = MathUtils.pow(maxGamma, -adjustment); in getAdjustedCurve() local 572 MathUtils.pow(maxGamma, -adjustment) + " == " + gamma); in getAdjustedCurve() 574 if (gamma != 1) { in getAdjustedCurve() 576 newBrightness[i] = MathUtils.pow(newBrightness[i], gamma); in getAdjustedCurve()
|
H A D | ColorFade.java | 437 float gamma = (float) ((0.5d * sign * Math.pow(cos, 2) + 0.5d) * 0.9d + 0.1d); in draw() 438 drawFaded(opacity, 1.f / gamma); in draw() 450 private void drawFaded(float opacity, float gamma) { 452 Slog.d(TAG, "drawFaded: opacity=" + opacity + ", gamma=" + gamma); 461 GLES20.glUniform1f(mGammaLoc, gamma);
|
/aosp14/frameworks/base/core/java/com/android/internal/graphics/cam/ |
H A D | HctSolver.java | 629 double gamma = 23.0 * (p2 + 0.305) * t / (23.0 * p1 + 11 * t * hCos + 108.0 * t * hSin); in findResultByJ() local 630 double a = gamma * hCos; in findResultByJ() 631 double b = gamma * hSin; in findResultByJ()
|
H A D | Cam.java | 301 float gamma = in viewed() local 303 float a = gamma * hCos; in viewed() 304 float b = gamma * hSin; in viewed()
|
/aosp14/frameworks/base/media/native/midi/include/ |
H A D | Doxyfile | 1226 # The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to the 1229 # darker. The value divided by 100 is the actual gamma applied, so 80 represents 1230 # a gamma of 0.8, The value 220 represents a gamma of 2.2, and 100 does not 1231 # change the gamma.
|
/aosp14/frameworks/base/tools/aapt2/integration-tests/CommandTests/ |
H A D | android-33.jar | AndroidManifest.xml
META-INF/
META-INF/MANIFEST.MF
NOTICES/
NOTICES/libcore ... |