Lines Matching refs:context
32 Element element = context->elementCreate(DataType::FLOAT_32, DataKind::USER, false, 1); in TEST_P()
36 Type type = context->typeCreate(element, 128, 0, 0, false, false, YuvFormat::YUV_NONE); in TEST_P()
40 Allocation allocation = context->allocationCreateTyped(type, AllocationMipmapControl::NONE, in TEST_P()
49 context->allocation1DWrite(allocation, 0, 0, (Size)dataIn.size(), _data); in TEST_P()
50 context->allocation1DRead(allocation, 0, 0, (uint32_t)dataOut.size(), (Ptr)dataOut.data(), in TEST_P()
68 Element element = context->elementCreate(DataType::FLOAT_32, DataKind::USER, false, 1); in TEST_P()
72 Type type = context->typeCreate(element, 128, 128, 0, false, false, YuvFormat::YUV_NONE); in TEST_P()
76 Allocation allocation = context->allocationCreateTyped(type, AllocationMipmapControl::NONE, in TEST_P()
85 context->allocation2DWrite(allocation, 0, 0, 0, AllocationCubemapFace::POSITIVE_X, 128, 128, in TEST_P()
87 context->allocation2DRead(allocation, 0, 0, 0, AllocationCubemapFace::POSITIVE_X, 128, 128, in TEST_P()
105 Element element = context->elementCreate(DataType::FLOAT_32, DataKind::USER, false, 1); in TEST_P()
109 Type type = context->typeCreate(element, 32, 32, 32, false, false, YuvFormat::YUV_NONE); in TEST_P()
113 Allocation allocation = context->allocationCreateTyped(type, AllocationMipmapControl::NONE, in TEST_P()
122 context->allocation3DWrite(allocation, 0, 0, 0, 0, 32, 32, 32, _data, 0); in TEST_P()
123 context->allocation3DRead(allocation, 0, 0, 0, 0, 32, 32, 32, (Ptr)dataOut.data(), in TEST_P()
142 Element element = context->elementCreate(DataType::FLOAT_32, DataKind::USER, false, 1); in TEST_P()
146 Type type = context->typeCreate(element, 512, 512, 0, false, false, YuvFormat::YUV_NONE); in TEST_P()
154 Allocation allocation = context->allocationCreateFromBitmap(type, in TEST_P()
160 context->allocationCopyToBitmap(allocation, (Ptr)dataOut1.data(), in TEST_P()
164 context->allocationRead(allocation, (Ptr)dataOut2.data(), (Size)dataOut2.size()*sizeof(float)); in TEST_P()
182 Element element = context->elementCreate(DataType::FLOAT_32, DataKind::USER, false, 1); in TEST_P()
186 Type typeSrc = context->typeCreate(element, 512, 512, 0, false, false, YuvFormat::YUV_NONE); in TEST_P()
190 Type typeDst = context->typeCreate(element, 256, 256, 0, false, false, YuvFormat::YUV_NONE); in TEST_P()
198 Allocation allocSrc = context->allocationCreateFromBitmap(typeSrc, in TEST_P()
204 Allocation allocDst = context->allocationCreateTyped(typeDst, AllocationMipmapControl::NONE, in TEST_P()
209 context->allocationCopy2DRange(allocDst, 0, 0, 0, AllocationCubemapFace::POSITIVE_X, 256, 256, in TEST_P()
211 context->allocationRead(allocDst, (Ptr)dataOut.data(), (Size)dataOut.size()*sizeof(float)); in TEST_P()
234 Element element = context->elementCreate(DataType::FLOAT_32, DataKind::USER, false, 1); in TEST_P()
238 Type typeSrc = context->typeCreate(element, 128, 128, 128, false, false, YuvFormat::YUV_NONE); in TEST_P()
242 Type typeDst = context->typeCreate(element, 64, 64, 64, false, false, YuvFormat::YUV_NONE); in TEST_P()
250 Allocation allocSrc = context->allocationCreateTyped(typeSrc, AllocationMipmapControl::NONE, in TEST_P()
256 Allocation allocDst = context->allocationCreateTyped(typeDst, AllocationMipmapControl::NONE, in TEST_P()
261 context->allocation3DWrite(allocSrc, 0, 0, 0, 0, 128, 128, 128, _data, 128*sizeof(float)); in TEST_P()
262 context->allocationCopy3DRange(allocDst, 0, 0, 0, 0, 64, 64, 64, allocSrc, 32, 32, 32, 0); in TEST_P()
263 context->allocationRead(allocDst, (Ptr)dataOut.data(), (Size)dataOut.size()*sizeof(float)); in TEST_P()
287 Element element = context->elementCreate(DataType::FLOAT_32, DataKind::USER, false, 1); in TEST_P()
291 Type type = context->typeCreate(element, 512, 512, 0, false, false, YuvFormat::YUV_NONE); in TEST_P()
299 Allocation allocation = context->allocationCreateFromBitmap(type, in TEST_P()
306 Type subType = context->typeCreate(element, 256, 256, 0, false, false, YuvFormat::YUV_NONE); in TEST_P()
310 AllocationAdapter allocationAdapter = context->allocationAdapterCreate(subType, allocation); in TEST_P()
319 context->allocationAdapterOffset(allocationAdapter, _offsets); in TEST_P()
321 context->allocation2DRead(allocationAdapter, 0, 0, 0, AllocationCubemapFace::POSITIVE_X, 256, in TEST_P()
344 Element element = context->elementCreate(DataType::UNSIGNED_8, DataKind::USER, false, 1); in TEST_P()
348 Type type = context->typeCreate(element, 64, 64, 0, true, false, YuvFormat::YUV_NONE); in TEST_P()
357 Allocation allocation = context->allocationCreateTyped(type, AllocationMipmapControl::FULL, in TEST_P()
362 context->allocation2DWrite(allocation, 0, 0, 0, AllocationCubemapFace::POSITIVE_X, 64, 64, in TEST_P()
364 context->allocationGenerateMipmaps(allocation); in TEST_P()
365 context->allocationSyncAll(allocation, AllocationUsageType::SCRIPT); in TEST_P()
366 context->allocation2DRead(allocation, 0, 0, 1, AllocationCubemapFace::POSITIVE_X, 32, 32, in TEST_P()
391 Element element = context->elementCreate(DataType::FLOAT_32, DataKind::USER, false, 1); in TEST_P()
395 Type type = context->typeCreate(element, 128, 128, 0, false, true, YuvFormat::YUV_NONE); in TEST_P()
403 Allocation allocation = context->allocationCubeCreateFromBitmap( in TEST_P()
407 context->allocation2DRead(allocation, 0, 0, 0, AllocationCubemapFace::NEGATIVE_Z, 128, in TEST_P()
429 Element element1 = context->elementCreate(DataType::UNSIGNED_8, DataKind::USER, false, 1); in TEST_P()
432 Element element2 = context->elementCreate(DataType::UNSIGNED_32, DataKind::USER, false, 1); in TEST_P()
438 Element element3 = context->elementComplexCreate(eins, names, arraySizesPtr); in TEST_P()
444 context->elementGetSubElements(element3, 2, [&](const hidl_vec<Element>& _ids, in TEST_P()
460 Type type = context->typeCreate(element3, 1, 0, 0, false, false, YuvFormat::YUV_NONE); in TEST_P()
464 Allocation allocation = context->allocationCreateTyped(type, AllocationMipmapControl::NONE, in TEST_P()
473 context->allocationElementWrite(allocation, 0, 0, 0, 0, _data, 1); in TEST_P()
474 context->allocationElementRead(allocation, 0, 0, 0, 0, (Ptr)dataOut.data(), in TEST_P()