Home
last modified time | relevance | path

Searched refs:NAPI_CALL_RETURN_ERR (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/js/napi/cloud_data/src/
H A Djs_cloud_utils.cpp22 #define NAPI_CALL_RETURN_ERR(call, ret) \ macro
60NAPI_CALL_RETURN_ERR(GetNamedProperty(env, input, "identity", output.identity), napi_invalid_arg); in Convert2Value()
61 NAPI_CALL_RETURN_ERR(GetNamedProperty(env, input, "role", output.role, true), napi_invalid_arg); in Convert2Value()
65NAPI_CALL_RETURN_ERR(GetNamedProperty(env, input, "state", output.state, true), napi_invalid_arg); in Convert2Value()
84NAPI_CALL_RETURN_ERR(GetNamedProperty(env, input, "writable", output.writable, true), napi_invalid… in Convert2Value()
85NAPI_CALL_RETURN_ERR(GetNamedProperty(env, input, "readable", output.readable, true), napi_invalid… in Convert2Value()
104 NAPI_CALL_RETURN_ERR(GetNamedProperty(env, jsValue, "name", output.name), napi_invalid_arg); in Convert2Value()
105 NAPI_CALL_RETURN_ERR(GetNamedProperty(env, jsValue, "uri", output.uri), napi_invalid_arg); in Convert2Value()
108NAPI_CALL_RETURN_ERR(GetNamedProperty(env, jsValue, "modifyTime", output.size), napi_invalid_arg); in Convert2Value()
109 NAPI_CALL_RETURN_ERR(GetNamedProperty(env, jsValue, "path", output.path), napi_invalid_arg); in Convert2Value()
[all …]
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/js/napi/relationalstore/src/
H A Dnapi_rdb_js_utils.cpp31 #define NAPI_CALL_RETURN_ERR(theCall, retVal) \ macro
129 NAPI_CALL_RETURN_ERR( in Convert2JSValue()
138 NAPI_CALL_RETURN_ERR(napi_create_object(env, &object), object); in Convert2JSValue()
164 NAPI_CALL_RETURN_ERR( in Convert2JSValue()
178 NAPI_CALL_RETURN_ERR( in Convert2JSValue()
193 NAPI_CALL_RETURN_ERR( in Convert2JSValue()
210 NAPI_CALL_RETURN_ERR( in Convert2JSValue()
233 NAPI_CALL_RETURN_ERR( in Convert2JSValue()
242 NAPI_CALL_RETURN_ERR(napi_create_date(env, date, &jsDeta), jsDeta); in Convert2JSValue()
330 NAPI_CALL_RETURN_ERR( in Convert2Value()
[all …]
H A Dnapi_rdb_sendable_utils.cpp18 #define NAPI_CALL_RETURN_ERR(theCall, retVal) \ macro
43 NAPI_CALL_RETURN_ERR( in Convert2Sendable()
52 NAPI_CALL_RETURN_ERR(napi_create_sendable_map(env, &map), nullptr); in Convert2Sendable()
55NAPI_CALL_RETURN_ERR(napi_map_set_named_property(env, map, key.c_str(), Convert2Sendable(env, valu… in Convert2Sendable()
/ohos5.0/base/security/asset/frameworks/js/napi/src/
H A Dasset_napi_common.cpp44 #define NAPI_CALL_RETURN_ERR(env, theCall) \ macro
71 NAPI_CALL_RETURN_ERR(env, napi_is_typedarray(env, value, &result)); in ParseByteArray()
90 NAPI_CALL_RETURN_ERR(env, napi_typeof(env, tag, &type)); in ParseAssetAttribute()
93 NAPI_CALL_RETURN_ERR(env, napi_get_value_uint32(env, tag, &attr.tag)); in ParseAssetAttribute()
96 NAPI_CALL_RETURN_ERR(env, napi_typeof(env, value, &type)); in ParseAssetAttribute()
104 NAPI_CALL_RETURN_ERR(env, napi_get_value_uint32(env, value, &attr.value.u32)); in ParseAssetAttribute()
199 NAPI_CALL_RETURN_ERR(env, napi_is_map(env, arg, &isMap)); in ParseMapParam()
206 NAPI_CALL_RETURN_ERR(env, napi_get_named_property(env, arg, "entries", &entriesFunc)); in ParseMapParam()
208 NAPI_CALL_RETURN_ERR(env, napi_get_named_property(env, iterator, "next", &nextFunc)); in ParseMapParam()
241 NAPI_CALL_RETURN_ERR(env, napi_typeof(env, arg, &type)); in ParseJsUserId()
[all …]