Home
last modified time | relevance | path

Searched refs:alloc (Results 1 – 19 of 19) sorted by relevance

/cts/tests/tests/renderscript/src/android/renderscript/cts/
DAllocationCopyPaddedTest.java36 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()
64 Allocation alloc = Allocation.createTyped(mRS, typeBuilder.create()); in test_AllocationPadded_Byte3_2D() local
65 alloc.setAutoPadding(true); in test_AllocationPadded_Byte3_2D()
66 alloc.copyFrom(inArray); in test_AllocationPadded_Byte3_2D()
67 alloc.copyTo(outArray); in test_AllocationPadded_Byte3_2D()
93 Allocation alloc = Allocation.createTyped(mRS, typeBuilder.create()); in test_AllocationPadded_Byte3_3D() local
94 alloc.setAutoPadding(true); in test_AllocationPadded_Byte3_3D()
[all …]
DAllocationCopyToTest.java25 private Allocation alloc; field in AllocationCopyToTest
38 alloc = Allocation.createTyped(mRS, typeBuilder.create()); in test_Allocationcopy1DRangeTo_Byte()
41 alloc.copy1DRangeFrom(offset, count, inArray); in test_Allocationcopy1DRangeTo_Byte()
42 alloc.copy1DRangeTo(offset, count, outArray); in test_Allocationcopy1DRangeTo_Byte()
75 alloc = Allocation.createTyped(mRS, typeBuilder.create()); in test_Allocationcopy1DRangeTo_Short_Helper()
79 alloc.copy1DRangeFrom(offset, count, inArray); in test_Allocationcopy1DRangeTo_Short_Helper()
80 alloc.copy1DRangeTo(offset, count, outArray); in test_Allocationcopy1DRangeTo_Short_Helper()
82 alloc.copy1DRangeFrom(offset, count, (Object) inArray); in test_Allocationcopy1DRangeTo_Short_Helper()
83 alloc.copy1DRangeTo(offset, count, (Object) outArray); in test_Allocationcopy1DRangeTo_Short_Helper()
123 alloc = Allocation.createTyped(mRS, typeBuilder.create()); in test_Allocationcopy1DRangeTo_Int()
[all …]
Dkernel_input.rs63 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 …]
DAllocationByteBufferTest.java56 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()
90 Allocation alloc = Allocation.createTyped(mRS, t); in test1DWrite() local
91 ByteBuffer bb = alloc.getByteBuffer(); in test1DWrite()
97 alloc.copyTo(dataOut); in test1DWrite()
110 Allocation alloc = Allocation.createTyped(mRS, t); in test2DWrite() local
111 ByteBuffer bb = alloc.getByteBuffer(); in test2DWrite()
113 int stride = (int)alloc.getStride(); in test2DWrite()
[all …]
DRSBaseCompute.java114 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 …]
DSmallStructsTest.java151 Allocation alloc = (Allocation) scriptFieldClass.getMethod("getAllocation") in testSmallStructsOfCharArray() local
177 modify.invoke(mScript, alloc, alloc); in testSmallStructsOfCharArray()
178 verify.invoke(mScript, alloc); in testSmallStructsOfCharArray()
208 Allocation alloc = (Allocation) scriptFieldClass.getMethod("getAllocation") in testSmallStructsOfHeterogeneousTypes() local
236 modify.invoke(mScript, alloc, alloc); in testSmallStructsOfHeterogeneousTypes()
237 verify.invoke(mScript, alloc); in testSmallStructsOfHeterogeneousTypes()
Dsmall_structs.rs84 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); \
DReduceTest.java92 Allocation alloc; in createInputAllocation() local
95 alloc = Allocation.createTyped(mRS, Type.createXYZ(mRS, elt, xlen, ylen, zlen)); in createInputAllocation()
97 alloc = Allocation.createTyped(mRS, Type.createXY(mRS, elt, xlen, ylen)); in createInputAllocation()
99 alloc = Allocation.createSized(mRS, elt, xlen); in createInputAllocation()
101 alloc.setAutoPadding(true); in createInputAllocation()
103 byte[] init = new byte[alloc.getBytesSize()]; in createInputAllocation()
105 alloc.copyFromUnchecked(init); in createInputAllocation()
106 return alloc; in createInputAllocation()
116 Allocation alloc[] = new Allocation[numAllocs]; in createInputAllocations() local
122 alloc[count++] = createInputAllocation(elt, xlen, ylen, zlen); in createInputAllocations()
[all …]
DGetSetTest.java118 private void verify(byte[] a1, byte[] a2, Allocation alloc, String s, int vsize) { in verify() argument
119 alloc.copyTo(a2); in verify()
129 alloc.copyFrom(a2); in verify()
132 private void verify(short[] a1, short[] a2, Allocation alloc, String s, int vsize) { in verify() argument
133 alloc.copyTo(a2); in verify()
143 alloc.copyFrom(a2); in verify()
146 private void verify(int[] a1, int[] a2, Allocation alloc, String s, int vsize) { in verify() argument
147 alloc.copyTo(a2); in verify()
157 alloc.copyFrom(a2); in verify()
160 private void verify(long[] a1, long[] a2, Allocation alloc, String s, int vsize) { in verify() argument
[all …]
/cts/hostsidetests/security/securityPatch/CVE-2016-8460/
Dpoc.c131 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/security/securityPatch/CVE-2016-8429/
Dpoc.c115 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/camera/src/android/hardware/camera2/cts/rs/
DAllocationCache.java86 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()
DAllocationInfo.java430 Allocation alloc = createAllocation(); in createBlockingInputAllocation() local
431 return BlockingInputAllocation.wrap(alloc); in createBlockingInputAllocation()
/cts/tests/tests/rscpp/librscpptest/
Drs_jni_allocation.cpp151 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 …]
Drs_jni_script.cpp60 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/tests/graphics/src/android/graphics/cts/
DBitmapTest.java390 int alloc = mBitmap.getAllocationByteCount(); in testGetAllocationByteCount() local
391 assertEquals(mBitmap.getByteCount(), alloc); in testGetAllocationByteCount() local
395 assertEquals(mBitmap.getByteCount(), alloc); in testGetAllocationByteCount() local
396 assertEquals(mBitmap.getAllocationByteCount(), alloc); in testGetAllocationByteCount() local
401 assertEquals(mBitmap.getAllocationByteCount(), alloc); in testGetAllocationByteCount() local
510 int alloc = mBitmap.getAllocationByteCount(); in testReconfigure() local
514 assertEquals(mBitmap.getAllocationByteCount(), alloc); in testReconfigure() local
515 assertEquals(mBitmap.getByteCount() * 8, alloc); in testReconfigure() local
631 int alloc = mBitmap.getAllocationByteCount(); in testSetConfig() local
635 assertEquals(mBitmap.getAllocationByteCount(), alloc); in testSetConfig() local
[all …]
/cts/hostsidetests/security/securityPatch/CVE-2017-0429/
Dpoc.c115 struct nvhost_as_alloc_space_args alloc = { in main() local
162 ret = ioctl(asgpu, NVHOST_AS_IOCTL_ALLOC_SPACE, &alloc); in main()
167 free_arg.offset = alloc.o_a.offset; in main()
/cts/hostsidetests/security/securityPatch/CVE-2016-8482/
Dpoc.c140 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/tools/dex-tools/dex/
Dclasses0.out.dex68551 public abstract void alloc(
68581 public void alloc(
70576 public static org.apache.harmony.luni.platform.PlatformAddress alloc(
70579 public static org.apache.harmony.luni.platform.PlatformAddress alloc(
70610 public void alloc(