/foundation/arkui/napi/sample/native_module_netserver/ |
H A D | js_netserver.cpp | 109 size_t typeLen = 0; in JS_On() local 111 napi_get_value_string_utf8(env, argv[0], type, sizeof(type), &typeLen); in JS_On() 143 size_t typeLen = 0; in JS_Once() local 144 napi_get_value_string_utf8(env, argv[0], nullptr, 0, &typeLen); in JS_Once() 146 NAPI_ASSERT(env, typeLen > 0, "typeLen == 0"); in JS_Once() 147 type = new char[typeLen + 1]; in JS_Once() 148 napi_get_value_string_utf8(env, argv[0], type, typeLen + 1, &typeLen); in JS_Once() 182 size_t typeLen in JS_Off() local [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/include/ |
H A D | endian_convert.h | 39 size_t typeLen = sizeof(T); in HostToNet() local 42 for (size_t i = 0; i < typeLen; i++) { in HostToNet() 43 toByte[i] = fromByte[typeLen - i - 1]; // 1 is for index boundary in HostToNet()
|
/foundation/distributeddatamgr/pasteboard/framework/tlv/ |
H A D | endian_converter.h | 115 size_t typeLen = sizeof(double);
in HostToNet() local 118 for (size_t i = 0; i < typeLen; i++) {
in HostToNet() 119 toByte[i] = fromByte[typeLen - i - 1]; // 1 is for index boundary
in HostToNet()
|
/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/ |
H A D | lnn_net_builder_virtual.c | 60 int32_t LnnRequestLeaveByAddrType(const bool *type, uint32_t typeLen) in LnnRequestLeaveByAddrType() argument 63 (void)typeLen; in LnnRequestLeaveByAddrType()
|
H A D | lnn_net_builder.c | 351 void RemovePendingRequestByAddrType(const bool *addrType, uint32_t typeLen) in RemovePendingRequestByAddrType() argument 356 if (addrType == NULL || typeLen != CONNECTION_ADDR_MAX) { in RemovePendingRequestByAddrType() 357 LNN_LOGE(LNN_BUILDER, "invalid typeLen=%{public}d", typeLen); in RemovePendingRequestByAddrType() 1222 int32_t LnnRequestLeaveByAddrType(const bool *type, uint32_t typeLen) in LnnRequestLeaveByAddrType() argument 1229 if (typeLen != CONNECTION_ADDR_MAX) { in LnnRequestLeaveByAddrType() 1230 LNN_LOGE(LNN_BUILDER, "invalid typeLen"); in LnnRequestLeaveByAddrType() 1239 para = (bool *)SoftBusMalloc(sizeof(bool) * typeLen); in LnnRequestLeaveByAddrType() 1244 if (memcpy_s(para, sizeof(bool) * typeLen, type, sizeof(bool) * typeLen) ! in LnnRequestLeaveByAddrType() [all...] |
/foundation/multimedia/camera_framework/frameworks/native/camera/test/ndktest/camera_ndk_demo/entry/src/main/cpp/ |
H A D | main.cpp | 109 size_t typeLen = 0; in InitCamera() local 114 napi_get_value_string_utf8(env, args[0], nullptr, 0, &typeLen); in InitCamera() 115 surfaceId = new char[typeLen + 1]; in InitCamera() 116 napi_get_value_string_utf8(env, args[0], surfaceId, typeLen + 1, &typeLen); in InitCamera() 149 size_t typeLen = 0; in ReleaseCamera() local 172 size_t typeLen = 0; in ReleaseSession() local 192 size_t typeLen = 0; in StartPhotoOrVideo() local 201 napi_get_value_string_utf8(env, args[0], nullptr, 0, &typeLen); in StartPhotoOrVideo() 202 modeFlag = new char[typeLen in StartPhotoOrVideo() [all...] |
/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_buscenter/ |
H A D | lnn_bt_network_impl_mock.cpp | 57 int32_t LnnRequestLeaveByAddrType(const bool *type, uint32_t typeLen) in LnnRequestLeaveByAddrType() argument 59 return GetLnnBtNetworkImplInterface()->LnnRequestLeaveByAddrType(type, typeLen); in LnnRequestLeaveByAddrType()
|
H A D | lnn_network_manager_mock.cpp | 95 int32_t LnnRequestLeaveByAddrType(const bool *type, uint32_t typeLen) in LnnRequestLeaveByAddrType() argument 97 return GetNetworkManagerInterface()->LnnRequestLeaveByAddrType(type, typeLen); in LnnRequestLeaveByAddrType()
|
H A D | lnn_ip_network_impl_mock.cpp | 160 int32_t LnnRequestLeaveByAddrType(const bool *type, uint32_t typeLen) in LnnRequestLeaveByAddrType() argument 162 return GetLnnIpNetworkImplInterface()->LnnRequestLeaveByAddrType(type, typeLen); in LnnRequestLeaveByAddrType()
|
H A D | lnn_bt_network_impl_mock.h | 35 virtual int32_t LnnRequestLeaveByAddrType(const bool *type, uint32_t typeLen) = 0;
|
H A D | lnn_ip_network_impl_mock.h | 57 virtual int32_t LnnRequestLeaveByAddrType(const bool *type, uint32_t typeLen) = 0;
|
H A D | lnn_network_manager_mock.h | 52 virtual int32_t LnnRequestLeaveByAddrType(const bool *type, uint32_t typeLen) = 0;
|
/foundation/communication/connected_nfc_tag/frameworks/js/napi/ |
H A D | nfc_napi_event.cpp | 170 size_t typeLen = 0;
in On() local 171 napi_get_value_string_utf8(env, argv[0], type, sizeof(type), &typeLen);
in On() 212 size_t typeLen = 0;
in Off() local 213 napi_get_value_string_utf8(env, argv[0], type, sizeof(type), &typeLen);
in Off()
|
/foundation/distributedhardware/device_manager/interfaces/kits/js/src/ |
H A D | native_devicemanager_js.cpp | 1289 size_t typeLen = 0;
in JsToDmDiscoveryExtra() local 1290 NAPI_CALL_RETURN_VOID(env, napi_get_value_string_utf8(env, object, nullptr, 0, &typeLen));
in JsToDmDiscoveryExtra() 1291 if (!CheckArgsVal(env, typeLen > 0, "extra", "typeLen == 0")) {
in JsToDmDiscoveryExtra() 1295 if (!CheckArgsVal(env, typeLen < DM_NAPI_BUF_LENGTH, "extra", "typeLen >= BUF_MAX_LENGTH")) {
in JsToDmDiscoveryExtra() 1298 NAPI_CALL_RETURN_VOID(env, napi_get_value_string_utf8(env, object, filterOption, typeLen + 1, &typeLen));
in JsToDmDiscoveryExtra() 1300 LOGI("JsToDmDiscoveryExtra, extra :%{public}s, typeLen : %{public}zu", extra.c_str(), typeLen);
in JsToDmDiscoveryExtra() 1514 size_t typeLen = 0; SetUserOperationSync() local 2531 size_t typeLen = 0; RequestCredential() local 2605 size_t typeLen = 0; ImportCredential() local 2658 size_t typeLen = 0; DeleteCredential() local 2677 size_t typeLen = 0; JsOnFrench() local 2782 size_t typeLen = 0; JsOffFrench() local 3218 size_t typeLen = 0; Constructor() local [all...] |
/foundation/communication/nfc/frameworks/js/napi/controller/ |
H A D | nfc_napi_controller_event.cpp | 197 size_t typeLen = 0; in On() local 198 napi_get_value_string_utf8(env, argv[0], type, sizeof(type), &typeLen); in On() 232 size_t typeLen = 0; in Off() local 233 napi_get_value_string_utf8(env, argv[0], type, sizeof(type), &typeLen); in Off()
|
/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/include/ |
H A D | lnn_net_builder.h | 153 int32_t LnnRequestLeaveByAddrType(const bool *type, uint32_t typeLen); 183 void RemovePendingRequestByAddrType(const bool *addrType, uint32_t typeLen);
|
/foundation/communication/wifi/wifi/frameworks/js/napi/src/ |
H A D | wifi_napi_event.cpp | 469 size_t typeLen = 0; in On() local 470 napi_get_value_string_utf8(env, argv[0], type, sizeof(type), &typeLen); in On() 507 size_t typeLen = 0; in Off() local 508 napi_get_value_string_utf8(env, argv[0], type, sizeof(type), &typeLen); in Off()
|
H A D | wifi_napi_p2p.cpp | 298 size_t typeLen = 0; in SetDeviceName() local 299 napi_get_value_string_utf8(env, argv[0], name, sizeof(name), &typeLen); in SetDeviceName()
|
/foundation/multimedia/camera_framework/frameworks/js/camera_napi/src/picker/ |
H A D | camera_picker_napi.cpp | 96 uint32_t typeLen; in GetMediaTypes() local 97 if (napi_get_array_length(env, napiMediaTypesArray, &typeLen) != napi_ok) { in GetMediaTypes() 101 for (uint32_t i = 0; i < typeLen; i++) { in GetMediaTypes()
|
/foundation/multimodalinput/input/util/napi/src/ |
H A D | util_napi_value.cpp | 187 size_t typeLen = 0; in GetNamePropertyString() local 188 napi_get_value_string_utf8(env, napiValue, tmpValue, MAX_STRING_LEN - 1, &typeLen); in GetNamePropertyString()
|
/foundation/communication/nfc/frameworks/js/napi/cardEmulation/ |
H A D | nfc_napi_hce_adapter.cpp | 149 size_t typeLen = 0; in OnHceCmd() local 150 napi_get_value_string_utf8(env, argv[0], type, sizeof(type), &typeLen); in OnHceCmd()
|
/foundation/distributeddatamgr/data_object/frameworks/jskitsimpl/src/adaptor/ |
H A D | js_distributedobjectstore.cpp | 286 size_t typeLen = 0;
in JSOff() local 295 status = napi_get_value_string_utf8(env, argv[1], type, TYPE_SIZE, &typeLen);
in JSOff()
|
/foundation/multimodalinput/input/frameworks/napi/input_consumer/src/ |
H A D | js_register_module.cpp | 476 size_t typeLen = 0; in GetEventType() local 477 CHKRF(napi_get_value_string_utf8(env, argv[0], eventType, EVENT_NAME_LEN - 1, &typeLen), GET_VALUE_STRING_UTF8); in GetEventType()
|