Home
last modified time | relevance | path

Searched refs:argsNum (Results 1 – 9 of 9) sorted by relevance

/commonlibrary/utils_lite/js/builtin/filekit/include/
Dnativeapi_fs.h29 static JSIValue MoveFile(const JSIValue thisVal, const JSIValue* args, uint8_t argsNum);
30 static JSIValue CopyFile(const JSIValue thisVal, const JSIValue* args, uint8_t argsNum);
31 static JSIValue DeleteFile(const JSIValue thisVal, const JSIValue* args, uint8_t argsNum);
32 static JSIValue GetFileList(const JSIValue thisVal, const JSIValue* args, uint8_t argsNum);
33 static JSIValue GetFileInfo(const JSIValue thisVal, const JSIValue* args, uint8_t argsNum);
34 static JSIValue WriteTextFile(const JSIValue thisVal, const JSIValue* args, uint8_t argsNum);
35 static JSIValue ReadTextFile(const JSIValue thisVal, const JSIValue* args, uint8_t argsNum);
36 static JSIValue Access(const JSIValue thisVal, const JSIValue* args, uint8_t argsNum);
37 static JSIValue CreateDir(const JSIValue thisVal, const JSIValue* args, uint8_t argsNum);
38 static JSIValue RemoveDir(const JSIValue thisVal, const JSIValue* args, uint8_t argsNum);
[all …]
/commonlibrary/utils_lite/js/builtin/kvstorekit/include/
Dnativeapi_kv.h28 static JSIValue Get(const JSIValue thisVal, const JSIValue* args, uint8_t argsNum);
29 static JSIValue Set(const JSIValue thisVal, const JSIValue* args, uint8_t argsNum);
30 static JSIValue Delete(const JSIValue thisVal, const JSIValue* args, uint8_t argsNum);
31 static JSIValue Clear(const JSIValue thisVal, const JSIValue* args, uint8_t argsNum);
/commonlibrary/utils_lite/js/builtin/filekit/src/
Dnativeapi_fs.cpp71 uint8_t argsNum, AsyncWorkHandler ExecuteFunc, bool flag = false) in ExecuteAsyncWork() argument
74 if (!NativeapiCommon::IsValidJSIValue(args, argsNum)) { in ExecuteAsyncWork()
532 JSIValue NativeapiFs::MoveFile(const JSIValue thisVal, const JSIValue* args, uint8_t argsNum) in MoveFile() argument
534 return ExecuteAsyncWork(thisVal, args, argsNum, ExecuteCopyFile, true); in MoveFile()
537 JSIValue NativeapiFs::CopyFile(const JSIValue thisVal, const JSIValue* args, uint8_t argsNum) in CopyFile() argument
539 return ExecuteAsyncWork(thisVal, args, argsNum, ExecuteCopyFile); in CopyFile()
542 JSIValue NativeapiFs::DeleteFile(const JSIValue thisVal, const JSIValue* args, uint8_t argsNum) in DeleteFile() argument
544 return ExecuteAsyncWork(thisVal, args, argsNum, ExecuteDeleteAccess, true); in DeleteFile()
547 JSIValue NativeapiFs::GetFileList(const JSIValue thisVal, const JSIValue* args, uint8_t argsNum) in GetFileList() argument
549 return ExecuteAsyncWork(thisVal, args, argsNum, ExecuteGetFileList, true); in GetFileList()
[all …]
/commonlibrary/utils_lite/js/builtin/kvstorekit/src/
Dnativeapi_kv.cpp101 uint8_t argsNum, AsyncWorkHandler ExecuteFunc, bool flag) in ExecuteAsyncWork() argument
104 if (!NativeapiCommon::IsValidJSIValue(args, argsNum)) { in ExecuteAsyncWork()
263 JSIValue NativeapiKv::Get(const JSIValue thisVal, const JSIValue* args, uint8_t argsNum) in Get() argument
265 return ExecuteAsyncWork(thisVal, args, argsNum, ExecuteGet, false); in Get()
268 JSIValue NativeapiKv::Set(const JSIValue thisVal, const JSIValue* args, uint8_t argsNum) in Set() argument
270 return ExecuteAsyncWork(thisVal, args, argsNum, ExecuteSet, false); in Set()
273 JSIValue NativeapiKv::Delete(const JSIValue thisVal, const JSIValue* args, uint8_t argsNum) in Delete() argument
275 return ExecuteAsyncWork(thisVal, args, argsNum, ExecuteDelete, false); in Delete()
278 JSIValue NativeapiKv::Clear(const JSIValue thisVal, const JSIValue* args, uint8_t argsNum) in Clear() argument
286 if (NativeapiCommon::IsValidJSIValue(args, argsNum)) { in Clear()
/commonlibrary/utils_lite/js/builtin/deviceinfokit/src/
Dnativeapi_deviceinfo.cpp30 uint8_t argsNum, AsyncWorkHandler ExecuteFunc, bool flag = false) in ExecuteAsyncWork() argument
33 if (!NativeapiCommon::IsValidJSIValue(args, argsNum)) { in ExecuteAsyncWork()
82 …e NativeapiDeviceInfo::GetDeviceInfo(const JSIValue thisVal, const JSIValue* args, uint8_t argsNum) in GetDeviceInfo() argument
84 return ExecuteAsyncWork(thisVal, args, argsNum, ExecuteGetInfo); in GetDeviceInfo()
/commonlibrary/utils_lite/js/builtin/common/src/
Dnativeapi_common.cpp77 bool NativeapiCommon::IsValidJSIValue(const JSIValue* args, uint8_t argsNum) in IsValidJSIValue() argument
79 if ((args == nullptr) || (argsNum == 0) || JSI::ValueIsUndefined(args[0])) { in IsValidJSIValue()
/commonlibrary/utils_lite/js/builtin/deviceinfokit/include/
Dnativeapi_deviceinfo.h28 static JSIValue GetDeviceInfo(const JSIValue thisVal, const JSIValue* args, uint8_t argsNum);
/commonlibrary/utils_lite/js/builtin/common/include/
Dnativeapi_common.h33 static bool IsValidJSIValue(const JSIValue* args, uint8_t argsNum);
/commonlibrary/ets_utils/js_concurrent_module/taskpool/
Dworker.cpp321 uint32_t argsNum = NapiHelper::GetArrayLength(env, args); in PerformTask() local
322 napi_value argsArray[argsNum]; in PerformTask()
324 for (size_t i = 0; i < argsNum; i++) { in PerformTask()
331 napi_call_function(env, undefined, func, argsNum, argsArray, &result); in PerformTask()