/aosp12/packages/modules/NetworkStack/tests/unit/src/android/net/testutils/ |
H A D | NetworkStatsUtilsTest.kt | 50 val blue = NetworkStats(TEST_START, 1) regex 51 assertTrue(orderInsensitiveEquals(red, blue)) 52 assertTrue(orderInsensitiveEquals(blue, red)) 56 blue.combineValues(testEntry[0]).combineValues(testEntry[1]) 57 assertFalse(orderInsensitiveEquals(red, blue)) 58 assertFalse(orderInsensitiveEquals(blue, red)) 62 assertTrue(orderInsensitiveEquals(red, blue)) 63 assertTrue(orderInsensitiveEquals(blue, red))
|
/aosp12/frameworks/base/graphics/java/android/graphics/ |
H A D | Color.java | 534 public float blue() { in blue() method in Color 843 float b = blue(color); in toArgb() 1046 (int) (blue * 255.0f + 0.5f); in pack() 1062 @HalfFloat short b = Half.toHalf(blue); in pack() 1112 float b = blue(color); in convert() 1169 float b = blue(color); in convert() 1225 double b = eotf.applyAsDouble(blue(color)); in luminance() 1266 public static int blue(int color) { in blue() method in Color 1304 (int) (blue * 255.0f + 0.5f); in rgb() 1341 (int) (blue * 255.0f + 0.5f); in argb() [all …]
|
/aosp12/frameworks/base/services/tests/mockingservicestests/src/com/android/server/display/color/ |
H A D | DisplayWhiteBalanceTintControllerTest.java | 110 displayPrimaries.blue = new CieXyz(); in displayWhiteBalance_setupWithSurfaceControl() 111 displayPrimaries.blue.X = 0.180500f; in displayWhiteBalance_setupWithSurfaceControl() 112 displayPrimaries.blue.Y = 0.072200f; in displayWhiteBalance_setupWithSurfaceControl() 113 displayPrimaries.blue.Z = 0.950633f; in displayWhiteBalance_setupWithSurfaceControl() 136 displayPrimaries.blue = new CieXyz(); in displayWhiteBalance_setupWithInvalidSurfaceControlData() 205 displayPrimaries.blue = new CieXyz(); in displayWhiteBalance_validateTransformMatrix() 206 displayPrimaries.blue.X = 0.180500f; in displayWhiteBalance_validateTransformMatrix() 207 displayPrimaries.blue.Y = 0.072200f; in displayWhiteBalance_validateTransformMatrix() 208 displayPrimaries.blue.Z = 0.950633f; in displayWhiteBalance_validateTransformMatrix()
|
/aosp12/frameworks/native/services/surfaceflinger/tests/unittests/ |
H A D | SurfaceFlinger_GetDisplayNativePrimariesTest.cpp | 52 primaries.blue.X = startingVal++; in populateDummyDisplayNativePrimaries() 53 primaries.blue.Y = startingVal++; in populateDummyDisplayNativePrimaries() 54 primaries.blue.Z = startingVal++; in populateDummyDisplayNativePrimaries() 69 EXPECT_EQ(primaries.blue.X, startingVal++); in checkDummyDisplayNativePrimaries() 70 EXPECT_EQ(primaries.blue.Y, startingVal++); in checkDummyDisplayNativePrimaries() 71 EXPECT_EQ(primaries.blue.Z, startingVal++); in checkDummyDisplayNativePrimaries()
|
/aosp12/frameworks/base/core/java/android/hardware/camera2/params/ |
H A D | TonemapCurve.java | 105 public TonemapCurve(float[] red, float[] green, float[] blue) { in TonemapCurve() argument 110 checkNotNull(blue, "blue must not be null"); in TonemapCurve() 114 checkArgumentArrayLengthDivisibleBy(blue, POINT_SIZE, "blue"); in TonemapCurve() 118 checkArgumentArrayLengthNoLessThan(blue, MIN_CURVE_LENGTH, "blue"); in TonemapCurve() 122 checkArrayElementsInRange(blue, LEVEL_BLACK, LEVEL_WHITE, "blue"); in TonemapCurve() 126 mBlue = Arrays.copyOf(blue, blue.length); in TonemapCurve()
|
/aosp12/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
H A D | ScreenshotTests.java | 169 final float blue = Color.blue(color); in matchesColor() local 178 && blue <= expectedColor.mMaxBlue in matchesColor() 179 && blue >= expectedColor.mMinBlue; in matchesColor() 208 short blue = (short) ((color >> 16) & 0xFF); in PixelColor() local 216 mMinBlue = (short) getMinValue(blue); in PixelColor() 217 mMaxBlue = (short) getMaxValue(blue); in PixelColor()
|
/aosp12/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
H A D | pixel_format_f32.rsh | 7 // 1. Initially, it stores the input color (red, green, blue) and the depth 17 // the color (red, green, blue) of FocusPixel is updated and ready to be used in 21 // the color (red, green, blue) of FocusPixel is *not* changed. 29 float blue; 53 float blue;
|
H A D | layered_filter_f32_helper.rsh | 97 result.blue += weight * sharp_nbr->blue; 109 result.blue *= factor; 145 fuzzy.blue = result.b * factor; 181 result.blue += weight * sharp_nbr->blue; 193 result.blue *= fac; 203 p->blue = 0; 223 p->blue = 0;
|
/aosp12/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
H A D | Material.java | 104 int[] blue = new int[means.length - 1]; in setup() local 114 blue[i] = (rgb >> 0) & 0xff; in setup() 131 mMaterialProp[i].mBlue = blue[i]; in setup() 245 int blue = m[0].mBlue; in buildMaterialProp() local 251 mColor[p + BLUE] = (byte) blue; in buildMaterialProp() 268 int blue = (int) (m[k].mBlue * t1 + m[k + 1].mBlue * t2); in buildMaterialProp() local 277 mColor[p + BLUE] = (byte) blue; in buildMaterialProp() 289 int blue = mp.mBlue; in buildMaterialProp() local 294 mColor[p + BLUE] = (byte) blue; in buildMaterialProp()
|
/aosp12/packages/apps/TV/tuner/src/com/android/tv/tuner/data/ |
H A D | Cea708Data.java | 145 public final int blue; field in Cea708Data.CaptionColor 147 public CaptionColor(int opacity, int red, int green, int blue) { in CaptionColor() argument 151 this.blue = blue; in CaptionColor() 156 OPACITY_MAP[opacity], COLOR_MAP[red], COLOR_MAP[green], COLOR_MAP[blue]); in getArgbValue()
|
H A D | Cea708Parser.java | 640 int blue = data[pos] & 0x03; in parseC1() local 641 CaptionColor foregroundColor = new CaptionColor(opacity, red, green, blue); in parseC1() 646 blue = data[pos] & 0x03; in parseC1() 647 CaptionColor backgroundColor = new CaptionColor(opacity, red, green, blue); in parseC1() 651 blue = data[pos] & 0x03; in parseC1() 653 new CaptionColor(CaptionColor.OPACITY_SOLID, red, green, blue); in parseC1() 696 int blue = data[pos] & 0x03; in parseC1() local 697 CaptionColor fillColor = new CaptionColor(opacity, red, green, blue); in parseC1() 701 blue = data[pos + 1] & 0x03; in parseC1() 703 new CaptionColor(CaptionColor.OPACITY_SOLID, red, green, blue); in parseC1()
|
/aosp12/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
H A D | ConnectivityControllerTest.java | 356 final JobStatus blue = createJobStatus(createJob() in testUpdates() local 360 controller.maybeStartTrackingJobLocked(blue, null); in testUpdates() 425 final JobStatus blue = createJobStatus(createJob() in testRequestStandbyExceptionLocked() local 447 controller.requestStandbyExceptionLocked(blue); in testRequestStandbyExceptionLocked() 476 final JobStatus blue = createJobStatus(createJob() in testEvaluateStateLocked_JobWouldBeReady() local 500 controller.evaluateStateLocked(blue); in testEvaluateStateLocked_JobWouldBeReady() 517 final JobStatus blue = createJobStatus(createJob() in testEvaluateStateLocked_JobWouldNotBeReady() local 532 controller.requestStandbyExceptionLocked(blue); in testEvaluateStateLocked_JobWouldNotBeReady() 536 controller.evaluateStateLocked(blue); in testEvaluateStateLocked_JobWouldNotBeReady() 554 final JobStatus blue = createJobStatus(createJob() in testReevaluateStateLocked() local [all …]
|
/aosp12/hardware/qcom/display/msm8084/liblight/ |
H A D | lights.c | 132 int red, green, blue; in set_speaker_light_locked() local 162 blue = colorRGB & 0xFF; in set_speaker_light_locked() 175 if (blue) in set_speaker_light_locked() 180 write_int(BLUE_LED_FILE, blue); in set_speaker_light_locked()
|
/aosp12/hardware/qcom/display/msm8960/libgralloc/ |
H A D | framebuffer.cpp | 169 info.blue.offset = 8; in mapFrameBufferLocked() 170 info.blue.length = 8; in mapFrameBufferLocked() 194 info.blue.offset = 0; in mapFrameBufferLocked() 195 info.blue.length = 5; in mapFrameBufferLocked() 281 info.blue.offset, info.blue.length in mapFrameBufferLocked()
|
/aosp12/hardware/qcom/display/msm8994/liblight/ |
H A D | lights.c | 133 int red, green, blue; in set_speaker_light_locked() local 163 blue = colorRGB & 0xFF; in set_speaker_light_locked() 180 if (blue) { in set_speaker_light_locked() 187 write_int(BLUE_LED_FILE, blue); in set_speaker_light_locked()
|
/aosp12/hardware/qcom/display/msm8996/liblight/ |
H A D | lights.c | 133 int red, green, blue; in set_speaker_light_locked() local 163 blue = colorRGB & 0xFF; in set_speaker_light_locked() 189 if (blue) { in set_speaker_light_locked() 196 write_int(BLUE_LED_FILE, blue); in set_speaker_light_locked()
|
/aosp12/hardware/qcom/display/msm8226/liblight/ |
H A D | lights.c | 132 int red, green, blue; in set_speaker_light_locked() local 162 blue = colorRGB & 0xFF; in set_speaker_light_locked() 179 if (blue) { in set_speaker_light_locked() 186 write_int(BLUE_LED_FILE, blue); in set_speaker_light_locked()
|
/aosp12/frameworks/native/services/inputflinger/reader/controller/ |
H A 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() 123 int32_t blue = 0; in setLightColor() local 128 blue = ceil(getBlue(color) / ratio); in setLightColor() 132 setRawLightBrightness(rawRgbIds.at(LightColor::BLUE), blue); in setLightColor() 181 int32_t blue = round(blueOr.value() * ratio); in getLightColor() local 183 if (red > MAX_BRIGHTNESS || green > MAX_BRIGHTNESS || blue > MAX_BRIGHTNESS) { in getLightColor() 188 blue = blueOr.value(); in getLightColor() 192 return toArgb(brightness, red, green, blue); in getLightColor()
|
/aosp12/hardware/qcom/sm7250/display/liblight/ |
H A D | lights.c | 220 int red, green, blue; in set_speaker_light_locked() local 233 blue = colorRGB & 0xFF; in set_speaker_light_locked() 247 if (!!blue) in set_speaker_light_locked() 257 if (!!blue) in set_speaker_light_locked() 266 rc |= set_rgb_led_brightness(LED_BLUE, blue); in set_speaker_light_locked()
|
/aosp12/hardware/qcom/sm8150/display/liblight/ |
H A D | lights.c | 213 int red, green, blue; in set_speaker_light_locked() local 226 blue = colorRGB & 0xFF; in set_speaker_light_locked() 240 if (!!blue) in set_speaker_light_locked() 250 if (!!blue) in set_speaker_light_locked() 259 rc |= set_rgb_led_brightness(LED_BLUE, blue); in set_speaker_light_locked()
|
/aosp12/hardware/qcom/display/msm8998/liblight/ |
H A D | lights.c | 170 int red, green, blue; in set_speaker_light_locked() local 200 blue = colorRGB & 0xFF; in set_speaker_light_locked() 226 if (blue) { in set_speaker_light_locked() 233 write_int(BLUE_LED_FILE, blue); in set_speaker_light_locked()
|
/aosp12/hardware/qcom/display/msm8909w_3100/libgralloc/ |
H A D | framebuffer.cpp | 174 info.blue.offset = 8; in mapFrameBufferLocked() 175 info.blue.length = 8; in mapFrameBufferLocked() 199 info.blue.offset = 0; in mapFrameBufferLocked() 200 info.blue.length = 5; in mapFrameBufferLocked() 290 info.blue.offset, info.blue.length in mapFrameBufferLocked()
|
/aosp12/hardware/qcom/display/msm8996/libgralloc/ |
H A D | framebuffer.cpp | 167 info.blue.offset = 8; in mapFrameBufferLocked() 168 info.blue.length = 8; in mapFrameBufferLocked() 192 info.blue.offset = 0; in mapFrameBufferLocked() 193 info.blue.length = 5; in mapFrameBufferLocked() 283 info.blue.offset, info.blue.length in mapFrameBufferLocked()
|
/aosp12/hardware/qcom/display/msm8084/libgralloc/ |
H A D | framebuffer.cpp | 176 info.blue.offset = 8; in mapFrameBufferLocked() 177 info.blue.length = 8; in mapFrameBufferLocked() 201 info.blue.offset = 0; in mapFrameBufferLocked() 202 info.blue.length = 5; in mapFrameBufferLocked() 292 info.blue.offset, info.blue.length in mapFrameBufferLocked()
|
/aosp12/hardware/qcom/display/msm8226/libgralloc/ |
H A D | framebuffer.cpp | 177 info.blue.offset = 8; in mapFrameBufferLocked() 178 info.blue.length = 8; in mapFrameBufferLocked() 202 info.blue.offset = 0; in mapFrameBufferLocked() 203 info.blue.length = 5; in mapFrameBufferLocked() 293 info.blue.offset, info.blue.length in mapFrameBufferLocked()
|