/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/ |
D | RotationAnimationUtilsTest.java | 135 private Bitmap createBitmap(float luma) { in createBitmap() argument 136 return createBitmap(luma, BITMAP_WIDTH, BITMAP_HEIGHT); in createBitmap() 139 private Bitmap createBitmap(float luma, int width, int height) { in createBitmap() argument 143 bitmap.setPixel(i, j, Color.argb(1, luma, luma, luma)); in createBitmap() 154 private void setBorderLuma(Bitmap swBitmap, float luma) { in setBorderLuma() argument 159 swBitmap.setPixel(i, 0, Color.argb(1, luma, luma, luma)); in setBorderLuma() 160 swBitmap.setPixel(i, height - 1, Color.argb(1, luma, luma, luma)); in setBorderLuma() 163 swBitmap.setPixel(0, i, Color.argb(1, luma, luma, luma)); in setBorderLuma() 164 swBitmap.setPixel(width - 1, i, Color.argb(1, luma, luma, luma)); in setBorderLuma()
|
/frameworks/native/libs/gui/tests/ |
D | RegionSampling_test.cpp | 151 float luma() { in luma() function 266 EXPECT_NEAR(listener->luma(), luma_green, error_margin); in TEST_F() 280 EXPECT_NEAR(listener->luma(), luma_green, error_margin); in TEST_F() 287 EXPECT_NEAR(listener->luma(), luma_blue, error_margin); in TEST_F() 305 EXPECT_NEAR(grayListener->luma(), luma_gray, error_margin); in TEST_F() 308 EXPECT_NEAR(greenListener->luma(), luma_green, error_margin); in TEST_F() 342 EXPECT_NEAR(listener->luma(), luma_green, error_margin); in TEST_F() 360 EXPECT_NEAR(listener->luma(), luma_blue, error_margin); in TEST_F() 364 EXPECT_NEAR(listener->luma(), luma_gray, error_margin); in TEST_F() 372 EXPECT_NEAR(listener->luma(), luma_gray, error_margin); in TEST_F() [all …]
|
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
D | ImageCompare.java | 30 private static double luma(int pixel) { in luma() method in ImageCompare 70 final double Y1 = luma(pixel1); in psnr() 71 final double Y2 = luma(pixel2); in psnr()
|
/frameworks/native/services/surfaceflinger/ |
D | RegionSamplingThread.cpp | 218 const uint32_t luma = (r * 7 + b * 2 + g * 23) >> 5; in sampleArea() local 219 accumulatedLuma += luma; in sampleArea()
|
/frameworks/av/media/libstagefright/omx/ |
D | SoftVideoEncoderOMXComponent.cpp | 493 unsigned luma = in ConvertRGB32ToPlanar() local 496 dstY[x] = luma; in ConvertRGB32ToPlanar()
|
/frameworks/base/core/java/android/window/ |
D | TransitionInfo.java | 613 public void setSnapshot(@Nullable SurfaceControl snapshot, float luma) { in setSnapshot() argument 615 mSnapshotLuma = luma; in setSnapshot()
|
/frameworks/av/media/codec2/sfplugin/utils/ |
D | Codec2BufferUtils.cpp | 590 unsigned luma = ((r * weights[0][0] + g * weights[0][1] + b * weights[0][2]) >> 8) + in ConvertRGBToPlanarYUV() local 593 dstY[x] = CLIP3(zeroLvl, luma, maxLvlLuma); in ConvertRGBToPlanarYUV()
|