/ohos5.0/foundation/arkui/napi/test/unittest/ |
H A D | test_sendable_napi.cpp | 1132 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 D | napi_util.cpp | 166 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 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 …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 D | napi_account_common.cpp | 371 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 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()
|
/ohos5.0/foundation/communication/wifi/wifi/frameworks/js/napi/src/ |
H A D | wifi_napi_utils.cpp | 164 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 D | napi_common_util.cpp | 1201 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 D | js_query.cpp | 311 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 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… in GetValue() 591 if (isTypedArray) { in GetValue()
|
/ohos5.0/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()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributedkvstore/src/ |
H A D | js_query.cpp | 338 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 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… in GetValue() 609 if (isTypedArray) { in GetValue()
|
/ohos5.0/base/customization/enterprise_device_management/interfaces/kits/common/src/ |
H A D | napi_edm_common.cpp | 405 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 D | reminder_common.cpp | 325 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 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()
|
/ohos5.0/docs/zh-cn/application-dev/napi/ |
H A D | use-napi-about-extension.md | 1058 bool isTypedArray = false; 1059 napi_is_typedarray(env, result, &isTypedArray); 1060 OH_LOG_INFO(LOG_APP, "isTypedArray: %{public}d", isTypedArray);
|
H A D | use-jsvm-about-array.md | 893 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 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… in GetValue() 622 if (isTypedArray) { in GetValue()
|
/ohos5.0/foundation/distributeddatamgr/data_share/frameworks/js/napi/common/include/ |
H A D | datashare_js_utils.h | 101 …i_value Convert2JSValue(napi_env env, const std::vector<uint8_t> &value, bool isTypedArray = true);
|
/ohos5.0/docs/en/application-dev/napi/ |
H A D | use-napi-about-extension.md | 1020 bool isTypedArray = false; 1021 napi_is_typedarray(env, result, &isTypedArray); 1022 OH_LOG_INFO(LOG_APP, "isTypedArray: %{public}d", isTypedArray);
|
H A D | use-jsvm-about-array.md | 893 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 D | js_buffer.ts | 364 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 D | napi_utils.cpp | 955 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 D | README.en.md | 561 ├── 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([]));
|