Home
last modified time | relevance | path

Searched refs:p2 (Results 1 – 21 of 21) sorted by relevance

/cts/hostsidetests/theme/src/android/theme/cts/
DComparisonTask.java114 final int p2 = generated.getRGB(i, j); in compare() local
116 final int dr = getAlphaScaledRed(p1) - getAlphaScaledRed(p2); in compare()
117 final int dg = getAlphaScaledGreen(p1) - getAlphaScaledGreen(p2); in compare()
118 final int db = getAlphaScaledBlue(p1) - getAlphaScaledBlue(p2); in compare()
143 private static double computeLabDistance(int p1, int p2) { in computeLabDistance() argument
146 p2 = ColorUtils.blendSrcOver(p2, GRAY); in computeLabDistance()
152 ColorUtils.colorToLAB(p2, lab2); in computeLabDistance()
/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.rs51 float4 p2 = convert_float4(rsGetElementAt_uchar4(gIn, x0, y2)) * gCoeffs[10]
69 p0 = clamp(p0 + p1 + p2 + p3 + p4 + 0.5f, 0.f, 255.f);
98 float3 p2 = convert_float3(rsGetElementAt_uchar3(gIn, x0, y2)) * gCoeffs[10]
116 p0 = clamp(p0 + p1 + p2 + p3 + p4 + 0.5f, 0.f, 255.f);
145 float2 p2 = convert_float2(rsGetElementAt_uchar2(gIn, x0, y2)) * gCoeffs[10]
163 p0 = clamp(p0 + p1 + p2 + p3 + p4 + 0.5f, 0.f, 255.f);
192 float p2 = (float)(rsGetElementAt_uchar(gIn, x0, y2)) * gCoeffs[10]
210 return clamp(p0 + p1 + p2 + p3 + p4 + 0.5f, 0.f, 255.f);
238 float4 p2 = rsGetElementAt_float4(gIn, x0, y2) * gCoeffs[10]
256 return p0 + p1 + p2 + p3 + p4;
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DPaintTest.java190 Paint p2 = new Paint(); in testSet() local
204 p2.set(p); in testSet()
205 assertEquals(c, p2.getColorFilter()); in testSet()
206 assertEquals(m, p2.getMaskFilter()); in testSet()
207 assertEquals(e, p2.getPathEffect()); in testSet()
208 assertEquals(s, p2.getShader()); in testSet()
209 assertEquals(t, p2.getTypeface()); in testSet()
210 assertEquals(x, p2.getXfermode()); in testSet()
212 p2.set(p2); in testSet()
213 assertEquals(c, p2.getColorFilter()); in testSet()
[all …]
/cts/hostsidetests/jvmti/tagging/app/src/android/jvmti/cts/
DJvmtiTaggingTest.java170 Pair p2 = tmp.get(i); in check() local
171 if (!p1.equals(p2)) { in check()
173 "] vs " + p2 + "[" + System.identityHashCode(p2.obj); in check()
/cts/tests/tests/media/src/android/media/cts/
DParamsTest.java417 BufferingParams p2 = new BufferingParams.Builder(p1)
422 p2.getRebufferingWatermarkLowMs(), rebufferingMarkLowMsPair);
424 p2.getRebufferingWatermarkLowKB(), rebufferingMarkLowKBPair);
426 p2.getRebufferingWatermarkHighMs(), rebufferingMarkHighMsPair);
428 p2.getRebufferingWatermarkHighKB(), rebufferingMarkHighKBPair);
DDecodeAccuracyTestBase.java1853 private static int euclideanDistance(double[] p1, double[] p2) { in euclideanDistance() argument
1854 if (p1.length != p2.length) { in euclideanDistance()
1859 result += Math.pow(p1[i] - p2[i], 2); in euclideanDistance()
/cts/hostsidetests/services/activityandwindowmanager/windowmanager/src/android/server/cts/
DCrossAppDragAndDropTests.java326 Point p2 = new Point(); in getWindowCenter() local
327 if (getWindowBounds(name, p1, p2)) { in getWindowCenter()
328 return new Point((p1.x + p2.x) / 2, (p1.y + p2.y) / 2); in getWindowCenter()
/cts/tests/tests/content/src/android/content/pm/cts/
DComponentInfoTest.java237 StringBuilderPrinter p2 = new StringBuilderPrinter(sb2); in testWriteToParcel() local
239 ci.applicationInfo.dump(p2, ""); in testWriteToParcel()
/cts/tests/simplecpu/jni/
DCpuNativeJni.cpp180 int cmpint(const void* p1, const void* p2) in cmpint() argument
182 return *(int*)p1 - *(int*)p2; in cmpint()
/cts/tests/tests/os/src/android/os/cts/
DParcelTest.java43 Parcel p2 = Parcel.obtain(); in testObtain() local
44 assertNotNull(p2); in testObtain()
57 p2.recycle(); in testObtain()
67 Parcel p2; in testAppendFrom() local
76 p2 = Parcel.obtain(); in testAppendFrom()
77 p2.appendFrom(p, d1, d2 - d1); in testAppendFrom()
78 p2.setDataPosition(0); in testAppendFrom()
79 assertEquals(7, p2.readInt()); in testAppendFrom()
80 assertEquals(5, p2.readInt()); in testAppendFrom()
81 p2.recycle(); in testAppendFrom()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DGalleryTest.java223 Gallery.LayoutParams p2 = new Gallery.LayoutParams(320, 480); in testCheckLayoutParams() local
224 assertTrue(gallery.checkLayoutParams(p2)); in testCheckLayoutParams()
DRelativeLayoutTest.java320 RelativeLayout.LayoutParams p2 = new RelativeLayout.LayoutParams(200, 300); in testCheckLayoutParams() local
321 assertTrue(myRelativeLayout.checkLayoutParams(p2)); in testCheckLayoutParams()
DExpandableListViewTest.java527 Parcelable p2 = dest.onSaveInstanceState(); in testOnSaveInstanceState() local
530 assertNotNull(p2); in testOnSaveInstanceState()
/cts/tests/tests/animation/src/android/animation/cts/
DValueAnimatorTest.java379 PropertyValuesHolder p2 = PropertyValuesHolder.ofFloat("scaleY", 1f, 2f); in testValuesSetterAndGetter() local
380 a2.setValues(p1, p2); in testValuesSetterAndGetter()
/cts/tests/libcore/javautilcollections/libs/
Dguava-20.0.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...
/cts/apps/CtsVerifier/libs/
Dopencv3-android.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/opencv/ org/ ...
/cts/tests/tests/media/assets/
DfileSequence1.ts2479 …2G o�ܸ]2����3)"h���dw�Ï�|&{�����4d�]Ol�ZK�j௛5��q ��.bq����ġ��b3�N��p2��̝=D�-��t��.A{ԈUu'…
DfileSequence0.ts950 @������{���ğZ��G�/h@��~�ev�K�|�ݮ>�m%_Ҩ=���1;���M�fy�D�,�1LI�|��|`p2)�b��)�b��(b���"��-�81�…
Dsegment000000.ts698 @������{���ğZ���/h@��~�ev�K�|�ݮ>�m%_Ҩ=���1;���M�fy�D�,�1LI�|��|`p2)�b��)�b��(b���"��-�81��7C…
/cts/tests/tests/media/res/raw/
Dfootball_qvga.yuv41 …POOKOTPRUPKIEBA@JQQTYafefikklllmorqprtsrppowww{~�}~�~xqr�����yw~���������p2�߭=_�������������zomf…
63 …hjloopqrqsturpnnmppppqoonlgb_\Mg������������ԊI���s���JYhbbfecd`\]__`ejiS4Q�p2'GXae\O=.)(-/5BM]swR…
300 …UVYWZ[ZYZ[\]]]^`a__]]]]\[^_`aa``^_][\^^^bdcdedefcceeffgfdceefgfffggijhhdy��p2(02,A��b8*168:?=?\~…