Home
last modified time | relevance | path

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

12345

/cts/tests/tests/telephony/current/src/android/telephony/cts/
DCbGeoUtilsTest.java50 CbGeoUtils.LatLng p2 = new CbGeoUtils.LatLng(LAT2, LNG2); in testLatLong() local
53 assertEquals(difference.lat, p1.subtract(p2).lat, DELTA); in testLatLong()
54 assertEquals(difference.lng, p1.subtract(p2).lng, DELTA); in testLatLong()
56 assertEquals(DIST, p1.distance(p2), DELTA); in testLatLong()
62 CbGeoUtils.LatLng p2 = new CbGeoUtils.LatLng(LAT2, LNG2); in testPolygon() local
67 vertices.add(p2); in testPolygon()
74 assertTrue(polygon.contains(p2)); in testPolygon()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/sparse_switch/d/
DT_sparse_switch_4.smali36 const p2, -0x1
38 return p2
41 const p2, 0x2
43 return p2
46 const p2, 0x14
48 return p2
DT_sparse_switch_5.smali36 const p2, -0x1
38 return p2
41 const p2, 0x2
43 return p2
46 const p2, 0x14
48 return p2
DT_sparse_switch_3.smali34 sparse-switch p2, :sswitch_data_10
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/
DCarrierApiTest.java694 int p2 = 0x0C; // '0C' for no data returned (TS 102 221 Section 11.1.1.2) in testIccOpenLogicalChannelWithValidP2() local
695 IccOpenLogicalChannelResponse response = mTelephonyManager.iccOpenLogicalChannel("", p2); in testIccOpenLogicalChannelWithValidP2()
711 int p2 = 0xF0; in testIccOpenLogicalChannelWithInvalidP2() local
713 mTelephonyManager.iccOpenLogicalChannel("", p2); in testIccOpenLogicalChannelWithInvalidP2()
761 int p2 = 0; // same response parameters as the SELECT in the iccOpenLogicalChannel() in testIccTransmitApduLogicalChannel() local
767 logicalChannel, cla, COMMAND_STATUS, p1, p2, p3, data); in testIccTransmitApduLogicalChannel()
777 p2 = 0x04; // requesting FCP template in testIccTransmitApduLogicalChannel()
782 logicalChannel, cla, COMMAND_SELECT, p1, p2, p3, data); in testIccTransmitApduLogicalChannel()
795 p2 = 0; in testIccTransmitApduLogicalChannel()
800 logicalChannel, cla, COMMAND_GET_RESPONSE, p1, p2, p3, data); in testIccTransmitApduLogicalChannel()
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dintrinsic_resize.rscript25 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.rscript51 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/hostsidetests/theme/src/android/theme/cts/
DComparisonTask.java99 final int p2 = generated.getRGB(i, j); in checkNeighbors() local
101 final int dr = getAlphaScaledRed(p1) - getAlphaScaledRed(p2); in checkNeighbors()
102 final int dg = getAlphaScaledGreen(p1) - getAlphaScaledGreen(p2); in checkNeighbors()
103 final int db = getAlphaScaledBlue(p1) - getAlphaScaledBlue(p2); in checkNeighbors()
142 final int p2 = generated.getRGB(i, j); in compare() local
144 final int dr = getAlphaScaledRed(p1) - getAlphaScaledRed(p2); in compare()
145 final int dg = getAlphaScaledGreen(p1) - getAlphaScaledGreen(p2); in compare()
146 final int db = getAlphaScaledBlue(p1) - getAlphaScaledBlue(p2); in compare()
/cts/tests/tests/graphics/src/android/graphics/cts/
DPaintTest.java242 Paint p2 = new Paint(); in testSet() local
256 p2.set(p); in testSet()
257 assertEquals(c, p2.getColorFilter()); in testSet()
258 assertEquals(m, p2.getMaskFilter()); in testSet()
259 assertEquals(e, p2.getPathEffect()); in testSet()
260 assertEquals(s, p2.getShader()); in testSet()
261 assertEquals(t, p2.getTypeface()); in testSet()
262 assertEquals(x, p2.getXfermode()); in testSet()
264 p2.set(p2); in testSet()
265 assertEquals(c, p2.getColorFilter()); in testSet()
[all …]
/cts/tests/tests/resourcesloader/src/android/content/res/loader/cts/
DResourcesLoaderFallthroughTest.kt29 val p2 = PROVIDER_TWO.openProvider(DataType.APK_DISK_FD) in <lambda>() constant
58 loader.addProvider(p2) in <lambda>()
77 val p2 = PROVIDER_TWO.openProvider(DataType.APK_DISK_FD) in <lambda>() constant
81 .apply { providers = listOf(p1, p2, p3) } in <lambda>()
/cts/tests/tests/secure_element/sample_applet/src/com/android/cts/omapi/test/
DCtsAndroidOmapiTestApplet.java106 byte p2 = buf[ISO7816.OFFSET_P2]; in process()
169 } else if (p2 == SW_62xx_DATA_APDU_P2){ in process()
176 } else if (p2 == SW_62xx_VALIDATE_DATA_P2){ in process()
190 le = (short)((short)((p1 & 0xFF)<< 8) | (short)(p2 & 0xFF)); in process()
206 le = (short)((short)((p1 & 0xFF)<< 8) | (short)(p2 & 0xFF)); in process()
223 short buffer_len = (short)((short)((p1 & 0xFF)<< 8) | (short)(p2 & 0xFF)); in process()
/cts/tests/signature/tests/src/android/signature/cts/tests/
DBufferedReaderLineSpliteratorTest.java54 public IntPair(int p1, int p2) { in IntPair() argument
56 mP2 = p2; in IntPair()
/cts/tests/tests/graphics/src/android/graphics/cts/utils/
DCam.java177 float p2 = (40.0f * rA + 20.0f * gA + bA) / 20.0f; in fromIntInFrame() local
189 float ac = p2 * frame.getNbb(); in fromIntInFrame()
289 float p2 = (ac / frame.getNbb()); in viewed() local
295 23.0f * (p2 + 0.305f) * t / (23.0f * p1 + 11.0f * t * hCos + 108.0f * t * hSin); in viewed()
298 float rA = (460.0f * p2 + 451.0f * a + 288.0f * b) / 1403.0f; in viewed()
299 float gA = (460.0f * p2 - 891.0f * a - 261.0f * b) / 1403.0f; in viewed()
300 float bA = (460.0f * p2 - 220.0f * a - 6300.0f * b) / 1403.0f; in viewed()
/cts/tests/tests/security/src/android/security/cts/
DAmbiguousBundlesTest.java659 Parcel p2 = Parcel.obtain(); in makeStringToInject() local
660 stuffToInject.writeToParcel(p2, 0); in makeStringToInject()
661 int p2Len = p2.dataPosition() - BUNDLE_SKIP; in makeStringToInject()
674 p.appendFrom(p2, BUNDLE_SKIP, p2Len); in makeStringToInject()
675 p2.recycle(); in makeStringToInject()
694 Parcel p2 = Parcel.obtain(); in writeBundleSkippingHeaders() local
695 bundle.writeToParcel(p2, 0); in writeBundleSkippingHeaders()
696 parcel.appendFrom(p2, BUNDLE_SKIP, p2.dataPosition() - BUNDLE_SKIP); in writeBundleSkippingHeaders()
697 p2.recycle(); in writeBundleSkippingHeaders()
/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/binder_ndk/libbinder_ndk_test/
Dtest_parcel.cpp381 AParcel* p2 = AParcel_create(); in TEST_F() local
385 AParcel_appendFrom(p1, p2, 0, AParcel_getDataSize(p1)); in TEST_F()
389 AParcel_setDataPosition(p2, 0); in TEST_F()
390 AParcel_readInt32(p2, &actual); in TEST_F()
395 AParcel_delete(p2); in TEST_F()
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/permissions/
DPermissionsTest.java91 PermissionContext p2 = sTestApis.permissions().withoutPermission( in withoutPermission_permissionIsNotGranted()
106 try (PermissionContext p2 = in autoclose_withoutPermission_permissionIsGrantedAgain() argument
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DCrossAppDragAndDropTests.java236 Point p2 = getWindowCenter(targetComponentName); in assertDragAndDropResults() local
237 assertNotNull(p2); in assertDragAndDropResults()
242 injectInput(p1, p2, SWIPE_STEPS); in assertDragAndDropResults()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/instance_of/d/
DT_instance_of_6.smali34 instance-of v0, p2, Ljava/lang/String;
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/fill_array_data/d/
DT_fill_array_data_3.smali34 fill-array-data p2, :array_4
/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/tools/vm-tests-tf/src/dot/junit/opcodes/packed_switch/d/
DT_packed_switch_3.smali34 packed-switch p2, :pswitch_data_a
/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/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_virtual_range/d/
DTSuper.smali54 div-int p1, p1, p2
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_super/d/
DTSuper.smali54 div-int p1, p1, p2

12345