/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | set_object.rs | 10 rs_allocation dst; 11 rsSetObject(&dst,in->allocation); 12 *out = ( dst.p == in->allocation.p ? 1 : 0 ); 21 rs_element dst; 22 rsSetObject(&dst,in->element); 23 *out = ( dst.p == in->element.p ? 1 : 0 ); 32 rs_sampler dst; 33 rsSetObject(&dst,in->sampler); 34 *out = ( dst.p == in->sampler.p ? 1 : 0 ); 43 rs_script dst; [all …]
|
D | ImageProcessingTest.java | 118 Allocation dst = creatAllocation(w, h); in testBlend() local 128 dst.copyFromUnchecked(dstData); in testBlend() 132 mBlend.forEachSrc(src, dst); in testBlend() 135 mBlend.forEachDst(src, dst); in testBlend() 138 mBlend.forEachSrcOver(src, dst); in testBlend() 141 mBlend.forEachDstOver(src, dst); in testBlend() 144 mBlend.forEachSrcIn(src, dst); in testBlend() 147 mBlend.forEachDstIn(src, dst); in testBlend() 150 mBlend.forEachSrcOut(src, dst); in testBlend() 153 mBlend.forEachDstOut(src, dst); in testBlend() [all …]
|
D | AllocationTest.java | 300 float src[], dst[]; in helperFloatCopy() local 302 dst = new float[nElems]; in helperFloatCopy() 305 dst[offset + i] = -1.0f; in helperFloatCopy() 314 A.copyTo(dst); in helperFloatCopy() 317 assertEquals(dst[offset + i], src[i]); in helperFloatCopy() 326 byte src[], dst[]; in helperByteCopy() 328 dst = new byte[nElems]; in helperByteCopy() 331 dst[offset + i] = -1; in helperByteCopy() 340 A.copyTo(dst); in helperByteCopy() 343 assertEquals(dst[offset + i], src[i]); in helperByteCopy() [all …]
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | MatrixTest.java | 357 float[] dst = new float[9]; in testSetPolyToPoly() local 358 dst[0] = 200f; in testSetPolyToPoly() 359 dst[1] = 300f; in testSetPolyToPoly() 360 assertTrue(mMatrix.setPolyToPoly(src, 0, dst, 0, 1)); in testSetPolyToPoly() 363 mMatrix.setPolyToPoly(src, 0, dst, 0, 5); in testSetPolyToPoly() 384 float[] dst = new float[9]; in testMapPoints2() local 385 dst[0] = 100f; in testMapPoints2() 388 mMatrix.mapPoints(dst, src); in testMapPoints2() 389 assertEquals(dst[0], 200f, 0f); in testMapPoints2() 399 float[] dst = new float[9]; in testMapPointsWithIndices() local [all …]
|
D | PaintFlagsDrawFilterTest.java | 135 Bitmap dst = Bitmap.createBitmap(kWidth * kScale, kHeight * kScale, Config.ARGB_8888); in testPaintFlagsDrawFilter2() local 136 Canvas canvas = new Canvas(dst); in testPaintFlagsDrawFilter2() 144 verifyContainsOnlyBlackAndWhite(dst); in testPaintFlagsDrawFilter2() 150 verifyContainsNonBW(dst); in testPaintFlagsDrawFilter2() 158 verifyContainsOnlyBlackAndWhite(dst); in testPaintFlagsDrawFilter2() 165 verifyContainsNonBW(dst); in testPaintFlagsDrawFilter2()
|
D | PathMeasureTest.java | 132 Path dst = new Path(); in testGetSegment() local 133 assertTrue(mPathMeasure.getSegment(0, mPathMeasure.getLength(), dst, true)); in testGetSegment() 134 assertFalse(mPathMeasure.getSegment(mPathMeasure.getLength(), 0, dst, true)); in testGetSegment() local
|
D | BitmapColorSpaceTest.java | 402 ByteBuffer dst = ByteBuffer.allocate(b.getByteCount()); in verifyGetPixel() local 403 b.copyPixelsToBuffer(dst); in verifyGetPixel() 404 dst.rewind(); in verifyGetPixel() 407 assertEquals(rawColor, dst.asIntBuffer().get()); in verifyGetPixel() 435 ByteBuffer dst = ByteBuffer.allocate(b.getByteCount()); in verifyGetPixels() local 436 b.copyPixelsToBuffer(dst); in verifyGetPixels() 437 dst.rewind(); in verifyGetPixels() 440 int expected = convertPremulColorToColorInt(dst.asIntBuffer().get(), b.getColorSpace()); in verifyGetPixels() 500 ByteBuffer dst = ByteBuffer.allocate(b.getByteCount()); in verifySetPixel() local 501 b.copyPixelsToBuffer(dst); in verifySetPixel() [all …]
|
D | RegionTest.java | 1447 Region dst = new Region(); in testTranslate2() local 1451 mRegion.translate(10, 10, dst); in testTranslate2() 1454 assertNotSame(rect1, dst.getBounds()); in testTranslate2() 1455 assertEquals(rect2, dst.getBounds()); in testTranslate2() 1468 Region dst = Region.CREATOR.createFromParcel(p); in testWriteToParcel() local 1469 assertTrue(dst.isEmpty()); in testWriteToParcel() 1478 dst = Region.CREATOR.createFromParcel(p); in testWriteToParcel() 1479 assertEquals(oriRect.top, dst.getBounds().top); in testWriteToParcel() 1480 assertEquals(oriRect.left, dst.getBounds().left); in testWriteToParcel() 1481 assertEquals(oriRect.bottom, dst.getBounds().bottom); in testWriteToParcel() [all …]
|
D | PathTest.java | 145 Path dst = new Path(); in testTransform1() local 147 path.transform(new Matrix(), dst); in testTransform1() 148 assertFalse(dst.isEmpty()); in testTransform1() 379 Path dst = new Path(); in testOffset1() local 380 path.offset(XCOORD, YCOORD, dst); in testOffset1() 381 assertFalse(dst.isEmpty()); in testOffset1()
|
D | BitmapTest.java | 156 for (Config dst : supportedConfigs) { in testCopyConfigs() 159 Bitmap dstBitmap = srcBitmap.copy(dst, false); in testCopyConfigs() 160 assertNotNull("Should support copying from " + src + " to " + dst, in testCopyConfigs() 162 if (Config.ALPHA_8 == dst || Config.ALPHA_8 == src) { in testCopyConfigs() 165 + dst, Color.BLACK, dstBitmap.getPixel(0, 0)); in testCopyConfigs() 168 + dst, Color.WHITE, dstBitmap.getPixel(0, 0)); in testCopyConfigs() 361 Bitmap dst = Bitmap.createBitmap(src, 0, 0, 2, 2, null, false); in testCreateBitmap_matrix() local 362 assertTrue(dst.isMutable()); in testCreateBitmap_matrix() 363 verify2x2BitmapContents(colorArray, dst); in testCreateBitmap_matrix() 367 dst = Bitmap.createBitmap(src, 0, 0, 2, 2, matrix, false); in testCreateBitmap_matrix() [all …]
|
D | YuvImageTest.java | 214 Bitmap dst = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in generateTestBitmaps() local 215 Canvas c = new Canvas(dst); in generateTestBitmaps() 221 mTestBitmaps[0] = dst; in generateTestBitmaps()
|
/cts/tests/tests/rscpp/librscpptest/ |
D | rs_jni_allocation.cpp | 164 T* dst = new T[arrLen]; in helperCopy1D() local 168 dst[iOffset + i] = (T)(-1); in helperCopy1D() 176 alloc->copy1DTo(dst); in helperCopy1D() 179 if (dst[iOffset + i] != src[i]) { in helperCopy1D() 186 delete[] dst; in helperCopy1D() 197 float *src, *dst; in helperFloatAllocationCopy1D() local 199 dst = new float[cellCount]; in helperFloatAllocationCopy1D() 202 dst[i] = -1.0f; in helperFloatAllocationCopy1D() 209 dstA->copy1DTo(dst); in helperFloatAllocationCopy1D() 212 if (dst[offset + i] != src[offset + i]) { in helperFloatAllocationCopy1D() [all …]
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2018-9539/ |
D | poc.cpp | 70 DestinationBuffer dst; in thread_func() local 71 dst.type = BufferType::SHARED_MEMORY; in thread_func() 72 dst.nonsecureMemory = src; in thread_func() 86 ScramblingControl::EVENKEY, subsamples, src, 0, dst, 0, in thread_func()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | VpxCodecTestBase.java | 369 byte[] dst = new byte[width * height * 3 / 2]; in PackYUV420() 372 System.arraycopy(src, (i + top) * stride + left, dst, i * width, width); in PackYUV420() 384 dst, u_dst_offset + i * (width / 2), width / 2); in PackYUV420() 386 dst, v_dst_offset + i * (width / 2), width / 2); in PackYUV420() 388 return dst; in PackYUV420() 393 byte[] dst, int dstByteOffset, int dstWidth, int dstHeight) { in imageUpscale1To2() argument 404 dst[dstOffset0++] = (byte)pixel00; in imageUpscale1To2() 405 dst[dstOffset0++] = (byte)((pixel00 + pixel01 + 1) / 2); in imageUpscale1To2() 406 dst[dstOffset1++] = (byte)((pixel00 + pixel10 + 1) / 2); in imageUpscale1To2() 407 dst[dstOffset1++] = (byte)((pixel00 + pixel01 + pixel10 + pixel11 + 2) / 4); in imageUpscale1To2() [all …]
|
/cts/tests/tests/net/src/android/net/cts/ |
D | PacketUtils.java | 78 public IpHeader(int proto, InetAddress src, InetAddress dst, Payload payload) { in IpHeader() argument 81 this.dstAddr = dst; in IpHeader() 93 public Ip4Header(int proto, Inet4Address src, Inet4Address dst, Payload payload) { in Ip4Header() argument 94 super(proto, src, dst, payload); in Ip4Header() 162 public Ip6Header(int nextHeader, Inet6Address src, Inet6Address dst, Payload payload) { in Ip6Header() argument 163 super(nextHeader, src, dst, payload); in Ip6Header()
|
D | IpSecManagerTunnelTest.java | 722 private IpHeader getIpHeader(int protocol, InetAddress src, InetAddress dst, Payload payload) { 723 if ((src instanceof Inet6Address) != (dst instanceof Inet6Address)) { 728 return new Ip6Header(protocol, (Inet6Address) src, (Inet6Address) dst, payload); 730 return new Ip4Header(protocol, (Inet4Address) src, (Inet4Address) dst, payload); 735 int spi, InetAddress src, InetAddress dst, int port, Payload payload) throws Exception { 736 IpHeader preEspIpHeader = getIpHeader(payload.getProtocolId(), src, dst, payload); 766 InetAddress src, InetAddress dst, int encapPort, EspHeader espPayload) 774 return getIpHeader(payload.getProtocolId(), src, dst, payload);
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | BurstCaptureRawTest.java | 625 private void copyBurstRequetBuilder(CaptureRequest.Builder dst, CaptureRequest.Builder src) in copyBurstRequetBuilder() argument 627 dst.set(CaptureRequest.CONTROL_AE_MODE, src.get(CaptureRequest.CONTROL_AE_MODE)); in copyBurstRequetBuilder() 628 dst.set(CaptureRequest.CONTROL_AWB_MODE, src.get(CaptureRequest.CONTROL_AWB_MODE)); in copyBurstRequetBuilder() 629 dst.set(CaptureRequest.NOISE_REDUCTION_MODE, src.get(CaptureRequest.NOISE_REDUCTION_MODE)); in copyBurstRequetBuilder() 630 dst.set(CaptureRequest.EDGE_MODE, src.get(CaptureRequest.EDGE_MODE)); in copyBurstRequetBuilder() 631 dst.set(CaptureRequest.SENSOR_FRAME_DURATION, in copyBurstRequetBuilder() 633 dst.set(CaptureRequest.SENSOR_EXPOSURE_TIME, src.get(CaptureRequest.SENSOR_EXPOSURE_TIME)); in copyBurstRequetBuilder() 634 dst.set(CaptureRequest.SENSOR_SENSITIVITY, src.get(CaptureRequest.SENSOR_SENSITIVITY)); in copyBurstRequetBuilder()
|
D | NativeCameraDeviceTest.java | 128 private static native boolean testCameraDeviceSharedOutputUpdate(Surface src, Surface dst); in testCameraDeviceSharedOutputUpdate() argument
|
/cts/tests/tests/view/src/android/view/cts/ |
D | PixelCopyTest.java | 478 ByteBuffer dst = ByteBuffer.allocateDirect(bitmap.getAllocationByteCount()); in testWideGamutWindowProducerCopyToRGBA16F() local 479 bitmap.copyPixelsToBuffer(dst); in testWideGamutWindowProducerCopyToRGBA16F() 480 dst.rewind(); in testWideGamutWindowProducerCopyToRGBA16F() 481 dst.order(ByteOrder.LITTLE_ENDIAN); in testWideGamutWindowProducerCopyToRGBA16F() 484 assertEqualsRgba16f("Top left", bitmap, 32, 32, dst, expectedRed[0], in testWideGamutWindowProducerCopyToRGBA16F() 487 assertEqualsRgba16f("Top right", bitmap, 96, 32, dst, expectedGreen[0], in testWideGamutWindowProducerCopyToRGBA16F() 490 assertEqualsRgba16f("Bottom left", bitmap, 32, 96, dst, expectedBlue[0], in testWideGamutWindowProducerCopyToRGBA16F() 493 assertEqualsRgba16f("Bottom right", bitmap, 96, 96, dst, expectedYellow[0], in testWideGamutWindowProducerCopyToRGBA16F() 609 ByteBuffer dst, float r, float g, float b, float a) { in assertEqualsRgba16f() argument 611 short cR = dst.getShort(index); in assertEqualsRgba16f() [all …]
|
/cts/tests/tests/graphics/jni/ |
D | android_graphics_cts_BasicVulkanGpuTest.cpp | 108 uint8_t *dst = bufferAddr; in verifyBasicBufferImport() local 111 uint8_t *target = dst + ((y * hwbDesc.stride * formatDesc.pixelWidth) + in verifyBasicBufferImport()
|
/cts/tests/tests/bionic/ |
D | Android.build.copy.libs.mk | 184 dst := $(my_bionic_testlibs_out_dir)/dt_runpath_y/$(lib_or_lib64)/$(archname)/libtest_dt_runpath_y.… 186 LOCAL_COMPATIBILITY_SUPPORT_FILES += $(src):$(dst) 197 dst :=
|
/cts/tests/tests/view/jni/ |
D | android_view_cts_ASurfaceControlTest.cpp | 292 const ARect dst{dstLeft, dstTop, dstRight, dstBottom}; in SurfaceTransaction_setGeometry() local 295 reinterpret_cast<ASurfaceControl*>(surfaceControl), src, dst, transform); in SurfaceTransaction_setGeometry()
|
/cts/tests/tests/net/jni/ |
D | NativeMultinetworkJni.cpp | 372 void sockaddr_ntop(const struct sockaddr *sa, socklen_t salen, char *dst, const size_t size) { in sockaddr_ntop() argument 389 strlcpy(dst, buf, size); in sockaddr_ntop()
|
/cts/tests/tests/media/libmediandkjni/ |
D | native-media-jni.cpp | 323 jint *dst = env->GetIntArrayElements(ret, &isCopy); in testExtractor() local 325 dst[i] = data[i]; in testExtractor() 327 env->ReleaseIntArrayElements(ret, dst, 0); in testExtractor() 651 jint *dst = org; in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative() local 657 *dst++ = data[j]; in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative()
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/ |
D | CameraTestUtils.java | 1968 public static void imageCopy(Image src, Image dst) { in imageCopy() argument 1969 if (src == null || dst == null) { in imageCopy() 1972 if (src.getFormat() != dst.getFormat()) { in imageCopy() 1976 dst.getFormat() == ImageFormat.PRIVATE) { in imageCopy() 1981 Size dstSize = new Size(dst.getWidth(), dst.getHeight()); in imageCopy() 1991 Plane[] dstPlanes = dst.getPlanes(); in imageCopy()
|