/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/src/ |
H A D | webgl2_rendering_context_base.cpp | 50 NFuncArg funcArg(env, info); in DrawBuffers() 51 if (!funcArg.InitArgs(NARG_CNT::ONE)) { in DrawBuffers() 55 WebGL2RenderingContext* context = GetWebGL2RenderingContext(env, funcArg.GetThisVar()); in DrawBuffers() 57 context->GetWebGL2RenderingContextImpl().DrawBuffers(env, funcArg[NARG_POS::FIRST]); in DrawBuffers() 62 NFuncArg funcArg(env, info); in ClearBufferfv() 63 if (!funcArg.InitArgs(NARG_CNT::THREE, NARG_CNT::FOUR)) { in ClearBufferfv() 69 tie(succ, buffer) = NVal(env, funcArg[NARG_POS::FIRST]).ToGLenum(); in ClearBufferfv() 74 tie(succ, drawbuffer) = NVal(env, funcArg[NARG_POS::SECOND]).ToInt32(); in ClearBufferfv() 79 if (!NVal(env, funcArg[NARG_POS::FOURTH]).IsNull()) { in ClearBufferfv() 80 tie(succ, srcOffset) = NVal(env, funcArg[NARG_PO in ClearBufferfv() [all...] |
H A D | webgl_rendering_context_overloads.cpp | 62 NFuncArg funcArg(env, info); in BufferData() 63 if (!funcArg.InitArgs(NARG_CNT::THREE, NARG_CNT::FIVE)) { in BufferData() 66 WebGLRenderingContext* context = GetWebGLRenderingContextBase(env, funcArg.GetThisVar()); in BufferData() 72 tie(succ, target) = NVal(env, funcArg[NARG_POS::FIRST]).ToGLenum(); in BufferData() 77 tie(succ, usage) = NVal(env, funcArg[NARG_POS::THIRD]).ToGLenum(); in BufferData() 81 bool usageSucc = NVal(env, funcArg[NARG_POS::SECOND]).TypeIs(napi_number); in BufferData() 84 tie(succ, size) = NVal(env, funcArg[NARG_POS::SECOND]).ToInt64(); in BufferData() 93 return context->GetWebGLRenderingContextImpl().BufferData(env, target, funcArg[NARG_POS::SECOND], usage, ext); in BufferData() 95 succ = ext.GetBufferExt(env, funcArg[NARG_POS::FOURTH], funcArg[NARG_PO in BufferData() [all...] |
H A D | webgl_rendering_context_base.cpp | 71 NFuncArg funcArg(env, info); in GetContextAttributes() 72 if (!funcArg.InitArgs(NARG_CNT::ZERO)) { in GetContextAttributes() 75 WebGLRenderingContext* context = GetWebGLRenderingContextBase(env, funcArg.GetThisVar()); in GetContextAttributes() 116 NFuncArg funcArg(env, info); in GetExtension() 117 if (!funcArg.InitArgs(NARG_CNT::ONE)) { in GetExtension() 123 tie(succ, name, nameLen) = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8String(); in GetExtension() 153 NFuncArg funcArg(env, info); in ActiveTexture() 154 if (!funcArg.InitArgs(NARG_CNT::ONE)) { in ActiveTexture() 159 tie(succ, texture) = NVal(env, funcArg[NARG_POS::FIRST]).ToGLenum(); in ActiveTexture() 163 WebGLRenderingContext* context = GetWebGLRenderingContextBase(env, funcArg in ActiveTexture() [all...] |
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/napi/common/ |
H A D | common_func.h | 51 static bool SetZStreamValue(napi_env env, const NapiFuncArg &funcArg); 52 static std::tuple<bool, int64_t, void *, size_t> GetAdler32Arg(napi_env env, const NapiFuncArg &funcArg); 54 napi_env env, const NapiFuncArg &funcArg); 55 static std::tuple<bool, int64_t, void *, size_t> GetCrc64Arg(napi_env env, const NapiFuncArg &funcArg); 57 static std::tuple<bool, z_stream, int32_t> GetInflateInitArg(napi_env env, const NapiFuncArg &funcArg); 58 static std::tuple<bool, z_stream, int32_t> GetDeflateInitArg(napi_env env, const NapiFuncArg &funcArg); 60 napi_env env, const NapiFuncArg &funcArg); 61 static std::tuple<bool, int32_t> GetDeflateArg(napi_env env, const NapiFuncArg &funcArg); 62 static std::tuple<bool, void *, size_t, void *, int64_t> GetCompressArg(napi_env env, const NapiFuncArg &funcArg); 64 napi_env env, const NapiFuncArg &funcArg); [all...] |
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/class_stream/ |
H A D | stream_n_exporter.cpp | 50 NFuncArg funcArg(env, cbInfo); in FlushSync() 51 if (!funcArg.InitArgs(NARG_CNT::ZERO)) { in FlushSync() 57 auto streamEntity = NClass::GetEntityOf<StreamEntity>(env, funcArg.GetThisVar()); in FlushSync() 76 NFuncArg funcArg(env, cbInfo); in Flush() 77 if (!funcArg.InitArgs(NARG_CNT::ZERO, NARG_CNT::ONE)) { in Flush() 83 auto streamEntity = NClass::GetEntityOf<StreamEntity>(env, funcArg.GetThisVar()); in Flush() 111 NVal thisVar(env, funcArg.GetThisVar()); in Flush() 112 if (funcArg.GetArgc() == NARG_CNT::ZERO) { in Flush() 115 NVal cb(env, funcArg[NARG_POS::FIRST]); in Flush() 122 NFuncArg funcArg(en in ReadSync() 227 WriteExec(napi_env env, NFuncArg &funcArg, shared_ptr<FILE> fp) WriteExec() argument 298 ReadExec(napi_env env, NFuncArg &funcArg, shared_ptr<FILE> fp) ReadExec() argument [all...] |
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/class_stat_v9/ |
H A D | stat_n_exporter_v9.cpp | 43 NFuncArg funcArg(env, info); in CheckStatMode() 44 if (!funcArg.InitArgs(NARG_CNT::ZERO)) { in CheckStatMode() 49 auto statEntity = NClass::GetEntityOf<StatEntityV9>(env, funcArg.GetThisVar()); in CheckStatMode() 95 NFuncArg funcArg(env, info); in GetIno() 96 if (!funcArg.InitArgs(NARG_CNT::ZERO)) { in GetIno() 101 auto statEntity = NClass::GetEntityOf<StatEntityV9>(env, funcArg.GetThisVar()); in GetIno() 111 NFuncArg funcArg(env, info); in GetMode() 112 if (!funcArg.InitArgs(NARG_CNT::ZERO)) { in GetMode() 117 auto statEntity = NClass::GetEntityOf<StatEntityV9>(env, funcArg.GetThisVar()); in GetMode() 127 NFuncArg funcArg(en in GetUid() [all...] |
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_statfs/ |
H A D | statfs_n_exporter.cpp | 28 NFuncArg funcArg(env, info); in GetFrSizeSync() 29 if (!funcArg.InitArgs(NARG_CNT::ONE)) { in GetFrSizeSync() 36 tie(succ, path, std::ignore) = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8StringPath(); in GetFrSizeSync() 55 NFuncArg funcArg(env, info); in GetFrSize() 56 if (!funcArg.InitArgs(NARG_CNT::ONE, NARG_CNT::TWO)) { in GetFrSize() 63 tie(succ, path, std::ignore) = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8StringPath(); in GetFrSize() 89 NVal thisVar(env, funcArg.GetThisVar()); in GetFrSize() 90 if (funcArg.GetArgc() == NARG_CNT::ONE) { in GetFrSize() 94 NVal cb(env, funcArg[NARG_POS::SECOND]); in GetFrSize() 100 NFuncArg funcArg(en in GetBSizeSync() [all...] |
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/properties/ |
H A D | prop_n_exporter.cpp | 66 NFuncArg funcArg(env, info); in AccessSync() 67 if (!funcArg.InitArgs(NARG_CNT::ONE, NARG_CNT::TWO)) { in AccessSync() 72 auto [succ, path, ignore] = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8StringPath(); in AccessSync() 79 if (funcArg.GetArgc() == NARG_CNT::TWO) { in AccessSync() 80 tie(succ, mode) = NVal(env, funcArg[NARG_POS::SECOND]).ToInt32(mode); in AccessSync() 97 NFuncArg funcArg(env, info); in Access() 98 if (!funcArg.InitArgs(NARG_CNT::ONE, NARG_CNT::THREE)) { in Access() 103 auto [succ, path, ignore] = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8StringPath(); in Access() 110 if (funcArg.GetArgc() >= NARG_CNT::TWO) { in Access() 111 tie(succ, mode) = NVal(env, funcArg[NARG_PO in Access() [all...] |
H A D | ftruncate.cpp | 33 NFuncArg funcArg(env, info); in Sync() 34 if (!funcArg.InitArgs(NARG_CNT::ONE, NARG_CNT::TWO)) { in Sync() 39 auto [resGetFirstArg, fd] = NVal(env, funcArg[NARG_POS::FIRST]).ToInt32(); in Sync() 46 if (funcArg.GetArgc() == NARG_CNT::TWO) { in Sync() 48 tie(succ, len) = NVal(env, funcArg[NARG_POS::SECOND]).ToInt64(len); in Sync() 65 NFuncArg funcArg(env, info); in Async() 66 if (!funcArg.InitArgs(NARG_CNT::ONE, NARG_CNT::THREE)) { in Async() 71 auto [resGetFirstArg, fd] = NVal(env, funcArg[NARG_POS::FIRST]).ToInt32(); in Async() 78 if (funcArg.GetArgc() >= NARG_CNT::TWO) { in Async() 80 tie(resGetSecondArg, len) = NVal(env, funcArg[NARG_PO in Async() [all...] |
H A D | truncate.cpp | 29 NFuncArg funcArg(env, info); in Sync() 30 if (!funcArg.InitArgs(NARG_CNT::ONE, NARG_CNT::TWO)) { in Sync() 35 auto [resGetFirstArg, path, unused] = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8StringPath(); in Sync() 42 if (funcArg.GetArgc() == NARG_CNT::TWO) { in Sync() 44 tie(resGetSecondArg, len) = NVal(env, funcArg[NARG_POS::SECOND]).ToInt64(len); in Sync() 60 NFuncArg funcArg(env, info); in Async() 61 if (!funcArg.InitArgs(NARG_CNT::ONE, NARG_CNT::THREE)) { in Async() 66 auto [resGetFirstArg, path, unused] = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8StringPath(); in Async() 73 if (funcArg.GetArgc() >= NARG_CNT::TWO) { in Async() 75 tie(resGetSecondArg, len) = NVal(env, funcArg[NARG_PO in Async() [all...] |
H A D | truncate_v9.cpp | 55 NFuncArg funcArg(env, info); in Sync() 57 if (!funcArg.InitArgs(NARG_CNT::ONE, NARG_CNT::TWO)) { in Sync() 61 auto [succ, fileInfo] = ParseJsFile(env, funcArg[NARG_POS::FIRST]); in Sync() 66 if (funcArg.GetArgc() == NARG_CNT::TWO) { in Sync() 67 tie(succ, truncateLen) = NVal(env, funcArg[NARG_POS::SECOND]).ToInt32(); in Sync() 89 NFuncArg funcArg(env, info); in Async() 90 if (!funcArg.InitArgs(NARG_CNT::ONE, NARG_CNT::THREE)) { in Async() 94 auto [succ, fileInfo] = ParseJsFile(env, funcArg[NARG_POS::FIRST]); in Async() 99 if (funcArg.GetArgc() > NARG_CNT::ONE && NVal(env, funcArg[NARG_PO in Async() [all...] |
H A D | posix_fallocate.cpp | 30 static tuple<bool, int, int, int> GetPosixFallocateArg(napi_env env, const NFuncArg &funcArg) in GetPosixFallocateArg() argument 32 auto [resGetFirstArg, fd] = NVal(env, funcArg[NARG_POS::FIRST]).ToInt32(); in GetPosixFallocateArg() 38 auto [resGetSecondArg, offset] = NVal(env, funcArg[NARG_POS::SECOND]).ToInt32(); in GetPosixFallocateArg() 44 auto [resGetThirdArg, len] = NVal(env, funcArg[NARG_POS::THIRD]).ToInt32(); in GetPosixFallocateArg() 55 NFuncArg funcArg(env, info); in Sync() 56 if (!funcArg.InitArgs(NARG_CNT::THREE)) { in Sync() 61 auto [resGetPosixFallocateArg, fd, offset, len] = GetPosixFallocateArg(env, funcArg); in Sync() 77 NFuncArg funcArg(env, info); in Async() 78 if (!funcArg.InitArgs(NARG_CNT::THREE, NARG_CNT::FOUR)) { in Async() 83 auto [resGetPosixFallocateArg, fd, offset, len] = GetPosixFallocateArg(env, funcArg); in Async() [all...] |
H A D | lseek.cpp | 28 static tuple<bool, int, int, int> GetLseekArg(napi_env env, const NFuncArg &funcArg) in GetLseekArg() argument 30 auto [resGetFirstArg, fd] = NVal(env, funcArg[NARG_POS::FIRST]).ToInt32(); in GetLseekArg() 36 auto [resGetSecondArg, offset] = NVal(env, funcArg[NARG_POS::SECOND]).ToInt32(); in GetLseekArg() 42 auto [resGetThirdArg, whence] = NVal(env, funcArg[NARG_POS::THIRD]).ToInt32(); in GetLseekArg() 53 NFuncArg funcArg(env, info); in Sync() 54 if (!funcArg.InitArgs(NARG_CNT::THREE)) { in Sync() 59 auto [resGetLseekArg, fd, offset, whence] = GetLseekArg(env, funcArg); in Sync() 75 NFuncArg funcArg(env, info); in Async() 76 if (!funcArg.InitArgs(NARG_CNT::THREE, NARG_CNT::FOUR)) { in Async() 81 auto [resGetLseekArg, fd, offset, whence] = GetLseekArg(env, funcArg); in Async() [all...] |
H A D | open.cpp | 35 NFuncArg funcArg(env, info); in Sync() 36 if (!funcArg.InitArgs(NARG_CNT::ONE, NARG_CNT::THREE)) { in Sync() 43 tie(succ, path, ignore) = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8StringPath(); in Sync() 50 if (funcArg.GetArgc() >= NARG_CNT::TWO) { in Sync() 51 auto [succGetFlags, authFlags] = NVal(env, funcArg[NARG_POS::SECOND]).ToInt32(O_RDONLY); in Sync() 66 if (funcArg.GetArgc() != NARG_CNT::THREE) { in Sync() 73 tie(succ, mode) = NVal(env, funcArg.GetArg(NARG_POS::THIRD)).ToInt32(mode); in Sync() 107 static bool ParseFlags(napi_env env, const NFuncArg& funcArg, unsigned int& flags) in ParseFlags() argument 109 auto [succ, authFlags] = NVal(env, funcArg[NARG_POS::SECOND]).ToInt32(O_RDONLY); in ParseFlags() 121 NFuncArg funcArg(en in Async() [all...] |
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/class_stream/ |
H A D | stream_n_exporter.cpp | 43 NFuncArg funcArg(env, info); in ReadSync() 44 if (!funcArg.InitArgs(NARG_CNT::ONE, NARG_CNT::TWO)) { in ReadSync() 52 auto streamEntity = NClass::GetEntityOf<StreamEntity>(env, funcArg.GetThisVar()); in ReadSync() 64 CommonFunc::GetReadArg(env, funcArg[NARG_POS::FIRST], funcArg[NARG_POS::SECOND]); in ReadSync() 84 NFuncArg funcArg(env, info); in CloseSync() 85 if (!funcArg.InitArgs(NARG_CNT::ZERO)) { in CloseSync() 90 auto streamEntity = NClass::GetEntityOf<StreamEntity>(env, funcArg.GetThisVar()); in CloseSync() 96 (void)NClass::RemoveEntityOfFinal<StreamEntity>(env, funcArg.GetThisVar()); in CloseSync() 103 NFuncArg funcArg(en in WriteSync() [all...] |
/foundation/filemanagement/user_file_service/frameworks/js/napi/file_access_module/ |
H A D | napi_fileaccess_helper.cpp | 113 NFuncArg funcArg(env, info); in FileAccessHelperConstructor() 114 if (!funcArg.InitArgs(NARG_CNT::ONE, NARG_CNT::TWO)) { in FileAccessHelperConstructor() 117 napi_value thisVar = funcArg.GetThisVar(); in FileAccessHelperConstructor() 120 napi_status status = AbilityRuntime::IsStageContext(env, funcArg.GetArg(PARAM0), isStageMode); in FileAccessHelperConstructor() 125 auto context = OHOS::AbilityRuntime::GetStageModeContext(env, funcArg.GetArg(PARAM0)); in FileAccessHelperConstructor() 128 if (funcArg.GetArgc() == NARG_CNT::ONE) { in FileAccessHelperConstructor() 130 } else if (funcArg.GetArgc() == NARG_CNT::TWO) { in FileAccessHelperConstructor() 132 bool suss = UnwrapArrayWantFromJS(env, funcArg.GetArg(PARAM1), wants); in FileAccessHelperConstructor() 157 NFuncArg funcArg(env, info); in AcquireFileAccessHelperWrap() 158 if (!funcArg in AcquireFileAccessHelperWrap() 664 GetCopyArguments(napi_env env, NFuncArg &funcArg) GetCopyArguments() argument 703 GetCopyFileArguments(napi_env env, NFuncArg &funcArg) GetCopyFileArguments() argument 729 AddNAsyncWork(napi_env env, std::string procedureName, NFuncArg &funcArg, CallbackExec cbExec, CallbackComplete cbComplete) AddNAsyncWork() argument 795 AddCopyFileNAsyncWork(napi_env env, NFuncArg &funcArg, CallbackExec cbExec, CallbackComplete cbComplete) AddCopyFileNAsyncWork() argument 1167 parseRegisterObserverArgs(napi_env env, NFuncArg &funcArg, std::string &uri, bool ¬ifyForDescendants) parseRegisterObserverArgs() argument 1193 RegisterObserver(napi_env env, NFuncArg &funcArg, sptr<IFileAccessObserver> &observer) RegisterObserver() argument 1315 GetMoveItemArguments(napi_env env, NFuncArg &funcArg) GetMoveItemArguments() argument [all...] |
/foundation/filemanagement/storage_service/services/storage_manager/kits_impl/src/ |
H A D | storage_statistics_n_exporter.cpp | 45 NFuncArg funcArg(env, info); in GetTotalSizeOfVolume() 46 if (!funcArg.InitArgs((int)NARG_CNT::ONE, (int)NARG_CNT::TWO)) { in GetTotalSizeOfVolume() 53 tie(succ, uuid, std::ignore) = NVal(env, funcArg[(int)NARG_POS::FIRST]).ToUTF8String(); in GetTotalSizeOfVolume() 78 NVal thisVar(env, funcArg.GetThisVar()); in GetTotalSizeOfVolume() 79 if (funcArg.GetArgc() == (uint)NARG_CNT::ONE) { in GetTotalSizeOfVolume() 82 NVal cb(env, funcArg[(int)NARG_POS::SECOND]); in GetTotalSizeOfVolume() 94 NFuncArg funcArg(env, info); in GetFreeSizeOfVolume() 95 if (!funcArg.InitArgs((int)NARG_CNT::ONE, (int)NARG_CNT::TWO)) { in GetFreeSizeOfVolume() 102 tie(succ, uuid, std::ignore) = NVal(env, funcArg[(int)NARG_POS::FIRST]).ToUTF8String(); in GetFreeSizeOfVolume() 126 NVal thisVar(env, funcArg in GetFreeSizeOfVolume() [all...] |
H A D | volumemanager_n_exporter.cpp | 37 bool CheckVolumes(napi_env env, napi_callback_info info, NFuncArg& funcArg) in CheckVolumes() argument 43 if (!funcArg.InitArgs((int)NARG_CNT::ZERO, (int)NARG_CNT::ONE)) { in CheckVolumes() 52 NFuncArg funcArg(env, info); in GetAllVolumes() 53 bool checkresult = CheckVolumes(env, info, funcArg); in GetAllVolumes() 93 NVal thisVar(env, funcArg.GetThisVar()); in GetAllVolumes() 94 if (funcArg.GetArgc() == (uint)NARG_CNT::ZERO) { in GetAllVolumes() 97 NVal cb(env, funcArg[(int)NARG_POS::FIRST]); in GetAllVolumes() 102 bool CheckMount(napi_env env, napi_callback_info info, NFuncArg& funcArg) in CheckMount() argument 108 if (!funcArg.InitArgs((int)NARG_CNT::ONE, (int)NARG_CNT::TWO)) { in CheckMount() 118 NFuncArg funcArg(en in Mount() [all...] |
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/class_stat/ |
H A D | stat_n_exporter.cpp | 40 NFuncArg funcArg(env, info); in CheckStatMode() 41 if (!funcArg.InitArgs(NARG_CNT::ZERO)) { in CheckStatMode() 46 auto statEntity = NClass::GetEntityOf<StatEntity>(env, funcArg.GetThisVar()); in CheckStatMode() 92 NFuncArg funcArg(env, info); in GetDev() 93 if (!funcArg.InitArgs(NARG_CNT::ZERO)) { in GetDev() 98 auto statEntity = NClass::GetEntityOf<StatEntity>(env, funcArg.GetThisVar()); in GetDev() 108 NFuncArg funcArg(env, info); in GetIno() 109 if (!funcArg.InitArgs(NARG_CNT::ZERO)) { in GetIno() 114 auto statEntity = NClass::GetEntityOf<StatEntity>(env, funcArg.GetThisVar()); in GetIno() 124 NFuncArg funcArg(en in GetMode() [all...] |
/foundation/filemanagement/app_file_service/interfaces/kits/js/file_uri/ |
H A D | file_uri_n_exporter.cpp | 35 NFuncArg funcArg(env, info); in Constructor() 36 if (!funcArg.InitArgs(NARG_CNT::ONE)) { in Constructor() 41 auto [succPath, path, ignore] = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8String(); in Constructor() 53 if (!NClass::SetEntityFor<FileUriEntity>(env, funcArg.GetThisVar(), move(fileuriEntity))) { in Constructor() 58 return funcArg.GetThisVar(); in Constructor() 63 NFuncArg funcArg(env, info); in UriToString() 64 if (!funcArg.InitArgs(NARG_CNT::ZERO)) { in UriToString() 69 auto fileuriEntity = NClass::GetEntityOf<FileUriEntity>(env, funcArg.GetThisVar()); in UriToString() 80 NFuncArg funcArg(env, info); in GetFileUriName() 81 if (!funcArg in GetFileUriName() [all...] |
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/napi/class_zip/ |
H A D | zip_n_exporter.cpp | 134 NapiFuncArg funcArg(env, info); in Constructor() 135 if (!funcArg.InitArgs(ArgumentCount::ZERO)) { in Constructor() 141 if (!NapiClass::SetEntityFor<ZipEntity>(env, funcArg.GetThisVar(), move(zipEntity))) { in Constructor() 145 return funcArg.GetThisVar(); in Constructor() 250 NapiFuncArg funcArg(env, info); in SetZStream() 251 if (!funcArg.InitArgs(ArgumentCount::ONE, ArgumentCount::TWO)) { in SetZStream() 256 bool succ = CommonFunc::SetZStreamValue(env, funcArg); in SetZStream() 270 NapiValue thisVar(env, funcArg.GetThisVar()); in SetZStream() 271 if (funcArg.GetArgc() == ArgumentCount::ONE) { in SetZStream() 280 NapiFuncArg funcArg(en in GetZStreamSync() [all...] |
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/napi/class_gzip/ |
H A D | gzip_n_exporter.cpp | 86 NapiFuncArg funcArg(env, info); in Constructor() 87 if (!funcArg.InitArgs(ArgumentCount::ZERO)) { in Constructor() 93 if (!NapiClass::SetEntityFor<GZipEntity>(env, funcArg.GetThisVar(), move(gzipEntity))) { in Constructor() 97 return funcArg.GetThisVar(); in Constructor() 161 NapiFuncArg funcArg(env, info); in GZDopen() 162 if (!funcArg.InitArgs(ArgumentCount::TWO, ArgumentCount::THREE)) { in GZDopen() 169 auto gzipEntity = NapiClass::GetEntityOf<GZipEntity>(env, funcArg.GetThisVar()); in GZDopen() 176 tie(succ, arg->fd, arg->mode) = CommonFunc::GetGZDOpenArg(env, funcArg); in GZDopen() 200 NapiValue thisVar(env, funcArg.GetThisVar()); in GZDopen() 201 if (funcArg in GZDopen() [all...] |
/foundation/filemanagement/dfs_service/interfaces/kits/js/cloudfilesync/ |
H A D | cloud_file_cache_napi.cpp | 65 NFuncArg funcArg(env, info); in Constructor() 66 if (!funcArg.InitArgs(NARG_CNT::ZERO)) { in Constructor() 73 if (!NClass::SetEntityFor<FileCacheEntity>(env, funcArg.GetThisVar(), move(fileCacheEntity))) { in Constructor() 78 return funcArg.GetThisVar(); in Constructor() 104 NFuncArg funcArg(env, info); in CleanCloudFileCache() 106 if (!funcArg.InitArgs(NARG_CNT::ONE)) { in CleanCloudFileCache() 111 auto [succ, uri, ignore] = NVal(env, funcArg[(int)NARG_POS::FIRST]).ToUTF8String(); in CleanCloudFileCache() 143 NFuncArg funcArg(env, info); in StartFileCache() 144 if (!funcArg.InitArgs(NARG_CNT::ONE, NARG_CNT::TWO)) { in StartFileCache() 149 auto [succUri, uri, ignore] = NVal(env, funcArg[NARG_PO in StartFileCache() [all...] |
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_securitylabel/ |
H A D | securitylabel_n_exporter.cpp | 32 NFuncArg funcArg(env, info); in SetSecurityLabel() 33 if (!funcArg.InitArgs(static_cast<int>(NARG_CNT::TWO), static_cast<int>(NARG_CNT::THREE))) { in SetSecurityLabel() 42 tie(succ, path, std::ignore) = NVal(env, funcArg[static_cast<int>(NARG_POS::FIRST)]).ToUTF8StringPath(); in SetSecurityLabel() 48 tie(succ, dataLevel, std::ignore) = NVal(env, funcArg[static_cast<int>(NARG_POS::SECOND)]).ToUTF8String(); in SetSecurityLabel() 74 NVal thisVar(env, funcArg.GetThisVar()); in SetSecurityLabel() 75 if (funcArg.GetArgc() == static_cast<size_t>(NARG_CNT::TWO)) { in SetSecurityLabel() 78 NVal cb(env, funcArg[static_cast<int>(NARG_POS::THIRD)]); in SetSecurityLabel() 85 NFuncArg funcArg(env, info); in SetSecurityLabelSync() 86 if (!funcArg.InitArgs(static_cast<int>(NARG_CNT::TWO), static_cast<int>(NARG_CNT::THREE))) { in SetSecurityLabelSync() 95 tie(succ, path, std::ignore) = NVal(env, funcArg[static_cas in SetSecurityLabelSync() [all...] |
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/class_watcher/ |
H A D | watcher_n_exporter.cpp | 39 NFuncArg funcArg(env, info); in Constructor() 40 if (!funcArg.InitArgs(NARG_CNT::ZERO)) { in Constructor() 46 if (!NClass::SetEntityFor<WatcherEntity>(env, funcArg.GetThisVar(), move(watcherEntity))) { in Constructor() 51 return funcArg.GetThisVar(); in Constructor() 56 NFuncArg funcArg(env, info); in StopSync() 57 if (!funcArg.InitArgs(NARG_CNT::ZERO)) { in StopSync() 62 auto watchEntity = NClass::GetEntityOf<WatcherEntity>(env, funcArg.GetThisVar()); in StopSync() 74 NFuncArg funcArg(env, info); in Stop() 75 if (!funcArg.InitArgs(NARG_CNT::ZERO, NARG_CNT::ONE)) { in Stop() 80 auto watchEntity = NClass::GetEntityOf<WatcherEntity>(env, funcArg in Stop() [all...] |