/ohos5.0/foundation/arkui/napi/sample/native_module_netserver/ |
H A D | js_netserver.cpp | 112 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 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()
|
/ohos5.0/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 + 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 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()
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/ |
H A D | lnn_net_builder_virtual.c | 59 int32_t LnnRequestLeaveByAddrType(const bool *type, uint32_t typeLen) in LnnRequestLeaveByAddrType() argument 62 (void)typeLen; in LnnRequestLeaveByAddrType()
|
H A D | lnn_net_builder.c | 349 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 D | native_devicemanager_js.cpp | 1280 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 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_network_manager_mock.h | 51 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;
|
/ohos5.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()
|
/ohos5.0/drivers/interface/camera/metadata/include/ |
H A D | metadata_utils.h | 69 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 D | utils_data_stub.h | 68 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 D | location_napi_system.cpp | 115 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 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()
|
/ohos5.0/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);
|
/ohos5.0/base/global/i18n_lite/frameworks/i18n/src/ |
H A D | number_data.cpp | 222 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 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()
|
/ohos5.0/commonlibrary/ets_utils/js_util_module/util/ |
H A D | native_module_util.cpp | 405 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 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()
|
/ohos5.0/foundation/multimedia/camera_framework/frameworks/js/camera_napi/src/picker/ |
H A D | camera_picker_napi.cpp | 98 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 D | native_parameters_watch.cpp | 363 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()
|