/foundation/arkui/napi/test/unittest/ |
H A D | test_sendable_napi.cpp | 1132 bool isTypedArray = false; in HWTEST_F() local 1133 res = napi_is_typedarray(env, result, &isTypedArray); in HWTEST_F() 1135 ASSERT_EQ(isTypedArray, true); in HWTEST_F() 1183 bool isTypedArray = false; in HWTEST_F() local 1184 res = napi_is_typedarray(env, result, &isTypedArray); in HWTEST_F() 1186 ASSERT_EQ(isTypedArray, true); in HWTEST_F() 1234 bool isTypedArray = false; in HWTEST_F() local 1235 res = napi_is_typedarray(env, result, &isTypedArray); in HWTEST_F() 1237 ASSERT_EQ(isTypedArray, true); in HWTEST_F() 1285 bool isTypedArray in HWTEST_F() local 1336 bool isTypedArray = false; HWTEST_F() local 1387 bool isTypedArray = false; HWTEST_F() local 1438 bool isTypedArray = false; HWTEST_F() local 1489 bool isTypedArray = false; HWTEST_F() local 1749 bool isTypedArray = false; HWTEST_F() local 2070 bool isTypedArray = false; HWTEST_F() local [all...] |
H A D | test_napi.cpp | 979 bool isTypedArray = false; in HWTEST_F() local 980 napi_is_typedarray(env, typedarray, &isTypedArray); in HWTEST_F() 981 ASSERT_TRUE(isTypedArray); in HWTEST_F()
|
/foundation/distributeddatamgr/data_share/frameworks/js/napi/common/src/ |
H A D | datashare_js_utils.cpp | 64 bool isTypedArray = false; in Convert2U8Vector() local 66 napi_is_typedarray(env, input_array, &isTypedArray); in Convert2U8Vector() 67 if (!isTypedArray) { in Convert2U8Vector() 76 if (isTypedArray) { in Convert2U8Vector() 97 bool isTypedArray = false; in ConvertU8Vector() local 98 if (napi_is_typedarray(env, jsValue, &isTypedArray) != napi_ok || !isTypedArray) { in ConvertU8Vector() 176 napi_value DataShareJSUtils::Convert2JSValue(napi_env env, const std::vector<uint8_t> &value, bool isTypedArray) in Convert2JSValue() argument 191 if (!isTypedArray) { in Convert2JSValue()
|
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/common/src/ |
H A D | js_utils.cpp | 207 bool isTypedArray = false; in Convert2Value() local 208 napi_is_typedarray(env, jsValue, &isTypedArray); in Convert2Value() 209 if (!isTypedArray) { in Convert2Value() 262 bool isTypedArray = false; in Convert2Value() local 263 napi_is_typedarray(env, jsValue, &isTypedArray); in Convert2Value() 264 if (!isTypedArray) { in Convert2Value()
|
/foundation/communication/wifi/wifi/frameworks/js/napi/src/ |
H A D | wifi_napi_utils.cpp | 169 bool isTypedArray = false; in JsObjectToU8Vector() local 170 if (napi_is_typedarray(env, fieldValue, &isTypedArray) != napi_ok || !isTypedArray) { in JsObjectToU8Vector()
|
/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributeddata/src/ |
H A D | js_query.cpp | 311 bool isTypedArray = false; in GetNumberSync() 312 status = napi_is_typedarray(env, argv[1], &isTypedArray); in GetNumberSync() 313 ZLOGD("arg[1] %{public}s a TypedArray", isTypedArray ? "is" : "is not"); in GetNumberSync() 314 if (isTypedArray && (status == napi_ok)) { in GetNumberSync() 336 ZLOGD("arg[1] %{public}s a Array, treat as array of double.", isTypedArray ? "is" : "is not"); in GetNumberSync()
|
H A D | js_util.cpp | 587 bool isTypedArray = false; in GetValue() local 588 napi_status status = napi_is_typedarray(env, in, &isTypedArray); in GetValue() 589 ZLOGD("napi_value -> std::vector<double> input %{public}s a TypedArray", isTypedArray ? "is" : "is not"); in GetValue() 591 if (isTypedArray) { in GetValue()
|
/foundation/ability/ability_runtime/frameworks/js/napi/inner/napi_common/ |
H A D | napi_common_util.cpp | 1180 bool isTypedArray = false; in ConvertU8Vector() local 1181 if (napi_is_typedarray(env, jsValue, &isTypedArray) != napi_ok || !isTypedArray) { in ConvertU8Vector() 1207 bool isTypedArray = false; in ConvertStringVector() local 1208 napi_status status = napi_is_typedarray(env, jsValue, &isTypedArray); in ConvertStringVector() 1209 if (status != napi_ok || !isTypedArray) { in ConvertStringVector()
|
/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributedkvstore/src/ |
H A D | js_query.cpp | 338 bool isTypedArray = false; in GetNumberSync() 339 status = napi_is_typedarray(env, argv[1], &isTypedArray); in GetNumberSync() 340 ZLOGD("arg[1] %{public}s a TypedArray", isTypedArray ? "is" : "is not"); in GetNumberSync() 341 if (isTypedArray && (status == napi_ok)) { in GetNumberSync() 365 ZLOGD("arg[1] %{public}s a Array, treat as array of double.", isTypedArray ? "is" : "is not"); in GetNumberSync()
|
H A D | js_util.cpp | 605 bool isTypedArray = false; in GetValue() local 606 napi_status status = napi_is_typedarray(env, in, &isTypedArray); in GetValue() 607 ZLOGD("napi_value -> std::vector<double> input %{public}s a TypedArray", isTypedArray ? "is" : "is not"); in GetValue() 609 if (isTypedArray) { in GetValue()
|
/foundation/communication/ipc/ipc/native/src/napi_common/source/ |
H A D | napi_ashmem.cpp | 434 bool isTypedArray = false; in ReadFromAshmem() local 435 napi_is_typedarray(env, typedArray, &isTypedArray); in ReadFromAshmem() 436 NAPI_ASSERT(env, isTypedArray == true, "create TypedArray failed"); in ReadFromAshmem() 502 bool isTypedArray = false; in TransferByteToJsData() local 503 napi_is_typedarray(env, typedArray, &isTypedArray); in TransferByteToJsData() 504 NAPI_ASSERT(env, isTypedArray == true, "create TypedArray failed"); in TransferByteToJsData() 505 if (!isTypedArray) { in TransferByteToJsData()
|
H A D | napi_message_sequence_write.cpp | 1665 bool isTypedArray = false; in JS_checkWriteRawDataArgs() local 1666 napi_is_typedarray(env, argv[ARGV_INDEX_0], &isTypedArray); in JS_checkWriteRawDataArgs() 1667 if (!isTypedArray) { in JS_checkWriteRawDataArgs()
|
/foundation/communication/nfc/frameworks/js/napi/common/ |
H A D | nfc_napi_common_utils.cpp | 229 bool isTypedArray = false; in ConvertStringVector() local 230 napi_status status = napi_is_typedarray(env, jsValue, &isTypedArray); in ConvertStringVector() 231 if (status != napi_ok || !isTypedArray) { in ConvertStringVector()
|
/foundation/distributeddatamgr/kv_store/kvstoremock/frameworks/jskitsimpl/distributeddata/src/ |
H A D | js_util.cpp | 618 bool isTypedArray = false; in GetValue() local 619 napi_status status = napi_is_typedarray(env, in, &isTypedArray); in GetValue() 620 ZLOGD("napi_value -> std::vector<double> input %{public}s a TypedArray", isTypedArray ? "is" : "is not"); in GetValue() 622 if (isTypedArray) { in GetValue()
|
/foundation/distributeddatamgr/data_share/frameworks/js/napi/common/include/ |
H A D | datashare_js_utils.h | 101 static napi_value Convert2JSValue(napi_env env, const std::vector<uint8_t> &value, bool isTypedArray = true);
|
/foundation/multimedia/av_session/frameworks/js/napi/session/src/ |
H A D | napi_utils.cpp | 943 bool isTypedArray = false; in GetValue() local 944 napi_status status = napi_is_typedarray(env, in, &isTypedArray); in GetValue() 945 SLOGD("napi_value -> std::vector<double> input %{public}s a TypedArray", isTypedArray ? "is" : "is not"); in GetValue() 947 if (isTypedArray) { in GetValue()
|