Home
last modified time | relevance | path

Searched refs:dst (Results 1 – 25 of 32) 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.java118 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 …]
DAllocationTest.java300 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/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.java136 private static native boolean testCameraDeviceSharedOutputUpdate(Surface src, Surface dst, in testCameraDeviceSharedOutputUpdate() argument
/cts/tests/tests/graphics/src/android/graphics/cts/
DMatrixTest.java225 float[] dst = new float[9]; in testIdentityMatrixSetPolyToPoly() local
226 dst[0] = 200f; in testIdentityMatrixSetPolyToPoly()
227 dst[1] = 300f; in testIdentityMatrixSetPolyToPoly()
228 Matrix.IDENTITY_MATRIX.setPolyToPoly(src, 0, dst, 0, 1); in testIdentityMatrixSetPolyToPoly()
531 float[] dst = new float[9]; in testSetPolyToPoly() local
532 dst[0] = 200f; in testSetPolyToPoly()
533 dst[1] = 300f; in testSetPolyToPoly()
534 assertTrue(mMatrix.setPolyToPoly(src, 0, dst, 0, 1)); in testSetPolyToPoly()
537 mMatrix.setPolyToPoly(src, 0, dst, 0, 5); in testSetPolyToPoly()
558 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.java404 ByteBuffer dst = ByteBuffer.allocate(b.getByteCount()); in verifyGetPixel() local
405 b.copyPixelsToBuffer(dst); in verifyGetPixel()
406 dst.rewind(); in verifyGetPixel()
409 assertEquals(rawColor, dst.asIntBuffer().get()); in verifyGetPixel()
437 ByteBuffer dst = ByteBuffer.allocate(b.getByteCount()); in verifyGetPixels() local
438 b.copyPixelsToBuffer(dst); in verifyGetPixels()
439 dst.rewind(); in verifyGetPixels()
442 int expected = convertPremulColorToColorInt(dst.asIntBuffer().get(), b.getColorSpace()); in verifyGetPixels()
502 ByteBuffer dst = ByteBuffer.allocate(b.getByteCount()); in verifySetPixel() local
503 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.java145 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()
DYuvImageTest.java215 Bitmap dst = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in generateTestBitmaps() local
216 Canvas c = new Canvas(dst); in generateTestBitmaps()
222 mTestBitmaps[0] = dst; in generateTestBitmaps()
DBitmapTest.java260 for (Config dst : supportedConfigs) { in testCopyConfigs()
263 Bitmap dstBitmap = srcBitmap.copy(dst, false); in testCopyConfigs()
264 assertNotNull("Should support copying from " + src + " to " + dst, in testCopyConfigs()
266 if (Config.ALPHA_8 == dst || Config.ALPHA_8 == src) { in testCopyConfigs()
269 + dst, Color.BLACK, dstBitmap.getPixel(0, 0)); in testCopyConfigs()
272 + dst, Color.WHITE, dstBitmap.getPixel(0, 0)); in testCopyConfigs()
465 Bitmap dst = Bitmap.createBitmap(src, 0, 0, 2, 2, null, false); in testCreateBitmap_matrix() local
466 assertTrue(dst.isMutable()); in testCreateBitmap_matrix()
467 verify2x2BitmapContents(colorArray, dst); in testCreateBitmap_matrix()
471 dst = Bitmap.createBitmap(src, 0, 0, 2, 2, matrix, false); in testCreateBitmap_matrix()
[all …]
/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/src/android/media/cts/
DVideoCodecTestBase.java389 byte[] dst = new byte[width * height * 3 / 2]; in PackYUV420()
392 System.arraycopy(src, (i + top) * stride + left, dst, i * width, width); in PackYUV420()
404 dst, u_dst_offset + i * (width / 2), width / 2); in PackYUV420()
406 dst, v_dst_offset + i * (width / 2), width / 2); in PackYUV420()
408 return dst; in PackYUV420()
413 byte[] dst, int dstByteOffset, int dstWidth, int dstHeight) { in imageUpscale1To2() argument
424 dst[dstOffset0++] = (byte)pixel00; in imageUpscale1To2()
425 dst[dstOffset0++] = (byte)((pixel00 + pixel01 + 1) / 2); in imageUpscale1To2()
426 dst[dstOffset1++] = (byte)((pixel00 + pixel10 + 1) / 2); in imageUpscale1To2()
427 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()
/cts/tests/tests/view/src/android/view/cts/
DPixelCopyTest.java495 ByteBuffer dst = ByteBuffer.allocateDirect(bitmap.getAllocationByteCount()); in testWideGamutWindowProducerCopyToRGBA16F() local
496 bitmap.copyPixelsToBuffer(dst); in testWideGamutWindowProducerCopyToRGBA16F()
497 dst.rewind(); in testWideGamutWindowProducerCopyToRGBA16F()
498 dst.order(ByteOrder.LITTLE_ENDIAN); in testWideGamutWindowProducerCopyToRGBA16F()
501 assertEqualsRgba16f("Top left", bitmap, 32, 32, dst, expectedRed[0], in testWideGamutWindowProducerCopyToRGBA16F()
504 assertEqualsRgba16f("Top right", bitmap, 96, 32, dst, expectedGreen[0], in testWideGamutWindowProducerCopyToRGBA16F()
507 assertEqualsRgba16f("Bottom left", bitmap, 32, 96, dst, expectedBlue[0], in testWideGamutWindowProducerCopyToRGBA16F()
510 assertEqualsRgba16f("Bottom right", bitmap, 96, 96, dst, expectedYellow[0], in testWideGamutWindowProducerCopyToRGBA16F()
626 ByteBuffer dst, float r, float g, float b, float a) { in assertEqualsRgba16f() argument
628 short cR = dst.getShort(index); in assertEqualsRgba16f()
[all …]
/cts/tests/tests/bionic/
DAndroid.build.copy.libs.mk190 dst := $(my_bionic_testlibs_out_dir)/dt_runpath_y/$(lib_or_lib64)/$(archname)/libtest_dt_runpath_y.…
192 LOCAL_COMPATIBILITY_SUPPORT_FILES += $(src):$(dst)
202 dst :=
/cts/hostsidetests/scopedstorage/ScopedStorageTestHelper/src/android/scopedstorage/cts/
DScopedStorageTestHelper.java302 File dst = new File(paths[1]); in renameFile() local
303 boolean result = src.renameTo(dst); in renameFile()
/cts/tests/tests/os/UffdGc/jni/
Dandroid_os_cts_uffdgc_UserfaultfdTest.cc84 uffdio_copy.dst = msg.arg.pagefault.address & ~(page_sz - 1); in userfault_handler_thread()
/cts/tests/tests/media/libmediandkjni/
Dnative-media-jni.cpp323 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/tests/view/jni/
Dandroid_view_cts_ASurfaceControlTest.cpp293 const ARect dst{dstLeft, dstTop, dstRight, dstBottom}; in SurfaceTransaction_setGeometry() local
296 reinterpret_cast<ASurfaceControl*>(surfaceControl), src, dst, transform); in SurfaceTransaction_setGeometry()

12