/ohos5.0/foundation/distributeddatamgr/pasteboard/interfaces/kits/napi/src/ |
H A D | pasteboard_common.cpp | 191 int32_t errCode = static_cast<int32_t>(JSErrorCode::INVALID_PARAMETERS); in CheckArgsType() 199 bool CheckExpression(napi_env env, bool flag, MiscServices::JSErrorCode errCode, const char *messag… in CheckExpression() 213 if (!CheckExpression(env, argc >= ARGC_TYPE_SET2, JSErrorCode::INVALID_PARAMETERS, in CheckArgs() 235 if (!CheckExpression(env, ret, JSErrorCode::INVALID_PARAMETERS, in CheckArgs() 242 if (!CheckExpression(env, isArrayBuffer, JSErrorCode::INVALID_PARAMETERS, in CheckArgs() 264 !CheckExpression(env, mimeType.size() <= MIMETYPE_MAX_SIZE, JSErrorCode::INVALID_PARAMETERS, in CheckArgsMimeType() 275 int32_t errCode = static_cast<int32_t>(JSErrorCode::INVALID_PARAMETERS); in CheckArgsArray() 306 int32_t errCode = static_cast<int32_t>(JSErrorCode::INVALID_PARAMETERS); in CheckArgsFunc() 322 if (!CheckExpression(env, valueType == napi_object, JSErrorCode::INVALID_PARAMETERS, in CheckArgsVector() 382 JSErrorCode::INVALID_PARAMETERS, "Parameter error. pixelMap get failed")) { in ConvertEntryValue() [all …]
|
H A D | napi_systempasteboard.cpp | 259 if (!CheckExpression(env, mimeType == STRING_UPDATE, JSErrorCode::INVALID_PARAMETERS, in CheckAgrsOfOnAndOff() 464 env, argc > 0, JSErrorCode::INVALID_PARAMETERS, in SetDataCommon() 675 if (!CheckExpression(env, argc > 0, JSErrorCode::INVALID_PARAMETERS, in SetAppShareOptions() 681 if (!CheckExpression(env, status == napi_ok, JSErrorCode::INVALID_PARAMETERS, in SetAppShareOptions() 691 JSErrorCode::NO_PERMISSION, in SetAppShareOptions() 696 JSErrorCode::SETTINGS_ALREADY_EXIST, "Settings already exist.")) { in SetAppShareOptions() 706 JSErrorCode::NO_PERMISSION, in RemoveAppShareOptions() 854 if ((!CheckExpression(env, argc >= ARGC_TYPE_SET1, JSErrorCode::INVALID_PARAMETERS, in HasDataType() 888 if (!CheckExpression(env, argc == ARGC_TYPE_SET1, JSErrorCode::INVALID_PARAMETERS, in DetectPatterns() 893 if (!CheckExpression(env, getValueRes, JSErrorCode::INVALID_PARAMETERS, in DetectPatterns() [all …]
|
H A D | napi_pastedata.cpp | 280 if ((!CheckExpression(env, argc > ARGC_TYPE_SET0, JSErrorCode::INVALID_PARAMETERS, in HasMimeType() 318 if ((!CheckExpression(env, argc > ARGC_TYPE_SET0, JSErrorCode::INVALID_PARAMETERS, in RemoveAndGetRecordCommon() 353 JSErrorCode::OUT_OF_RANGE, "index out of range.")) { in RemoveRecord() 678 if (!CheckExpression(env, argc > ARGC_TYPE_SET1, JSErrorCode::INVALID_PARAMETERS, in ReplaceRecord() 693 JSErrorCode::OUT_OF_RANGE, "index out of range.")) { in ReplaceRecord() 701 if (!CheckExpression(env, pasteDataRecord != nullptr, JSErrorCode::INVALID_PARAMETERS, in ReplaceRecord() 844 JSErrorCode::OUT_OF_RANGE, "index out of range.")) { in GetRecord() 946 if (!CheckExpression(env, argc > ARGC_TYPE_SET0, JSErrorCode::INVALID_PARAMETERS, in SetProperty() 948 !CheckExpression(env, IsProperty(env, argv[0]), JSErrorCode::INVALID_PARAMETERS, in SetProperty()
|
H A D | napi_pasteboard.cpp | 367 if (!CheckExpression(env, argc >= ARGC_TYPE_SET2, JSErrorCode::INVALID_PARAMETERS, in JSCreateRecord() 369 … !CheckExpression(env, type == napi_object || type == napi_string, JSErrorCode::INVALID_PARAMETERS, in JSCreateRecord() 495 if (!CheckExpression(env, argc >= ARGC_TYPE_SET1, JSErrorCode::INVALID_PARAMETERS, in JSCreateData()
|
H A D | napi_pastedata_record.cpp | 407 if (!CheckExpression(env, argc >= ARGC_TYPE_SET1, JSErrorCode::INVALID_PARAMETERS, in GetValidTypes() 441 if (!CheckExpression(env, argc >= ARGC_TYPE_SET1, JSErrorCode::INVALID_PARAMETERS, in GetRecordData()
|
/ohos5.0/foundation/distributeddatamgr/pasteboard/interfaces/kits/napi/include/ |
H A D | pasteboard_js_err.h | 20 enum class JSErrorCode : int32_t { enum
|
H A D | pasteboard_common.h | 41 bool CheckExpression(napi_env env, bool expression, MiscServices::JSErrorCode errCode, const char *…
|
/ohos5.0/base/account/os_account/interfaces/innerkits/common/include/ |
H A D | account_error_no.h | 303 enum JSErrorCode { enum
|