Home
last modified time | relevance | path

Searched refs:size (Results 14651 - 14675 of 31208) sorted by relevance

1...<<581582583584585586587588589590>>...1249

/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/
H A Dnncompiler.cpp320 if (m_liteGraph->all_nodes_.size() == 0) { in IsOfflineModel()
326 if (m_liteGraph->all_nodes_.size() > 1) { in IsOfflineModel()
493 for (size_t i = 0; i < buffers.size(); ++i) { in ReleaseBuffer()
502 for (size_t i = 0; i < buffers.size(); ++i) { in ReleaseBufferByDevice()
606 size_t cacheNum = caches.size(); in RestoreFromCacheFile()
664 const size_t cacheNumber = caches.size(); in RestoreFromCacheFile()
679 for (size_t i = 0; i < modelCacheInfo.modelCheckSum.size(); ++i) { in RestoreFromCacheFile()
721 m_extensionConfig.modelName.assign(value.data(), value.data() + value.size()); in SetExtensionConfig()
/foundation/ai/neural_network_runtime/test/system_test/
H A Dend_to_end_test.cpp146 ASSERT_GT(m_devices.size(), NO_DEVICE_COUNT); // Expect available accelerator. in HWTEST_F()
201 ASSERT_GT(m_devices.size(), NO_DEVICE_COUNT); // Expect available accelerator. in HWTEST_F()
274 ASSERT_GT(m_devices.size(), NO_DEVICE_COUNT); // Expect available accelerator. in HWTEST_F()
325 ASSERT_GT(m_devices.size(), NO_DEVICE_COUNT); // Expect available accelerator. in HWTEST_F()
374 ASSERT_GT(m_devices.size(), NO_DEVICE_COUNT); // Expect available accelerator. in HWTEST_F()
451 ASSERT_GT(m_devices.size(), NO_DEVICE_COUNT); // Expect available accelerator. in HWTEST_F()
522 ASSERT_GT(m_devices.size(), NO_DEVICE_COUNT); // Expect available accelerator. in HWTEST_F()
581 ASSERT_GT(m_devices.size(), NO_DEVICE_COUNT); // Expect available accelerator. in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/flex/
H A Dwrap_layout_algorithm.cpp142 // and a item has main axis size differ than content height in Measure()
187 float WrapLayoutAlgorithm::GetMainAxisLengthOfSize(const SizeF& size) const in GetMainAxisLengthOfSize()
190 return size.Height(); in GetMainAxisLengthOfSize()
192 return size.Width(); in GetMainAxisLengthOfSize()
195 float WrapLayoutAlgorithm::GetCrossAxisLengthOfSize(const SizeF& size) const in GetCrossAxisLengthOfSize()
198 return size.Width(); in GetCrossAxisLengthOfSize()
200 return size.Height(); in GetCrossAxisLengthOfSize()
211 // if content cross axis size is larger than item cross axis size, in StretchItemsInContent()
212 // measure items again with content cross axis size a in StretchItemsInContent()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/linear_split/
H A Dlinear_split_layout_algorithm.cpp43 // Use idea size first if it is valid. in Measure()
54 if (!childrenDragPos_.empty() && childrenDragPos_.size() != static_cast<size_t>(visibleChildCount_) + 1U) { in Measure()
58 // measure self size. in Measure()
101 // Use idea size first if it is valid. in MeasureBeforeAPI10()
112 // measure self size. in MeasureBeforeAPI10()
317 if (GreatOrEqual(index, static_cast<int32_t>(childrenDragPos_.size()))) { in LayoutRowSplit()
343 if (GreatOrEqual(index, static_cast<int32_t>(childrenDragPos_.size()))) { in LayoutRowSplit()
368 if (GreatOrEqual(index, static_cast<int32_t>(childrenDragPos_.size()))) { in LayoutColumnSplit()
395 if (GreatOrEqual(index, static_cast<int32_t>(childrenDragPos_.size()))) { in LayoutColumnSplit()
405 if (static_cast<uint32_t>(index) >= childrenConstrains_.size()) { in ColumnSplitChildConstrain()
442 auto size = static_cast<float>(theme->GetLinearSplitChildMinSize()); GetLinearSplitChildMinSize() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/irregular/
H A Dgrid_irregular_layout_algorithm.cpp81 // set self size in MeasureSelf()
82 auto size = CreateIdealSize(props->GetLayoutConstraint().value(), info_.axis_, props->GetMeasureType(), true); in MeasureSelf() local
83 wrapper_->GetGeometryNode()->SetFrameSize(size); in MeasureSelf()
85 // set content size in MeasureSelf()
88 MinusPaddingToSize(padding, size); in MeasureSelf()
90 size.AddHeight(info_.contentEndPadding_); in MeasureSelf()
91 wrapper_->GetGeometryNode()->SetContentSize(size); in MeasureSelf()
93 return size.MainSize(info_.axis_); in MeasureSelf()
121 info_.crossCount_ = static_cast<int32_t>(crossLens_.size()); in Init()
347 info_.avgLineHeight_ = info_.GetTotalLineHeight(0.0f) / static_cast<float>(info_.lineHeightMap_.size()); in UpdateLayoutInfo()
[all...]
/foundation/arkui/ace_engine/test/unittest/core/accessibility/
H A Djs_third_provider_interaction_operation_test.cpp322 EXPECT_EQ(operatorCallback.mockInfos_.size(), 0); in HWTEST_F()
330 EXPECT_EQ(operatorCallback.mockInfos_.size(), in HWTEST_F()
331 ohAccessibilityProvider->providerMockResult_.elementInfosList_.size()); in HWTEST_F()
370 EXPECT_EQ(operatorCallback.mockInfos_.size(), in HWTEST_F()
371 ohAccessibilityProvider->providerMockResult_.elementInfosList_.size()); in HWTEST_F()
625 EXPECT_EQ(operatorCallback.mockInfos_.size(), in HWTEST_F()
626 ohAccessibilityProvider->providerMockResult_.elementInfosList_.size()); in HWTEST_F()
632 for (int32_t i = 0; i < operatorCallback.mockInfos_.size(); i++) { in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dbutton_modifier.cpp45 constexpr int32_t BORDER_RADIUS_SIZE = 12; // BorderRadius array size
224 if (fontStyle < 0 || fontStyle >= static_cast<int32_t>(FONT_STYLES.size())) { in SetButtonFontStyle()
351 result < static_cast<int32_t>(TEXT_OVERFLOWS.size())) { in SetButtonValueParameters()
360 result < static_cast<int32_t>(HEIGHT_ADAPTIVE_POLICY.size())) { in SetButtonValueParameters()
365 result < static_cast<int32_t>(FONT_STYLES.size())) { in SetButtonValueParameters()
383 if (fontFamilyResult.size() == 1 && in SetButtonStringParameters()
567 ControlSize size = ControlSize::NORMAL; in SetButtonControlSize() local
570 size = static_cast<ControlSize>(controlSize); in SetButtonControlSize()
572 ButtonModelNG::SetControlSize(frameNode, size); in SetButtonControlSize()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/
H A Dmultiple_paragraph_layout_algorithm.cpp36 auto size = layoutWrapper->GetGeometryNode()->GetFrameSize(); in GetContentOffsetY() local
45 offsetY += Alignment::GetAlignPosition(size, content->GetRect().GetSize(), align).GetY(); in GetContentOffsetY()
131 if (index >= placeholderIndex.size() || index < 0) { in Layout()
136 if (indexTemp >= static_cast<int32_t>(rectsForPlaceholders.size()) || indexTemp < 0) { in Layout()
353 auto size = layoutWrapper->GetGeometryNode()->GetFrameSize(); in SetContentOffset() local
355 MinusPaddingToSize(padding, size); in SetContentOffset()
366 contentOffset = Alignment::GetAlignPosition(size, content->GetRect().GetSize(), align) + paddingOffset; in SetContentOffset()
731 leadingMarginValue = paragraphStyle.leadingMargin->size.Width().ConvertToPxDistribute( in ApplyIndent()
/foundation/multimedia/av_codec/services/media_engine/filters/
H A Ddemuxer_filter.cpp189 MEDIA_LOG_I_SHORT("trackCount: %{public}zu", trackInfos.size()); in DoPrepare()
190 if (trackInfos.size() == 0) { in DoPrepare()
210 for (size_t index = 0; index < trackInfos.size(); index++) { in HandleTrackInfos()
359 if (it != nextFiltersMap_.end() && it->second.size() == 1) { in PauseForSeek()
385 MEDIA_LOG_I_SHORT("ResumeForSeek in size: %{public}zu", nextFiltersMap_.size()); in ResumeForSeek()
387 if (it != nextFiltersMap_.end() && it->second.size() == 1) { in ResumeForSeek()
399 if (it != nextFiltersMap_.end() && it->second.size() == 1) { in ResumeForSeek()
640 if (mime.substr(0, MIME_IMAGE.size()).compare(MIME_IMAGE) == 0) { in ShouldTrackSkipped()
H A Dsurface_encoder_adapter.cpp521 int32_t size = buffer->memory_->GetSize(); in TransCoderOnOutputBufferAvailable() local
524 avBufferConfig.size = size; in TransCoderOnOutputBufferAvailable()
537 bufferMem->Write(buffer->memory_->GetAddr(), size, 0); in TransCoderOnOutputBufferAvailable()
595 int32_t size = buffer->memory_->GetSize(); in OnOutputBufferAvailable() local
598 avBufferConfig.size = size; in OnOutputBufferAvailable()
605 bufferMem->Write(buffer->memory_->GetAddr(), size, 0); in OnOutputBufferAvailable()
/foundation/graphic/graphic_3d/lume/LumeRender/src/nodecontext/
H A Drender_node_parser_util.cpp189 { RenderNodeGraphInputs::RenderNodeGraphGpuImageDesc::DependencyFlagBits::SIZE, "size" },
240 if (pos->is_array() && pos->array_.size() == 4) { in FromJson()
245 "clearColor must be an array of length 4 : (" + string_view(asString.data(), asString.size()) + ")\n"; in FromJson()
249 if (pos->is_array() && pos->array_.size() == 2) { in FromJson()
255 string_view(asString.data(), asString.size()) + ")\n"; in FromJson()
263 string_view(asString.data(), asString.size()) + ")\n"; in FromJson()
268 string_view(asString.data(), asString.size()) + ")\n"; in FromJson()
310 if (pos->is_array() && pos->array_.size() == 2) { in FromJson()
398 if (pos->is_array() && pos->array_.size() == 2) { // 2 :size in ParseRenderpass()
[all...]
/foundation/filemanagement/user_file_service/interfaces/kits/native/trash/src/
H A Dfile_trash_n_exporter.cpp150 status = napi_create_array_with_length(env, result.size(), &fileInfoResultArray); in CreateObjectArray()
156 for (size_t i = 0; i < result.size(); i++) { in CreateObjectArray()
171 status |= napi_create_int64(env, tmpResult.size, &tmpVal); in CreateObjectArray()
172 status |= napi_set_named_property(env, resultVal, "size", tmpVal); in CreateObjectArray()
397 fileInfoEntity.size = static_cast<int64_t>(statEntity.stat_.st_size); in GenerateFileInfoEntity()
439 for (size_t j = 0; j < dirents.size(); j++) { in ListFile()
495 for (size_t j = 0; j < filePathList.size(); j++) { in RecoverFilePart()
519 for (size_t j = 0; j < filterDirPathList.size(); j++) { in MakeAndFindUpdateNameDir()
552 for (size_t j = 0; j < dirents.size(); j++) { in RecoverDir()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/
H A Dmedia_file_utils.cpp365 if (filePath.size() > (lastSlash + 1)) { in GetFileName()
572 if (filePath.size() >= PATH_MAX) { in CopyFileUtil()
573 MEDIA_ERR_LOG("File path too long %{public}d", static_cast<int>(filePath.size())); in CopyFileUtil()
790 size_t size = str.length(); in CheckStringSize() local
791 if (size == 0) { in CheckStringSize()
794 if (size > max) { in CheckStringSize()
1191 if (filePath.size() >= PATH_MAX) {
1192 MEDIA_ERR_LOG("File path too long %{public}d", (int)filePath.size());
1308 if (filePath.size() >= PATH_MAX) {
1309 MEDIA_ERR_LOG("File path too long %{public}d", (int)filePath.size());
1866 GetFileSize(const std::string& filePath, size_t& size) global() argument
[all...]
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/texture_encode/
H A Dastc_codec.cpp211 auto ret_x = std::from_chars(widthStr.data(), widthStr.data() + widthStr.size(), param.blockX_); in extractDimensions()
212 auto ret_y = std::from_chars(heightStr.data(), heightStr.data() + heightStr.size(), param.blockY_); in extractDimensions()
522 if (!InitAstcEncPara(param, imageInfo.size.width, imageInfo.size.height, static_cast<int32_t>(stride), astcOpts_)) { in AstcSoftwareEncodeCore()
592 if (!InitAstcEncPara(param, imageInfo.size.width, imageInfo.size.height, stride, astcOpts_)) { in AstcSoftwareEncodeCore()
627 imageInfo.size.width, imageInfo.size.height, param.hardwareFlag, param.sutProfile); in AstcSoftwareEncodeCore()
/foundation/multimedia/av_codec/test/moduletest/audio_encoder/Avbuffer/src/
H A Davcodec_audio_avbuffer_encoder_demo.cpp105 std::string::size_type srclen = strsrc.size(); in StringReplace()
106 std::string::size_type dstlen = strdst.size(); in StringReplace()
124 if (dest.size() < opusNameSplitNum) { in GetParamsByName()
135 if (dest.size() < opusNameSplitNum) { in GetParamsByName()
182 cout << "OnOutputBufferAvailable received, index:" << index << ", size:" << buffer->buffer_->memory_->GetSize() in OnOutputBufferAvailable()
455 signal_->inCond_.wait(lock, [this]() { return (signal_->inQueue_.size() > 0 || !isRunning_.load()); }); in InputFunc()
498 signal_->outCond_.wait(lock, [this]() { return (signal_->outQueue_.size() > 0 || !isRunning_.load()); }); in OutputFunc()
657 info.size = buffer->buffer_->memory_->GetSize(); in PushInputData()
671 info.size = 0; in PushInputDataEOS()
/foundation/multimedia/image_effect/frameworks/native/utils/common/
H A Dcommon_utils.cpp130 "rowStride=%{public}d, size=%{public}d, addr=%{private}p", sb->GetWidth(), in LockPixelMap()
179 "size=%{public}d, usage = %{public}llu, addr=%{private}p, colorSpace=%{public}d", in ParseSurfaceData()
382 std::from_chars_result res = std::from_chars(strValue.data(), strValue.data() + strValue.size(), value); in GetImagePropertyInt()
427 auto size = strftime(tempTime, sizeof(tempTime), "%Y:%m:%d %H:%M:%S", locTime); in UpdateExifDataTime() local
428 CHECK_AND_RETURN_LOG(size > 0, "UpdateExifDateTime: strftime fail!"); in UpdateExifDataTime()
430 std::string currentTime = std::string(tempTime, size); in UpdateExifDataTime()
556 imageInfo.size.width = static_cast<int32_t>(memoryInfo.bufferInfo.width_); in ModifyPixelMapPropertyInner()
557 imageInfo.size.height = static_cast<int32_t>(memoryInfo.bufferInfo.height_); in ModifyPixelMapPropertyInner()
561 imageInfo.size.width, imageInfo.size in ModifyPixelMapPropertyInner()
[all...]
/foundation/multimedia/image_framework/plugins/common/libs/image/libwebpplugin/src/
H A Dwebp_encoder.cpp82 if (pixelMaps_.size() >= WEBP_IMAGE_NUM) { in AddImage()
344 WebPData webpEncode = { encodedData->bytes(), encodedData->size() }; in DoEncodeForICC()
367 outputStream_->Write(webpAssembled.bytes, webpAssembled.size); in DoEncodeForICC()
783 .size = { in MakeImageInfo()
803 srcInfo.size.width, srcInfo.size.height, srcRowBytes, in ShowTransformParam()
805 dstInfo.size.width, dstInfo.size.height, dstRowBytes, in ShowTransformParam()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Dpicture_ext_test.cpp71 size_t length = IMAGE_JPEG_SRC.size(); in CreatePictureNative()
99 size_t length = IMAGE_INPUT_JPEGHDR_PATH.size();
118 ret = OH_DecodingOptionsForPicture_SetDesiredAuxiliaryPictures(options, ayxTypeList.data(), ayxTypeList.size());
544 size_t size = 0; in HWTEST_F() local
557 format.size = strlen(formatStr); in HWTEST_F()
564 errCode = OH_ImagePackerNative_PackToDataFromPicture(imagePacker, options, picture, outData.get(), &size); in HWTEST_F()
566 EXPECT_GT(size, 0); in HWTEST_F()
613 format.size = strlen(formatStr); in HWTEST_F()
/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/demuxer/
H A Dffmpeg_demuxer_plugin.cpp70 void* FFmpegDemuxerPlugin::DemuxerPluginAllocator::Alloc(size_t size) in Alloc() argument
72 if (size == 0) { in Alloc()
75 return static_cast<void*>(new (std::nothrow) uint8_t[size]); in Alloc()
209 trackCnt = mediaInfo_->tracks.size(); in GetTrackCount()
220 if (trackId < 0 || trackId >= static_cast<int32_t>(mediaInfo_->tracks.size())) { in SelectTrack()
222 "d", trackId, static_cast<int>(mediaInfo_->tracks.size())); in SelectTrack()
263 frameSize = pkt.size; in ConvertAVPacketToFrameInfo()
277 frameSize = pkt.size; in ConvertAVPacketToFrameInfo()
540 MEDIA_LOG_DD("AVReadPacket read data size = " PUBLIC_LOG_D32, static_cast<int>(bufData->GetSize())); in AVReadPacket()
/foundation/multimodalinput/input/service/device_manager/src/
H A Dinput_device_manager.cpp250 for (size_t i = 0; i < keyCodes.size(); i++) { in GetDeviceSupportKey()
396 if (mr.ready() && mr.size() == EXPECTED_N_SUBMATCHES) { in ParseDeviceId()
569 MMI_HILOGI("observers_ size:%{public}zu", observers_.size()); in NotifyPointerDevice()
610 mprintf(fd, "Input devices: count=%zu", inputDevice_.size()); in Dump()
611 mprintf(fd, "Virtual input devices: count=%zu", virtualInputDevices_.size()); in Dump()
623 mprintf(fd, "axis: count=%zu", axisinfo.size()); in Dump()
641 mprintf(fd, "Total device:%zu, Device list:\t", ids.size()); in DumpDeviceList()
791 if (virtualInputDevices_.size() >= MAX_VIRTUAL_INPUT_DEVICE_NUM) { in GenerateVirtualDeviceId()
/foundation/resourceschedule/device_usage_statistics/services/common/src/
H A Dbundle_active_service.cpp351 BUNDLE_ACTIVE_LOGI("QueryBundleEvents result is %{public}zu", bundleActiveEvents.size()); in QueryBundleEvents()
430 BUNDLE_ACTIVE_LOGD("QueryCurrentBundleEvents bundleActiveEvents size is %{public}zu", bundleActiveEvents.size()); in QueryCurrentBundleEvents()
598 BUNDLE_ACTIVE_LOGD("QueryDeviceEventStats result size is %{public}zu", eventStats.size()); in QueryDeviceEventStats()
696 if (argsInStr.size() == NO_DUMP_PARAM_NUMS) { in Dump()
724 if (static_cast<int32_t>(dumpOption.size()) != EVENTS_PARAM) { in ShellDump()
736 if (static_cast<int32_t>(dumpOption.size()) != PACKAGE_USAGE_PARAM) { in ShellDump()
749 if (static_cast<int32_t>(dumpOption.size()) != MODULE_USAGE_PARAM) { in ShellDump()
758 for (uint32_t i = 0; i < oneModuleRecord.formRecords_.size(); in ShellDump()
[all...]
/foundation/resourceschedule/device_usage_statistics/frameworks/src/
H A Dbundle_state_common.cpp400 size_t size = 0; in GetTypeStringValue() local
401 if (napi_get_value_string_utf8(env, param, nullptr, 0, &size) != BUNDLE_STATE_OK) { in GetTypeStringValue()
406 if (size == 0) { in GetTypeStringValue()
410 char *buf = new (std::nothrow) char[size + 1]; in GetTypeStringValue()
415 if (memset_s(buf, size + 1, 0, size + 1) != EOK) { in GetTypeStringValue()
421 bool rev = napi_get_value_string_utf8(env, param, buf, size + 1, &size) == BUNDLE_STATE_OK; in GetTypeStringValue()
/foundation/resourceschedule/background_task_mgr/services/efficiency_resources/src/
H A Dbg_efficiency_resources_mgr.cpp48 const uint32_t MAX_RESOURCES_TYPE_NUM = ResourceTypeName.size();
49 const uint32_t MAX_RESOURCE_MASK = (1 << ResourceTypeName.size()) - 1;
77 BGTASK_LOGD("app resource record size: %{public}d, process resource record size: %{public}d!", in InitNecessaryState()
78 static_cast<int32_t>(appResourceApplyMap_.size()), static_cast<int32_t>(procResourceApplyMap_.size())); in InitNecessaryState()
693 if (dumpOption.size() < MAX_DUMP_PARAM_NUMS) { in DumpResetResource()
707 BGTASK_LOGD("resource record key: %{public}d, resource record size(): %{public}d", in RemoveTargetResourceRecord()
708 mapKey, static_cast<int32_t>(infoMap.size())); in RemoveTargetResourceRecord()
760 BGTASK_LOGD("get efficiency resources info inner function, resources record size() in GetEfficiencyResourcesInfosInner()
[all...]
/foundation/communication/dsoftbus/core/authentication/src/
H A Dauth_tcp_connection.c78 uint8_t *buf, uint32_t size) in PackSocketPkt()
80 if (size < GetSocketPktSize(pktHead->len)) { in PackSocketPkt()
95 if (memcpy_s(buf + offset, size - offset, data, pktHead->len) != EOK) { in PackSocketPkt()
244 AUTH_LOGW(AUTH_CONN, "data is out of size, abandon it."); in ProcessSocketInEvent()
521 uint32_t size = GetSocketPktSize(head->len); in SocketPostBytes() local
522 uint8_t *buf = (uint8_t *)SoftBusCalloc(size); in SocketPostBytes()
534 if (PackSocketPkt(&pktHead, data, buf, size) != SOFTBUS_OK) { in SocketPostBytes()
542 ssize_t ret = ConnSendSocketData(fd, (const char *)buf, (size_t)size, 0); in SocketPostBytes()
544 if (ret != (ssize_t)size) { in SocketPostBytes()
77 PackSocketPkt(const SocketPktHead *pktHead, const uint8_t *data, uint8_t *buf, uint32_t size) PackSocketPkt() argument
/foundation/communication/ipc/ipc/native/c/rpc/src/
H A Ddbinder_invoker.c458 static ThreadProcessInfo *MakeThreadProcessInfo(uint32_t handle, const char *inBuffer, uint32_t size) in MakeThreadProcessInfo() argument
460 if (inBuffer == NULL || size < sizeof(dbinder_transaction_data)) { in MakeThreadProcessInfo()
461 RPC_LOG_ERROR("buffer is null or size invalid"); in MakeThreadProcessInfo()
469 processInfo->buffer = (char *)malloc(size); in MakeThreadProcessInfo()
474 if (memcpy_s(processInfo->buffer, size, inBuffer, size) != EOK) { in MakeThreadProcessInfo()
480 processInfo->packageSize = size; in MakeThreadProcessInfo()
500 static void StartProcessLoop(uint32_t handle, const void *buffer, uint32_t size) in StartProcessLoop() argument
502 ThreadProcessInfo *processInfo = MakeThreadProcessInfo(handle, buffer, size); in StartProcessLoop()

Completed in 65 milliseconds

1...<<581582583584585586587588589590>>...1249