Home
last modified time | relevance | path

Searched refs:pack (Results 1 – 14 of 14) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/cts/
DColor_ColorLongTest.java24 import static android.graphics.Color.pack;
53 assertEquals(0.5f, red(pack(0.5f, 0.0f, 1.0f)), 0.01f); in testRed()
54 assertEquals(0.5f, red(pack(0.5f, 0.0f, 1.0f, 1.0f, p3)), 0.01f); in testRed()
61 assertEquals(0.7f, green(pack(0.5f, 0.7f, 1.0f)), 0.01f); in testGreen()
62 assertEquals(0.7f, green(pack(0.5f, 0.7f, 1.0f, 1.0f, p3)), 0.01f); in testGreen()
69 assertEquals(1.0f, blue(pack(0.5f, 0.7f, 1.0f)), 0.01f); in testBlue()
70 assertEquals(1.0f, blue(pack(0.5f, 0.7f, 1.0f, 1.0f, p3)), 0.01f); in testBlue()
77 assertEquals(0.25f, alpha(pack(0.5f, 0.7f, 1.0f, 0.25f)), 0.01f); in testAlpha()
78 assertEquals(0.25f, alpha(pack(0.5f, 0.7f, 1.0f, 0.25f, p3)), 0.01f); in testAlpha()
86 assertEquals(srgb, colorSpace(pack(0.5f, 0.7f, 1.0f))); in testColorSpace()
[all …]
DRadialGradientTest.java71 long red = Color.pack(1, 0, 0, 1, p3); in testColorLong()
72 long blue = Color.pack(0, 0, 1, 1, p3); in testColorLong()
173 colors[0] = Color.pack(Color.BLUE); in testMismatchColorLongs()
174 colors[1] = Color.pack(.5f, .5f, .5f, 1.0f, ColorSpace.get(ColorSpace.Named.DISPLAY_P3)); in testMismatchColorLongs()
180 long color0 = Color.pack(Color.BLUE); in testMismatchColorLongs2()
181 long color1 = Color.pack(.5f, .5f, .5f, 1.0f, ColorSpace.get(ColorSpace.Named.DISPLAY_P3)); in testMismatchColorLongs2()
205 new RadialGradient(0.5f, 0.5f, 1, -1L, Color.pack(Color.RED), TileMode.CLAMP); in testInvalidColorLong()
210 new RadialGradient(0.5f, 0.5f, 1, Color.pack(Color.RED), -1L, TileMode.CLAMP); in testInvalidColorLong2()
225 new RadialGradient(0.5f, 0.5f, 0, Color.pack(Color.RED), Color.pack(Color.BLUE), in testZeroRadiusLong()
231 new RadialGradient(0.5f, 0.5f, 0, new long[]{Color.pack(Color.RED), Color.pack(Color.BLUE)}, in testZeroRadiusLongArray()
DLinearGradientTest.java83 long red = Color.pack(1, 0, 0, 1, p3);
84 long green = Color.pack(0, 1, 0, 1, p3);
85 long blue = Color.pack(0, 0, 1, 1, p3);
195 colors[0] = Color.pack(Color.BLUE);
196 colors[1] = Color.pack(.5f, .5f, .5f, 1.0f, ColorSpace.get(ColorSpace.Named.DISPLAY_P3));
202 long color0 = Color.pack(Color.BLUE);
203 long color1 = Color.pack(.5f, .5f, .5f, 1.0f, ColorSpace.get(ColorSpace.Named.DISPLAY_P3));
227 new LinearGradient(0.5f, 0, 1.5f, 0, -1L, Color.pack(Color.RED), TileMode.CLAMP);
232 new LinearGradient(0.5f, 0, 1.5f, 0, Color.pack(Color.RED), -1L, TileMode.CLAMP);
DSweepGradientTest.java210 colors[0] = Color.pack(Color.BLUE); in testMismatchColorLongs()
211 colors[1] = Color.pack(.5f, .5f, .5f, 1.0f, ColorSpace.get(ColorSpace.Named.DISPLAY_P3)); in testMismatchColorLongs()
217 long color0 = Color.pack(Color.BLUE); in testMismatchColorLongs2()
218 long color1 = Color.pack(.5f, .5f, .5f, 1.0f, ColorSpace.get(ColorSpace.Named.DISPLAY_P3)); in testMismatchColorLongs2()
242 new SweepGradient(1, 0.5f, -1L, Color.pack(Color.RED)); in testInvalidColorLong()
247 new SweepGradient(1, 0.5f, Color.pack(Color.RED), -1L); in testInvalidColorLong2()
258 long red = Color.pack(1, 0, 0, 1, p3); in testColorLong()
259 long blue = Color.pack(0, 0, 1, 1, p3); in testColorLong()
DBitmapTest.java612 mBitmap.eraseColor(Color.pack(0)); in testEraseColorLongOnRecycled()
628 mBitmap.eraseColor(Color.pack(0)); in testEraseColorLongOnImmutable()
699 Color.pack(1.0f, 0.0f, 0.0f, 1.0f, eraseColorSpace), in testGetColor()
700 Color.pack(0.0f, 1.0f, 0.0f, 1.0f, eraseColorSpace), in testGetColor()
701 Color.pack(0.0f, 0.0f, 1.0f, 1.0f, eraseColorSpace)}) { in testGetColor()
761 mBitmap.eraseColor(Color.pack(color)); in testEraseColorLong()
1866 bitmap.eraseColor(Color.pack(0)); in testHardwareEraseColorLong()
DPaintTest.java787 final long desiredColor = Color.pack(red, green, blue, 1.0f, cs);
2183 final long longColor = Color.pack(color);
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DImageProcessingTest.java311 int pack(float a, float r, float g, float b) { in pack() method in ImageProcessingTest.BlendFunc
323 int pack(int a, int r, int g, int b) { in pack() method in ImageProcessingTest.BlendFunc
408 return pack(a, r, g, b);
423 return pack(a, r, g, b);
440 return pack(a, r, g, b);
453 return pack(0, 0, 0, 0);
465 return pack(dstA, dstR, dstG, dstB);
481 return pack(a, r, g, b);
496 return pack(a, r, g, b);
512 return pack(a, r, g, b);
[all …]
/cts/tests/openglperf2/
Dcob_exporter.py43 f.write(struct.pack(">i", len(uvtex.data) * 3))# write length
53 … f.write(struct.pack(">ffffffff", v[0], v[1], v[2], n[0], n[1], n[2], t[0], 1 - t[1]))
/cts/suite/audio_quality/test_description/
Dprocessing_main.py178 raw = struct.pack("<i", i32)
182 raw = struct.pack("<q", i64)
186 raw = struct.pack("<d", val)
/cts/tools/utils/
Dmonsoon.py281 data = struct.pack(fmt, *args)
284 out = struct.pack("B", data_len) + data + struct.pack("B", checksum)
303 if result[-1] != struct.pack("B", checksum):
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DWideColorGamutTests.java146 canvas.drawColor(greenP3.pack()); in testCanvasDrawColorLong()
180 canvas.drawColor(greenP3.pack()); in testCanvasDrawColorLongBlendMode()
181 canvas.drawColor(redP3.pack(), BlendMode.PLUS); in testCanvasDrawColorLongBlendMode()
DExactCanvasTests.java354 canvas.drawColor(Color.pack(0.5f, 0.3f, 0.1f, 1.0f, in testColorLongs()
356 canvas.drawColor(Color.pack(0.2f, 0.2f, 0.2f, 1.0f, in testColorLongs()
359 p.setColor(Color.pack(0.7f, 0.9f, 0.4f, 1.0f, in testColorLongs()
/cts/apps/CtsVerifier/assets/scripts/power_monitors/
Dmonsoon.py388 data = struct.pack(fmt, *args)
391 out = struct.pack("B", data_len) + data + struct.pack("B", checksum)
410 if result[-1] != struct.pack("B", checksum):
/cts/tests/tests/tools/processors/view_inspector/src/android/processor/view/inspector/cts/
DPlatformInspectableProcessorTest.java244 mColorLong = Color.pack(seed.nextInt()); in ColorTest()