/frameworks/native/services/surfaceflinger/tests/ |
D | RelativeZ_test.cpp | 45 mForegroundLayer = createColorLayer("Foreground layer", Color::GREEN); in SetUp() 95 sc->checkPixel(1, 1, Color::GREEN.r, Color::GREEN.g, Color::GREEN.b); in TEST_F() 117 createColorLayer("child level 3", Color::GREEN, childLevel2a.get()); in TEST_F() 129 sc->checkPixel(1, 1, Color::GREEN.r, Color::GREEN.g, Color::GREEN.b); in TEST_F() 147 sc->checkPixel(1, 1, Color::GREEN.r, Color::GREEN.g, Color::GREEN.b); in TEST_F() 185 sc->checkPixel(1, 1, Color::GREEN.r, Color::GREEN.g, Color::GREEN.b); in TEST_F() 195 sc->checkPixel(1, 1, Color::GREEN.r, Color::GREEN.g, Color::GREEN.b); in TEST_F() 257 sc->expectColor(Rect(0, 0, mDisplayWidth, mDisplayHeight), Color::GREEN); in TEST_F()
|
D | MirrorLayer_test.cpp | 41 mChildLayer = createColorLayer("Child layer", Color::GREEN, mParentLayer.get()); in SetUp() 92 shot->expectColor(Rect(750, 750, 950, 950), Color::GREEN); in TEST_F() 103 shot->expectColor(Rect(750, 750, 950, 950), Color::GREEN); in TEST_F() 189 shot->expectColor(Rect(750, 750, 950, 950), Color::GREEN); in TEST_F() 199 shot->expectColor(Rect(750, 750, 950, 950), Color::GREEN); in TEST_F() 207 shot->expectColor(Rect(550, 550, 750, 750), Color::GREEN); in TEST_F() 209 shot->expectColor(Rect(750, 750, 950, 950), Color::GREEN); in TEST_F() 224 shot->expectColor(Rect(750, 750, 950, 950), Color::GREEN); in TEST_F() 234 shot->expectColor(Rect(750, 750, 950, 950), Color::GREEN); in TEST_F() 242 shot->expectColor(Rect(550, 550, 750, 750), Color::GREEN); in TEST_F() [all …]
|
D | LayerRenderTypeTransaction_test.cpp | 153 ASSERT_NO_FATAL_FAILURE(fillLayerColor(layerType, layerG, Color::GREEN, 32, 32)); in setRelativeZBasicHelper() 167 shot->expectColor(Rect(16, 16, 48, 48), Color::GREEN); in setRelativeZBasicHelper() 175 shot->expectColor(Rect(32, 32, 48, 48), Color::GREEN); in setRelativeZBasicHelper() 194 ASSERT_NO_FATAL_FAILURE(fillLayerColor(layerType, layerG, Color::GREEN, 32, 32)); in setRelativeZGroupHelper() 217 shot->expectColor(Rect(8, 8, 16, 16), Color::GREEN); in setRelativeZGroupHelper() 227 shot->expectColor(Rect(8, 8, 40, 40), Color::GREEN); in setRelativeZGroupHelper() 237 shot->expectColor(Rect(32, 32, 40, 40), Color::GREEN); in setRelativeZGroupHelper() 582 Color finalColor = Color::GREEN; in TEST_P() 592 Color finalColor = Color::GREEN; in TEST_P() 699 ASSERT_NO_FATAL_FAILURE(fillBufferQueueLayerQuadrant(layer, 32, 32, Color::RED, Color::GREEN, in TEST_P() [all …]
|
D | LayerTransaction_test.cpp | 35 ASSERT_NO_FATAL_FAILURE(fillBufferLayerColor(layer, Color::GREEN, 32, 32)); in TEST_F() 148 const std::array<Color, 3> colors = {Color::RED, Color::GREEN, Color::BLUE}; in TEST_F() 178 Transaction().setColor(layer, {Color::GREEN.r, Color::GREEN.g, Color::GREEN.b}).apply(); in TEST_F()
|
D | LayerTypeAndRenderTypeTransaction_test.cpp | 63 ASSERT_NO_FATAL_FAILURE(fillLayerColor(layerG, Color::GREEN, 32, 32)); in TEST_P() 74 getScreenCapture()->expectColor(Rect(0, 0, 32, 32), Color::GREEN); in TEST_P() 85 ASSERT_NO_FATAL_FAILURE(fillLayerColor(layerG, Color::GREEN, 32, 32)); in TEST_P() 120 ASSERT_NO_FATAL_FAILURE(fillLayerColor(layerG, Color::GREEN, 32, 32)); in TEST_P() 149 ASSERT_NO_FATAL_FAILURE(fillLayerColor(layerG, Color::GREEN, 32, 32)); in TEST_P() 163 shot->expectColor(Rect(0, 0, 32, 32), Color::GREEN); in TEST_P() 221 ASSERT_NO_FATAL_FAILURE(fillLayerColor(parent, Color::GREEN, size, size)); in TEST_P() 251 ASSERT_NO_FATAL_FAILURE(fillLayerColor(child, Color::GREEN, size, size)); in TEST_P() 273 Color::GREEN); in TEST_P() 286 ASSERT_NO_FATAL_FAILURE(fillLayerColor(child, Color::GREEN, size, size / 2)); in TEST_P() [all …]
|
D | EffectLayer_test.cpp | 104 half3{Color::GREEN.r / 255.0f, Color::GREEN.g / 255.0f, in TEST_F() 105 Color::GREEN.b / 255.0f}); in TEST_F() 112 shot->expectColor(Rect(0, 0, 400, 400), Color::GREEN); in TEST_F()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
D | CollectionUtilsTest.java | 37 private static final Object GREEN = new Object(); field in CollectionUtilsTest 47 assertFalse(CollectionUtils.contains(res, GREEN)); in testList() 54 assertFalse(CollectionUtils.contains(res, GREEN)); in testList() 56 res = CollectionUtils.add(res, GREEN); in testList() 61 assertTrue(CollectionUtils.contains(res, GREEN)); in testList() 63 res = CollectionUtils.remove(res, GREEN); in testList() 87 assertFalse(CollectionUtils.contains(res, GREEN)); in testSet() 93 assertFalse(CollectionUtils.contains(res, GREEN)); in testSet() 95 res = CollectionUtils.add(res, GREEN); in testSet() 99 assertTrue(CollectionUtils.contains(res, GREEN)); in testSet() [all …]
|
D | ContrastColorUtilTest.java | 85 int greenContrastColor = ContrastColorUtil.ensureTextContrast(Color.GREEN, lightBg, false); in testEnsureTextContrastAgainstLight() 109 text.setSpan(new ForegroundColorSpan(Color.GREEN), 26, 31, in testBuilder_ensureColorSpanContrast_removesAllFullLengthColorSpans() 127 assertThat(((ForegroundColorSpan) spans[2]).getForegroundColor()).isEqualTo(Color.GREEN); in testBuilder_ensureColorSpanContrast_removesAllFullLengthColorSpans() 162 text.setSpan(new ForegroundColorSpan(Color.GREEN), 26, 31, in testBuilder_ensureColorSpanContrast_worksWithComplexInput() 183 assertThat(newGreen).isNotEqualTo(Color.GREEN); in testBuilder_ensureColorSpanContrast_worksWithComplexInput()
|
/frameworks/base/libs/androidfw/tests/ |
D | NinePatch_test.cpp | 27 #define GREEN "\xff\x00\x00\xff" macro 108 (uint8_t*)WHITE BLACK WHITE BLACK WHITE, (uint8_t*)BLACK RED BLUE GREEN WHITE, 109 (uint8_t*)BLACK RED GREEN GREEN WHITE, (uint8_t*)WHITE TRANS BLUE GREEN WHITE, 117 (uint8_t*)WHITE TRANS TRANS GREEN GREEN GREEN GREEN TRANS TRANS WHITE, 118 (uint8_t*)WHITE TRANS TRANS GREEN GREEN GREEN GREEN TRANS TRANS WHITE, 119 (uint8_t*)WHITE TRANS TRANS GREEN GREEN GREEN GREEN TRANS TRANS WHITE, 120 (uint8_t*)WHITE TRANS TRANS GREEN GREEN GREEN GREEN TRANS TRANS WHITE, 153 (uint8_t*)WHITE BLACK BLACK BLACK WHITE, (uint8_t*)BLACK TRANS GREEN TRANS WHITE, 154 (uint8_t*)BLACK GREEN GREEN GREEN WHITE, (uint8_t*)BLACK TRANS GREEN TRANS WHITE, 261 NinePatch::PackRGBA((uint8_t*)GREEN), (uint32_t)android::Res_png_9patch::TRANSPARENT_COLOR, in TEST() [all …]
|
/frameworks/native/services/surfaceflinger/tests/utils/ |
D | ColorUtils.h | 31 static const Color GREEN; member 39 const Color Color::GREEN{0, 255, 0, 255};
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | PaintNativeInstanceTest.kt | 58 val blue = LinearGradient(0f, 0f, size, 0f, Color.GREEN, Color.BLUE, in <lambda>() 60 val red = LinearGradient(0f, 0f, 0f, size, Color.GREEN, Color.RED, in <lambda>() 151 colorFilter = LightingColorFilter(Color.BLUE, Color.GREEN) in <lambda>()
|
/frameworks/native/services/inputflinger/reader/controller/ |
D | PeripheralController.cpp | 135 setRawLightBrightness(rawRgbIds.at(LightColor::GREEN), green); in setLightColor() 147 intensities.emplace(LightColor::GREEN, getGreen(color)); in setLightColor() 173 std::optional<int32_t> greenOr = getRawLightBrightness(rawRgbIds.at(LightColor::GREEN)); in getLightColor() 207 intensities.at(LightColor::GREEN), intensities.at(LightColor::BLUE)); in getLightColor() 256 rawRgbIds.at(LightColor::GREEN), rawRgbIds.at(LightColor::BLUE)); in dump() 450 if (rawInfo->flags.test(InputLightClass::GREEN)) { in configureLights() 452 rawRgbIds.emplace(LightColor::GREEN, rawId); in configureLights() 483 rawRgbIds.at(LightColor::GREEN), rawRgbIds.at(LightColor::BLUE)); in configureLights() 487 keyboardBacklightIds.find(rawRgbIds.at(LightColor::GREEN)) != in configureLights() 503 rawInfos.erase(rawRgbIds.at(LightColor::GREEN)); in configureLights()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | LetterboxBackgroundProviderTest.kt | 115 whenever(windowManager.letterboxBackgroundColorInArgb).thenReturn(Color.GREEN) in <lambda>() 126 whenever(windowManager.letterboxBackgroundColorInArgb).thenReturn(Color.GREEN) in <lambda>() 130 assertThat(provider.letterboxBackgroundColor).isEqualTo(Color.GREEN) in <lambda>()
|
/frameworks/base/tests/SurfaceViewBufferTests/src/com/android/test/ |
D | SharedBufferModeTests.kt | 84 it.mSurfaceProxy.drawBuffer(0, Color.GREEN) in <lambda>() 85 checkPixels(svBounds, Color.GREEN) in <lambda>()
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | SpanColorsTest.java | 49 mSpannedText.setSpan(new ForegroundColorSpan(Color.GREEN), 6, 11, in setup() 75 assertThat(mSpanColors.getColorAt(8)).isEqualTo(Color.GREEN); in testMultipleColorSpans()
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/template/ |
D | ColoredHeaderMixinTest.java | 70 mHeaderTextView.setTextColor(ColorStateList.valueOf(Color.GREEN)); in testGetColor() 72 assertEquals(ColorStateList.valueOf(Color.GREEN), mixin.getColor()); in testGetColor()
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
D | Material.java | 40 public static final int GREEN = 1; field in Material 91 mColor[p + GREEN] = v; in simpleSetup() 250 mColor[p + GREEN] = (byte) green; in buildMaterialProp() 276 mColor[p + GREEN] = (byte) green; in buildMaterialProp() 293 mColor[p + GREEN] = (byte) green; in buildMaterialProp()
|
/frameworks/base/tests/FlickerTests/test-apps/flickerapp/src/com/android/server/wm/flicker/testapp/ |
D | ActivityEmbeddingPlaceholderSecondaryActivity.java | 28 return Color.GREEN; in getBackgroundColor()
|
D | ActivityEmbeddingAlwaysExpandActivity.java | 30 findViewById(R.id.root_activity_layout).setBackgroundColor(Color.GREEN); in onCreate()
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | FileRotatorTest.java | 240 private static final String GREEN = "green"; field in FileRotatorTest 258 rotate.combineActive(reader, writer(GREEN), currentTime); in testQueryMatch() 268 final String[] FULL_SET = { RED, GREEN, BLUE, YELLOW }; in testQueryMatch() 277 RED, GREEN, BLUE); in testQueryMatch() 282 GREEN, BLUE, YELLOW); in testQueryMatch()
|
/frameworks/base/core/java/com/android/internal/graphics/palette/ |
D | WuQuantizer.java | 270 maximize(one, Direction.GREEN, one.g0 + 1, one.g1, wholeR, wholeG, wholeB, wholeW); in cut() 283 cutDirection = Direction.GREEN; in cut() 299 case GREEN: in cut() 387 case GREEN: in bottom() 409 case GREEN: in top() 426 GREEN, enumConstant
|
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/ |
D | ColoredRectsActivity.java | 39 final RectsView gpuView = new RectsView(this, 0, Color.GREEN); in onCreate() 44 final RectsView hwBothView = new RectsView(this, 850, Color.GREEN); in onCreate()
|
/frameworks/base/core/tests/coretests/src/android/colormodel/ |
D | CamTest.java | 35 static final int GREEN = 0xff00ff00; field in CamTest 73 Cam cam = Cam.fromInt(GREEN); in camFromGreen() 125 int colorToTest = GREEN; in getGreenFromGamutMap()
|
/frameworks/base/tools/hoststubgen/hoststubgen/test-tiny-framework/tiny-test/src/com/android/hoststubgen/test/tinyframework/ |
D | TinyFrameworkClassTest.java | 313 assertThat(TinyFrameworkEnumComplex.GREEN.ordinal()).isEqualTo(1); in testEnumComplex() 314 assertThat(TinyFrameworkEnumComplex.GREEN.name()).isEqualTo("GREEN"); in testEnumComplex() 321 TinyFrameworkEnumComplex.GREEN, in testEnumComplex()
|
/frameworks/base/tools/hoststubgen/hoststubgen/test-tiny-framework/tiny-framework/src/com/android/hoststubgen/test/tinyframework/ |
D | TinyFrameworkEnumComplex.java | 26 GREEN("Green", "G"), enumConstant
|