Lines Matching refs:mContext

227         long curCon = mContext;
229 mContext = 0;
237 rsnContextSetSurface(mContext, w, h, sur);
242 rsnContextSetSurfaceTexture(mContext, w, h, sur);
247 rsnContextSetPriority(mContext, p);
252 rsnContextSetCacheDir(mContext, cacheDir);
257 rsnContextDump(mContext, bits);
262 rsnContextFinish(mContext);
268 rsnContextSendMessage(mContext, id, data);
274 rsnContextBindRootScript(mContext, script);
279 rsnContextBindSampler(mContext, sampler, slot);
284 rsnContextBindProgramStore(mContext, pfs);
289 rsnContextBindProgramFragment(mContext, pf);
294 rsnContextBindProgramVertex(mContext, pv);
299 rsnContextBindProgramRaster(mContext, pr);
304 rsnContextPause(mContext);
309 rsnContextResume(mContext);
319 long c = rsnClosureCreate(mContext, kernelID, returnValue, fieldIDs, values,
332 long c = rsnInvokeClosureCreate(mContext, invokeID, params, fieldIDs,
345 rsnClosureSetArg(mContext, closureID, index, value, size);
354 rsnClosureSetGlobal(mContext, closureID, fieldID, value, size);
362 long g = rsnScriptGroup2Create(mContext, name, cachePath, closures);
372 rsnScriptGroup2Execute(mContext, groupID);
378 rsnAssignName(mContext, obj, name);
383 return rsnGetName(mContext, obj);
392 if (mContext != 0) {
393 rsnObjDestroy(mContext, id);
400 return rsnElementCreate(mContext, type, kind, norm, vecSize);
405 return rsnElementCreate2(mContext, elements, names, arraySizes);
410 rsnElementGetNativeData(mContext, id, elementData);
416 rsnElementGetSubElements(mContext, id, IDs, names, arraySizes);
422 return rsnTypeCreate(mContext, eid, x, y, z, mips, faces, yuv);
427 rsnTypeGetNativeData(mContext, id, typeData);
433 return rsnAllocationCreateTyped(mContext, type, mip, usage, pointer);
438 return rsnAllocationCreateFromBitmap(mContext, type, mip, bmp, usage);
444 return rsnAllocationCreateBitmapBackedAllocation(mContext, type, mip, bmp, usage);
450 return rsnAllocationCubeCreateFromBitmap(mContext, type, mip, bmp, usage);
455 return rsnAllocationCreateBitmapRef(mContext, type, bmp);
460 return rsnAllocationCreateFromAssetStream(mContext, mips, assetStream, usage);
466 rsnAllocationCopyToBitmap(mContext, alloc, bmp);
473 rsnAllocationSyncAll(mContext, alloc, src);
478 return rsnAllocationGetSurface(mContext, alloc);
483 rsnAllocationSetSurface(mContext, alloc, sur);
488 rsnAllocationIoSend(mContext, alloc);
493 rsnAllocationIoReceive(mContext, alloc);
500 rsnAllocationGenerateMipmaps(mContext, alloc);
505 rsnAllocationCopyFromBitmap(mContext, alloc, bmp);
514 rsnAllocationData1D(mContext, id, off, mip, count, d, sizeBytes, dt.mID, mSize, usePadding);
520 rsnAllocationElementData(mContext, id, xoff, yoff, zoff, mip, compIdx, d, sizeBytes);
535 rsnAllocationData2D(mContext,
550 rsnAllocationData2D(mContext, id, xoff, yoff, mip, face, w, h, d, sizeBytes, dt.mID, mSize, usePadding);
556 rsnAllocationData2D(mContext, id, xoff, yoff, mip, face, b);
571 rsnAllocationData3D(mContext,
584 rsnAllocationData3D(mContext, id, xoff, yoff, zoff, mip, w, h, depth, d, sizeBytes,
591 rsnAllocationRead(mContext, id, d, dt.mID, mSize, usePadding);
599 rsnAllocationRead1D(mContext, id, off, mip, count, d, sizeBytes, dt.mID, mSize, usePadding);
607 rsnAllocationElementRead(mContext, id, xoff, yoff, zoff, mip, compIdx, d, sizeBytes);
617 rsnAllocationRead2D(mContext, id, xoff, yoff, mip, face, w, h, d, sizeBytes, dt.mID, mSize, usePadding);
627 rsnAllocationRead3D(mContext, id, xoff, yoff, zoff, mip, w, h, depth, d, sizeBytes, dt.mID, mSize, usePadding);
633 return rsnAllocationGetType(mContext, id);
639 rsnAllocationResize1D(mContext, id, dimX);
645 return rsnAllocationAdapterCreate(mContext, allocId, typeId);
653 rsnAllocationAdapterOffset(mContext, id, x, y, z, mip, face, a1, a2, a3, a4);
659 return rsnFileA3DCreateFromAssetStream(mContext, assetStream);
664 return rsnFileA3DCreateFromFile(mContext, path);
669 return rsnFileA3DCreateFromAsset(mContext, mgr, path);
674 return rsnFileA3DGetNumIndexEntries(mContext, fileA3D);
679 rsnFileA3DGetIndexEntries(mContext, fileA3D, numEntries, IDs, names);
684 return rsnFileA3DGetEntryByIndex(mContext, fileA3D, index);
690 return rsnFontCreateFromFile(mContext, fileName, size, dpi);
695 return rsnFontCreateFromAssetStream(mContext, name, size, dpi, assetStream);
700 return rsnFontCreateFromAsset(mContext, mgr, path, size, dpi);
707 rsnScriptBindAllocation(mContext, script, alloc, slot);
712 rsnScriptSetTimeZone(mContext, script, timeZone);
717 rsnScriptInvoke(mContext, id, slot);
726 rsnScriptForEach(mContext, id, slot, ains, aout, params, limits);
732 rsnScriptInvokeV(mContext, id, slot, params);
738 rsnScriptSetVarI(mContext, id, slot, val);
743 return rsnScriptGetVarI(mContext, id, slot);
749 rsnScriptSetVarJ(mContext, id, slot, val);
754 return rsnScriptGetVarJ(mContext, id, slot);
760 rsnScriptSetVarF(mContext, id, slot, val);
765 return rsnScriptGetVarF(mContext, id, slot);
770 rsnScriptSetVarD(mContext, id, slot, val);
775 return rsnScriptGetVarD(mContext, id, slot);
780 rsnScriptSetVarV(mContext, id, slot, val);
785 rsnScriptGetVarV(mContext, id, slot, val);
792 rsnScriptSetVarVE(mContext, id, slot, val, e, dims);
797 rsnScriptSetVarObj(mContext, id, slot, val);
804 return rsnScriptCCreate(mContext, resName, cacheDir, script, length);
810 return rsnScriptIntrinsicCreate(mContext, id, eid);
816 return rsnScriptKernelIDCreate(mContext, sid, slot, sig);
822 return rsnScriptInvokeIDCreate(mContext, sid, slot);
828 return rsnScriptFieldIDCreate(mContext, sid, slot);
834 return rsnScriptGroupCreate(mContext, kernels, src, dstk, dstf, types);
840 rsnScriptGroupSetInput(mContext, group, kernel, alloc);
846 rsnScriptGroupSetOutput(mContext, group, kernel, alloc);
852 rsnScriptGroupExecute(mContext, group);
860 return rsnSamplerCreate(mContext, magFilter, minFilter, wrapS, wrapT, wrapR, aniso);
870 return rsnProgramStoreCreate(mContext, r, g, b, a, depthMask, dither, srcMode,
877 return rsnProgramRasterCreate(mContext, pointSprite, cullMode);
883 rsnProgramBindConstants(mContext, pv, slot, mID);
888 rsnProgramBindTexture(mContext, vpf, slot, a);
893 rsnProgramBindSampler(mContext, vpf, slot, s);
898 return rsnProgramFragmentCreate(mContext, shader, texNames, params);
903 return rsnProgramVertexCreate(mContext, shader, texNames, params);
909 return rsnMeshCreate(mContext, vtx, idx, prim);
914 return rsnMeshGetVertexBufferCount(mContext, id);
919 return rsnMeshGetIndexCount(mContext, id);
924 rsnMeshGetVertices(mContext, id, vtxIds, vtxIdCount);
929 rsnMeshGetIndices(mContext, id, idxIds, primitives, vtxIdCount);
941 rsnScriptIntrinsicBLAS_Single(mContext, id, func, TransA, TransB, Side, Uplo, Diag, M, N, K, alpha, A, B, beta, C, incX, incY, KL, KU);
953 rsnScriptIntrinsicBLAS_Double(mContext, id, func, TransA, TransB, Side, Uplo, Diag, M, N, K, alpha, A, B, beta, C, incX, incY, KL, KU);
965 rsnScriptIntrinsicBLAS_Complex(mContext, id, func, TransA, TransB, Side, Uplo, Diag, M, N, K, alphaX, alphaY, A, B, betaX, betaY, C, incX, incY, KL, KU);
977 rsnScriptIntrinsicBLAS_Z(mContext, id, func, TransA, TransB, Side, Uplo, Diag, M, N, K, alphaX, alphaY, A, B, betaX, betaY, C, incX, incY, KL, KU);
987 rsnScriptIntrinsicBLAS_BNNM(mContext, id, M, N, K, A, a_offset, B, b_offset, C, c_offset, c_mult_int);
993 long mContext;
1203 if (mContext == 0) {
1244 mRS.nContextInitToClient(mRS.mContext);
1247 int msg = mRS.nContextPeekMessage(mRS.mContext, mAuxData);
1255 if (mRS.nContextGetUserMessage(mRS.mContext, rbuf) !=
1272 String e = mRS.nContextGetErrorMessage(mRS.mContext);
1301 if (mRS.nContextGetUserMessage(mRS.mContext, rbuf) !=
1366 rs.mContext = rs.nContextCreate(rs.mDev, flags, sdkVersion, ct.mID);
1370 if (rs.mContext == 0) {
1558 nContextDeinitToClient(mContext);
1610 return mContext != 0;