Home
last modified time | relevance | path

Searched refs:errCodePtr (Results 1 - 7 of 7) sorted by relevance

/foundation/multimedia/ringtone_library/services/utils/include/
H A Dringtone_file_utils.h68 EXPORT static bool Mkdir(const std::string &subStr, std::shared_ptr<int> errCodePtr = nullptr);
69 EXPORT static bool IsDirectory(const std::string &dirName, std::shared_ptr<int> errCodePtr = nullptr);
70 EXPORT static bool CreateDirectory(const std::string &dirPath, std::shared_ptr<int> errCodePtr = nullptr);
/foundation/multimedia/ringtone_library/test/unittest/ringtone_utils_test/src/
H A Dringtone_file_utils_test.cpp188 std::shared_ptr<int> errCodePtr; in HWTEST_F() local
196 std::shared_ptr<int> errCodePtr; in HWTEST_F() local
197 auto ret = RingtoneFileUtils::IsDirectory(path, errCodePtr); in HWTEST_F()
200 ret = RingtoneFileUtils::IsDirectory(pathDir, errCodePtr); in HWTEST_F()
/foundation/multimedia/ringtone_library/services/utils/src/
H A Dringtone_file_utils.cpp223 bool RingtoneFileUtils::Mkdir(const string &subStr, shared_ptr<int> errCodePtr) in Mkdir() argument
227 if (errCodePtr != nullptr) { in Mkdir()
228 *errCodePtr = errno; in Mkdir()
238 bool RingtoneFileUtils::IsDirectory(const string &dirName, shared_ptr<int> errCodePtr) in IsDirectory() argument
246 } else if (errCodePtr != nullptr) { in IsDirectory()
247 *errCodePtr = errno; in IsDirectory()
254 bool RingtoneFileUtils::CreateDirectory(const string &dirPath, shared_ptr<int> errCodePtr) in CreateDirectory() argument
266 if (!IsDirectory(subStr, errCodePtr)) { in CreateDirectory()
267 if (!Mkdir(subStr, errCodePtr)) { in CreateDirectory()
/foundation/window/window_manager/interfaces/kits/napi/window_runtime/window_napi/
H A Djs_window.cpp1525 std::shared_ptr<WmErrorCode> errCodePtr = std::make_shared<WmErrorCode>(WmErrorCode::WM_OK); in SetMoveWindowToAsyncTask() local
1526 execute = [weakToken, errCodePtr, x, y] { in SetMoveWindowToAsyncTask()
1527 if (errCodePtr == nullptr) { in SetMoveWindowToAsyncTask()
1530 if (*errCodePtr != WmErrorCode::WM_OK) { in SetMoveWindowToAsyncTask()
1536 *errCodePtr = WmErrorCode::WM_ERROR_STATE_ABNORMALLY; in SetMoveWindowToAsyncTask()
1539 *errCodePtr = WM_JS_TO_ERROR_CODE_MAP.at(weakWindow->MoveToAsync(x, y)); in SetMoveWindowToAsyncTask()
1541 weakWindow->GetWindowId(), weakWindow->GetWindowName().c_str(), *errCodePtr); in SetMoveWindowToAsyncTask()
1543 complete = [weakToken, errCodePtr](napi_env env, NapiAsyncTask& task, int32_t status) { in SetMoveWindowToAsyncTask()
1544 if (errCodePtr == nullptr) { in SetMoveWindowToAsyncTask()
1548 if (*errCodePtr in SetMoveWindowToAsyncTask()
1712 std::shared_ptr<WmErrorCode> errCodePtr = std::make_shared<WmErrorCode>(WmErrorCode::WM_OK); SetResizeWindowAsyncTask() local
2162 std::shared_ptr<WmErrorCode> errCodePtr = std::make_shared<WmErrorCode>(WmErrorCode::WM_OK); OnSetDialogBackGestureEnabled() local
2628 SetSystemBarEnableTask(NapiAsyncTask::ExecuteCallback& execute, NapiAsyncTask::CompleteCallback& complete, wptr<Window> weakToken, std::map<WindowType, SystemBarProperty>& systemBarProperties, std::map<WindowType, SystemBarPropertyFlag>& systemBarPropertyFlags, std::shared_ptr<WMError> errCodePtr) SetSystemBarEnableTask() argument
2669 std::shared_ptr<WMError> errCodePtr = std::make_shared<WMError>(WMError::WM_OK); OnSetSystemBarEnable() local
3664 std::shared_ptr<WmErrorCode> errCodePtr = std::make_shared<WmErrorCode>(WmErrorCode::WM_OK); OnSetTopmost() local
3722 std::shared_ptr<WmErrorCode> errCodePtr = std::make_shared<WmErrorCode>(WmErrorCode::WM_OK); OnSetWindowTopmost() local
3826 std::shared_ptr<WmErrorCode> errCodePtr = std::make_shared<WmErrorCode>(WmErrorCode::WM_OK); OnSetWindowKeepScreenOn() local
5618 std::shared_ptr<WmErrorCode> errCodePtr = std::make_shared<WmErrorCode>(WmErrorCode::WM_OK); OnSetHandwritingFlag() local
5985 std::shared_ptr<WmErrorCode> errCodePtr = std::make_shared<WmErrorCode>(WmErrorCode::WM_OK); OnEnableDrag() local
6669 std::shared_ptr<WmErrorCode> errCodePtr = std::make_shared<WmErrorCode>(WmErrorCode::WM_OK); SetRequestFocusTask() local
[all...]
H A Djs_window.h335 std::shared_ptr<WmErrorCode> &errCodePtr) const;
336 NapiAsyncTask::CompleteCallback GetEnableDragCompleteCallback(const std::shared_ptr<WmErrorCode>& errCodePtr) const;
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/
H A Dmedia_file_utils.cpp262 bool MediaFileUtils::Mkdir(const string &subStr, shared_ptr<int> errCodePtr) in Mkdir() argument
266 if (errCodePtr != nullptr) { in Mkdir()
267 *errCodePtr = errno; in Mkdir()
281 bool MediaFileUtils::CreateDirectory(const string &dirPath, shared_ptr<int> errCodePtr) in CreateDirectory() argument
298 if (!IsDirectory(subStr, errCodePtr)) { in CreateDirectory()
299 if (!Mkdir(subStr, errCodePtr)) { in CreateDirectory()
374 bool MediaFileUtils::IsDirectory(const string &dirName, shared_ptr<int> errCodePtr) in IsDirectory() argument
382 } else if (errCodePtr != nullptr) { in IsDirectory()
383 *errCodePtr = errno; in IsDirectory()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/include/
H A Dmedia_file_utils.h94 EXPORT static bool IsDirectory(const std::string &dirName, std::shared_ptr<int> errCodePtr = nullptr);
104 EXPORT static bool CreateDirectory(const std::string &dirPath, std::shared_ptr<int> errCodePtr = nullptr);
186 static bool Mkdir(const std::string &subStr, std::shared_ptr<int> errCodePtr);

Completed in 13 milliseconds