Lines Matching refs:context
36 Element element = context->elementCreate(DataType::FLOAT_32, DataKind::USER, false, 1); in TEST_P()
48 Element element = context->elementCreate(DataType::FLOAT_32, DataKind::USER, false, 1); in TEST_P()
52 Type type = context->typeCreate(element, 1, 0, 0, false, false, YuvFormat::YUV_NONE); in TEST_P()
56 Allocation allocation = context->allocationCreateTyped(type, AllocationMipmapControl::NONE, in TEST_P()
63 Type type2 = context->allocationGetType(allocation); in TEST_P()
76 Element element = context->elementCreate(DataType::FLOAT_32, DataKind::USER, false, 1); in TEST_P()
80 Type type = context->typeCreate(element, 128, 0, 0, false, false, YuvFormat::YUV_NONE); in TEST_P()
84 context->elementGetNativeMetadata(element, [&](const hidl_vec<uint32_t>& _metadata){ in TEST_P()
93 context->typeGetNativeMetadata(type, [&typeMetadata](const hidl_vec<OpaqueHandle>& _metadata){ in TEST_P()
112 Element element = context->elementCreate(DataType::FLOAT_32, DataKind::USER, false, 1); in TEST_P()
116 Type type = context->typeCreate(element, 128, 0, 0, false, false, YuvFormat::YUV_NONE); in TEST_P()
120 Allocation allocation = context->allocationCreateTyped(type, AllocationMipmapControl::NONE, in TEST_P()
127 context->allocationGetPointer(allocation, 0, AllocationCubemapFace::POSITIVE_X, 0, in TEST_P()
132 context->allocationResize1D(allocation, 1024*1024); in TEST_P()
133 context->allocationGetPointer(allocation, 0, AllocationCubemapFace::POSITIVE_X, 0, in TEST_P()
150 Element element = context->elementCreate(DataType::UNSIGNED_8, DataKind::USER, false, 4); in TEST_P()
154 Type type = context->typeCreate(element, 512, 512, 0, false, false, YuvFormat::YUV_NONE); in TEST_P()
162 Allocation allocationRecv = context->allocationCreateTyped(type, AllocationMipmapControl::NONE, in TEST_P()
168 Allocation allocationSend = context->allocationCreateTyped(type, AllocationMipmapControl::NONE, in TEST_P()
174 NativeWindow nativeWindow = context->allocationGetNativeWindow(allocationRecv); in TEST_P()
181 context->allocationSetNativeWindow(allocationSend, nativeWindow); in TEST_P()
182 context->allocation2DWrite(allocationSend, 0, 0, 0, AllocationCubemapFace::POSITIVE_X, 512, 512, in TEST_P()
184 context->allocationIoSend(allocationSend); in TEST_P()
185 context->allocationIoReceive(allocationRecv); in TEST_P()
186 context->allocation2DRead(allocationRecv, 0, 0, 0, AllocationCubemapFace::POSITIVE_X, 512, 512, in TEST_P()
203 Element element = context->elementCreate(DataType::UNSIGNED_8, DataKind::USER, false, 4); in TEST_P()
207 Type type = context->typeCreate(element, 512, 512, 0, false, false, YuvFormat::YUV_NONE); in TEST_P()
215 Allocation allocationRecv1 = context->allocationCreateTyped(type, AllocationMipmapControl::NONE, in TEST_P()
221 Allocation allocationRecv2 = context->allocationCreateTyped(type, AllocationMipmapControl::NONE, in TEST_P()
227 Allocation allocationSend = context->allocationCreateTyped(type, AllocationMipmapControl::NONE, in TEST_P()
233 context->allocationSetupBufferQueue(allocationRecv1, 2); in TEST_P()
234 context->allocationShareBufferQueue(allocationRecv2, allocationRecv1); in TEST_P()
236 NativeWindow nativeWindow1 = context->allocationGetNativeWindow(allocationRecv1); in TEST_P()
239 NativeWindow nativeWindow2 = context->allocationGetNativeWindow(allocationRecv2); in TEST_P()
247 context->allocationSetNativeWindow(allocationSend, nativeWindow1); in TEST_P()
248 context->allocation2DWrite(allocationSend, 0, 0, 0, AllocationCubemapFace::POSITIVE_X, 512, 512, in TEST_P()
250 context->allocationIoSend(allocationSend); in TEST_P()
251 context->allocationIoReceive(allocationRecv1); in TEST_P()
252 context->allocation2DRead(allocationRecv1, 0, 0, 0, AllocationCubemapFace::POSITIVE_X, 512, 512, in TEST_P()
256 context->allocation2DWrite(allocationSend, 0, 0, 0, AllocationCubemapFace::POSITIVE_X, 512, 512, in TEST_P()
258 context->allocationIoSend(allocationSend); in TEST_P()
259 context->allocationIoReceive(allocationRecv2); in TEST_P()
260 context->allocation2DRead(allocationRecv2, 0, 0, 0, AllocationCubemapFace::POSITIVE_X, 512, 512, in TEST_P()
273 context->contextInitToClient(); in TEST_P()
279 context->contextSendMessage(0, _data); in TEST_P()
283 context->contextPeekMessage([&](MessageToClientType _type, Size _size, uint32_t _subID){ in TEST_P()
286 context->contextGetMessage(messageRecv.data(), messageRecv.size(), in TEST_P()
291 context->contextDeinitToClient(); in TEST_P()
292 context->contextLog(); in TEST_P()
303 context->contextSetPriority(ThreadPriorities::NORMAL); in TEST_P()
304 context->contextSetCacheDir("/data/local/tmp/temp/"); in TEST_P()
306 Element element = context->elementCreate(DataType::UNSIGNED_8, DataKind::USER, false, 1); in TEST_P()
313 context->assignName(element, _nameIn); in TEST_P()
314 context->contextFinish(); in TEST_P()
315 context->getName(element, [&](const hidl_string& _name){ nameOut = _name.c_str(); }); in TEST_P()
318 context->objDestroy(element); in TEST_P()
320 Sampler sampler = context->samplerCreate(SamplerValue::LINEAR, SamplerValue::LINEAR, in TEST_P()