Home
last modified time | relevance | path

Searched refs:isTypedArray (Results 1 – 25 of 38) sorted by relevance

12

/ohos5.0/foundation/arkui/napi/test/unittest/
H A Dtest_sendable_napi.cpp1132 bool isTypedArray = false; variable
1135 ASSERT_EQ(isTypedArray, true);
1183 bool isTypedArray = false; variable
1186 ASSERT_EQ(isTypedArray, true);
1234 bool isTypedArray = false; variable
1285 bool isTypedArray = false; variable
1336 bool isTypedArray = false; variable
1387 bool isTypedArray = false; variable
1438 bool isTypedArray = false; variable
1489 bool isTypedArray = false; variable
[all …]
/ohos5.0/base/usb/usb_manager/interfaces/kits/js/napi/src/
H A Dnapi_util.cpp166 bool isTypedArray = false; in JsUint8ArrayParse() local
167 if (napi_is_typedarray(env, object, &isTypedArray) != napi_ok || !isTypedArray) { in JsUint8ArrayParse()
168 …USB_ASSERT_RETURN_FALSE(env, isTypedArray, OHEC_COMMON_PARAM_ERROR, "The type of buffer must be Ty… in JsUint8ArrayParse()
/ohos5.0/foundation/distributeddatamgr/data_share/frameworks/js/napi/common/src/
H A Ddatashare_js_utils.cpp64 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 …taShareJSUtils::Convert2JSValue(napi_env env, const std::vector<uint8_t> &value, bool isTypedArray) in Convert2JSValue() argument
191 if (!isTypedArray) { in Convert2JSValue()
/ohos5.0/base/account/os_account/interfaces/kits/napi/common/src/
H A Dnapi_account_common.cpp371 bool isTypedArray = false; in ParseUint8TypedArray() local
372 napi_is_typedarray(env, value, &isTypedArray); in ParseUint8TypedArray()
373 if (!isTypedArray) { in ParseUint8TypedArray()
427 bool isTypedArray = false; in ParseUint8ArrayToNativeUint8Array() local
428 napi_is_typedarray(env, value, &isTypedArray); in ParseUint8ArrayToNativeUint8Array()
429 if (!isTypedArray) { in ParseUint8ArrayToNativeUint8Array()
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/js/napi/common/src/
H A Djs_utils.cpp207 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()
/ohos5.0/foundation/communication/wifi/wifi/frameworks/js/napi/src/
H A Dwifi_napi_utils.cpp164 bool isTypedArray = false; in JsObjectToU8Vector() local
165 if (napi_is_typedarray(env, fieldValue, &isTypedArray) != napi_ok || !isTypedArray) { in JsObjectToU8Vector()
/ohos5.0/foundation/ability/ability_runtime/frameworks/js/napi/inner/napi_common/
H A Dnapi_common_util.cpp1201 bool isTypedArray = false; in ConvertU8Vector() local
1202 if (napi_is_typedarray(env, jsValue, &isTypedArray) != napi_ok || !isTypedArray) { in ConvertU8Vector()
1228 bool isTypedArray = false; in ConvertStringVector() local
1229 napi_status status = napi_is_typedarray(env, jsValue, &isTypedArray); in ConvertStringVector()
1230 if (status != napi_ok || !isTypedArray) { in ConvertStringVector()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributeddata/src/
H A Djs_query.cpp311 bool isTypedArray = false; in GetNumberSync() local
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 Djs_util.cpp587 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… in GetValue()
591 if (isTypedArray) { in GetValue()
/ohos5.0/foundation/communication/ipc/ipc/native/src/napi_common/source/
H A Dnapi_ashmem.cpp434 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 Dnapi_message_sequence_write.cpp1665 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()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributedkvstore/src/
H A Djs_query.cpp338 bool isTypedArray = false; in GetNumberSync() local
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 Djs_util.cpp605 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… in GetValue()
609 if (isTypedArray) { in GetValue()
/ohos5.0/base/customization/enterprise_device_management/interfaces/kits/common/src/
H A Dnapi_edm_common.cpp405 bool isTypedArray = false; in JsObjectToU8Vector() local
406 if (napi_is_typedarray(env, certEntry, &isTypedArray) != napi_ok || !isTypedArray) { in JsObjectToU8Vector()
/ohos5.0/base/notification/distributed_notification_service/frameworks/js/napi/src/reminder/
H A Dreminder_common.cpp325 bool isTypedArray = false; in Convert2U8Vector() local
328 napi_is_typedarray(env, input_array, &isTypedArray); in Convert2U8Vector()
329 if (!isTypedArray) { in Convert2U8Vector()
340 if (isTypedArray) { in Convert2U8Vector()
/ohos5.0/foundation/communication/nfc/frameworks/js/napi/common/
H A Dnfc_napi_common_utils.cpp229 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()
/ohos5.0/docs/zh-cn/application-dev/napi/
H A Duse-napi-about-extension.md1058 bool isTypedArray = false;
1059 napi_is_typedarray(env, result, &isTypedArray);
1060 OH_LOG_INFO(LOG_APP, "isTypedArray: %{public}d", isTypedArray);
H A Duse-jsvm-about-array.md893 JSVM_Value isTypedArray = nullptr;
894 OH_JSVM_GetBoolean(env, result, &isTypedArray);
900 return isTypedArray;
/ohos5.0/foundation/distributeddatamgr/kv_store/kvstoremock/frameworks/jskitsimpl/distributeddata/src/
H A Djs_util.cpp618 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… in GetValue()
622 if (isTypedArray) { in GetValue()
/ohos5.0/foundation/distributeddatamgr/data_share/frameworks/js/napi/common/include/
H A Ddatashare_js_utils.h101 …i_value Convert2JSValue(napi_env env, const std::vector<uint8_t> &value, bool isTypedArray = true);
/ohos5.0/docs/en/application-dev/napi/
H A Duse-napi-about-extension.md1020 bool isTypedArray = false;
1021 napi_is_typedarray(env, result, &isTypedArray);
1022 OH_LOG_INFO(LOG_APP, "isTypedArray: %{public}d", isTypedArray);
H A Duse-jsvm-about-array.md893 JSVM_Value isTypedArray = nullptr;
894 OH_JSVM_GetBoolean(env, result, &isTypedArray);
900 return isTypedArray;
/ohos5.0/commonlibrary/ets_utils/js_api_module/buffer/src/
H A Djs_buffer.ts364 if (sources instanceof Array || isTypedArray(sources)) {
382 } else if (isTypedArray(source)) {
2136 function isTypedArray(self: unknown): boolean {
2159 if (typeof string === 'string' || isTypedArray(string) || string instanceof DataView ||
/ohos5.0/foundation/multimedia/av_session/frameworks/js/napi/session/src/
H A Dnapi_utils.cpp955 bool isTypedArray = false; in GetValue() local
956 napi_status status = napi_is_typedarray(env, in, &isTypedArray); in GetValue()
957 …SLOGD("napi_value -> std::vector<double> input %{public}s a TypedArray", isTypedArray ? "is" : "is… in GetValue()
959 if (isTypedArray) { in GetValue()
/ohos5.0/commonlibrary/ets_utils/
H A DREADME.en.md561 ├── isTypedArray() # isTypedArray method
673 | isTypedArray(value: Object): boolean | Checks whether the input value is of the **TypedArray** ty…
1429 96. isTypedArray()
1433 var result = proc.isTypedArray(new Float64Array([]));

12