Home
last modified time | relevance | path

Searched refs:jsKey (Results 1 – 12 of 12) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/functions/
H A Djs_foreach_function.cpp47 JSRef<JSVal> jsKey = jsKeysArr->GetValueAt(i); in ExecuteIdentityMapper() local
49 if (!jsKey->IsString() && !jsKey->IsNumber()) { in ExecuteIdentityMapper()
53 std::string key(jsKey->ToString()); in ExecuteIdentityMapper()
/ohos5.0/foundation/ability/ability_runtime/frameworks/js/napi/inner/napi_common/
H A Dnapi_common_child_process_param.cpp66 napi_value jsKey = nullptr; in UnwrapChildProcessFds() local
68 NAPI_CALL_BASE(env, napi_get_element(env, jsKeyList, index, &jsKey), false); in UnwrapChildProcessFds()
70 if (!UnwrapStringFromJS2(env, jsKey, key)) { in UnwrapChildProcessFds()
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/js/napi/common/src/
H A Djs_utils.cpp308 napi_value jsKey = nullptr; in Convert2Value() local
311 status = napi_get_element(env, jsMapList, index, &jsKey); in Convert2Value()
312 CHECK_RETURN_RET(status == napi_ok && jsKey != nullptr, "no element", napi_invalid_arg); in Convert2Value()
314 int ret = Convert2Value(env, jsKey, key); in Convert2Value()
316 status = napi_get_property(env, jsValue, jsKey, &jsVal); in Convert2Value()
337 napi_value jsKey = nullptr; in Convert2Value() local
340 status = napi_get_element(env, jsMapList, index, &jsKey); in Convert2Value()
341 CHECK_RETURN_RET(status == napi_ok && jsKey != nullptr, "no element", napi_invalid_arg); in Convert2Value()
343 int ret = Convert2Value(env, jsKey, key); in Convert2Value()
345 status = napi_get_property(env, jsValue, jsKey, &jsVal); in Convert2Value()
/ohos5.0/foundation/distributeddatamgr/pasteboard/interfaces/kits/napi/src/
H A Dnapi_data_utils.cpp264 napi_value jsKey = nullptr; in SetValue() local
265 napi_create_string_utf8(env, key.c_str(), key.size(), &jsKey); in SetValue()
266 napi_set_element(env, element, TUPLE_KEY, jsKey); in SetValue()
298 napi_value jsKey = nullptr; in SetValue() local
299 napi_create_string_utf8(env, key.c_str(), key.size(), &jsKey); in SetValue()
300 napi_set_element(env, element, TUPLE_KEY, jsKey); in SetValue()
/ohos5.0/foundation/distributeddatamgr/data_share/frameworks/js/napi/common/include/
H A Ddatashare_js_utils.h231 napi_value jsKey = nullptr; in Convert2Value() local
234 status = napi_get_element(env, map, index, &jsKey); in Convert2Value()
238 std::string key = Convert2String(env, jsKey); in Convert2Value()
239 status = napi_get_property(env, input, jsKey, &jsVal); in Convert2Value()
/ohos5.0/foundation/distributeddatamgr/udmf/framework/jskitsimpl/common/
H A Dnapi_data_utils.cpp222 napi_value jsKey = nullptr; in SetValue() local
223 napi_create_string_utf8(env, key.c_str(), key.size(), &jsKey); in SetValue()
224 napi_set_element(env, element, TUPLE_KEY, jsKey); in SetValue()
253 napi_value jsKey = nullptr; in SetValue() local
254 napi_create_string_utf8(env, key.c_str(), key.size(), &jsKey); in SetValue()
255 napi_set_element(env, element, TUPLE_KEY, jsKey); in SetValue()
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/js/napi/common/include/
H A Djs_utils.h261 napi_value jsKey = nullptr; in Convert2Value() local
264 status = napi_get_element(env, jsMapList, index, &jsKey); in Convert2Value()
269 int ret = Convert2Value(env, jsKey, key); in Convert2Value()
273 status = napi_get_property(env, jsValue, jsKey, &jsVal); in Convert2Value()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributedkvstore/src/
H A Djs_util.cpp673 napi_value jsKey = nullptr; in SetValue() local
674 napi_create_string_utf8(env, key.c_str(), key.size(), &jsKey); in SetValue()
675 napi_set_element(env, element, TUPLE_KEY, jsKey); in SetValue()
842 napi_value jsKey = 0; in GetValue() local
843 statusMsg.status = napi_get_element(env, keys, i, &jsKey); in GetValue()
846 JSUtil::GetValue(env, jsKey, key); in GetValue()
848 napi_get_property(env, jsValue, jsKey, &valueJs); in GetValue()
/ohos5.0/foundation/multimedia/player_framework/frameworks/js/common/
H A Dcommon_napi.cpp180 napi_value jsKey = nullptr; in GetPropertyRecord() local
183 status = napi_get_element(env, dataList, i, &jsKey); in GetPropertyRecord()
185 status = napi_typeof(env, jsKey, &valueType); in GetPropertyRecord()
188 std::string strKey = GetStringArgument(env, jsKey, CUSTOM_MAX_LENGTH); in GetPropertyRecord()
/ohos5.0/foundation/arkui/napi/test/unittest/cj_native/
H A Dtest_ark_interop.cpp498 auto jsKey = ARKTS_GetElement(env, jsKeys, i); in TestDefineProperty() local
499 EXPECT_TRUE(ARKTS_IsString(env, jsKey)); in TestDefineProperty()
501 ARKTS_GetValueUtf8(env, jsKey, 1, &buffer); in TestDefineProperty()
/ohos5.0/foundation/distributeddatamgr/kv_store/kvstoremock/frameworks/jskitsimpl/distributeddata/src/
H A Djs_util.cpp685 napi_value jsKey = nullptr; in SetValue() local
686 napi_create_string_utf8(env, key.c_str(), key.size(), &jsKey); in SetValue()
687 napi_set_element(env, element, TUPLE_KEY, jsKey); in SetValue()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributeddata/src/
H A Djs_util.cpp654 napi_value jsKey = nullptr; in SetValue() local
655 napi_create_string_utf8(env, key.c_str(), key.size(), &jsKey); in SetValue()
656 napi_set_element(env, element, TUPLE_KEY, jsKey); in SetValue()