Home
last modified time | relevance | path

Searched refs:p3 (Results 1 – 25 of 100) sorted by relevance

1234

/cts/tests/tests/graphics/src/android/graphics/cts/
DColor_ColorLongTest.java51 ColorSpace p3 = ColorSpace.get(Named.DISPLAY_P3); in testRed() local
54 assertEquals(0.5f, red(pack(0.5f, 0.0f, 1.0f, 1.0f, p3)), 0.01f); in testRed()
59 ColorSpace p3 = ColorSpace.get(Named.DISPLAY_P3); in testGreen() local
62 assertEquals(0.7f, green(pack(0.5f, 0.7f, 1.0f, 1.0f, p3)), 0.01f); in testGreen()
67 ColorSpace p3 = ColorSpace.get(Named.DISPLAY_P3); in testBlue() local
70 assertEquals(1.0f, blue(pack(0.5f, 0.7f, 1.0f, 1.0f, p3)), 0.01f); in testBlue()
75 ColorSpace p3 = ColorSpace.get(Named.DISPLAY_P3); in testAlpha() local
78 assertEquals(0.25f, alpha(pack(0.5f, 0.7f, 1.0f, 0.25f, p3)), 0.01f); in testAlpha()
84 ColorSpace p3 = ColorSpace.get(Named.DISPLAY_P3); in testColorSpace() local
87 assertEquals(p3, colorSpace(pack(0.5f, 0.7f, 1.0f, 1.0f, p3))); in testColorSpace()
[all …]
DLinearGradientTest.java82 ColorSpace p3 = ColorSpace.get(ColorSpace.Named.DISPLAY_P3);
83 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);
DRadialGradientTest.java70 ColorSpace p3 = ColorSpace.get(ColorSpace.Named.DISPLAY_P3); in testColorLong() local
71 long red = Color.pack(1, 0, 0, 1, p3); in testColorLong()
72 long blue = Color.pack(0, 0, 1, 1, p3); in testColorLong()
DSweepGradientTest.java257 ColorSpace p3 = ColorSpace.get(ColorSpace.Named.DISPLAY_P3); in testColorLong() local
258 long red = Color.pack(1, 0, 0, 1, p3); in testColorLong()
259 long blue = Color.pack(0, 0, 1, 1, p3); in testColorLong()
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/
DCarrierApiTest.java662 int p3 = 0; // length of 'data' payload in testIccTransmitApduLogicalChannel() local
665 .iccTransmitApduLogicalChannel(channel, cla, COMMAND_STATUS, p1, p2, p3, data); in testIccTransmitApduLogicalChannel()
676 p3 = 2; // data (FID to be selected) is 2 bytes in testIccTransmitApduLogicalChannel()
680 channel, cla, COMMAND_SELECT, p1, p2, p3, data); in testIccTransmitApduLogicalChannel()
693 p3 = 0; in testIccTransmitApduLogicalChannel()
697 channel, cla, COMMAND_GET_RESPONSE, p1, p2, p3, data); in testIccTransmitApduLogicalChannel()
725 int p3 = 0; // length of 'data' payload in testIccTransmitApduLogicalChannelWithInvalidInputs() local
728 .iccTransmitApduLogicalChannel(channel, cla, COMMAND_STATUS, p1, p2, p3, data); in testIccTransmitApduLogicalChannelWithInvalidInputs()
735 p3 = 0x02; // length of 'data' payload in testIccTransmitApduLogicalChannelWithInvalidInputs()
738 .iccTransmitApduLogicalChannel(channel, cla, COMMAND_SELECT, p1, p2, p3, data); in testIccTransmitApduLogicalChannelWithInvalidInputs()
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dintrinsic_resize.rs25 static float4 cubicInterpolate_F4 (float4 p0,float4 p1,float4 p2,float4 p3 , float x) {
26 return p1 + 0.5f * x * (p2 - p0 + x * (2.f * p0 - 5.f * p1 + 4.f * p2 - p3
27 + x * (3.f * (p1 - p2) + p3 - p0)));
30 static float3 cubicInterpolate_F3 (float3 p0,float3 p1,float3 p2,float3 p3 , float x) {
31 return p1 + 0.5f * x * (p2 - p0 + x * (2.f * p0 - 5.f * p1 + 4.f * p2 - p3
32 + x * (3.f * (p1 - p2) + p3 - p0)));
35 static float2 cubicInterpolate_F2 (float2 p0,float2 p1,float2 p2,float2 p3 , float x) {
36 return p1 + 0.5f * x * (p2 - p0 + x * (2.f * p0 - 5.f * p1 + 4.f * p2 - p3
37 + x * (3.f * (p1 - p2) + p3 - p0)));
40 static float cubicInterpolate_F1 (float p0,float p1,float p2,float p3 , float x) {
[all …]
Dintrinsic_convolve5x5.rs57 float4 p3 = convert_float4(rsGetElementAt_uchar4(gIn, x0, y3)) * gCoeffs[15]
69 p0 = clamp(p0 + p1 + p2 + p3 + p4 + 0.5f, 0.f, 255.f);
104 float3 p3 = convert_float3(rsGetElementAt_uchar3(gIn, x0, y3)) * gCoeffs[15]
116 p0 = clamp(p0 + p1 + p2 + p3 + p4 + 0.5f, 0.f, 255.f);
151 float2 p3 = convert_float2(rsGetElementAt_uchar2(gIn, x0, y3)) * gCoeffs[15]
163 p0 = clamp(p0 + p1 + p2 + p3 + p4 + 0.5f, 0.f, 255.f);
198 float p3 = (float)(rsGetElementAt_uchar(gIn, x0, y3)) * gCoeffs[15]
210 return clamp(p0 + p1 + p2 + p3 + p4 + 0.5f, 0.f, 255.f);
244 float4 p3 = rsGetElementAt_float4(gIn, x0, y3) * gCoeffs[15]
256 return p0 + p1 + p2 + p3 + p4;
[all …]
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/cmpg_double/d/
DT_cmpg_double_2.smali34 const p3, 0x4048f5c3 # 3.14f
36 cmpg-double v0, p1, p3
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/add_long/d/
DT_add_long_4.smali34 const p3, 0x4640e400 # 12345.0f
36 add-long v0, p1, p3
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/sub_long/d/
DT_sub_long_4.smali34 const p3, 0x4640e800 # 12346.0f
36 sub-long v0, p1, p3
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/add_double/d/
DT_add_double_2.smali36 add-double v0, p1, p3
38 return-wide p3
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/sub_long_2addr/d/
DT_sub_long_2addr_4.smali34 const p3, 0x4640e800 # 12346.0f
36 sub-long/2addr p1, p3
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/xor_long/d/
DT_xor_long_4.smali34 const p3, 0x449a4000 # 1234.0f
36 xor-long p1, p1, p3
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/cmpl_double/d/
DT_cmpl_double_2.smali34 const p3, 0x4048f5c3 # 3.14f
36 cmpl-double v0, p1, p3
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/add_double_2addr/d/
DT_add_double_2addr_2.smali36 add-double/2addr p1, p3
38 return-wide p3
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/div_long/d/
DT_div_long_4.smali36 div-long v0, p1, p3
38 return-wide p3
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/xor_long_2addr/d/
DT_xor_long_2addr_4.smali34 const p3, 0x449a4000 # 1234.0f
36 xor-long/2addr p1, p3
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/add_long_2addr/d/
DT_add_long_2addr_4.smali34 const p3, 0x4640e400 # 12345.0f
36 add-long/2addr p1, p3
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/div_long_2addr/d/
DT_div_long_2addr_4.smali36 div-long/2addr v0, p3
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/sub_double_2addr/d/
DT_sub_double_2addr_2.smali36 sub-double/2addr p1, p3
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/ushr_long/d/
DT_ushr_long_4.smali36 ushr-long v0, v0, p3
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/div_double_2addr/d/
DT_div_double_2addr_2.smali36 div-double/2addr v0, p3
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/and_long_2addr/d/
DT_and_long_2addr_2.smali36 and-long/2addr v0, p3
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/ushr_long_2addr/d/
DT_ushr_long_2addr_4.smali36 ushr-long/2addr p1, p3
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/cmp_long/d/
DT_cmp_long_3.smali36 cmp-long v0, p1, p3

1234