Home
last modified time | relevance | path

Searched refs:typeLen (Results 1 – 25 of 31) sorted by relevance

12

/ohos5.0/foundation/arkui/napi/sample/native_module_netserver/
H A Djs_netserver.cpp112 size_t typeLen = 0; in JS_On() local
146 size_t typeLen = 0; in JS_Once() local
147 napi_get_value_string_utf8(env, argv[0], nullptr, 0, &typeLen); in JS_Once()
149 NAPI_ASSERT(env, typeLen > 0, "typeLen == 0"); in JS_Once()
150 type = new char[typeLen + 1]; in JS_Once()
151 napi_get_value_string_utf8(env, argv[0], type, typeLen + 1, &typeLen); in JS_Once()
185 size_t typeLen = 0; in JS_Off() local
186 napi_get_value_string_utf8(env, argv[0], nullptr, 0, &typeLen); in JS_Off()
188 NAPI_ASSERT(env, typeLen > 0, "typeLen == 0"); in JS_Off()
189 type = new char[typeLen + 1]; in JS_Off()
[all …]
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/include/
H A Dendian_convert.h39 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()
/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/camera/test/ndktest/camera_ndk_demo/entry/src/main/cpp/
H A Dmain.cpp109 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 + 1]; in StartPhotoOrVideo()
203 napi_get_value_string_utf8(env, args[0], modeFlag, typeLen + 1, &typeLen); in StartPhotoOrVideo()
/ohos5.0/foundation/distributeddatamgr/pasteboard/framework/tlv/
H A Dendian_converter.h115 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()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/
H A Dlnn_net_builder_virtual.c59 int32_t LnnRequestLeaveByAddrType(const bool *type, uint32_t typeLen) in LnnRequestLeaveByAddrType() argument
62 (void)typeLen; in LnnRequestLeaveByAddrType()
H A Dlnn_net_builder.c349 void RemovePendingRequestByAddrType(const bool *addrType, uint32_t typeLen) in RemovePendingRequestByAddrType() argument
354 if (addrType == NULL || typeLen != CONNECTION_ADDR_MAX) { in RemovePendingRequestByAddrType()
355 LNN_LOGE(LNN_BUILDER, "invalid typeLen=%{public}d", typeLen); in RemovePendingRequestByAddrType()
1216 int32_t LnnRequestLeaveByAddrType(const bool *type, uint32_t typeLen) in LnnRequestLeaveByAddrType() argument
1223 if (typeLen != CONNECTION_ADDR_MAX) { in LnnRequestLeaveByAddrType()
1233 para = (bool *)SoftBusMalloc(sizeof(bool) * typeLen); in LnnRequestLeaveByAddrType()
1238 if (memcpy_s(para, sizeof(bool) * typeLen, type, sizeof(bool) * typeLen) != EOK) { in LnnRequestLeaveByAddrType()
/ohos5.0/foundation/distributedhardware/device_manager/interfaces/kits/js/src/
H A Dnative_devicemanager_js.cpp1280 size_t typeLen = 0; in JsToDmDiscoveryExtra() local
1505 size_t typeLen = 0; in SetUserOperationSync() local
1510 napi_get_value_string_utf8(env, argv[1], type, typeLen + 1, &typeLen); in SetUserOperationSync()
2512 size_t typeLen = 0; in RequestCredential() local
2516 napi_get_value_string_utf8(env, argv[0], type, typeLen + 1, &typeLen); in RequestCredential()
2586 size_t typeLen = 0; in ImportCredential() local
2591 napi_get_value_string_utf8(env, argv[0], type, typeLen + 1, &typeLen); in ImportCredential()
2639 size_t typeLen = 0; in DeleteCredential() local
2644 napi_get_value_string_utf8(env, argv[0], type, typeLen + 1, &typeLen); in DeleteCredential()
2668 napi_get_value_string_utf8(env, argv[0], type, typeLen + 1, &typeLen); in JsOnFrench()
[all …]
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_buscenter/
H A Dlnn_bt_network_impl_mock.cpp57 int32_t LnnRequestLeaveByAddrType(const bool *type, uint32_t typeLen) in LnnRequestLeaveByAddrType() argument
59 return GetLnnBtNetworkImplInterface()->LnnRequestLeaveByAddrType(type, typeLen); in LnnRequestLeaveByAddrType()
H A Dlnn_network_manager_mock.cpp95 int32_t LnnRequestLeaveByAddrType(const bool *type, uint32_t typeLen) in LnnRequestLeaveByAddrType() argument
97 return GetNetworkManagerInterface()->LnnRequestLeaveByAddrType(type, typeLen); in LnnRequestLeaveByAddrType()
H A Dlnn_ip_network_impl_mock.cpp160 int32_t LnnRequestLeaveByAddrType(const bool *type, uint32_t typeLen) in LnnRequestLeaveByAddrType() argument
162 return GetLnnIpNetworkImplInterface()->LnnRequestLeaveByAddrType(type, typeLen); in LnnRequestLeaveByAddrType()
H A Dlnn_bt_network_impl_mock.h35 virtual int32_t LnnRequestLeaveByAddrType(const bool *type, uint32_t typeLen) = 0;
H A Dlnn_network_manager_mock.h51 virtual int32_t LnnRequestLeaveByAddrType(const bool *type, uint32_t typeLen) = 0;
H A Dlnn_ip_network_impl_mock.h57 virtual int32_t LnnRequestLeaveByAddrType(const bool *type, uint32_t typeLen) = 0;
/ohos5.0/foundation/communication/connected_nfc_tag/frameworks/js/napi/
H A Dnfc_napi_event.cpp170 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()
/ohos5.0/drivers/interface/camera/metadata/include/
H A Dmetadata_utils.h69 constexpr uint32_t typeLen = sizeof(T); in ReadData() local
70 uint8_t array[typeLen] = {0}; in ReadData()
/ohos5.0/drivers/peripheral/camera/interfaces/hdi_ipc/utils/include/
H A Dutils_data_stub.h68 constexpr uint32_t typeLen = sizeof(T); in ReadData() local
69 uint8_t array[typeLen] = {0}; in ReadData()
/ohos5.0/base/location/frameworks/js/napi/source/
H A Dlocation_napi_system.cpp115 size_t typeLen = 0; in GetLocation() local
116 NAPI_CALL(env, napi_get_value_string_utf8(env, nVcoordType, type, sizeof(type), &typeLen)); in GetLocation()
233 size_t typeLen = 0; in Subscribe() local
234 NAPI_CALL(env, napi_get_value_string_utf8(env, nVcoordType, type, sizeof(type), &typeLen)); in Subscribe()
/ohos5.0/foundation/communication/nfc/frameworks/js/napi/controller/
H A Dnfc_napi_controller_event.cpp197 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()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/include/
H A Dlnn_net_builder.h153 int32_t LnnRequestLeaveByAddrType(const bool *type, uint32_t typeLen);
183 void RemovePendingRequestByAddrType(const bool *addrType, uint32_t typeLen);
/ohos5.0/base/global/i18n_lite/frameworks/i18n/src/
H A Dnumber_data.cpp222 int typeLen = type.size(); in ParseOtherPerPattern() local
223 style.entireFormat = I18nNewCharString(type.data(), typeLen); in ParseOtherPerPattern()
/ohos5.0/foundation/communication/wifi/wifi/frameworks/js/napi/src/
H A Dwifi_napi_event.cpp469 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()
/ohos5.0/commonlibrary/ets_utils/js_util_module/util/
H A Dnative_module_util.cpp405 size_t typeLen = 0; in TextdecoderConstructor() local
411 napi_get_value_string_utf8(env, argv, nullptr, 0, &typeLen); in TextdecoderConstructor()
412 if (typeLen > 0) { in TextdecoderConstructor()
413 type = ApplyMemory(typeLen); in TextdecoderConstructor()
415 napi_get_value_string_utf8(env, argv, type, typeLen + 1, &typeLen); in TextdecoderConstructor()
421 napi_get_value_string_utf8(env, argvArr[0], nullptr, 0, &typeLen); in TextdecoderConstructor()
422 if (typeLen > 0) { in TextdecoderConstructor()
423 type = ApplyMemory(typeLen); in TextdecoderConstructor()
425 napi_get_value_string_utf8(env, argvArr[0], type, typeLen + 1, &typeLen); in TextdecoderConstructor()
/ohos5.0/foundation/multimodalinput/input/util/napi/src/
H A Dutil_napi_value.cpp187 size_t typeLen = 0; in GetNamePropertyString() local
188 napi_get_value_string_utf8(env, napiValue, tmpValue, MAX_STRING_LEN - 1, &typeLen); in GetNamePropertyString()
/ohos5.0/foundation/multimedia/camera_framework/frameworks/js/camera_napi/src/picker/
H A Dcamera_picker_napi.cpp98 uint32_t typeLen; in GetMediaTypes() local
99 if (napi_get_array_length(env, napiMediaTypesArray, &typeLen) != napi_ok) { in GetMediaTypes()
103 for (uint32_t i = 0; i < typeLen; i++) { in GetMediaTypes()
/ohos5.0/base/startup/init/interfaces/kits/jskits/src/
H A Dnative_parameters_watch.cpp363 size_t typeLen = BUF_LENGTH - 1; in GetWatcherInfo() local
364 std::vector<char> eventType(typeLen, 0); in GetWatcherInfo()
365 int ret = GetParamValue(env, argv[0], napi_string, eventType.data(), typeLen); in GetWatcherInfo()

12