Lines Matching refs:context
190 IContext *RsHidlAdaptation::GetIContextHandle(RsContext context) { in GetIContextHandle() argument
191 return (IContext *)context; in GetIContextHandle()
197 sp<IContext> context = mHidl->contextCreate(sdkVersion, (ContextType)ct, flags); in ContextCreate() local
198 RsContext ret = (RsContext)(uintptr_t)context.get(); in ContextCreate()
201 mContexts.insert(context); in ContextCreate()
205 void RsHidlAdaptation::ContextDestroy (RsContext context) in ContextDestroy() argument
208 GetIContextHandle(context)->contextDestroy(); in ContextDestroy()
211 mContexts.erase((IContext*)context); in ContextDestroy()
214 const void* RsHidlAdaptation::AllocationGetType(RsContext context, RsAllocation allocation) in AllocationGetType() argument
218 uint64_t typeRet = GetIContextHandle(context)->allocationGetType(_allocation); in AllocationGetType()
223 void RsHidlAdaptation::TypeGetNativeData(RsContext context, RsType type, uintptr_t *typedata, uint3… in TypeGetNativeData() argument
227 GetIContextHandle(context)->typeGetNativeMetadata(_type, in TypeGetNativeData()
236 void RsHidlAdaptation::ElementGetNativeData(RsContext context, RsElement element, uint32_t *elemDat… in ElementGetNativeData() argument
240 GetIContextHandle(context)->elementGetNativeMetadata(_element, in ElementGetNativeData()
248 void RsHidlAdaptation::ElementGetSubElements(RsContext context, RsElement element, uintptr_t *ids, … in ElementGetSubElements() argument
255 GetIContextHandle(context)->elementGetSubElements(_element, dataSize, in ElementGetSubElements()
266 void RsHidlAdaptation::GetName(RsContext context, void * obj, const char **name) { in GetName() argument
269 …GetIContextHandle(context)->getName(_obj, [name](hidl_string ret_name) {*name = ret_name.c_str();}… in GetName()
272 RsClosure RsHidlAdaptation::ClosureCreate(RsContext context, RsScriptKernelID kernelID, in ClosureCreate() argument
307 uint64_t closure = GetIContextHandle(context)->closureCreate(_kernelID, _returnValue, in ClosureCreate()
314 RsClosure RsHidlAdaptation::InvokeClosureCreate(RsContext context, RsScriptInvokeID invokeID, in InvokeClosureCreate() argument
339 uint64_t closure = GetIContextHandle(context)->invokeClosureCreate(_invokeID, in InvokeClosureCreate()
345 void RsHidlAdaptation::ClosureSetArg(RsContext context, RsClosure closure, uint32_t index, in ClosureSetArg() argument
350 GetIContextHandle(context)->closureSetArg(_closure, index, _value, size); in ClosureSetArg()
352 void RsHidlAdaptation::ClosureSetGlobal(RsContext context, RsClosure closure, in ClosureSetGlobal() argument
358 GetIContextHandle(context)->closureSetGlobal(_closure, _fieldID, value, size); in ClosureSetGlobal()
361 RsMessageToClientType RsHidlAdaptation::ContextGetMessage (RsContext context, void * data, size_t d… in ContextGetMessage() argument
366 GetIContextHandle(context)->contextGetMessage(data, data_length, in ContextGetMessage()
374 RsMessageToClientType RsHidlAdaptation::ContextPeekMessage (RsContext context, in ContextPeekMessage() argument
379 GetIContextHandle(context)->contextPeekMessage( in ContextPeekMessage()
390 void RsHidlAdaptation::ContextSendMessage (RsContext context, uint32_t id, const uint8_t *data, siz… in ContextSendMessage() argument
394 GetIContextHandle(context)->contextSendMessage(id, _data); in ContextSendMessage()
397 void RsHidlAdaptation::ContextInitToClient (RsContext context) in ContextInitToClient() argument
399 GetIContextHandle(context)->contextInitToClient(); in ContextInitToClient()
402 void RsHidlAdaptation::ContextDeinitToClient (RsContext context) in ContextDeinitToClient() argument
404 GetIContextHandle(context)->contextDeinitToClient(); in ContextDeinitToClient()
408 RsType RsHidlAdaptation::TypeCreate (RsContext context, RsElement element, uint32_t dimX, in TypeCreate() argument
414 … uint64_t type = GetIContextHandle(context)->typeCreate(_element, dimX, dimY, dimZ, mipmaps, faces, in TypeCreate()
419 RsAllocation RsHidlAdaptation::AllocationCreateTyped (RsContext context, RsType type, in AllocationCreateTyped() argument
426 uint64_t allocation = GetIContextHandle(context)->allocationCreateTyped(_type, in AllocationCreateTyped()
432 RsAllocation RsHidlAdaptation::AllocationCreateFromBitmap (RsContext context, RsType type, in AllocationCreateFromBitmap() argument
441 uint64_t allocation = GetIContextHandle(context)->allocationCreateFromBitmap(_type, in AllocationCreateFromBitmap()
446 RsAllocation RsHidlAdaptation::AllocationCubeCreateFromBitmap(RsContext context, RsType type, in AllocationCubeCreateFromBitmap() argument
455 …uint64_t allocation = GetIContextHandle(context)->allocationCubeCreateFromBitmap(_type, (Allocatio… in AllocationCubeCreateFromBitmap()
459 RsNativeWindow RsHidlAdaptation::AllocationGetSurface (RsContext context, RsAllocation allocation) in AllocationGetSurface() argument
463 uint64_t window = GetIContextHandle(context)->allocationGetNativeWindow(_allocation); in AllocationGetSurface()
466 void RsHidlAdaptation::AllocationSetSurface (RsContext context, RsAllocation allocation, RsNativeWi… in AllocationSetSurface() argument
471 GetIContextHandle(context)->allocationSetNativeWindow(_allocation, _window); in AllocationSetSurface()
474 void RsHidlAdaptation::ContextFinish (RsContext context) in ContextFinish() argument
476 GetIContextHandle(context)->contextFinish(); in ContextFinish()
479 void RsHidlAdaptation::ContextDump (RsContext context, int32_t bits) in ContextDump() argument
481 GetIContextHandle(context)->contextLog(); in ContextDump()
484 void RsHidlAdaptation::ContextSetPriority (RsContext context, int32_t priority) in ContextSetPriority() argument
486 GetIContextHandle(context)->contextSetPriority((ThreadPriorities)priority); in ContextSetPriority()
489 void RsHidlAdaptation::ContextSetCacheDir (RsContext context, const char *cacheDir, size_t cacheDir… in ContextSetCacheDir() argument
491 GetIContextHandle(context)->contextSetCacheDir(hidl_string(cacheDir)); in ContextSetCacheDir()
494 void RsHidlAdaptation::AssignName (RsContext context, RsObjectBase obj, const char* name, size_t si… in AssignName() argument
498 GetIContextHandle(context)->assignName(_obj, hidl_string(name)); in AssignName()
501 void RsHidlAdaptation::ObjDestroy (RsContext context, RsAsyncVoidPtr obj) in ObjDestroy() argument
505 GetIContextHandle(context)->objDestroy(_obj); in ObjDestroy()
509 RsElement RsHidlAdaptation::ElementCreate (RsContext context, in ElementCreate() argument
515 uint64_t element = GetIContextHandle(context)->elementCreate((DataType) dt, in ElementCreate()
522 RsElement RsHidlAdaptation::ElementCreate2 (RsContext context, in ElementCreate2() argument
545 uint64_t element = GetIContextHandle(context)->elementComplexCreate(_ein, _names, _arraySizes); in ElementCreate2()
549 void RsHidlAdaptation::AllocationCopyToBitmap (RsContext context, RsAllocation allocation, void *da… in AllocationCopyToBitmap() argument
553 GetIContextHandle(context)->allocationCopyToBitmap(_allocation, data, sizeBytes); in AllocationCopyToBitmap()
556 void RsHidlAdaptation::Allocation1DData (RsContext context, RsAllocation allocation, uint32_t xoff,… in Allocation1DData() argument
564 GetIContextHandle(context)->allocation1DWrite(_allocation, xoff, lod, count, _data); in Allocation1DData()
566 void RsHidlAdaptation::Allocation1DElementData (RsContext context, RsAllocation allocation, uint32_… in Allocation1DElementData() argument
574 GetIContextHandle(context)->allocationElementWrite(_allocation, xoff, 0, 0, lod, _data, eoff); in Allocation1DElementData()
577 void RsHidlAdaptation::AllocationElementData (RsContext context, RsAllocation allocation, uint32_t … in AllocationElementData() argument
585 GetIContextHandle(context)->allocationElementWrite(_allocation, x, y, z, lod, _data, eoff); in AllocationElementData()
588 void RsHidlAdaptation::Allocation2DData (RsContext context, RsAllocation allocation, uint32_t xoff,… in Allocation2DData() argument
597 …GetIContextHandle(context)->allocation2DWrite(_allocation, xoff, yoff, lod, (AllocationCubemapFace… in Allocation2DData()
600 void RsHidlAdaptation::Allocation3DData (RsContext context, RsAllocation allocation, uint32_t xoff,… in Allocation3DData() argument
608 …GetIContextHandle(context)->allocation3DWrite(_allocation, xoff, yoff, zoff, lod, w, h, d, _data, … in Allocation3DData()
611 void RsHidlAdaptation::AllocationGenerateMipmaps (RsContext context, RsAllocation allocation) in AllocationGenerateMipmaps() argument
615 GetIContextHandle(context)->allocationGenerateMipmaps(_allocation); in AllocationGenerateMipmaps()
618 void RsHidlAdaptation::AllocationRead (RsContext context, RsAllocation allocation, void *data, size… in AllocationRead() argument
622 GetIContextHandle(context)->allocationRead(_allocation, data, sizeBytes); in AllocationRead()
625 void RsHidlAdaptation::Allocation1DRead (RsContext context, RsAllocation allocation, uint32_t xoff,… in Allocation1DRead() argument
630 GetIContextHandle(context)->allocation1DRead(_allocation, xoff, lod, count, data, sizeBytes); in Allocation1DRead()
633 void RsHidlAdaptation::AllocationElementRead (RsContext context, RsAllocation allocation, uint32_t … in AllocationElementRead() argument
638 …GetIContextHandle(context)->allocationElementRead(_allocation, x, y, z, lod, data, sizeBytes, eoff… in AllocationElementRead()
641 void RsHidlAdaptation::Allocation2DRead (RsContext context, RsAllocation allocation, uint32_t xoff,… in Allocation2DRead() argument
647 …GetIContextHandle(context)->allocation2DRead(_allocation, xoff, yoff, lod, (AllocationCubemapFace)… in Allocation2DRead()
650 void RsHidlAdaptation::Allocation3DRead (RsContext context, RsAllocation allocation, uint32_t xoff,… in Allocation3DRead() argument
655 …GetIContextHandle(context)->allocation3DRead(_allocation, xoff, yoff, zoff, lod, w, h, d, data, si… in Allocation3DRead()
658 void RsHidlAdaptation::AllocationSyncAll (RsContext context, RsAllocation allocation, RsAllocationU… in AllocationSyncAll() argument
662 GetIContextHandle(context)->allocationSyncAll(_allocation, in AllocationSyncAll()
666 void RsHidlAdaptation::AllocationResize1D (RsContext context, RsAllocation allocation, uint32_t dim… in AllocationResize1D() argument
670 GetIContextHandle(context)->allocationResize1D(_allocation, dimX); in AllocationResize1D()
673 void RsHidlAdaptation::AllocationCopy2DRange (RsContext context, in AllocationCopy2DRange() argument
685 …GetIContextHandle(context)->allocationCopy2DRange(_dstAlloc, dstXoff, dstYoff, dstMip, (Allocation… in AllocationCopy2DRange()
688 void RsHidlAdaptation::AllocationCopy3DRange (RsContext context, in AllocationCopy3DRange() argument
700 …GetIContextHandle(context)->allocationCopy3DRange(_dstAlloc, dstXoff, dstYoff, dstZoff, dstMip, wi… in AllocationCopy3DRange()
704 RsSampler RsHidlAdaptation::SamplerCreate (RsContext context, in SamplerCreate() argument
712 uint64_t sampler = GetIContextHandle(context)->samplerCreate((SamplerValue) magFilter, in SamplerCreate()
721 void RsHidlAdaptation::ScriptBindAllocation (RsContext context, RsScript script, RsAllocation alloc… in ScriptBindAllocation() argument
726 GetIContextHandle(context)->scriptBindAllocation(_script, _allocation, slot); in ScriptBindAllocation()
729 void RsHidlAdaptation::ScriptSetTimeZone (RsContext context, RsScript script, const char* timezone,… in ScriptSetTimeZone() argument
733 GetIContextHandle(context)->scriptSetTimeZone(_script, hidl_string(timezone)); in ScriptSetTimeZone()
736 void RsHidlAdaptation::ScriptInvoke (RsContext context, RsScript script, uint32_t slot) in ScriptInvoke() argument
740 GetIContextHandle(context)->scriptInvoke(_script, slot); in ScriptInvoke()
743 void RsHidlAdaptation::ScriptInvokeV (RsContext context, RsScript script, uint32_t slot, const void… in ScriptInvokeV() argument
749 GetIContextHandle(context)->scriptInvokeV(_script, slot, _data); in ScriptInvokeV()
752 void RsHidlAdaptation::ScriptForEach (RsContext context, RsScript script, uint32_t slot, in ScriptForEach() argument
763 ScriptForEachMulti(context, script, slot, vains, inLen, vaout, params, paramLen, sc, scLen); in ScriptForEach()
766 void RsHidlAdaptation::ScriptForEachMulti (RsContext context, RsScript script, uint32_t slot, in ScriptForEachMulti() argument
805 GetIContextHandle(context)->scriptForEach(_script, slot, _vains, _vaout, _params, _scPtr); in ScriptForEachMulti()
808 void RsHidlAdaptation::ScriptReduce (RsContext context, RsScript script, uint32_t slot, in ScriptReduce() argument
842 GetIContextHandle(context)->scriptReduce(_script, slot, _vains, _vaout, _scPtr); in ScriptReduce()
845 void RsHidlAdaptation::ScriptSetVarI (RsContext context, RsScript script, uint32_t slot, int value) in ScriptSetVarI() argument
849 GetIContextHandle(context)->scriptSetVarI(_script, slot, value); in ScriptSetVarI()
852 void RsHidlAdaptation::ScriptSetVarObj (RsContext context, RsScript script, uint32_t slot, RsObject… in ScriptSetVarObj() argument
857 GetIContextHandle(context)->scriptSetVarObj(_script, slot, _obj); in ScriptSetVarObj()
860 void RsHidlAdaptation::ScriptSetVarJ (RsContext context, RsScript script, uint32_t slot, int64_t va… in ScriptSetVarJ() argument
864 GetIContextHandle(context)->scriptSetVarJ(_script, slot, value); in ScriptSetVarJ()
867 void RsHidlAdaptation::ScriptSetVarF (RsContext context, RsScript script, uint32_t slot, float valu… in ScriptSetVarF() argument
871 GetIContextHandle(context)->scriptSetVarF(_script, slot, value); in ScriptSetVarF()
874 void RsHidlAdaptation::ScriptSetVarD (RsContext context, RsScript script, uint32_t slot, double val… in ScriptSetVarD() argument
878 GetIContextHandle(context)->scriptSetVarD(_script, slot, value); in ScriptSetVarD()
881 void RsHidlAdaptation::ScriptSetVarV (RsContext context, RsScript script, uint32_t slot, const void… in ScriptSetVarV() argument
887 GetIContextHandle(context)->scriptSetVarV(_script, slot, _data); in ScriptSetVarV()
890 void RsHidlAdaptation::ScriptGetVarV (RsContext context, RsScript script, uint32_t slot, void* data… in ScriptGetVarV() argument
894 GetIContextHandle(context)->scriptGetVarV(_script, slot, len, in ScriptGetVarV()
900 void RsHidlAdaptation::ScriptSetVarVE (RsContext context, RsScript script, uint32_t slot, in ScriptSetVarVE() argument
914 GetIContextHandle(context)->scriptSetVarVE(_script, slot, _data, _ve, _dims); in ScriptSetVarVE()
917 RsScript RsHidlAdaptation::ScriptCCreate (RsContext context, in ScriptCCreate() argument
924 …uint64_t scriptc = GetIContextHandle(context)->scriptCCreate(hidl_string(resName), hidl_string(cac… in ScriptCCreate()
928 RsScript RsHidlAdaptation::ScriptIntrinsicCreate (RsContext context, uint32_t id, RsElement element) in ScriptIntrinsicCreate() argument
932 …uint64_t intrinsic = GetIContextHandle(context)->scriptIntrinsicCreate((ScriptIntrinsicID)id, _ele… in ScriptIntrinsicCreate()
936 RsScriptKernelID RsHidlAdaptation::ScriptKernelIDCreate (RsContext context, RsScript script, int sl… in ScriptKernelIDCreate() argument
940 uint64_t kernelID = GetIContextHandle(context)->scriptKernelIDCreate(_script, slot, sig); in ScriptKernelIDCreate()
944 RsScriptInvokeID RsHidlAdaptation::ScriptInvokeIDCreate (RsContext context, RsScript script, int sl… in ScriptInvokeIDCreate() argument
948 uint64_t invokeID = GetIContextHandle(context)->scriptInvokeIDCreate(_script, slot); in ScriptInvokeIDCreate()
952 RsScriptFieldID RsHidlAdaptation::ScriptFieldIDCreate (RsContext context, RsScript script, int slot) in ScriptFieldIDCreate() argument
956 uint64_t fieldID = GetIContextHandle(context)->scriptFieldIDCreate(_script, slot); in ScriptFieldIDCreate()
960 RsScriptGroup RsHidlAdaptation::ScriptGroupCreate (RsContext context, RsScriptKernelID * kernels, s… in ScriptGroupCreate() argument
988 …uint64_t scriptGroup = GetIContextHandle(context)->scriptGroupCreate(_kernels, _src, _dstK, _dstF,… in ScriptGroupCreate()
992 RsScriptGroup2 RsHidlAdaptation::ScriptGroup2Create(RsContext context, const char* name, size_t nam… in ScriptGroup2Create() argument
1001 …uint64_t scriptGroup2 = GetIContextHandle(context)->scriptGroup2Create(hidl_string(name), hidl_str… in ScriptGroup2Create()
1005 void RsHidlAdaptation::ScriptGroupSetOutput (RsContext context, RsScriptGroup sg, RsScriptKernelID … in ScriptGroupSetOutput() argument
1011 GetIContextHandle(context)->scriptGroupSetOutput(_sg, _kid, _alloc); in ScriptGroupSetOutput()
1014 void RsHidlAdaptation::ScriptGroupSetInput (RsContext context, RsScriptGroup sg, RsScriptKernelID k… in ScriptGroupSetInput() argument
1020 GetIContextHandle(context)->scriptGroupSetInput(_sg, _kid, _alloc); in ScriptGroupSetInput()
1023 void RsHidlAdaptation::ScriptGroupExecute (RsContext context, RsScriptGroup sg) in ScriptGroupExecute() argument
1027 GetIContextHandle(context)->scriptGroupExecute(_sg); in ScriptGroupExecute()
1030 void RsHidlAdaptation::AllocationIoSend (RsContext context, RsAllocation allocation) in AllocationIoSend() argument
1034 GetIContextHandle(context)->allocationIoSend(_allocation); in AllocationIoSend()
1036 int64_t RsHidlAdaptation::AllocationIoReceive (RsContext context, RsAllocation allocation) in AllocationIoReceive() argument
1040 GetIContextHandle(context)->allocationIoReceive(_allocation); in AllocationIoReceive()
1045 void * RsHidlAdaptation::AllocationGetPointer (RsContext context, RsAllocation allocation, in AllocationGetPointer() argument
1052 GetIContextHandle(context)->allocationGetPointer(_allocation, lod, in AllocationGetPointer()
1063 void RsHidlAdaptation::AllocationSetupBufferQueue (RsContext context, RsAllocation allocation, uint… in AllocationSetupBufferQueue() argument
1067 GetIContextHandle(context)->allocationSetupBufferQueue(_allocation, numAlloc); in AllocationSetupBufferQueue()
1070 void RsHidlAdaptation::AllocationShareBufferQueue(RsContext context, RsAllocation valloc1, RsAlloca… in AllocationShareBufferQueue() argument
1075 GetIContextHandle(context)->allocationShareBufferQueue(_valloc1, _valloc2); in AllocationShareBufferQueue()
1078 RsAllocation RsHidlAdaptation::AllocationAdapterCreate (RsContext context, RsType vtype, RsAllocati… in AllocationAdapterCreate() argument
1083 …uint64_t allocationAdapter = GetIContextHandle(context)->allocationAdapterCreate(_vtype, _baseAllo… in AllocationAdapterCreate()
1087 void RsHidlAdaptation::AllocationAdapterOffset (RsContext context, RsAllocation alloc, const uint32… in AllocationAdapterOffset() argument
1094 GetIContextHandle(context)->allocationAdapterOffset(_alloc, _offsets); in AllocationAdapterOffset()