Home
last modified time | relevance | path

Searched refs:CommonFunc (Results 1 - 25 of 95) sorted by relevance

1234

/foundation/arkui/ace_engine/frameworks/core/components/swiper/
H A Dswiper_controller.h26 using CommonFunc = std::function<void()>;
69 void SetShowPrevImpl(const CommonFunc& showPrevImpl) in SetShowPrevImpl()
81 void SetShowNextImpl(const CommonFunc& showNextImpl) in SetShowNextImpl()
105 void SetFinishImpl(const CommonFunc& finishImpl) in SetFinishImpl()
110 void SetFinishCallback(const CommonFunc& onFinish) in SetFinishCallback()
115 const CommonFunc& GetFinishCallback() const in GetFinishCallback()
125 void SetTabBarFinishCallback(const CommonFunc& onTabBarFinish) in SetTabBarFinishCallback()
130 const CommonFunc& GetTabBarFinishCallback() const in GetTabBarFinishCallback()
135 void SetRemoveTabBarEventCallback(const CommonFunc& removeTabBarEventCallback) in SetRemoveTabBarEventCallback()
140 const CommonFunc
[all...]
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/shortcut_manager/
H A Dshortcut_manager.cpp41 auto iBundleMgr = CommonFunc::GetBundleMgr(); in InnerAddDesktopShortcutInfo()
58 asyncCallbackInfo->err = CommonFunc::ConvertErrCode(asyncCallbackInfo->err); in AddDesktopShortcutInfoExec()
77 CommonFunc::NapiReturnDeferred<AddDesktopShortcutInfoCallbackInfo>(env, asyncCallbackInfo, result, ARGS_SIZE_ONE); in AddDesktopShortcutInfoComplete()
96 if (!CommonFunc::ParseShortCutInfo(env, args[ARGS_POS_ZERO], asyncCallbackInfo->shortcutInfo) || in AddDesktopShortcutInfo()
97 !CommonFunc::CheckShortcutInfo(asyncCallbackInfo->shortcutInfo)) { in AddDesktopShortcutInfo()
102 if (!CommonFunc::ParseInt(env, args[ARGS_POS_ONE], asyncCallbackInfo->userId)) { in AddDesktopShortcutInfo()
112 auto promise = CommonFunc::AsyncCallNativeMethod<AddDesktopShortcutInfoCallbackInfo>( in AddDesktopShortcutInfo()
121 auto iBundleMgr = CommonFunc::GetBundleMgr(); in InnerDeleteDesktopShortcutInfo()
138 asyncCallbackInfo->err = CommonFunc::ConvertErrCode(asyncCallbackInfo->err); in DeleteDesktopShortcutInfoExec()
157 CommonFunc in DeleteDesktopShortcutInfoComplete()
[all...]
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/bundle_manager/
H A Dbundle_manager_sync.cpp77 std::string bundleName = CommonFunc::GetStringFromNAPI(env, prop); in ParseWantWithParameter()
81 std::string moduleName = CommonFunc::GetStringFromNAPI(env, prop); in ParseWantWithParameter()
85 std::string abilityName = CommonFunc::GetStringFromNAPI(env, prop); in ParseWantWithParameter()
155 if (!CommonFunc::ParseString(env, args[ARGS_POS_ZERO], bundleName)) { in SetApplicationEnabledSync()
160 if (!CommonFunc::ParseBool(env, args[ARGS_POS_ONE], isEnable)) { in SetApplicationEnabledSync()
165 auto iBundleMgr = CommonFunc::GetBundleMgr(); in SetApplicationEnabledSync()
171 ErrCode ret = CommonFunc::ConvertErrCode(iBundleMgr->SetApplicationEnabled(bundleName, isEnable)); in SetApplicationEnabledSync()
196 if (!CommonFunc::ParseAbilityInfo(env, args[ARGS_POS_ZERO], abilityInfo)) { in SetAbilityEnabledSync()
201 if (!CommonFunc::ParseBool(env, args[ARGS_POS_ONE], isEnable)) { in SetAbilityEnabledSync()
206 auto iBundleMgr = CommonFunc in SetAbilityEnabledSync()
[all...]
H A Dbundle_manager.cpp176 auto iBundleMgr = CommonFunc::GetBundleMgr(); in InnerGetBundleArchiveInfo()
183 return CommonFunc::ConvertErrCode(ret); in InnerGetBundleArchiveInfo()
209 CommonFunc::ConvertBundleInfo(env, in GetBundleArchiveInfoComplete()
215 CommonFunc::NapiReturnDeferred<GetBundleArchiveInfoCallbackInfo>(env, asyncCallbackInfo, result, ARGS_SIZE_TWO); in GetBundleArchiveInfoComplete()
237 if (!CommonFunc::ParseString(env, args[i], asyncCallbackInfo->hapFilePath)) { in GetBundleArchiveInfo()
243 CommonFunc::ParseInt(env, args[i], asyncCallbackInfo->flags); in GetBundleArchiveInfo()
256 auto promise = CommonFunc::AsyncCallNativeMethod<GetBundleArchiveInfoCallbackInfo>( in GetBundleArchiveInfo()
265 auto iBundleMgr = CommonFunc::GetBundleMgr(); in InnerGetAppCloneIdentity()
272 return CommonFunc::ConvertErrCode(ret); in InnerGetAppCloneIdentity()
278 auto iBundleMgr = CommonFunc in InnerGetApplicationInfo()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/indicator_common/
H A Dindicator_controller.h22 using CommonFunc = std::function<void()>;
36 void SetShowPrevImpl(const CommonFunc& showPrevImpl) in SetShowPrevImpl()
48 void SetShowNextImpl(const CommonFunc& showNextImpl) in SetShowNextImpl()
83 CommonFunc showPrevImpl_;
84 CommonFunc showNextImpl_;
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/launcher_bundle_manager/
H A Dlauncher_bundle_manager.cpp78 asyncCallbackInfo->err = CommonFunc::ConvertErrCode(asyncCallbackInfo->err); in GetLauncherAbilityInfoExec()
93 CommonFunc::ConvertLauncherAbilityInfos(env, asyncCallbackInfo->launcherAbilityInfos, result[ARGS_POS_ONE]); in GetLauncherAbilityInfoComplete()
99 CommonFunc::NapiReturnDeferred<GetLauncherAbilityCallbackInfo>(env, asyncCallbackInfo, result, ARGS_SIZE_TWO); in GetLauncherAbilityInfoComplete()
117 if (!CommonFunc::ParseString(env, args[ARGS_POS_ZERO], asyncCallbackInfo->bundleName)) { in GetLauncherAbilityInfo()
121 if (!CommonFunc::ParseInt(env, args[ARGS_POS_ONE], asyncCallbackInfo->userId)) { in GetLauncherAbilityInfo()
138 auto promise = CommonFunc::AsyncCallNativeMethod<GetLauncherAbilityCallbackInfo>( in GetLauncherAbilityInfo()
156 if (!CommonFunc::ParseString(env, args[ARGS_POS_ZERO], bundleName)) { in GetLauncherAbilityInfoSync()
160 if (!CommonFunc::ParseInt(env, args[ARGS_POS_ONE], userId)) { in GetLauncherAbilityInfoSync()
173 ErrCode ret = CommonFunc::ConvertErrCode(launcherService-> in GetLauncherAbilityInfoSync()
185 CommonFunc in GetLauncherAbilityInfoSync()
[all...]
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/app_control/
H A Djs_app_control.cpp53 auto bundleMgr = CommonFunc::GetBundleMgr(); in GetAppControlProxy()
55 APP_LOGE("CommonFunc::GetBundleMgr failed"); in GetAppControlProxy()
74 return CommonFunc::ConvertErrCode(ret); in InnerGetDisposedStatus()
85 return CommonFunc::ConvertErrCode(ret); in InnerSetDisposedStatus()
96 return CommonFunc::ConvertErrCode(ret); in InnerDeleteDisposedStatus()
128 CommonFunc::NapiReturnDeferred<DisposedStatus>(env, asyncCallbackInfo, result, ARGS_SIZE_ONE); in SetDisposedStatusComplete()
150 if (!CommonFunc::ParseString(env, args[i], asyncCallbackInfo->appId)) { in SetDisposedStatus()
157 if (!CommonFunc::ParseWantWithoutVerification(env, args[i], asyncCallbackInfo->want)) { in SetDisposedStatus()
174 auto promise = CommonFunc::AsyncCallNativeMethod<DisposedStatus>( in SetDisposedStatus()
193 if (!CommonFunc in SetDisposedStatusSync()
[all...]
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/overlay/
H A Djs_app_overlay.cpp50 auto bundleMgr = CommonFunc::GetBundleMgr(); in GetOverlayMgrProxy()
52 APP_LOGE("CommonFunc::GetBundleMgr failed"); in GetOverlayMgrProxy()
77 return CommonFunc::ConvertErrCode(ret); in InnerSetOverlayEnabledExec()
108 CommonFunc::NapiReturnDeferred<OverlayCallbackInfo>(env, overlayCallbackInfo, result, ARGS_SIZE_ONE); in SetOverlayEnabledComplete()
130 if (!CommonFunc::ParseString(env, args[i], overlayCallbackInfo->moduleName) || in SetOverlayEnabled()
137 if (!CommonFunc::ParseBool(env, args[ARGS_POS_ONE], overlayCallbackInfo->isEnabled)) { in SetOverlayEnabled()
155 auto promise = CommonFunc::AsyncCallNativeMethod<OverlayCallbackInfo>( in SetOverlayEnabled()
181 if (!CommonFunc::ParseString(env, args[i], overlayCallbackInfo->bundleName) || in SetOverlayEnabledByBundleName()
188 if (!CommonFunc::ParseString(env, args[i], overlayCallbackInfo->moduleName) || in SetOverlayEnabledByBundleName()
195 if (!CommonFunc in SetOverlayEnabledByBundleName()
[all...]
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/
H A Dstat.cpp88 std::unique_ptr<uv_fs_t, decltype(CommonFunc::fs_req_cleanup)*> stat_req = { in Sync()
89 new (std::nothrow) uv_fs_t, CommonFunc::fs_req_cleanup }; in Sync()
107 auto stat = CommonFunc::InstantiateStat(env, stat_req->statbuf, arg).val_; in Sync()
109 auto stat = CommonFunc::InstantiateStat(env, stat_req->statbuf).val_; in Sync()
133 std::unique_ptr<uv_fs_t, decltype(CommonFunc::fs_req_cleanup)*> stat_req = { in Async()
134 new (std::nothrow) uv_fs_t, CommonFunc::fs_req_cleanup }; in Async()
154 return CommonFunc::InstantiateStat(env, arg->stat_, arg->fileInfo_); in Async()
156 return CommonFunc::InstantiateStat(env, arg->stat_); in Async()
H A Dlstat.cpp46 std::unique_ptr<uv_fs_t, decltype(CommonFunc::fs_req_cleanup)*> lstat_req = { in Sync()
47 new (std::nothrow) uv_fs_t, CommonFunc::fs_req_cleanup }; in Sync()
60 auto stat = CommonFunc::InstantiateStat(env, lstat_req->statbuf).val_; in Sync()
66 std::unique_ptr<uv_fs_t, decltype(CommonFunc::fs_req_cleanup)*> lstat_req = { in LstatExec()
67 new (std::nothrow) uv_fs_t, CommonFunc::fs_req_cleanup }; in LstatExec()
113 auto stat = CommonFunc::InstantiateStat(env, arg->stat_); in Async()
H A Dutimes.cpp52 std::unique_ptr<uv_fs_t, decltype(CommonFunc::fs_req_cleanup)*> stat_req = { in Sync()
53 new (std::nothrow) uv_fs_t, CommonFunc::fs_req_cleanup }; in Sync()
67 std::unique_ptr<uv_fs_t, decltype(CommonFunc::fs_req_cleanup)*> utimes_req = { in Sync()
68 new uv_fs_t, CommonFunc::fs_req_cleanup }; in Sync()
H A Ddup.cpp50 unique_ptr<uv_fs_t, decltype(CommonFunc::fs_req_cleanup)*> readlink_req = { in Sync()
51 new (std::nothrow) uv_fs_t, CommonFunc::fs_req_cleanup }; in Sync()
64 return CommonFunc::InstantiateFile(env, dstFd, string(static_cast<const char *>(readlink_req->ptr)), false).val_; in Sync()
H A Dmkdtemp.cpp45 std::unique_ptr<uv_fs_t, decltype(CommonFunc::fs_req_cleanup)*> mkdtemp_req = { in Sync()
46 new uv_fs_t, CommonFunc::fs_req_cleanup }; in Sync()
64 std::unique_ptr<uv_fs_t, decltype(CommonFunc::fs_req_cleanup)*> mkdtemp_req = { in MkdTempExec()
65 new uv_fs_t, CommonFunc::fs_req_cleanup }; in MkdTempExec()
H A Dfdatasync.cpp47 std::unique_ptr<uv_fs_t, decltype(CommonFunc::fs_req_cleanup)*> fdatasync_req = { in Sync()
48 new uv_fs_t, CommonFunc::fs_req_cleanup }; in Sync()
81 std::unique_ptr<uv_fs_t, decltype(CommonFunc::fs_req_cleanup)*> fdatasync_req = { in Async()
82 new uv_fs_t, CommonFunc::fs_req_cleanup }; in Async()
H A Dfsync.cpp45 std::unique_ptr<uv_fs_t, decltype(CommonFunc::fs_req_cleanup)*> fsync_req = { in Sync()
46 new uv_fs_t, CommonFunc::fs_req_cleanup }; in Sync()
78 std::unique_ptr<uv_fs_t, decltype(CommonFunc::fs_req_cleanup)*> fsync_req = { in Async()
79 new uv_fs_t, CommonFunc::fs_req_cleanup }; in Async()
H A Dsymlink.cpp63 std::unique_ptr<uv_fs_t, decltype(CommonFunc::fs_req_cleanup)*> symlink_req = { in Sync()
64 new uv_fs_t, CommonFunc::fs_req_cleanup }; in Sync()
97 std::unique_ptr<uv_fs_t, decltype(CommonFunc::fs_req_cleanup)*> symlink_req = { in Async()
98 new uv_fs_t, CommonFunc::fs_req_cleanup }; in Async()
/foundation/filemanagement/file_api/interfaces/kits/cj/src/
H A DrandomAccessFile_impl.cpp33 std::unique_ptr<uv_fs_t, decltype(CommonFunc::FsReqCleanup)*> write_req = { in DoWriteRAF()
34 new (std::nothrow) uv_fs_t, CommonFunc::FsReqCleanup }; in DoWriteRAF()
46 std::unique_ptr<uv_fs_t, decltype(CommonFunc::FsReqCleanup)*> read_req = { in DoReadRAF()
47 new (std::nothrow) uv_fs_t, CommonFunc::FsReqCleanup }; in DoReadRAF()
85 std::unique_ptr<uv_fs_t, decltype(CommonFunc::FsReqCleanup)*> close_req = { in CloseSync()
86 new (std::nothrow) uv_fs_t, CommonFunc::FsReqCleanup }; in CloseSync()
H A Dfile_fs_impl.cpp73 std::unique_ptr<uv_fs_t, decltype(CommonFunc::FsReqCleanup)*> stat_req = { in GetUvStat()
74 new (std::nothrow) uv_fs_t, CommonFunc::FsReqCleanup }; in GetUvStat()
111 std::unique_ptr<uv_fs_t, decltype(CommonFunc::FsReqCleanup)*> stat_req = { in GetFsAccess()
112 new (std::nothrow) uv_fs_t, CommonFunc::FsReqCleanup }; in GetFsAccess()
212 std::unique_ptr<uv_fs_t, decltype(CommonFunc::FsReqCleanup)*> lstat_req = { in Lstat()
213 new (std::nothrow) uv_fs_t, CommonFunc::FsReqCleanup }; in Lstat()
245 CommonFunc::ConvertCjFlags(flags); in CreateRandomAccessFileSync()
246 std::unique_ptr<uv_fs_t, decltype(CommonFunc::FsReqCleanup)*> open_req = { in CreateRandomAccessFileSync()
247 new (std::nothrow) uv_fs_t, CommonFunc::FsReqCleanup }; in CreateRandomAccessFileSync()
316 std::unique_ptr<uv_fs_t, decltype(CommonFunc in Mkdir()
[all...]
H A Dutils.cpp21 unsigned int CommonFunc::ConvertCjFlags(unsigned int &flags) in ConvertCjFlags()
39 void CommonFunc::FsReqCleanup(uv_fs_t* req) in FsReqCleanup()
48 string CommonFunc::GetModeFromFlags(unsigned int flags) in GetModeFromFlags()
H A Dfsync.cpp31 std::unique_ptr<uv_fs_t, decltype(CommonFunc::FsReqCleanup)*> fsync_req = { in Fsync()
32 new (std::nothrow) uv_fs_t, CommonFunc::FsReqCleanup }; in Fsync()
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/napi/common/
H A Dcommon_func.cpp44 tuple<bool, int64_t, void *, size_t> CommonFunc::GetAdler32Arg(napi_env env, const NapiFuncArg &funcArg) in GetAdler32Arg()
70 tuple<bool, int64_t, void *, size_t> CommonFunc::GetCrc64Arg(napi_env env, const NapiFuncArg &funcArg) in GetCrc64Arg()
96 tuple<bool, unsigned long, unsigned long, int64_t> CommonFunc::GetAdler32CombineArg( in GetAdler32CombineArg()
146 bool CommonFunc::SetZStreamValue(napi_env env, const NapiFuncArg &funcArg) in SetZStreamValue()
158 tie(succ, zs, hasZStreamMember) = CommonFunc::GetZstreamArg(env, funcArg[ArgumentPosition::FIRST]); in SetZStreamValue()
255 std::tuple<bool, z_stream, HasZStreamMember> CommonFunc::GetZstreamArg(napi_env env, napi_value zstream) in GetZstreamArg()
408 std::tuple<bool, gz_header> CommonFunc::GetGZHeaderArg(napi_env env, napi_value argGZheader) in GetGZHeaderArg()
469 std::tuple<bool, z_stream, int32_t> CommonFunc::GetInflateInitArg(napi_env env, const NapiFuncArg &funcArg) in GetInflateInitArg()
494 std::tuple<bool, z_stream, int32_t> CommonFunc::GetDeflateInitArg(napi_env env, const NapiFuncArg &funcArg) in GetDeflateInitArg()
519 std::tuple<bool, z_stream, int32_t, int32_t, int32_t, int32_t, int32_t> CommonFunc
[all...]
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/installer/
H A Dinstaller.cpp131 auto iBundleMgr = CommonFunc::GetBundleMgr(); in GetBundleInstallerCompleted()
157 napi_value callback = CommonFunc::WrapVoidToJS(env); in GetBundleInstallerCompleted()
159 napi_value undefined = CommonFunc::WrapVoidToJS(env); in GetBundleInstallerCompleted()
161 napi_value callResult = CommonFunc::WrapVoidToJS(env); in GetBundleInstallerCompleted()
203 napi_value promise = CommonFunc::AsyncCallNativeMethod( in GetBundleInstaller()
220 auto iBundleMgr = CommonFunc::GetBundleMgr(); in GetBundleInstallerSync()
438 bool ret = CommonFunc::ParseStringPropertyFromObject(env, args, MODULE_NAME, true, key); in ParseHashParam()
446 ret = CommonFunc::ParseStringPropertyFromObject(env, args, HASH_VALUE, true, value); in ParseHashParam()
459 bool res = CommonFunc::ParsePropertyArray(env, args, HASH_PARAMS, valueVec); in ParseHashParams()
487 bool ret = CommonFunc in ParseVerifyCodeParam()
[all...]
/foundation/bundlemanager/bundle_framework/interfaces/kits/cj/src/
H A Dbundle_manager.cpp37 auto iBundleMgr = AppExecFwk::CommonFunc::GetBundleMgr(); in GetBundleInfoForSelf()
45 auto verifyManager = AppExecFwk::CommonFunc::GetVerifyManager(); in VerifyAbc()
55 return AppExecFwk::CommonFunc::ConvertErrCode(ret); in VerifyAbc()
120 auto naBundleMgr = AppExecFwk::CommonFunc::GetBundleMgr(); in GetProfileByExtensionAbility()
130 ErrCode ret = AppExecFwk::CommonFunc::ConvertErrCode( in GetProfileByExtensionAbility()
211 auto iBundleMgr = AppExecFwk::CommonFunc::GetBundleMgr(); in GetProfileByAbility()
220 ErrCode ret = AppExecFwk::CommonFunc::ConvertErrCode(iBundleMgr->GetBundleInfoForSelf(getAbilityFlag, bundleInfo)); in GetProfileByAbility()
243 auto iBundleMgr = AppExecFwk::CommonFunc::GetBundleMgr(); in InnerCanOpenLink()
249 code = AppExecFwk::CommonFunc::ConvertErrCode( in InnerCanOpenLink()
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/bundle_resource/
H A Dbundle_resource.cpp238 return CommonFunc::ConvertErrCode(ret); in InnerGetBundleResourceInfo()
251 if (!CommonFunc::ParseString(env, args[ARGS_POS_ZERO], bundleName) || bundleName.empty()) { in GetBundleResourceInfo()
258 if (!CommonFunc::ParseInt(env, args[ARGS_POS_ONE], flags)) { in GetBundleResourceInfo()
267 if (!CommonFunc::ParseInt(env, args[ARGS_POS_TWO], appIndex)) { in GetBundleResourceInfo()
301 return CommonFunc::ConvertErrCode(ret); in InnerGetLauncherAbilityResourceInfo()
314 if (!CommonFunc::ParseString(env, args[ARGS_POS_ZERO], bundleName) || bundleName.empty()) { in GetLauncherAbilityResourceInfo()
321 if (!CommonFunc::ParseInt(env, args[ARGS_POS_ONE], flags)) { in GetLauncherAbilityResourceInfo()
330 if (!CommonFunc::ParseInt(env, args[ARGS_POS_TWO], appIndex)) { in GetLauncherAbilityResourceInfo()
361 return CommonFunc::ConvertErrCode(ret); in InnerGetAllBundleResourceInfo()
392 CommonFunc in GetAllBundleResourceInfoComplete()
[all...]
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/
H A Dcommon_func.cpp158 unsigned int CommonFunc::ConvertJsFlags(unsigned int &flags) in ConvertJsFlags()
176 NVal CommonFunc::InstantiateStat(napi_env env, const uv_stat_t &buf, shared_ptr<FileInfo> fileInfo) in InstantiateStat()
198 NVal CommonFunc::InstantiateStat(napi_env env, const uv_stat_t &buf) in InstantiateStat()
219 NVal CommonFunc::InstantiateFile(napi_env env, int fd, const string &pathOrUri, bool isUri) in InstantiateFile()
254 NVal CommonFunc::InstantiateStream(napi_env env, shared_ptr<FILE> fp) in InstantiateStream()
274 void CommonFunc::fs_req_cleanup(uv_fs_t* req) in fs_req_cleanup()
283 string CommonFunc::GetModeFromFlags(unsigned int flags) in GetModeFromFlags()
299 bool CommonFunc::CheckPublicDirPath(const std::string &sandboxPath) in CheckPublicDirPath()
309 string CommonFunc::Decode(const std::string &uri) in Decode()
330 tuple<bool, unique_ptr<char[]>, unique_ptr<char[]>> CommonFunc
[all...]

Completed in 19 milliseconds

1234