Lines Matching refs:jlong
241 _env->ReleaseLongArrayElements((jlongArray)data, (jlong *)ptr, relFlag); \
343 nContextFinish(JNIEnv *_env, jobject _this, jlong con)
351 static jlong
352 nClosureCreate(JNIEnv *_env, jobject _this, jlong con, jlong kernelID,
353 jlong returnValue, jlongArray fieldIDArray,
356 jlong ret = 0;
358 jlong* jFieldIDs = _env->GetLongArrayElements(fieldIDArray, nullptr);
365 jlong* jValues = _env->GetLongArrayElements(valueArray, nullptr);
379 jlong* jDepClosures =
387 jlong* jDepFieldIDs =
451 ret = (jlong)(uintptr_t)rsClosureCreate(
469 static jlong
470 nInvokeClosureCreate(JNIEnv *_env, jobject _this, jlong con, jlong invokeID,
473 jlong ret = 0;
482 jlong* jFieldIDs = _env->GetLongArrayElements(fieldIDArray, nullptr);
489 jlong* jValues = _env->GetLongArrayElements(valueArray, nullptr);
527 ret = (jlong)(uintptr_t)rsInvokeClosureCreate(
543 nClosureSetArg(JNIEnv *_env, jobject _this, jlong con, jlong closureID,
544 jint index, jlong value, jint size) {
551 nClosureSetGlobal(JNIEnv *_env, jobject _this, jlong con, jlong closureID,
552 jlong fieldID, jlong value, jint size) {
559 nScriptGroup2Create(JNIEnv *_env, jobject _this, jlong con, jstring name,
561 jlong ret = 0;
566 jlong* jClosures = _env->GetLongArrayElements(closureArray, nullptr);
589 ret = (jlong)(uintptr_t)rsScriptGroup2Create(
602 nScriptGroup2Execute(JNIEnv *_env, jobject _this, jlong con, jlong groupID) {
607 nScriptIntrinsicBLAS_Single(JNIEnv *_env, jobject _this, jlong con, jlong id, jint func, jint TransA,
609 jfloat alpha, jlong A, jlong B, jfloat beta, jlong C, jint incX, jint incY,
640 nScriptIntrinsicBLAS_Double(JNIEnv *_env, jobject _this, jlong con, jlong id, jint func, jint TransA,
642 jdouble alpha, jlong A, jlong B, jdouble beta, jlong C, jint incX, jint incY,
673 nScriptIntrinsicBLAS_Complex(JNIEnv *_env, jobject _this, jlong con, jlong id, jint func, jint TransA,
675 jfloat alphaX, jfloat alphaY, jlong A, jlong B, jfloat betaX,
676 jfloat betaY, jlong C, jint incX, jint incY, jint KL, jint KU) {
708 nScriptIntrinsicBLAS_Z(JNIEnv *_env, jobject _this, jlong con, jlong id, jint func, jint TransA,
710 jdouble alphaX, jdouble alphaY, jlong A, jlong B, jdouble betaX,
711 jdouble betaY, jlong C, jint incX, jint incY, jint KL, jint KU) {
744 nScriptIntrinsicBLAS_BNNM(JNIEnv *_env, jobject _this, jlong con, jlong id, jint M, jint N, jint K,
745 jlong A, jint a_offset, jlong B, jint b_offset, jlong C, jint c_offset,
770 nAssignName(JNIEnv *_env, jobject _this, jlong con, jlong obj, jbyteArray str)
787 nGetName(JNIEnv *_env, jobject _this, jlong con, jlong obj)
801 nObjDestroy(JNIEnv *_env, jobject _this, jlong con, jlong obj)
811 static jlong
817 return (jlong)(uintptr_t)rsDeviceCreate();
821 nDeviceDestroy(JNIEnv *_env, jobject _this, jlong dev)
830 nDeviceSetConfig(JNIEnv *_env, jobject _this, jlong dev, jint p, jint value)
838 static jlong
839 nContextCreate(JNIEnv *_env, jobject _this, jlong dev, jint flags, jint sdkVer, jint contextType)
844 return (jlong)(uintptr_t)rsContextCreate((RsDevice)dev, 0, sdkVer, (RsContextType)contextType, flags);
847 static jlong
848 nContextCreateGL(JNIEnv *_env, jobject _this, jlong dev, jint ver, jint sdkVer,
870 return (jlong)(uintptr_t)rsContextCreateGL((RsDevice)dev, ver, sdkVer, sc, dpi);
874 nContextSetPriority(JNIEnv *_env, jobject _this, jlong con, jint p)
883 nContextSetCacheDir(JNIEnv *_env, jobject _this, jlong con, jstring cacheDir)
896 nContextSetSurface(JNIEnv *_env, jobject _this, jlong con, jint width, jint height, jobject wnd)
914 nContextDestroy(JNIEnv *_env, jobject _this, jlong con)
923 nContextDump(JNIEnv *_env, jobject _this, jlong con, jint bits)
932 nContextPause(JNIEnv *_env, jobject _this, jlong con)
941 nContextResume(JNIEnv *_env, jobject _this, jlong con)
951 nContextGetErrorMessage(JNIEnv *_env, jobject _this, jlong con)
971 nContextGetUserMessage(JNIEnv *_env, jobject _this, jlong con, jintArray data)
996 nContextPeekMessage(JNIEnv *_env, jobject _this, jlong con, jintArray auxData)
1016 static void nContextInitToClient(JNIEnv *_env, jobject _this, jlong con)
1024 static void nContextDeinitToClient(JNIEnv *_env, jobject _this, jlong con)
1033 nContextSendMessage(JNIEnv *_env, jobject _this, jlong con, jint id, jintArray data)
1056 static jlong
1057 nElementCreate(JNIEnv *_env, jobject _this, jlong con, jlong type, jint kind, jboolean norm,
1064 return (jlong)(uintptr_t)rsElementCreate((RsContext)con, (RsDataType)type, (RsDataKind)kind,
1068 static jlong
1069 nElementCreate2(JNIEnv *_env, jobject _this, jlong con,
1077 jlong *jIds = _env->GetLongArrayElements(_ids, nullptr);
1101 jlong id = (jlong)(uintptr_t)rsElementCreate2((RsContext)con,
1111 return (jlong)(uintptr_t)id;
1115 nElementGetNativeData(JNIEnv *_env, jobject _this, jlong con, jlong id, jintArray _elementData)
1136 nElementGetSubElements(JNIEnv *_env, jobject _this, jlong con, jlong id,
1154 const jlong id = (jlong)(uintptr_t)ids[i];
1168 static jlong
1169 nTypeCreate(JNIEnv *_env, jobject _this, jlong con, jlong eid,
1177 return (jlong)(uintptr_t)rsTypeCreate((RsContext)con, (RsElement)eid, dimx, dimy, dimz, mips,
1182 nTypeGetNativeData(JNIEnv *_env, jobject _this, jlong con, jlong id, jlongArray _typeData)
1197 const jlong data = (jlong)(uintptr_t)typeData[i];
1204 static jlong
1205 jlong con, jlong type, jint mips, jint usage,
1206 jlong pointer)
1212 return (jlong)(uintptr_t) rsAllocationCreateTyped((RsContext)con, (RsType)type,
1218 nAllocationSyncAll(JNIEnv *_env, jobject _this, jlong con, jlong a, jint bits)
1228 nAllocationSetupBufferQueue(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jint numAlloc)
1238 nAllocationShareBufferQueue(JNIEnv *_env, jobject _this, jlong con, jlong alloc1, jlong alloc2)
1249 nAllocationGetSurface(JNIEnv *_env, jobject _this, jlong con, jlong a)
1265 nAllocationSetSurface(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jobject sur)
1282 nAllocationIoSend(JNIEnv *_env, jobject _this, jlong con, jlong alloc)
1290 static jlong
1291 nAllocationIoReceive(JNIEnv *_env, jobject _this, jlong con, jlong alloc)
1296 return (jlong) rsAllocationIoReceive((RsContext)con, (RsAllocation)alloc);
1300 nAllocationGenerateMipmaps(JNIEnv *_env, jobject _this, jlong con, jlong alloc)
1308 static jlong
1309 nAllocationCreateFromBitmap(JNIEnv *_env, jobject _this, jlong con, jlong type, jint mip,
1317 jlong id = (jlong)(uintptr_t)rsAllocationCreateFromBitmap((RsContext)con,
1324 static jlong
1325 nAllocationCreateBitmapBackedAllocation(JNIEnv *_env, jobject _this, jlong con, jlong type,
1333 jlong id = (jlong)(uintptr_t)rsAllocationCreateTyped((RsContext)con,
1340 static jlong
1341 nAllocationCubeCreateFromBitmap(JNIEnv *_env, jobject _this, jlong con, jlong type, jint mip,
1349 jlong id = (jlong)(uintptr_t)rsAllocationCubeCreateFromBitmap((RsContext)con,
1357 nAllocationCopyFromBitmap(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jobject jbitmap)
1373 nAllocationCopyToBitmap(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jobject jbitmap)
1387 nAllocationData1D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint offset, jint lod,
1402 nAllocationElementData(JNIEnv *_env, jobject _this, jlong con, jlong alloc,
1426 nAllocationData2D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint xoff, jint yoff, jint lod, jint _face,
1444 nAllocationData2D_alloc(JNIEnv *_env, jobject _this, jlong con,
1445 jlong dstAlloc, jint dstXoff, jint dstYoff,
1448 jlong srcAlloc, jint srcXoff, jint srcYoff,
1471 nAllocationData3D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint xoff, jint yoff, jint zoff, jint lod,
1489 nAllocationData3D_alloc(JNIEnv *_env, jobject _this, jlong con,
1490 jlong dstAlloc, jint dstXoff, jint dstYoff, jint dstZoff,
1493 jlong srcAlloc, jint srcXoff, jint srcYoff, jint srcZoff,
1515 nAllocationRead(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jobject data, jint dataType,
1529 nAllocationRead1D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint offset, jint lod,
1544 nAllocationElementRead(JNIEnv *_env, jobject _this, jlong con, jlong alloc,
1567 nAllocationRead2D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint xoff, jint yoff, jint lod, jint _face,
1584 nAllocationRead3D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint xoff, jint yoff, jint zoff, jint lod,
1599 static jlong
1600 nAllocationGetType(JNIEnv *_env, jobject _this, jlong con, jlong a)
1605 return (jlong)(uintptr_t) rsaAllocationGetType((RsContext)con, (RsAllocation)a);
1609 jlong con, jlong alloc, jint dimX)
1619 static jlong
1620 nAllocationAdapterCreate(JNIEnv *_env, jobject _this, jlong con, jlong basealloc, jlong type)
1626 return (jlong)(uintptr_t) rsAllocationAdapterCreate((RsContext)con, (RsType)type,
1632 nAllocationAdapterOffset(JNIEnv *_env, jobject _this, jlong con, jlong alloc,
1651 static jlong
1652 nFileA3DCreateFromAssetStream(JNIEnv *_env, jobject _this, jlong con, jlong native_asset)
1657 jlong id = (jlong)(uintptr_t)rsaFileA3DCreateFromMemory((RsContext)con, asset->getBuffer(false), asset->getLength());
1661 static jlong
1662 nFileA3DCreateFromAsset(JNIEnv *_env, jobject _this, jlong con, jobject _assetMgr, jstring _path)
1675 jlong id = (jlong)(uintptr_t)rsaFileA3DCreateFromAsset((RsContext)con, asset);
1679 static jlong
1680 nFileA3DCreateFromFile(JNIEnv *_env, jobject _this, jlong con, jstring fileName)
1683 jlong id = (jlong)(uintptr_t)rsaFileA3DCreateFromFile((RsContext)con, fileNameUTF.c_str());
1689 nFileA3DGetNumIndexEntries(JNIEnv *_env, jobject _this, jlong con, jlong fileA3D)
1697 nFileA3DGetIndexEntries(JNIEnv *_env, jobject _this, jlong con, jlong fileA3D, jint numEntries, jintArray _ids, jobjectArray _entries)
1712 static jlong
1713 nFileA3DGetEntryByIndex(JNIEnv *_env, jobject _this, jlong con, jlong fileA3D, jint index)
1716 jlong id = (jlong)(uintptr_t)rsaFileA3DGetEntryByIndex((RsContext)con, (uint32_t)index, (RsFile)fileA3D);
1722 static jlong
1723 nFontCreateFromFile(JNIEnv *_env, jobject _this, jlong con,
1727 jlong id = (jlong)(uintptr_t)rsFontCreateFromFile((RsContext)con,
1734 static jlong
1735 nFontCreateFromAssetStream(JNIEnv *_env, jobject _this, jlong con,
1736 jstring name, jfloat fontSize, jint dpi, jlong native_asset)
1741 jlong id = (jlong)(uintptr_t)rsFontCreateFromMemory((RsContext)con,
1748 static jlong
1749 nFontCreateFromAsset(JNIEnv *_env, jobject _this, jlong con, jobject _assetMgr, jstring _path,
1763 jlong id = (jlong)(uintptr_t)rsFontCreateFromMemory((RsContext)con,
1774 nScriptBindAllocation(JNIEnv *_env, jobject _this, jlong con, jlong script, jlong alloc, jint slot)
1784 nScriptSetVarI(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot, jint val)
1794 nScriptGetVarI(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot)
1805 nScriptSetVarObj(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot, jlong val)
1815 nScriptSetVarJ(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot, jlong val)
1824 static jlong
1825 nScriptGetVarJ(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot)
1830 jlong value = 0;
1836 nScriptSetVarF(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot, float val)
1846 nScriptGetVarF(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot)
1857 nScriptSetVarD(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot, double val)
1867 nScriptGetVarD(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot)
1878 nScriptSetVarV(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot, jbyteArray data)
1894 nScriptGetVarV(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot, jbyteArray data)
1910 nScriptSetVarVE(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot, jbyteArray data,
1911 jlong elem, jintArray dims)
1936 nScriptSetTimeZone(JNIEnv *_env, jobject _this, jlong con, jlong script, jbyteArray timeZone)
1958 nScriptInvoke(JNIEnv *_env, jobject _this, jlong con, jlong obj, jint slot)
1967 nScriptInvokeV(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot, jbyteArray data)
1983 nScriptForEach(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot,
1984 jlongArray ains, jlong aout, jbyteArray params,
1992 jlong *in_ptr = nullptr;
2010 if (sizeof(RsAllocation) == sizeof(jlong)) {
2013 // Convert from 64-bit jlong types to the native pointer type.
2096 nScriptReduce(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot,
2097 jlongArray ains, jlong
2115 jlong *in_ptr = _env->GetLongArrayElements(ains, nullptr);
2123 if (sizeof(RsAllocation) == sizeof(jlong)) {
2126 // Convert from 64-bit jlong types to the native pointer type.
2192 static jlong
2193 nScriptCCreate(JNIEnv *_env, jobject _this, jlong con,
2203 jlong ret = 0;
2233 ret = (jlong)(uintptr_t)rsScriptCCreate((RsContext)con,
2244 return (jlong)(uintptr_t)ret;
2247 static jlong
2248 nScriptIntrinsicCreate(JNIEnv *_env, jobject _this, jlong con, jint id, jlong eid)
2254 return (jlong)(uintptr_t)rsScriptIntrinsicCreate((RsContext)con, id, (RsElement)eid);
2257 static jlong
2258 nScriptKernelIDCreate(JNIEnv *_env, jobject _this, jlong con, jlong sid, jint slot, jint sig)
2264 return (jlong)(uintptr_t)rsScriptKernelIDCreate((RsContext)con, (RsScript)sid, slot, sig);
2267 static jlong
2268 nScriptInvokeIDCreate(JNIEnv *_env, jobject _this, jlong con, jlong sid, jint slot)
2274 return (jlong)(uintptr_t)rsScriptInvokeIDCreate((RsContext)con, (RsScript)sid, slot);
2277 static jlong
2278 nScriptFieldIDCreate(JNIEnv *_env, jobject _this, jlong con, jlong sid, jint slot)
2284 return (jlong)(uintptr_t)rsScriptFieldIDCreate((RsContext)con, (RsScript)sid, slot);
2287 static jlong
2288 nScriptGroupCreate(JNIEnv *_env, jobject _this, jlong con, jlongArray _kernels, jlongArray _src,
2295 jlong id = 0;
2299 jlong *jKernelsPtr = _env->GetLongArrayElements(_kernels, nullptr);
2303 jlong *jSrcPtr = _env->GetLongArrayElements(_src, nullptr);
2307 jlong *jDstkPtr = _env->GetLongArrayElements(_dstk, nullptr);
2311 jlong *jDstfPtr = _env->GetLongArrayElements(_dstf, nullptr);
2315 jlong *jTypesPtr = _env->GetLongArrayElements(_types, nullptr);
2363 id = (jlong)(uintptr_t)rsScriptGroupCreate((RsContext)con,
2397 nScriptGroupSetInput(JNIEnv *_env, jobject _this, jlong con, jlong gid, jlong kid, jlong alloc)
2407 nScriptGroupSetOutput(JNIEnv *_env, jobject _this, jlong con, jlong gid, jlong kid, jlong alloc)
2417 nScriptGroupExecute(JNIEnv *_env, jobject _this, jlong con, jlong gid)
2427 static jlong
2428 nProgramStoreCreate(JNIEnv *_env, jobject _this, jlong con,
2437 return (jlong)(uintptr_t)rsProgramStoreCreate((RsContext)con, colorMaskR, colorMaskG, colorMaskB, colorMaskA,
2445 nProgramBindConstants(JNIEnv *_env, jobject _this, jlong con, jlong vpv, jint slot, jlong a)
2455 nProgramBindTexture(JNIEnv *_env, jobject _this, jlong con, jlong vpf, jint slot, jlong a)
2465 nProgramBindSampler(JNIEnv *_env, jobject _this, jlong con, jlong vpf, jint slot, jlong a)
2476 static jlong
2477 nProgramFragmentCreate(JNIEnv *_env, jobject _this, jlong con, jstring shader,
2481 jlong *jParamPtr = _env->GetLongArrayElements(params, nullptr);
2501 jlong ret = (jlong)(uintptr_t)rsProgramFragmentCreate((RsContext)con, shaderUTF.c_str(), shaderUTF.length(),
2513 static jlong
2514 nProgramVertexCreate(JNIEnv *_env, jobject _this, jlong con, jstring shader,
2518 jlong *jParamPtr = _env->GetLongArrayElements(params, nullptr);
2539 jlong ret = (jlong)(uintptr_t)rsProgramVertexCreate((RsContext)con, shaderUTF.c_str(), shaderUTF.length(),
2550 static jlong
2551 nProgramRasterCreate(JNIEnv *_env, jobject _this, jlong con, jboolean pointSprite, jint cull)
2557 return (jlong)(uintptr_t)rsProgramRasterCreate((RsContext)con, pointSprite, (RsCullMode)cull);
2564 nContextBindRootScript(JNIEnv *_env, jobject _this, jlong con, jlong script)
2573 jlong con, jlong pfs)
2582 nContextBindProgramFragment(JNIEnv *_env, jobject _this, jlong con, jlong pf)
2592 nContextBindProgramVertex(JNIEnv *_env, jobject _this, jlong con, jlong pf)
2601 nContextBindProgramRaster(JNIEnv *_env, jobject _this, jlong con, jlong pf)
2612 static jlong
2613 nSamplerCreate(JNIEnv *_env, jobject _this, jlong con, jint magFilter, jint minFilter,
2619 return (jlong)(uintptr_t)rsSamplerCreate((RsContext)con,
2630 static jlong
2631 nMeshCreate(JNIEnv *_env, jobject _this, jlong con, jlongArray _vtx, jlongArray _idx, jintArray _prim)
2637 jlong id = 0;
2641 jlong *jVtxPtr = _env->GetLongArrayElements(_vtx, nullptr);
2645 jlong *jIdxPtr = _env->GetLongArrayElements(_idx, nullptr);
2673 id = (jlong)(uintptr_t)rsMeshCreate((RsContext)con,
2696 nMeshGetVertexBufferCount(JNIEnv *_env, jobject _this, jlong con, jlong mesh)
2707 nMeshGetIndexCount(JNIEnv *_env, jobject _this, jlong con, jlong mesh)
2718 nMeshGetVertices(JNIEnv *_env, jobject _this, jlong con, jlong mesh, jlongArray _ids, jint numVtxIDs)
2728 const jlong alloc = (jlong)(uintptr_t)allocs[i];
2736 nMeshGetIndices(JNIEnv *_env, jobject _this, jlong con, jlong mesh, jlongArray _idxIds, jintArray _primitives, jint numIndices)
2748 const jlong alloc = (jlong)(uintptr_t)allocs[i];
2764 nAllocationGetByteBuffer(JNIEnv *_env, jobject _this, jlong con, jlong alloc,
2771 jlong *jStridePtr = _env->GetLongArrayElements(strideArr, nullptr);
2795 byteBuffer = _env->NewDirectByteBuffer(ptr, (jlong) bufferSize);