/frameworks/base/tools/aapt/ |
H A D | XMLNode.cpp | 534 sp<AaptFile> rsc = new AaptFile(String8(), AaptGroupEntry(), String8()); local 535 status_t err = root->flatten(rsc, !keepComments, false); 539 err = outTree->setTo(rsc->getData(), rsc->getSize(), true);
|
/frameworks/rs/driver/ |
H A D | rsdAllocation.cpp | 92 static void Update2DTexture(const Context *rsc, const Allocation *alloc, const void *ptr, argument 108 static void Upload2DTexture(const Context *rsc, const Allocation *alloc, bool isFirstUpload) { argument 119 rsdGLCheckError(rsc, "Upload2DTexture 1 "); 146 rsdGLCheckError(rsc, "Upload2DTexture"); 149 static void UploadToTexture(const Context *rsc, const Allocation *alloc) { argument 174 Upload2DTexture(rsc, alloc, isFirstUpload); 183 rsdGLCheckError(rsc, "UploadToTexture"); 186 static void AllocateRenderTarget(const Context *rsc, const Allocation *alloc) { argument 199 rsc->dumpDebug(); 206 rsdGLCheckError(rsc, "AllocateRenderTarge 209 UploadToBufferObject(const Context *rsc, const Allocation *alloc) argument 232 AllocationBuildPointerTable(const Context *rsc, const Allocation *alloc, const Type *type, uint8_t *ptr) argument 281 rsdAllocationInit(const Context *rsc, Allocation *alloc, bool forceZero) argument 337 rsdAllocationDestroy(const Context *rsc, Allocation *alloc) argument 367 rsdAllocationResize(const Context *rsc, const Allocation *alloc, const Type *newType, bool zeroNew) argument 391 rsdAllocationSyncFromFBO(const Context *rsc, const Allocation *alloc) argument 422 rsdAllocationSyncAll(const Context *rsc, const Allocation *alloc, RsAllocationUsageType src) argument 457 rsdAllocationMarkDirty(const Context *rsc, const Allocation *alloc) argument 462 rsdAllocationInitSurfaceTexture(const Context *rsc, const Allocation *alloc) argument 468 IoGetBuffer(const Context *rsc, Allocation *alloc, ANativeWindow *nw) argument 492 rsdAllocationSetSurfaceTexture(const Context *rsc, Allocation *alloc, ANativeWindow *nw) argument 545 rsdAllocationIoSend(const Context *rsc, Allocation *alloc) argument 568 rsdAllocationIoReceive(const Context *rsc, Allocation *alloc) argument 574 rsdAllocationData1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t sizeBytes) argument 592 rsdAllocationData2D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, const void *data, size_t sizeBytes) argument 619 rsdAllocationData3D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, uint32_t d, const void *data, uint32_t sizeBytes) argument 626 rsdAllocationRead1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, uint32_t count, void *data, size_t sizeBytes) argument 636 rsdAllocationRead2D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, void *data, size_t sizeBytes) argument 658 rsdAllocationRead3D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, uint32_t d, void *data, uint32_t sizeBytes) argument 665 rsdAllocationLock1D(const android::renderscript::Context *rsc, const android::renderscript::Allocation *alloc) argument 671 rsdAllocationUnlock1D(const android::renderscript::Context *rsc, const android::renderscript::Allocation *alloc) argument 676 rsdAllocationData1D_alloc(const android::renderscript::Context *rsc, const android::renderscript::Allocation *dstAlloc, uint32_t dstXoff, uint32_t dstLod, uint32_t count, const android::renderscript::Allocation *srcAlloc, uint32_t srcXoff, uint32_t srcLod) argument 684 rsdAllocationData2D_alloc_script(const android::renderscript::Context *rsc, const android::renderscript::Allocation *dstAlloc, uint32_t dstXoff, uint32_t dstYoff, uint32_t dstLod, RsAllocationCubemapFace dstFace, uint32_t w, uint32_t h, const android::renderscript::Allocation *srcAlloc, uint32_t srcXoff, uint32_t srcYoff, uint32_t srcLod, RsAllocationCubemapFace srcFace) argument 702 rsdAllocationData2D_alloc(const android::renderscript::Context *rsc, const android::renderscript::Allocation *dstAlloc, uint32_t dstXoff, uint32_t dstYoff, uint32_t dstLod, RsAllocationCubemapFace dstFace, uint32_t w, uint32_t h, const android::renderscript::Allocation *srcAlloc, uint32_t srcXoff, uint32_t srcYoff, uint32_t srcLod, RsAllocationCubemapFace srcFace) argument 719 rsdAllocationData3D_alloc(const android::renderscript::Context *rsc, const android::renderscript::Allocation *dstAlloc, uint32_t dstXoff, uint32_t dstYoff, uint32_t dstZoff, uint32_t dstLod, RsAllocationCubemapFace dstFace, uint32_t w, uint32_t h, uint32_t d, const android::renderscript::Allocation *srcAlloc, uint32_t srcXoff, uint32_t srcYoff, uint32_t srcZoff, uint32_t srcLod, RsAllocationCubemapFace srcFace) argument 729 rsdAllocationElementData1D(const Context *rsc, const Allocation *alloc, uint32_t x, const void *data, uint32_t cIdx, uint32_t sizeBytes) argument 749 rsdAllocationElementData2D(const Context *rsc, const Allocation *alloc, uint32_t x, uint32_t y, const void *data, uint32_t cIdx, uint32_t sizeBytes) argument 826 rsdAllocationGenerateMipmaps(const Context *rsc, const Allocation *alloc) argument [all...] |
H A D | rsdAllocation.h | 71 bool rsdAllocationInit(const android::renderscript::Context *rsc, 74 void rsdAllocationDestroy(const android::renderscript::Context *rsc, 77 void rsdAllocationResize(const android::renderscript::Context *rsc, 80 void rsdAllocationSyncAll(const android::renderscript::Context *rsc, 83 void rsdAllocationMarkDirty(const android::renderscript::Context *rsc, 85 int32_t rsdAllocationInitSurfaceTexture(const android::renderscript::Context *rsc, 87 void rsdAllocationSetSurfaceTexture(const android::renderscript::Context *rsc, 89 void rsdAllocationIoSend(const android::renderscript::Context *rsc, 91 void rsdAllocationIoReceive(const android::renderscript::Context *rsc, 94 void rsdAllocationData1D(const android::renderscript::Context *rsc, [all...] |
H A D | rsdBcc.cpp | 50 bool rsdScriptInit(const Context *rsc, argument 57 //ALOGE("rsdScriptCreate %p %p %p %p %i %i %p", rsc, resName, cacheDir, bitcode, bitcodeSize, flags, lookupFunc); 58 //ALOGE("rsdScriptInit %p %p", rsc, script); 153 bool rsdInitIntrinsic(const Context *rsc, Script *s, RsScriptIntrinsicID iid, Element *e) { argument 162 drv->mIntrinsicData = rsdIntrinsic_Init(rsc, s, iid, &drv->mIntrinsicFuncs); 179 RsdHal * dc = (RsdHal *)mtls->rsc->mHal.drv; 225 RsdHal * dc = (RsdHal *)mtls->rsc->mHal.drv; 247 void rsdScriptInvokeForEachMtlsSetup(const Context *rsc, argument 268 rsc->setError(RS_ERROR_BAD_SCRIPT, "rsForEach called with null allocations"); 301 Context *mrsc = (Context *)rsc; 330 rsdScriptLaunchThreads(const Context *rsc, Script *s, uint32_t slot, const Allocation * ain, Allocation * aout, const void * usr, uint32_t usrLen, const RsScriptCall *sc, MTLaunchStruct *mtls) argument 389 rsdScriptInvokeForEach(const Context *rsc, Script *s, uint32_t slot, const Allocation * ain, Allocation * aout, const void * usr, uint32_t usrLen, const RsScriptCall *sc) argument [all...] |
H A D | rsdBcc.h | 32 bool rsdInitIntrinsic(const android::renderscript::Context *rsc, 43 void rsdScriptInvokeForEach(const android::renderscript::Context *rsc, 143 android::renderscript::Context *rsc; member in struct:__anon1534 163 void rsdScriptLaunchThreads(const android::renderscript::Context *rsc, 173 void rsdScriptInvokeForEachMtlsSetup(const android::renderscript::Context *rsc,
|
H A D | rsdCore.cpp | 44 static void Shutdown(Context *rsc); 45 static void SetPriority(const Context *rsc, int32_t priority); 163 Context *rsc = static_cast<Context *>(vrsc); local 164 RsdHal *dc = (RsdHal *)rsc->mHal.drv; 169 //ALOGV("RS helperThread starting %p idx=%i", rsc, idx); 184 int ret = syscall(241, rsc->mWorkers.mNativeThreadId[idx], 198 //ALOGV("RS helperThread exited %p idx=%i", rsc, idx); 202 void rsdLaunchThreads(Context *rsc, WorkerCallback_t cbk, void *data) { argument 203 RsdHal *dc = (RsdHal *)rsc->mHal.drv; 218 Context *rsc local 292 SetPriority(const Context *rsc, int32_t priority) argument 302 Shutdown(Context *rsc) argument [all...] |
H A D | rsdCore.h | 73 void rsdLaunchThreads(android::renderscript::Context *rsc, WorkerCallback_t cbk, void *data);
|
H A D | rsdFrameBuffer.cpp | 32 void setDepthAttachment(const Context *rsc, const FBOCache *fb) { argument 40 rsdAllocationSyncAll(rsc, fb->mHal.state.depthTarget, 47 void setColorAttachment(const Context *rsc, const FBOCache *fb) { argument 56 rsdAllocationSyncAll(rsc, fb->mHal.state.colorTargets[i], 64 bool rsdFrameBufferInit(const Context *rsc, const FBOCache *fb) { argument 71 RsdHal *dc = (RsdHal *)rsc->mHal.drv; 77 void rsdFrameBufferSetActive(const Context *rsc, const FBOCache *fb) { argument 78 setDepthAttachment(rsc, fb); 79 setColorAttachment(rsc, fb); 90 fbo->setActive(rsc); 93 rsdFrameBufferDestroy(const Context *rsc, const FBOCache *fb) argument [all...] |
H A D | rsdFrameBuffer.h | 22 bool rsdFrameBufferInit(const android::renderscript::Context *rsc, 24 void rsdFrameBufferSetActive(const android::renderscript::Context *rsc, 26 void rsdFrameBufferDestroy(const android::renderscript::Context *rsc,
|
H A D | rsdFrameBufferObj.cpp | 49 void RsdFrameBufferObj::checkError(const Context *rsc) { argument 56 rsc->setError(RS_ERROR_BAD_VALUE, 60 rsc->setError(RS_ERROR_BAD_VALUE, 64 rsc->setError(RS_ERROR_BAD_VALUE, 68 rsc->setError(RS_ERROR_BAD_VALUE, 125 void RsdFrameBufferObj::setActive(const Context *rsc) { argument 126 RsdHal *dc = (RsdHal *)rsc->mHal.drv; 130 rsdGLSetInternalSurface(rsc, mColorTargets[0]->wnd); 149 checkError(rsc); 152 rsdGLSetInternalSurface(rsc, d [all...] |
H A D | rsdFrameBufferObj.h | 29 void setActive(const android::renderscript::Context *rsc); 54 void checkError(const android::renderscript::Context *rsc);
|
H A D | rsdGL.cpp | 154 void rsdGLShutdown(const Context *rsc) { argument 155 RsdHal *dc = (RsdHal *)rsc->mHal.drv; 157 rsdGLSetSurface(rsc, 0, 0, NULL); 179 void getConfigData(const Context *rsc, argument 206 if (rsc->mUserSurfaceConfig.alphaMin > 0) { 208 configAttribsPtr[1] = rsc->mUserSurfaceConfig.alphaMin; 212 if (rsc->mUserSurfaceConfig.depthMin > 0) { 214 configAttribsPtr[1] = rsc->mUserSurfaceConfig.depthMin; 218 if (rsc->mDev->mForceSW) { 236 bool rsdGLInit(const Context *rsc) { [all...] |
H A D | rsdGL.h | 23 #define RSD_CALL_GL(x, ...) rsc->setWatchdogGL(#x, __LINE__, __FILE__); x(__VA_ARGS__); rsc->setWatchdogGL(NULL, 0, NULL) 77 bool rsdGLSetInternalSurface(const android::renderscript::Context *rsc, 79 bool rsdGLInit(const android::renderscript::Context *rsc); 80 void rsdGLShutdown(const android::renderscript::Context *rsc); 81 bool rsdGLSetSurface(const android::renderscript::Context *rsc, 83 void rsdGLSwap(const android::renderscript::Context *rsc); 84 void rsdGLCheckError(const android::renderscript::Context *rsc, 86 void rsdGLSetPriority(const android::renderscript::Context *rsc, 88 void rsdGLClearColor(const android::renderscript::Context *rsc, [all...] |
H A D | rsdMesh.cpp | 30 bool rsdMeshInit(const Context *rsc, const Mesh *m) { argument 36 drv = new RsdMeshObj(rsc, m); 38 return drv->init(rsc); 41 void rsdMeshDraw(const Context *rsc, const Mesh *m, uint32_t primIndex, uint32_t start, uint32_t len) { argument 43 RsdHal *dc = (RsdHal *)rsc->mHal.drv; 44 if (!dc->gl.shaderCache->setup(rsc)) { 49 drv->renderPrimitiveRange(rsc, primIndex, start, len); 53 void rsdMeshDestroy(const Context *rsc, const Mesh *m) { argument
|
H A D | rsdMesh.h | 23 bool rsdMeshInit(const android::renderscript::Context *rsc, 25 void rsdMeshDraw(const android::renderscript::Context *rsc, 28 void rsdMeshDestroy(const android::renderscript::Context *rsc,
|
H A D | rsdMeshObj.cpp | 32 RsdMeshObj::RsdMeshObj(const Context *rsc, const Mesh *rsMesh) { argument 71 bool RsdMeshObj::init(const Context *rsc) { argument 73 updateGLPrimitives(rsc); 128 void RsdMeshObj::renderPrimitiveRange(const Context *rsc, uint32_t primIndex, argument 131 rsc->setError(RS_ERROR_FATAL_DRIVER, "Invalid mesh or parameters"); 139 rsdAllocationSyncAll(rsc, alloc, RS_ALLOCATION_USAGE_SCRIPT); 159 va.setup(rsc); 165 rsdAllocationSyncAll(rsc, idxAlloc, RS_ALLOCATION_USAGE_SCRIPT); 181 rsdGLCheckError(rsc, "Mesh::renderPrimitiveRange"); 184 void RsdMeshObj::updateGLPrimitives(const Context *rsc) { argument [all...] |
H A D | rsdMeshObj.h | 43 bool init(const android::renderscript::Context *rsc); 49 void updateGLPrimitives(const android::renderscript::Context *rsc);
|
H A D | rsdPath.cpp | 65 static void cleanup(const Context *rsc, const Path *m) { argument 72 bool rsdPathInitStatic(const Context *rsc, const Path *m, argument 75 cleanup(rsc, m); 83 bool rsdPathInitDynamic(const Context *rsc, const Path *m) { argument 88 void rsdPathDraw(const Context *rsc, const Path *m) { argument 94 drv->draw((Context *)rsc); 98 void rsdPathDestroy(const Context *rsc, const Path *m) { argument 99 cleanup(rsc, m); 135 void DrvPathStatic::draw(Context *rsc) { argument 143 if (!rsc [all...] |
H A D | rsdPath.h | 23 bool rsdPathInitStatic(const android::renderscript::Context *rsc, 27 bool rsdPathInitDynamic(const android::renderscript::Context *rsc, 29 void rsdPathDraw(const android::renderscript::Context *rsc, 31 void rsdPathDestroy(const android::renderscript::Context *rsc,
|
H A D | rsdProgram.cpp | 36 bool rsdProgramVertexInit(const Context *rsc, const ProgramVertex *pv, argument 47 static void SyncProgramConstants(const Context *rsc, const Program *p) { argument 55 rsdAllocationSyncAll(rsc, a, RS_ALLOCATION_USAGE_SCRIPT); 60 void rsdProgramVertexSetActive(const Context *rsc, const ProgramVertex *pv) { argument 61 RsdHal *dc = (RsdHal *)rsc->mHal.drv; 63 SyncProgramConstants(rsc, pv); 67 void rsdProgramVertexDestroy(const Context *rsc, const ProgramVertex *pv) { argument 68 RsdHal *dc = (RsdHal *)rsc->mHal.drv; 73 if (rsc->props.mLogShaders) { 83 bool rsdProgramFragmentInit(const Context *rsc, cons argument 94 rsdProgramFragmentSetActive(const Context *rsc, const ProgramFragment *pf) argument 101 rsdProgramFragmentDestroy(const Context *rsc, const ProgramFragment *pf) argument [all...] |
H A D | rsdProgramFragment.h | 23 bool rsdProgramFragmentInit(const android::renderscript::Context *rsc, 28 void rsdProgramFragmentSetActive(const android::renderscript::Context *rsc, 30 void rsdProgramFragmentDestroy(const android::renderscript::Context *rsc,
|
H A D | rsdProgramRaster.cpp | 35 void rsdProgramRasterSetActive(const Context *rsc, const ProgramRaster *pr) { argument 49 rsc->setError(RS_ERROR_FATAL_DRIVER, "Invalid cull type");
|
H A D | rsdProgramRaster.h | 23 bool rsdProgramRasterInit(const android::renderscript::Context *rsc, 25 void rsdProgramRasterSetActive(const android::renderscript::Context *rsc, 27 void rsdProgramRasterDestroy(const android::renderscript::Context *rsc,
|
H A D | rsdProgramStore.cpp | 40 bool rsdProgramStoreInit(const Context *rsc, const ProgramStore *ps) { argument 114 rsc->setError(RS_ERROR_FATAL_DRIVER, "Unknown blend src mode."); 144 rsc->setError(RS_ERROR_FATAL_DRIVER, "Unknown blend dst mode."); 156 void rsdProgramStoreSetActive(const Context *rsc, const ProgramStore *ps) { argument 171 if (rsc->mUserSurfaceConfig.depthMin > 0) { 185 if (rsc->mUserSurfaceConfig.stencilMin > 0) { 199 void rsdProgramStoreDestroy(const Context *rsc, const ProgramStore *ps) { argument
|
H A D | rsdProgramStore.h | 23 bool rsdProgramStoreInit(const android::renderscript::Context *rsc, 25 void rsdProgramStoreSetActive(const android::renderscript::Context *rsc, 27 void rsdProgramStoreDestroy(const android::renderscript::Context *rsc,
|