/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/common/distributeddb/src/ |
H A D | distributed_rdb_tools.cpp | 143 char *errMsg = nullptr;
in SqliteExecSql() local 144 int errCode = sqlite3_exec(db, sql, nullptr, nullptr, &errMsg);
in SqliteExecSql() 145 if (errCode != SQLITE_OK && errMsg != nullptr) {
in SqliteExecSql() 146 MST_LOG("sqlite3_exec sql Failed(%s)", errMsg.c_str());
in SqliteExecSql() 149 sqlite3_free(errMsg);
in SqliteExecSql() 150 errMsg = nullptr;
in SqliteExecSql() 184 char *errMsg = nullptr;
in AlterTableAttributes() local 185 int errCode = sqlite3_exec(db, SQL_ADD_FIELD_TABLE1, nullptr, nullptr, &errMsg);
in AlterTableAttributes() 186 if (errCode != SQLITE_OK && errMsg != nullptr) {
in AlterTableAttributes() 187 MST_LOG("sqlite3_exec SQL_ADD_FIELD_TABLE1 Failed(%s)", errMsg in AlterTableAttributes() [all...] |
/foundation/distributedhardware/distributed_screen/common/test/unittest/src/ |
H A D | screen_common_test.cpp | 58 ReportSaFail(eventName, errCode, saId, errMsg); in HWTEST_F() 59 ReportSaFail(eventName, errCode, saId, errMsg); in HWTEST_F() 60 ReportRegisterFail(eventName, errCode, devId, dhId, errMsg); in HWTEST_F() 61 ReportUnRegisterFail(eventName, errCode, devId, dhId, errMsg); in HWTEST_F() 62 ReportOptFail(eventName, errCode, errMsg); in HWTEST_F() 63 ReportSaEvent(eventName, saId, errMsg); in HWTEST_F() 64 ReportRegisterScreenEvent(eventName, devId, dhId, errMsg); in HWTEST_F() 65 ReportUnRegisterScreenEvent(eventName, devId, dhId, errMsg); in HWTEST_F() 66 ReportScreenMirrorEvent(eventName, devId, dhId, errMsg); in HWTEST_F() 67 ReportSaFail(longEventName, errCode, saId, errMsg); in HWTEST_F() [all...] |
/foundation/distributedhardware/distributed_camera/common/src/utils/ |
H A D | dcamera_hisysevent_adapter.cpp | 40 void ReportDcamerInitFail(const std::string& eventName, int32_t errCode, const std::string& errMsg) in ReportDcamerInitFail() argument 46 "MSG", errMsg); in ReportDcamerInitFail() 48 DHLOGE("Write HiSysEvent error ret %{public}d, errMsg %{public}s.", ret, errMsg.c_str()); in ReportDcamerInitFail() 53 std::string version, const std::string& errMsg) in ReportRegisterCameraFail() 61 "MSG", errMsg); in ReportRegisterCameraFail() 63 DHLOGE("Write HiSysEvent error ret %d, devId %s, dhId %s, errMsg %s.", ret, GetAnonyString(devId).c_str(), in ReportRegisterCameraFail() 64 dhId.c_str(), errMsg.c_str()); in ReportRegisterCameraFail() 68 void ReportDcamerOptFail(const std::string& eventName, int32_t errCode, const std::string& errMsg) in ReportDcamerOptFail() argument 74 "MSG", errMsg); in ReportDcamerOptFail() 52 ReportRegisterCameraFail(const std::string& eventName, const std::string& devId, const std::string& dhId, std::string version, const std::string& errMsg) ReportRegisterCameraFail() argument 80 ReportSaEvent(const std::string& eventName, int32_t saId, const std::string& errMsg) ReportSaEvent() argument 92 ReportRegisterCameraEvent(const std::string& eventName, const std::string& devId, const std::string& dhId, std::string version, const std::string& errMsg) ReportRegisterCameraEvent() argument 107 ReportCameraOperaterEvent(const std::string& eventName, const std::string& devId, const std::string& dhId, const std::string& errMsg) ReportCameraOperaterEvent() argument 121 ReportStartCaptureEvent(const std::string& eventName, EventCaptureInfo& capture, const std::string& errMsg) ReportStartCaptureEvent() argument [all...] |
/foundation/distributedhardware/distributed_screen/common/src/ |
H A D | dscreen_hisysevent.cpp | 25 void ReportSaFail(const std::string &eventName, int32_t errCode, int32_t saId, const std::string &errMsg) in ReportSaFail() argument 33 "MSG", errMsg); in ReportSaFail() 40 const std::string &dhId, const std::string &errMsg) in ReportRegisterFail() 44 "DEVID", devId, "DHID", dhId, "MSG", errMsg); in ReportRegisterFail() 51 const std::string &dhId, const std::string &errMsg) in ReportUnRegisterFail() 60 "MSG", errMsg); in ReportUnRegisterFail() 66 void ReportOptFail(const std::string &eventName, int32_t errCode, const std::string &errMsg) in ReportOptFail() argument 73 "MSG", errMsg); in ReportOptFail() 79 void ReportSaEvent(const std::string &eventName, int32_t saId, const std::string &errMsg) in ReportSaEvent() argument 86 "MSG", errMsg); in ReportSaEvent() 39 ReportRegisterFail(const std::string &eventName, int32_t errCode, const std::string &devId, const std::string &dhId, const std::string &errMsg) ReportRegisterFail() argument 50 ReportUnRegisterFail(const std::string &eventName, int32_t errCode, const std::string &devId, const std::string &dhId, const std::string &errMsg) ReportUnRegisterFail() argument 92 ReportRegisterScreenEvent(const std::string &eventName, const std::string &devId, const std::string &dhId, const std::string &errMsg) ReportRegisterScreenEvent() argument 103 ReportUnRegisterScreenEvent(const std::string &eventName, const std::string &devId, const std::string &dhId, const std::string &errMsg) ReportUnRegisterScreenEvent() argument 114 ReportScreenMirrorEvent(const std::string &eventName, const std::string &devId, const std::string &dhId, const std::string &errMsg) ReportScreenMirrorEvent() argument [all...] |
/foundation/ability/ability_runtime/test/unittest/quick_fix/quick_fix_error_utils_test/ |
H A D | quick_fix_error_utils_test.cpp | 81 std::string errMsg; in HWTEST_F() local 84 errMsg = QuickFixErrorUtil::GetErrorMessage(ERR_QUICKFIX_PARAM_INVALID); in HWTEST_F() 85 EXPECT_EQ(errMsg, "Invalid input parameter."); in HWTEST_F() 88 errMsg = QuickFixErrorUtil::GetErrorMessage(QUICK_FIX_WRITE_PARCEL_FAILED); in HWTEST_F() 89 EXPECT_EQ(errMsg, "Internal error. Write parcel failed."); in HWTEST_F() 92 errMsg = QuickFixErrorUtil::GetErrorMessage(1000); // 1000 is not a defined error code in quick fix in HWTEST_F() 93 EXPECT_EQ(errMsg, "Internal error."); in HWTEST_F()
|
/foundation/distributedhardware/distributed_screen/common/include/ |
H A D | dscreen_hisysevent.h | 35 void ReportSaFail(const std::string &eventName, int32_t errCode, int32_t saId, const std::string &errMsg); 37 const std::string &dhId, const std::string &errMsg); 39 const std::string &dhId, const std::string &errMsg); 40 void ReportOptFail(const std::string &eventName, int32_t errCode, const std::string &errMsg); 42 void ReportSaEvent(const std::string &eventName, int32_t saId, const std::string &errMsg); 44 const std::string &errMsg); 46 const std::string &errMsg); 48 const std::string &errMsg);
|
/foundation/distributedhardware/distributed_camera/common/test/unittest/common/utils/ |
H A D | dcamera_hisysevent_adapter_test.cpp | 68 std::string errMsg = "dcamera_hisysevent_adapter_test_001"; in HWTEST_F() local 69 ReportDcamerInitFail(eventName, errCode, errMsg); in HWTEST_F() 86 std::string errMsg = "error"; in HWTEST_F() local 87 ReportRegisterCameraFail(eventName, devId, dhId, version, errMsg); in HWTEST_F() 104 std::string errMsg = "error"; in HWTEST_F() local 105 ReportRegisterCameraEvent(eventName, devId, dhId, version, errMsg); in HWTEST_F() 121 std::string errMsg = "error"; in HWTEST_F() local 122 ReportCameraOperaterEvent(eventName, devId, dhId, errMsg); in HWTEST_F() 142 std::string errMsg = "error"; in HWTEST_F() local 143 ReportStartCaptureEvent(eventName, capture, errMsg); in HWTEST_F() [all...] |
/foundation/distributedhardware/distributed_camera/common/include/utils/ |
H A D | dcamera_hisysevent_adapter.h | 54 void ReportDcamerInitFail(const std::string& eventName, int32_t errCode, const std::string& errMsg); 56 std::string version, const std::string& errMsg); 57 void ReportDcamerOptFail(const std::string& eventName, int32_t errCode, const std::string& errMsg); 59 void ReportSaEvent(const std::string& eventName, int32_t saId, const std::string& errMsg); 61 std::string version, const std::string& errMsg); 63 const std::string& errMsg); 64 void ReportStartCaptureEvent(const std::string& eventName, EventCaptureInfo& capture, const std::string& errMsg);
|
/foundation/ability/ability_runtime/cj_environment/frameworks/cj_environment/src/ |
H A D | dynamic_loader_ohos.cpp | 39 char* errMsg = dlerror(); in ReadDlError() local 40 if (!errMsg) { in ReadDlError() 43 auto ends = sprintf_s(g_dlError, sizeof(g_dlError), "%s", errMsg); in ReadDlError() 134 std::string errMsg; in DynamicInitNamespace() local 138 errMsg = "dlns_create failed: File exists"; in DynamicInitNamespace() 141 errMsg = "dlns_create failed: Invalid argument"; in DynamicInitNamespace() 144 errMsg = "dlns_create failed: Out of memory"; in DynamicInitNamespace() 147 errMsg = "dlns_create failed, status: " + std::to_string(status); in DynamicInitNamespace() 149 if (sprintf_s(g_dlError, sizeof(g_dlError), errMsg.c_str()) == -1) { in DynamicInitNamespace()
|
/foundation/arkui/ace_engine/interfaces/napi/kits/component_test/ |
H A D | js_component_test_tester.cpp | 35 bool CheckAndParsePoint(napi_env env, napi_value arg, NG::PointF& point, std::string& errMsg) in CheckAndParsePoint() argument 44 errMsg = "Parameter from is not of type object"; in CheckAndParsePoint() 49 errMsg = "The input parameter does not exist at x"; in CheckAndParsePoint() 54 errMsg = "Parameter x is not of type number"; in CheckAndParsePoint() 61 errMsg = "The input parameter does not exist at y"; in CheckAndParsePoint() 66 errMsg = "Parameter y is not of type number"; in CheckAndParsePoint() 152 std::string errMsg; in JSPump() local 154 COMPONENT_TEST_NAPI_ASSERT_CUSTOM(env, CheckAndParseUInt32(env, argv, delayMs, errMsg), in JSPump() 155 ErrCode::RET_ERROR_PARAM_INVALID, errMsg, NapiGetUndefined(env)); in JSPump() 388 std::string errMsg; in JSTriggerkey() local 429 std::string errMsg; JSTriggerCombineKeys() local 475 std::string errMsg; JSTap() local 512 std::string errMsg = ""; JSDoubleTap() local 549 std::string errMsg; JSPress() local 593 std::string errMsg; JSScroll() local 629 std::string errMsg; JSDrag() local 668 std::string errMsg; FlingPoint() local 694 std::string errMsg; FlingDirection() local [all...] |
H A D | js_component_test_utils.cpp | 89 bool CheckAndParseStr(napi_env env, napi_value arg, std::string& recv, std::string& errMsg) in CheckAndParseStr() argument 92 errMsg = "Parameter is null."; in CheckAndParseStr() 99 errMsg = "The type of parameter is not string"; in CheckAndParseStr() 107 errMsg = "Get string parameter value failed."; in CheckAndParseStr() 115 bool CheckAndParseInt32(napi_env env, napi_value arg, int32_t& recv, std::string& errMsg) in CheckAndParseInt32() argument 118 errMsg = "Parameter is null."; in CheckAndParseInt32() 125 errMsg = "The type of parameter is not number"; in CheckAndParseInt32() 133 bool CheckAndParseUInt32(napi_env env, napi_value arg, uint32_t& recv, std::string& errMsg) in CheckAndParseUInt32() argument 136 errMsg = "Parameter is null."; in CheckAndParseUInt32() 143 errMsg in CheckAndParseUInt32() 151 CheckAndParseBool(napi_env env, napi_value arg, bool& recv, std::string& errMsg) CheckAndParseBool() argument [all...] |
H A D | js_component_test_matcher.cpp | 119 std::string errMsg; in JSText() local 120 COMPONENT_TEST_NAPI_ASSERT_CUSTOM(env, CheckAndParseStr(env, argv[ARG_COUNT_ZERO], text, errMsg), in JSText() 121 ErrCode::RET_ERROR_PARAM_INVALID, errMsg, NapiGetUndefined(env)); in JSText() 148 std::string errMsg; in JSId() local 150 env, CheckAndParseStr(env, argv, id, errMsg), ErrCode::RET_ERROR_PARAM_INVALID, errMsg, NapiGetUndefined(env)); in JSId() 166 std::string errMsg; in JSType() local 167 COMPONENT_TEST_NAPI_ASSERT_CUSTOM(env, CheckAndParseStr(env, argv, type, errMsg), ErrCode::RET_ERROR_PARAM_INVALID, in JSType() 168 errMsg, NapiGetUndefined(env)); in JSType() 185 std::string errMsg; in GenericBoolCallback() local [all...] |
/foundation/multimedia/image_framework/frameworks/kits/js/common/ |
H A D | image_napi_utils.cpp | 162 napi_value argv[], int32_t args[], std::string &errMsg) in ParseImageCreatorReceiverArgs() 165 errMsg = "Invalid arg counts "; in ParseImageCreatorReceiverArgs() 166 errMsg.append(std::to_string(argc)); in ParseImageCreatorReceiverArgs() 172 errMsg = "Invalid arg "; in ParseImageCreatorReceiverArgs() 173 errMsg.append(std::to_string(PARAM0)).append(",type:").append(std::to_string(argvType0)); in ParseImageCreatorReceiverArgs() 178 errMsg = "Invalid arg "; in ParseImageCreatorReceiverArgs() 179 errMsg.append(std::to_string(PARAM1)).append(",type:").append(std::to_string(argvType1)); in ParseImageCreatorReceiverArgs() 184 errMsg = "Invalid arg "; in ParseImageCreatorReceiverArgs() 185 errMsg.append(std::to_string(PARAM2)).append(",type:").append(std::to_string(argvType2)); in ParseImageCreatorReceiverArgs() 193 errMsg in ParseImageCreatorReceiverArgs() 161 ParseImageCreatorReceiverArgs(napi_env env, size_t argc, napi_value argv[], int32_t args[], std::string &errMsg) ParseImageCreatorReceiverArgs() argument 218 CreateErrorObj(napi_env env, napi_value &errorObj, const int32_t errCode, const std::string errMsg) CreateErrorObj() argument 240 ThrowExceptionError(napi_env env, const int32_t errCode, const std::string errMsg) ThrowExceptionError() argument [all...] |
/foundation/window/window_manager/interfaces/kits/napi/picture_in_picture_napi/ |
H A D | js_pip_controller.cpp | 211 std::string errMsg = ""; in OnUpdateContentSize() local 213 errMsg = "Failed to convert parameter to int or width <= 0"; in OnUpdateContentSize() 214 TLOGE(WmsLogTag::WMS_PIP, "%{public}s", errMsg.c_str()); in OnUpdateContentSize() 215 return NapiThrowInvalidParam(env, errMsg); in OnUpdateContentSize() 219 errMsg = "Failed to convert parameter to int or height <= 0"; in OnUpdateContentSize() 220 TLOGE(WmsLogTag::WMS_PIP, "%{public}s", errMsg.c_str()); in OnUpdateContentSize() 221 return NapiThrowInvalidParam(env, errMsg); in OnUpdateContentSize() 224 errMsg = "OnUpdateContentSize error, controller is nullptr"; in OnUpdateContentSize() 225 TLOGE(WmsLogTag::WMS_PIP, "%{public}s", errMsg.c_str()); in OnUpdateContentSize() 226 return NapiThrowInvalidParam(env, errMsg); in OnUpdateContentSize() 249 std::string errMsg; OnUpdatePiPControlStatus() local 287 std::string errMsg = ""; OnSetPiPControlEnabled() local [all...] |
/foundation/ability/ability_runtime/frameworks/native/appkit/app/ |
H A D | application_data_manager.cpp | 38 bool ApplicationDataManager::NotifyUnhandledException(const std::string &errMsg) in NotifyUnhandledException() argument 41 errorObserver_->OnUnhandledException(errMsg); in NotifyUnhandledException() 50 bool ApplicationDataManager::NotifyCJUnhandledException(const std::string &errMsg) in NotifyCJUnhandledException() argument 53 errorObserver_->OnUnhandledException(errMsg); in NotifyCJUnhandledException()
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/common/ |
H A D | uni_error.cpp | 29 static napi_value GenerateBusinessError(napi_env env, int32_t errCode, string errMsg) in GenerateBusinessError() argument 35 msg = NVal::CreateUTF8String(env, errMsg).val_; in GenerateBusinessError() 117 napi_value UniError::GetNapiErr(napi_env env, string errMsg) in GetNapiErr() argument 119 napi_value msg = NVal::CreateUTF8String(env, errMsg).val_; in GetNapiErr() 123 HILOGE("Failed to create an exception, msg = %{public}s", errMsg.c_str()); in GetNapiErr() 169 void UniError::ThrowErr(napi_env env, string errMsg) in ThrowErr() argument 174 napi_status throwStatus = napi_throw_error(env, nullptr, errMsg.c_str()); in ThrowErr() 176 HILOGE("Failed to throw an exception, %{public}d, code = %{public}s", throwStatus, errMsg.c_str()); in ThrowErr()
|
/foundation/ability/ability_runtime/interfaces/inner_api/quick_fix/src/ |
H A D | quick_fix_error_utils.cpp | 96 std::string errMsg; in GetErrorMessage() local 100 errMsg = iter->second; in GetErrorMessage() 102 errMsg = EXTERNAL_ERR_MSG_MAP.at(ERR_QUICKFIX_INTERNAL_ERROR); in GetErrorMessage() 107 errMsg += " " + iterInternal->second; in GetErrorMessage() 110 return errMsg; in GetErrorMessage()
|
/foundation/multimedia/av_codec/test/unittest/dfx_test/ |
H A D | media_dfx_test.cpp | 43 dmuxerDfxInfo.errMsg = "errorMessage"; in HWTEST_F() 56 muxerFaultInfo.errMsg = "errorMessage"; in HWTEST_F() 67 audioCodecFaultInfo.errMsg = "errorMessage"; in HWTEST_F() 78 videoCodecFaultInfo.errMsg = "errorMessage"; in HWTEST_F() 88 audioSourceFaultInfo.errMsg = "errorMessage"; in HWTEST_F()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/common/ |
H A D | native_sqlite.cpp | 39 char *errMsg = nullptr; in ExecSql() local 40 int errCode = sqlite3_exec(db, sql.c_str(), nullptr, nullptr, &errMsg); in ExecSql() 41 if (errCode != SQLITE_OK && errMsg != nullptr) { in ExecSql() 42 LOGE("Execute sql failed. %d err: %s", errCode, errMsg); in ExecSql() 44 sqlite3_free(errMsg); in ExecSql()
|
/foundation/communication/wifi/wifi/frameworks/js/napi/src/ |
H A D | wifi_napi_errcode.cpp | 107 static napi_value GetCallbackErrorValue(napi_env env, const int32_t errCode, const std::string errMsg) in GetCallbackErrorValue() argument 113 NAPI_CALL(env, napi_create_string_utf8(env, errMsg.c_str(), errMsg.length(), &eMsg)); in GetCallbackErrorValue() 145 std::string errMsg = GetNapiErrMsg(env, info.errorCode, info.sysCap); in HandleCallbackErrCode() local 147 result[0] = GetCallbackErrorValue(env, errCodeInfo, errMsg); in HandleCallbackErrCode() 163 std::string errMsg = GetNapiErrMsg(env, info.errorCode, info.sysCap); in HandlePromiseErrCode() local 169 napi_create_string_utf8(env, errMsg.c_str(), errMsg.length(), &eMsg); in HandlePromiseErrCode() 187 std::string errMsg = GetNapiErrMsg(env, errCode, sysCap); in HandleSyncErrCode() local 189 if (errMsg ! in HandleSyncErrCode() [all...] |
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/napi/common/ |
H A D | napi_business_error.cpp | 30 static napi_value GenerateBusinessError(napi_env env, int32_t errCode, string errMsg) in GenerateBusinessError() argument 36 msg = NapiValue::CreateUTF8String(env, errMsg).val_; in GenerateBusinessError() 121 napi_value NapiBusinessError::GetNapiErr(napi_env env, const string &errMsg) in GetNapiErr() argument 123 napi_value msg = NapiValue::CreateUTF8String(env, errMsg).val_; in GetNapiErr() 127 APP_LOGE("Failed to create an exception, errMsg = %{public}s", errMsg.c_str()); in GetNapiErr() 167 APP_LOGE("Failed to throw an exception, %{public}d, errMsg = %{public}s", in ThrowErr() 173 void NapiBusinessError::ThrowErr(napi_env env, const string &errMsg) in ThrowErr() argument 178 napi_status throwStatus = napi_throw_error(env, nullptr, errMsg.c_str()); in ThrowErr() 180 APP_LOGE("Failed to throw an exception, %{public}d, errMsg in ThrowErr() [all...] |
/foundation/ability/ability_runtime/test/unittest/ability_runtime_error_util_test/ |
H A D | ability_runtime_error_util_test.cpp | 119 std::string errMsg = AbilityRuntimeErrorUtil::GetErrMessage(ERR_OK); in HWTEST_F() local 120 EXPECT_EQ(errMsg, "success"); in HWTEST_F() 131 std::string errMsg = AbilityRuntimeErrorUtil::GetErrMessage(1); in HWTEST_F() local 132 EXPECT_EQ(errMsg, ""); in HWTEST_F()
|
/foundation/multimedia/media_library/frameworks/js/src/ |
H A D | napi_error.cpp | 47 void NapiError::ThrowError(napi_env env, int32_t err, const std::string &errMsg) in ThrowError() argument 49 string message = errMsg; in ThrowError() 57 NAPI_ERR_LOG("ThrowError errCode:%{public}d errMsg:%{public}s", err, message.c_str()); in ThrowError() 61 void NapiError::ThrowError(napi_env env, int32_t err, const char *funcName, int32_t line, const std::string &errMsg) in ThrowError() argument 63 string message = errMsg; in ThrowError() 71 NAPI_ERR_LOG("{%{public}s:%d} ThrowError errCode:%{public}d errMsg:%{public}s", funcName, line, in ThrowError()
|
/foundation/communication/bluetooth/frameworks/js/napi/src/common/ |
H A D | napi_bluetooth_error.cpp | 92 static napi_value GenerateBusinessError(napi_env env, int32_t errCode, const std::string &errMsg) in GenerateBusinessError() argument 99 napi_create_string_utf8(env, errMsg.c_str(), NAPI_AUTO_LENGTH, &message); in GenerateBusinessError() 124 std::string errMsg = GetNapiErrMsg(env, errCode); in HandleSyncErr() local 127 ret = napi_throw(env, GenerateBusinessError(env, errCode, errMsg)); in HandleSyncErr() 129 ret = napi_throw_error(env, std::to_string(errCode).c_str(), errMsg.c_str()); in HandleSyncErr()
|
/foundation/multimedia/av_codec/services/dfx/include/ |
H A D | avcodec_sysevent.h | 57 std::string errMsg; member 68 std::string errMsg; member 76 std::string errMsg; member 84 std::string errMsg; member 91 std::string errMsg; member
|