Home
last modified time | relevance | path

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

12

/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dset_object.rs10 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/dram/jni/
DMemoryNativeJni.cpp33 char* dst = new char[bufferSize]; in Java_android_dram_cts_MemoryNative_runMemcpy() local
34 if ((src == NULL) || (dst == NULL)) { in Java_android_dram_cts_MemoryNative_runMemcpy()
36 delete[] dst; in Java_android_dram_cts_MemoryNative_runMemcpy()
41 memset(dst, 0, bufferSize); in Java_android_dram_cts_MemoryNative_runMemcpy()
44 memcpy(dst, src, bufferSize); in Java_android_dram_cts_MemoryNative_runMemcpy()
49 delete[] dst; in Java_android_dram_cts_MemoryNative_runMemcpy()
56 char* dst = new char[bufferSize]; in Java_android_dram_cts_MemoryNative_runMemset() local
57 if (dst == NULL) { in Java_android_dram_cts_MemoryNative_runMemset()
58 delete[] dst; in Java_android_dram_cts_MemoryNative_runMemset()
62 memset(dst, 0, bufferSize); in Java_android_dram_cts_MemoryNative_runMemset()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DMatrixTest.java356 float[] dst = new float[9]; in testSetPolyToPoly() local
357 dst[0] = 200f; in testSetPolyToPoly()
358 dst[1] = 300f; in testSetPolyToPoly()
359 assertTrue(mMatrix.setPolyToPoly(src, 0, dst, 0, 1)); in testSetPolyToPoly()
362 mMatrix.setPolyToPoly(src, 0, dst, 0, 5); in testSetPolyToPoly()
383 float[] dst = new float[9]; in testMapPoints2() local
384 dst[0] = 100f; in testMapPoints2()
387 mMatrix.mapPoints(dst, src); in testMapPoints2()
388 assertEquals(dst[0], 200f, 0f); in testMapPoints2()
398 float[] dst = new float[9]; in testMapPointsWithIndices() local
[all …]
DPaintFlagsDrawFilterTest.java134 Bitmap dst = Bitmap.createBitmap(kWidth * kScale, kHeight * kScale, Config.ARGB_8888); in testPaintFlagsDrawFilter2() local
135 Canvas canvas = new Canvas(dst); in testPaintFlagsDrawFilter2()
142 verifyContainsOnlyBlackAndWhite(dst); in testPaintFlagsDrawFilter2()
148 verifyContainsNonBW(dst); in testPaintFlagsDrawFilter2()
156 verifyContainsOnlyBlackAndWhite(dst); in testPaintFlagsDrawFilter2()
163 verifyContainsNonBW(dst); in testPaintFlagsDrawFilter2()
DPathMeasureTest.java129 Path dst = new Path(); in testGetSegment() local
130 assertTrue(mPathMeasure.getSegment(0, mPathMeasure.getLength(), dst, true)); in testGetSegment()
131 assertFalse(mPathMeasure.getSegment(mPathMeasure.getLength(), 0, dst, true)); in testGetSegment() local
DBitmapColorSpaceTest.java292 ByteBuffer dst = ByteBuffer.allocate(b.getByteCount()); in verifyGetPixel() local
293 b.copyPixelsToBuffer(dst); in verifyGetPixel()
294 dst.rewind(); in verifyGetPixel()
297 assertEquals(rawColor, dst.asIntBuffer().get()); in verifyGetPixel()
371 ByteBuffer dst = ByteBuffer.allocate(b.getByteCount()); in verifySetPixel() local
372 b.copyPixelsToBuffer(dst); in verifySetPixel()
373 dst.rewind(); in verifySetPixel()
375 assertEquals(expectedColor, dst.asIntBuffer().get()); in verifySetPixel()
413 ByteBuffer dst = ByteBuffer.allocate(b.getByteCount()); in verifySetPixels() local
414 b.copyPixelsToBuffer(dst); in verifySetPixels()
[all …]
DRegionTest.java1446 Region dst = new Region(); in testTranslate2() local
1450 mRegion.translate(10, 10, dst); in testTranslate2()
1453 assertNotSame(rect1, dst.getBounds()); in testTranslate2()
1454 assertEquals(rect2, dst.getBounds()); in testTranslate2()
1467 Region dst = Region.CREATOR.createFromParcel(p); in testWriteToParcel() local
1468 assertTrue(dst.isEmpty()); in testWriteToParcel()
1476 dst = Region.CREATOR.createFromParcel(p); in testWriteToParcel()
1477 assertEquals(oriRect.top, dst.getBounds().top); in testWriteToParcel()
1478 assertEquals(oriRect.left, dst.getBounds().left); in testWriteToParcel()
1479 assertEquals(oriRect.bottom, dst.getBounds().bottom); in testWriteToParcel()
[all …]
DPathTest.java144 Path dst = new Path(); in testTransform1() local
146 path.transform(new Matrix(), dst); in testTransform1()
147 assertFalse(dst.isEmpty()); in testTransform1()
378 Path dst = new Path(); in testOffset1() local
379 path.offset(XCOORD, YCOORD, dst); in testOffset1()
380 assertFalse(dst.isEmpty()); in testOffset1()
DBitmapTest.java126 for (Config dst : supportedConfigs) { in testCopyConfigs()
129 Bitmap dstBitmap = srcBitmap.copy(dst, false); in testCopyConfigs()
130 assertNotNull("Should support copying from " + src + " to " + dst, in testCopyConfigs()
132 if (Config.ALPHA_8 == dst || Config.ALPHA_8 == src) { in testCopyConfigs()
135 + dst, Color.BLACK, dstBitmap.getPixel(0, 0)); in testCopyConfigs()
138 + dst, Color.WHITE, dstBitmap.getPixel(0, 0)); in testCopyConfigs()
310 Bitmap dst = Bitmap.createBitmap(src, 0, 0, 2, 2, null, false); in testCreateBitmap_matrix() local
311 verify2x2BitmapContents(colorArray, dst); in testCreateBitmap_matrix()
315 dst = Bitmap.createBitmap(src, 0, 0, 2, 2, matrix, false); in testCreateBitmap_matrix()
316 verify2x2BitmapContents(colorArray, dst); in testCreateBitmap_matrix()
[all …]
DYuvImageTest.java213 Bitmap dst = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in generateTestBitmaps() local
214 Canvas c = new Canvas(dst); in generateTestBitmaps()
220 mTestBitmaps[0] = dst; in generateTestBitmaps()
DCanvasTest.java2093 final RectF dst = new RectF(0, 0, 10, 31); in testDrawPicture2() local
2097 mCanvas.drawPicture(p, dst); in testDrawPicture2()
2100 mCanvas.drawPicture(p, dst); in testDrawPicture2()
2105 final Rect dst = new Rect(0, 10, 30, 0); in testDrawPicture3() local
2109 mCanvas.drawPicture(p, dst); in testDrawPicture3()
2112 mCanvas.drawPicture(p, dst); in testDrawPicture3()
DBitmapRegionDecoderTest.java624 Rect dst = new Rect(0, 0, rect.width(), rect.height()); in cropBitmap() local
625 canvas.drawBitmap(wholeImage, rect, dst, null); in cropBitmap()
/cts/apps/CtsVerifier/libs/
Dopencv3-android.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/opencv/ org/ ...
/cts/hostsidetests/security/securityPatch/CVE-2017-0576/
Dpoc.c46 struct buf_info dst[QCEDEV_MAX_BUFFERS]; member
53 struct buf_info dst[QCEDEV_MAX_BUFFERS]; member
135 req.vbuf.dst[0].len = 4; in thread_func()
136 req.vbuf.dst[1].len = 0xFFFFFFFE - 4; in thread_func()
137 req.vbuf.dst[0].vaddr = (uint8_t*)data; in thread_func()
138 req.vbuf.dst[1].vaddr = (uint8_t*)data; in thread_func()
/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/theme/src/android/theme/cts/
DColorUtils.java38 public static int blendSrcOver(int src, int dst) { in blendSrcOver() argument
40 int Ar = clamp(a(src) + a(dst) * x); in blendSrcOver()
41 int Rr = clamp(r(src) + r(dst) * x); in blendSrcOver()
42 int Gr = clamp(g(src) + g(dst) * x); in blendSrcOver()
43 int Br = clamp(b(src) + b(dst) * x); in blendSrcOver()
/cts/tools/dex-tools/src/dex/reader/
DDexBuffer.java71 public void readBytes(byte[] dst) { in readBytes() argument
72 b.get(dst, 0, dst.length); in readBytes()
/cts/tests/tests/media/src/android/media/cts/
DVpxCodecTestBase.java375 byte[] dst = new byte[width * height * 3 / 2]; in PackYUV420()
378 System.arraycopy(src, i * stride, dst, i * width, width); in PackYUV420()
387 dst, u_dst_offset + i * (width / 2), width / 2); in PackYUV420()
389 dst, v_dst_offset + i * (width / 2), width / 2); in PackYUV420()
391 return dst; in PackYUV420()
396 byte[] dst, int dstByteOffset, int dstWidth, int dstHeight) { in imageUpscale1To2() argument
407 dst[dstOffset0++] = (byte)pixel00; in imageUpscale1To2()
408 dst[dstOffset0++] = (byte)((pixel00 + pixel01 + 1) / 2); in imageUpscale1To2()
409 dst[dstOffset1++] = (byte)((pixel00 + pixel10 + 1) / 2); in imageUpscale1To2()
410 dst[dstOffset1++] = (byte)((pixel00 + pixel01 + pixel10 + pixel11 + 2) / 4); in imageUpscale1To2()
[all …]
DNativeDecoderTest.java351 static void addSampleData(ArrayList<Integer> dst, in addSampleData() argument
354 Log.i("@@@", "addsample " + dst.size() + "/" + size); in addSampleData()
365 dst.add( (int) (sum & 0xffffffff)); in addSampleData()
/cts/tests/camera/src/android/hardware/camera2/cts/
DBurstCaptureRawTest.java617 private void copyBurstRequetBuilder(CaptureRequest.Builder dst, CaptureRequest.Builder src) in copyBurstRequetBuilder() argument
619 dst.set(CaptureRequest.CONTROL_AE_MODE, src.get(CaptureRequest.CONTROL_AE_MODE)); in copyBurstRequetBuilder()
620 dst.set(CaptureRequest.CONTROL_AWB_MODE, src.get(CaptureRequest.CONTROL_AWB_MODE)); in copyBurstRequetBuilder()
621 dst.set(CaptureRequest.NOISE_REDUCTION_MODE, src.get(CaptureRequest.NOISE_REDUCTION_MODE)); in copyBurstRequetBuilder()
622 dst.set(CaptureRequest.EDGE_MODE, src.get(CaptureRequest.EDGE_MODE)); in copyBurstRequetBuilder()
623 dst.set(CaptureRequest.SENSOR_FRAME_DURATION, in copyBurstRequetBuilder()
625 dst.set(CaptureRequest.SENSOR_EXPOSURE_TIME, src.get(CaptureRequest.SENSOR_EXPOSURE_TIME)); in copyBurstRequetBuilder()
626 dst.set(CaptureRequest.SENSOR_SENSITIVITY, src.get(CaptureRequest.SENSOR_SENSITIVITY)); in copyBurstRequetBuilder()
/cts/tests/tests/net/jni/
DNativeMultinetworkJni.c95 void sockaddr_ntop(const struct sockaddr *sa, socklen_t salen, char *dst, const size_t size) { in sockaddr_ntop() argument
112 strlcpy(dst, buf, size); in sockaddr_ntop()
/cts/tests/tests/media/libmediandkjni/
Dnative-media-jni.cpp139 jint *dst = env->GetIntArrayElements(ret, &isCopy); in testExtractor() local
141 dst[i] = data[i]; in testExtractor()
143 env->ReleaseIntArrayElements(ret, dst, 0); in testExtractor()
348 jint *dst = org; in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative() local
354 *dst++ = data[j]; in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java1791 public static void imageCopy(Image src, Image dst) { in imageCopy() argument
1792 if (src == null || dst == null) { in imageCopy()
1795 if (src.getFormat() != dst.getFormat()) { in imageCopy()
1799 dst.getFormat() == ImageFormat.PRIVATE) { in imageCopy()
1807 Plane[] dstPlanes = dst.getPlanes(); in imageCopy()

12