/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | AllocationCopyPaddedTest.java | 36 Allocation alloc = Allocation.createTyped(mRS, typeBuilder.create()); in test_AllocationPadded_Byte3_1D() local 37 alloc.setAutoPadding(true); in test_AllocationPadded_Byte3_1D() 38 alloc.copyFrom(inArray); in test_AllocationPadded_Byte3_1D() 39 alloc.copyTo(outArray); in test_AllocationPadded_Byte3_1D() 50 alloc.destroy(); in test_AllocationPadded_Byte3_1D() 65 Allocation alloc = Allocation.createTyped(mRS, typeBuilder.create()); in test_AllocationPadded_Byte3_2D() local 66 alloc.setAutoPadding(true); in test_AllocationPadded_Byte3_2D() 67 alloc.copyFrom(inArray); in test_AllocationPadded_Byte3_2D() 68 alloc.copyTo(outArray); in test_AllocationPadded_Byte3_2D() 79 alloc.destroy(); in test_AllocationPadded_Byte3_2D() [all …]
|
D | AllocationCopyToTest.java | 25 private Allocation alloc; field in AllocationCopyToTest 29 if (alloc != null) { in tearDown() 30 alloc.destroy(); in tearDown() 46 alloc = Allocation.createTyped(mRS, typeBuilder.create()); in test_Allocationcopy1DRangeTo_Byte() 49 alloc.copy1DRangeFrom(offset, count, inArray); in test_Allocationcopy1DRangeTo_Byte() 50 alloc.copy1DRangeTo(offset, count, outArray); in test_Allocationcopy1DRangeTo_Byte() 83 alloc = Allocation.createTyped(mRS, typeBuilder.create()); in test_Allocationcopy1DRangeTo_Short_Helper() 87 alloc.copy1DRangeFrom(offset, count, inArray); in test_Allocationcopy1DRangeTo_Short_Helper() 88 alloc.copy1DRangeTo(offset, count, outArray); in test_Allocationcopy1DRangeTo_Short_Helper() 90 alloc.copy1DRangeFrom(offset, count, (Object) inArray); in test_Allocationcopy1DRangeTo_Short_Helper() [all …]
|
D | AllocationByteBufferTest.java | 56 Allocation alloc = createTypedAllocation(dt, size, dimX, dimY); in testByteBufferHelper() local 57 alloc.copyFromUnchecked(data); in testByteBufferHelper() 59 ByteBuffer bb = alloc.getByteBuffer(); in testByteBufferHelper() 60 int stride = (int)alloc.getStride(); in testByteBufferHelper() 68 alloc.destroy(); in testByteBufferHelper() 91 Allocation alloc = Allocation.createTyped(mRS, t); in test1DWrite() local 92 ByteBuffer bb = alloc.getByteBuffer(); in test1DWrite() 98 alloc.copyTo(dataOut); in test1DWrite() 111 Allocation alloc = Allocation.createTyped(mRS, t); in test2DWrite() local 112 ByteBuffer bb = alloc.getByteBuffer(); in test2DWrite() [all …]
|
D | RSBaseCompute.java | 114 Allocation alloc = Allocation.createSized(rs, element, INPUTSIZE); in createRandomAllocation() local 122 alloc.copy1DRangeFrom(0, INPUTSIZE, inArray); in createRandomAllocation() 129 alloc.copy1DRangeFrom(0, INPUTSIZE, inArray); in createRandomAllocation() 135 alloc.copyFrom(inArray); in createRandomAllocation() 139 alloc.copy1DRangeFrom(0, INPUTSIZE, inArray); in createRandomAllocation() 143 alloc.copy1DRangeFrom(0, INPUTSIZE, inArray); in createRandomAllocation() 147 alloc.copy1DRangeFrom(0, INPUTSIZE, inArray); in createRandomAllocation() 151 alloc.copy1DRangeFrom(0, INPUTSIZE, inArray); in createRandomAllocation() 155 alloc.copy1DRangeFrom(0, INPUTSIZE, inArray); in createRandomAllocation() 159 alloc.copy1DRangeFrom(0, INPUTSIZE, inArray); in createRandomAllocation() [all …]
|
D | SmallStructsTest.java | 157 Allocation alloc = (Allocation) scriptFieldClass.getMethod("getAllocation") in testSmallStructsOfCharArray() local 183 modify.invoke(mScript, alloc, alloc); in testSmallStructsOfCharArray() 184 verify.invoke(mScript, alloc); in testSmallStructsOfCharArray() 187 alloc.destroy(); in testSmallStructsOfCharArray() 217 Allocation alloc = (Allocation) scriptFieldClass.getMethod("getAllocation") in testSmallStructsOfHeterogeneousTypes() local 245 modify.invoke(mScript, alloc, alloc); in testSmallStructsOfHeterogeneousTypes() 246 verify.invoke(mScript, alloc); in testSmallStructsOfHeterogeneousTypes() 249 alloc.destroy(); in testSmallStructsOfHeterogeneousTypes()
|
D | kernel_input.rscript | 63 void verify_input_##type(rs_allocation alloc) { \ 64 type elem = rsGetElementAt_##type(alloc, 0); \ 70 void verify_input_##type(rs_allocation alloc) { \ 71 type elem = rsGetElementAt_##type(alloc, 0); \ 78 void verify_input_##type(rs_allocation alloc) { \ 79 type elem = rsGetElementAt_##type(alloc, 0); \ 87 void verify_input_##type(rs_allocation alloc) { \ 88 type elem = rsGetElementAt_##type(alloc, 0); \ 197 void verify_input_small(rs_allocation alloc) { 198 const small *elem = (const small *) rsGetElementAt(alloc, 0); [all …]
|
D | small_structs.rscript | 84 void verify_char_array_##SIZE(rs_allocation alloc) { \ 85 for (int i = 0; i < rsAllocationGetDimX(alloc); ++i) { \ 87 (struct char_array_##SIZE *) rsGetElementAt(alloc, i); \ 188 void verify_two_element_struct_##TAG(rs_allocation alloc) { \ 189 for (int i = 0; i < rsAllocationGetDimX(alloc); ++i) { \ 191 (struct two_element_struct_##TAG *) rsGetElementAt(alloc, i); \
|
D | ReduceTest.java | 98 Allocation alloc; in createInputAllocation() local 101 alloc = Allocation.createTyped(mRS, Type.createXYZ(mRS, elt, xlen, ylen, zlen)); in createInputAllocation() 103 alloc = Allocation.createTyped(mRS, Type.createXY(mRS, elt, xlen, ylen)); in createInputAllocation() 105 alloc = Allocation.createSized(mRS, elt, xlen); in createInputAllocation() 107 alloc.setAutoPadding(true); in createInputAllocation() 109 byte[] init = new byte[alloc.getBytesSize()]; in createInputAllocation() 111 alloc.copyFromUnchecked(init); in createInputAllocation() 112 return alloc; in createInputAllocation() 122 Allocation alloc[] = new Allocation[numAllocs]; in createInputAllocations() local 128 alloc[count++] = createInputAllocation(elt, xlen, ylen, zlen); in createInputAllocations() [all …]
|
D | GetSetTest.java | 144 private void verify(byte[] a1, byte[] a2, Allocation alloc, String s, int vsize) { in verify() argument 145 alloc.copyTo(a2); in verify() 155 alloc.copyFrom(a2); in verify() 158 private void verify(short[] a1, short[] a2, Allocation alloc, String s, int vsize) { in verify() argument 159 alloc.copyTo(a2); in verify() 169 alloc.copyFrom(a2); in verify() 172 private void verify(int[] a1, int[] a2, Allocation alloc, String s, int vsize) { in verify() argument 173 alloc.copyTo(a2); in verify() 183 alloc.copyFrom(a2); in verify() 186 private void verify(long[] a1, long[] a2, Allocation alloc, String s, int vsize) { in verify() argument [all …]
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8460/ |
D | poc.c | 131 struct nvmap_alloc_handle alloc = {0}; in main() local 132 alloc.align = 0x1000; in main() 133 alloc.handle = op.handle; in main() 134 alloc.heap_mask = NVMAP_HEAP_CARVEOUT_GENERIC; in main() 135 alloc.flags = NVMAP_HANDLE_ZEROED_PAGES; in main() 136 ioctl(g_fd, NVMAP_IOC_ALLOC, &alloc); in main()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8429/ |
D | poc.c | 115 struct nvmap_alloc_handle alloc = {0}; in trigger_nvmap_alloc() local 116 alloc.align = 0x1000; in trigger_nvmap_alloc() 117 alloc.heap_mask = NVMAP_HEAP_CARVEOUT_GENERIC; in trigger_nvmap_alloc() 118 alloc.flags = NVMAP_HANDLE_ZEROED_PAGES; in trigger_nvmap_alloc() 119 alloc.handle = g_allocation->handle; in trigger_nvmap_alloc() 120 ioctl(g_fd, NVMAP_IOC_ALLOC, &alloc); in trigger_nvmap_alloc()
|
/cts/tests/tests/rscpp/librscpptest/ |
D | rs_jni_allocation.cpp | 151 sp<Allocation> alloc = nullptr; in helperCopy1D() local 157 alloc = Allocation::createSized(rs, makeElement(rs, dt, 3), cellCount); in helperCopy1D() 158 alloc->setAutoPadding(autoPadding); in helperCopy1D() 160 alloc = Allocation::createSized(rs, makeElement(rs, dt, 1), cellCount); in helperCopy1D() 172 alloc->copy1DFrom(src); in helperCopy1D() 174 alloc->copy1DRangeFrom(offset, count, src); in helperCopy1D() 176 alloc->copy1DTo(dst); in helperCopy1D() 243 sp<Allocation> alloc = nullptr; in helperCopy2D() local 248 alloc = Allocation::createSized2D(rs, makeElement(rs, dt, 3), xElems, yElems); in helperCopy2D() 249 alloc->setAutoPadding(autoPadding); in helperCopy2D() [all …]
|
D | rs_jni_script.cpp | 60 sp<Allocation> alloc = Allocation::createTyped(mRS, t); in Java_android_cts_rscpp_RSScriptTest_testSet() local 72 script->set_allocationTest(alloc); // allocationTest in Java_android_cts_rscpp_RSScriptTest_testSet()
|
/cts/tests/camera/src/android/hardware/camera2/cts/rs/ |
D | AllocationCache.java | 86 Allocation alloc = list.remove(list.size() - 1); in getOrCreateTyped() local 92 return alloc; in getOrCreateTyped() 182 for (Allocation alloc : value) { in close() 183 alloc.destroy(); in close()
|
D | AllocationInfo.java | 430 Allocation alloc = createAllocation(); in createBlockingInputAllocation() local 431 return BlockingInputAllocation.wrap(alloc); in createBlockingInputAllocation()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8482/ |
D | poc.c | 140 struct nvmap_alloc_handle alloc = { in main() local 180 alloc.handle = dma1; in main() 182 ret = ioctl(nvmap, NVMAP_IOC_ALLOC, &alloc); in main()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | BitmapTest.java | 873 int alloc = mBitmap.getAllocationByteCount(); in testGetAllocationByteCount() local 874 assertEquals(mBitmap.getByteCount(), alloc); in testGetAllocationByteCount() local 878 assertEquals(mBitmap.getByteCount(), alloc); in testGetAllocationByteCount() local 879 assertEquals(mBitmap.getAllocationByteCount(), alloc); in testGetAllocationByteCount() local 884 assertEquals(mBitmap.getAllocationByteCount(), alloc); in testGetAllocationByteCount() local 1008 int alloc = mBitmap.getAllocationByteCount(); in testReconfigure() local 1012 assertEquals(mBitmap.getAllocationByteCount(), alloc); in testReconfigure() local 1013 assertEquals(mBitmap.getByteCount() * 8, alloc); in testReconfigure() local 1242 int alloc = mBitmap.getAllocationByteCount(); in testSetConfig() local 1246 assertEquals(mBitmap.getAllocationByteCount(), alloc); in testSetConfig() local [all …]
|
/cts/tests/tests/security/jni/ |
D | android_security_cts_cve_2019_2213_Test.c | 1850 u64 alloc = proc + 0x1c0; in set_up_w128() local 1856 u64 free_buffer = r64(alloc + 0x48); in set_up_w128() 1858 w64(alloc + 0x38, 0); in set_up_w128() 1859 w64(alloc + 0x78, ~0ul); in set_up_w128()
|