Home
last modified time | relevance | path

Searched refs:dst (Results 1 – 25 of 33) sorted by relevance

12

/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dset_object.rscript10 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 …]
DImageProcessingTest.java124 Allocation dst = creatAllocation(w, h); in testBlend() local
133 dst.copyFromUnchecked(dstData); in testBlend()
137 mBlend.forEachSrc(src, dst); in testBlend()
140 mBlend.forEachDst(src, dst); in testBlend()
143 mBlend.forEachSrcOver(src, dst); in testBlend()
146 mBlend.forEachDstOver(src, dst); in testBlend()
149 mBlend.forEachSrcIn(src, dst); in testBlend()
152 mBlend.forEachDstIn(src, dst); in testBlend()
155 mBlend.forEachSrcOut(src, dst); in testBlend()
158 mBlend.forEachDstOut(src, dst); in testBlend()
[all …]
DAllocationTest.java303 float src[], dst[]; in helperFloatCopy() local
305 dst = new float[nElems]; in helperFloatCopy()
308 dst[offset + i] = -1.0f; in helperFloatCopy()
317 A.copyTo(dst); in helperFloatCopy()
320 assertEquals(dst[offset + i], src[i]); in helperFloatCopy()
329 byte src[], dst[]; in helperByteCopy()
331 dst = new byte[nElems]; in helperByteCopy()
334 dst[offset + i] = -1; in helperByteCopy()
343 A.copyTo(dst); in helperByteCopy()
346 assertEquals(dst[offset + i], src[i]); in helperByteCopy()
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/
DCtsUtilsTest.java46 final FakeImage dst = FakeImage.createYuv420(w, h, 14, 10, 8); in testCopyYuv() local
52 CameraTestUtils.imageCopy(src, dst); in testCopyYuv()
54 checkPlane("Y", w, h, src.planes[0], dst.planes[0]); in testCopyYuv()
55 checkPlane("U", w/2, h/2, src.planes[1], dst.planes[1]); in testCopyYuv()
56 checkPlane("V", w/2, h/2, src.planes[2], dst.planes[2]); in testCopyYuv()
64 final FakeImage dst = FakeImage.createRaw(w, h, 21); in testCopyPad0to0() local
67 CameraTestUtils.imageCopy(src, dst); in testCopyPad0to0()
69 checkPlane("RAW", w, h, src.planes[0], dst.planes[0]); in testCopyPad0to0()
77 final FakeImage dst = FakeImage.createRaw(w, h, 24); in testCopyPad3to3() local
80 CameraTestUtils.imageCopy(src, dst); in testCopyPad3to3()
[all …]
DBurstCaptureRawTest.java628 private void copyBurstRequetBuilder(CaptureRequest.Builder dst, CaptureRequest.Builder src) in copyBurstRequetBuilder() argument
630 dst.set(CaptureRequest.CONTROL_AE_MODE, src.get(CaptureRequest.CONTROL_AE_MODE)); in copyBurstRequetBuilder()
631 dst.set(CaptureRequest.CONTROL_AWB_MODE, src.get(CaptureRequest.CONTROL_AWB_MODE)); in copyBurstRequetBuilder()
632 dst.set(CaptureRequest.NOISE_REDUCTION_MODE, src.get(CaptureRequest.NOISE_REDUCTION_MODE)); in copyBurstRequetBuilder()
633 dst.set(CaptureRequest.EDGE_MODE, src.get(CaptureRequest.EDGE_MODE)); in copyBurstRequetBuilder()
634 dst.set(CaptureRequest.SENSOR_FRAME_DURATION, in copyBurstRequetBuilder()
636 dst.set(CaptureRequest.SENSOR_EXPOSURE_TIME, src.get(CaptureRequest.SENSOR_EXPOSURE_TIME)); in copyBurstRequetBuilder()
637 dst.set(CaptureRequest.SENSOR_SENSITIVITY, src.get(CaptureRequest.SENSOR_SENSITIVITY)); in copyBurstRequetBuilder()
DNativeCameraDeviceTest.java169 private static native boolean testCameraDeviceSharedOutputUpdate(Surface src, Surface dst, in testCameraDeviceSharedOutputUpdate() argument
/cts/tests/tests/graphics/src/android/graphics/cts/
DMatrixTest.java231 float[] dst = new float[9]; in testIdentityMatrixSetPolyToPoly() local
232 dst[0] = 200f; in testIdentityMatrixSetPolyToPoly()
233 dst[1] = 300f; in testIdentityMatrixSetPolyToPoly()
234 Matrix.IDENTITY_MATRIX.setPolyToPoly(src, 0, dst, 0, 1); in testIdentityMatrixSetPolyToPoly()
544 float[] dst = new float[9]; in testSetPolyToPoly() local
545 dst[0] = 200f; in testSetPolyToPoly()
546 dst[1] = 300f; in testSetPolyToPoly()
547 assertTrue(mMatrix.setPolyToPoly(src, 0, dst, 0, 1)); in testSetPolyToPoly()
550 mMatrix.setPolyToPoly(src, 0, dst, 0, 5); in testSetPolyToPoly()
571 float[] dst = new float[9]; in testMapPoints2() local
[all …]
DPaintFlagsDrawFilterTest.java135 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()
DPathMeasureTest.java132 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
DBitmapColorSpaceTest.java406 ByteBuffer dst = ByteBuffer.allocate(b.getByteCount()); in verifyGetPixel() local
407 b.copyPixelsToBuffer(dst); in verifyGetPixel()
408 dst.rewind(); in verifyGetPixel()
411 assertEquals(rawColor, dst.asIntBuffer().get()); in verifyGetPixel()
439 ByteBuffer dst = ByteBuffer.allocate(b.getByteCount()); in verifyGetPixels() local
440 b.copyPixelsToBuffer(dst); in verifyGetPixels()
441 dst.rewind(); in verifyGetPixels()
444 int expected = convertPremulColorToColorInt(dst.asIntBuffer().get(), b.getColorSpace()); in verifyGetPixels()
504 ByteBuffer dst = ByteBuffer.allocate(b.getByteCount()); in verifySetPixel() local
505 b.copyPixelsToBuffer(dst); in verifySetPixel()
[all …]
DRegionTest.java1447 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 …]
DPathTest.java165 Path dst = new Path(); in testTransform1() local
167 path.transform(new Matrix(), dst); in testTransform1()
168 assertFalse(dst.isEmpty()); in testTransform1()
428 Path dst = new Path(); in testOffset1() local
429 path.offset(XCOORD, YCOORD, dst); in testOffset1()
430 assertFalse(dst.isEmpty()); in testOffset1()
DBitmapTest.java263 for (Config dst : supportedConfigs) { in testCopyConfigs()
266 Bitmap dstBitmap = srcBitmap.copy(dst, false); in testCopyConfigs()
267 assertNotNull("Should support copying from " + src + " to " + dst, in testCopyConfigs()
269 if (Config.ALPHA_8 == dst || Config.ALPHA_8 == src) { in testCopyConfigs()
272 + dst, Color.BLACK, dstBitmap.getPixel(0, 0)); in testCopyConfigs()
275 + dst, Color.WHITE, dstBitmap.getPixel(0, 0)); in testCopyConfigs()
468 Bitmap dst = Bitmap.createBitmap(src, 0, 0, 2, 2, null, false); in testCreateBitmap_matrix() local
469 assertTrue(dst.isMutable()); in testCreateBitmap_matrix()
470 verify2x2BitmapContents(colorArray, dst); in testCreateBitmap_matrix()
474 dst = Bitmap.createBitmap(src, 0, 0, 2, 2, matrix, false); in testCreateBitmap_matrix()
[all …]
DYuvImageTest.java485 Bitmap dst = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in generateTestBitmaps() local
486 Canvas c = new Canvas(dst); in generateTestBitmaps()
492 mTestBitmaps[0] = dst; in generateTestBitmaps()
/cts/apps/CtsVerifier/libs/
Dopencv3-android.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/opencv/ org/ ...
/cts/tests/tests/rscpp/librscpptest/
Drs_jni_allocation.cpp164 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/
Dpoc.cpp86 DestinationBuffer dst; in thread_func() local
87 dst.type = BufferType::SHARED_MEMORY; in thread_func()
88 dst.nonsecureMemory = src; in thread_func()
102 ScramblingControl::EVENKEY, subsamples, src, 0, dst, 0, in thread_func()
/cts/tests/tests/media/codec/src/android/media/codec/cts/
DVideoCodecTestBase.java436 byte[] dst = new byte[width * height * 3 / 2]; in PackYUV420()
439 System.arraycopy(src, (i + top) * stride + left, dst, i * width, width); in PackYUV420()
451 dst, u_dst_offset + i * (width / 2), width / 2); in PackYUV420()
453 dst, v_dst_offset + i * (width / 2), width / 2); in PackYUV420()
455 return dst; in PackYUV420()
460 byte[] dst, int dstByteOffset, int dstWidth, int dstHeight) { in imageUpscale1To2() argument
471 dst[dstOffset0++] = (byte)pixel00; in imageUpscale1To2()
472 dst[dstOffset0++] = (byte)((pixel00 + pixel01 + 1) / 2); in imageUpscale1To2()
473 dst[dstOffset1++] = (byte)((pixel00 + pixel10 + 1) / 2); in imageUpscale1To2()
474 dst[dstOffset1++] = (byte)((pixel00 + pixel01 + pixel10 + pixel11 + 2) / 4); in imageUpscale1To2()
[all …]
/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_BasicVulkanGpuTest.cpp108 uint8_t *dst = bufferAddr; in verifyBasicBufferImport() local
111 uint8_t *target = dst + ((y * hwbDesc.stride * formatDesc.pixelWidth) + in verifyBasicBufferImport()
Dandroid_graphics_cts_ComputeAhbTest.cpp272 uint8_t *dst = bufferAddr; in verifyComputeShaderWrite() local
275 uint8_t *target = dst + ((y * hwbDesc.stride * 4) + in verifyComputeShaderWrite()
/cts/tests/tests/view/src/android/view/cts/
DPixelCopyTest.java601 ByteBuffer dst = ByteBuffer.allocateDirect(bitmap.getAllocationByteCount()); in testWideGamutWindowProducerCopyToRGBA16F() local
602 bitmap.copyPixelsToBuffer(dst); in testWideGamutWindowProducerCopyToRGBA16F()
603 dst.rewind(); in testWideGamutWindowProducerCopyToRGBA16F()
604 dst.order(ByteOrder.LITTLE_ENDIAN); in testWideGamutWindowProducerCopyToRGBA16F()
607 assertEqualsRgba16f("Top left", bitmap, 32, 32, dst, expectedRed[0], in testWideGamutWindowProducerCopyToRGBA16F()
610 assertEqualsRgba16f("Top right", bitmap, 96, 32, dst, in testWideGamutWindowProducerCopyToRGBA16F()
613 assertEqualsRgba16f("Bottom left", bitmap, 32, 96, dst, in testWideGamutWindowProducerCopyToRGBA16F()
616 assertEqualsRgba16f("Bottom right", bitmap, 96, 96, dst, in testWideGamutWindowProducerCopyToRGBA16F()
728 ByteBuffer dst, float r, float g, float b, float a) { in assertEqualsRgba16f() argument
730 short cR = dst.getShort(index); in assertEqualsRgba16f()
[all …]
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/
DNativeDecoderTest.java317 static void addSampleData(ArrayList<Integer> dst, in addSampleData() argument
320 Log.i("@@@", "addsample " + dst.size() + "/" + size); in addSampleData()
332 dst.add( (int) (sum & 0xffffffff)); in addSampleData()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DHardwareBufferRendererTests.kt543 dst: ByteBuffer, in <lambda>()
550 val cR = dst.getShort(index) in <lambda>()
551 val cG = dst.getShort(index + 2) in <lambda>()
552 val cB = dst.getShort(index + 4) in <lambda>()
553 val cA = dst.getShort(index + 6) in <lambda>()
/cts/tests/mediaprovider/src/android/provider/cts/media/
DMediaProviderTestUtils.java269 final Rect dst = new Rect(0, 0, 1, 1); in extractAverageColor() local
270 canvas.drawBitmap(bitmap, src, dst, null); in extractAverageColor()
/cts/tests/tests/os/UffdGc/jni/
Dandroid_os_cts_uffdgc_UserfaultfdTest.cc89 uffdio_copy.dst = msg.arg.pagefault.address & ~(page_sz - 1); in userfault_handler_thread()

12