/commonlibrary/utils_lite/js/builtin/filekit/include/ |
D | nativeapi_fs.h | 29 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/ |
D | nativeapi_kv.h | 28 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/ |
D | nativeapi_fs.cpp | 71 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/ |
D | nativeapi_kv.cpp | 101 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/ |
D | nativeapi_deviceinfo.cpp | 30 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/ |
D | nativeapi_common.cpp | 77 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/ |
D | nativeapi_deviceinfo.h | 28 static JSIValue GetDeviceInfo(const JSIValue thisVal, const JSIValue* args, uint8_t argsNum);
|
/commonlibrary/utils_lite/js/builtin/common/include/ |
D | nativeapi_common.h | 33 static bool IsValidJSIValue(const JSIValue* args, uint8_t argsNum);
|
/commonlibrary/ets_utils/js_concurrent_module/taskpool/ |
D | worker.cpp | 321 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()
|