Home
last modified time | relevance | path

Searched refs:GetSize (Results 1 - 25 of 911) sorted by relevance

12345678910>>...37

/foundation/arkui/ace_engine/frameworks/core/components_ng/image_provider/adapter/rosen/
H A Ddrawing_image_data.cpp57 size_t DrawingImageData::GetSize() const in GetSize() function in OHOS::Ace::NG::DrawingImageData
60 return rsData_->GetSize(); in GetSize()
79 auto skData = SkData::MakeWithProc(rsData_->GetData(), rsData_->GetSize(), RSDataWrapperReleaseProc, wrapper); in MakeSvgDom()
83 static_cast<int32_t>(rsData_->GetSize()), nodeId_, static_cast<long long>(accessibilityId_)); in MakeSvgDom()
90 static_cast<int32_t>(rsData_->GetSize()), nodeId_, static_cast<long long>(accessibilityId_)); in MakeSvgDom()
104 static_cast<int32_t>(rsData_->GetSize()), nodeId_, static_cast<long long>(accessibilityId_)); in MakeSvgDom()
125 if (ImageSource::IsAstc(static_cast<const uint8_t*>(rsData->GetData()), rsData->GetSize())) { in Parse()
127 static_cast<const uint8_t*>(rsData->GetData()), rsData->GetSize()); in Parse()
133 auto skData = SkData::MakeWithProc(rsData->GetData(), rsData->GetSize(), RSDataWrapperReleaseProc, wrapper); in Parse()
137 static_cast<int32_t>(rsData->GetSize()), nodeId in Parse()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/dot_indicator/
H A Ddot_indicator_layout_algorithm.cpp56 auto userItemWidth = paintProperty->GetItemWidthValue(theme->GetSize()).ConvertToPx(); in Measure()
57 auto userItemHeight = paintProperty->GetItemHeightValue(theme->GetSize()).ConvertToPx(); in Measure()
58 auto userSelectedItemWidth = paintProperty->GetSelectedItemWidthValue(theme->GetSize()).ConvertToPx(); in Measure()
59 auto userSelectedItemHeight = paintProperty->GetSelectedItemHeightValue(theme->GetSize()).ConvertToPx(); in Measure()
62 userItemWidth = theme->GetSize().ConvertToPx(); in Measure()
63 userItemHeight = theme->GetSize().ConvertToPx(); in Measure()
64 userSelectedItemWidth = theme->GetSize().ConvertToPx(); in Measure()
65 userSelectedItemHeight = theme->GetSize().ConvertToPx(); in Measure()
/foundation/multimedia/av_codec/services/media_engine/modules/demuxer/
H A Dstream_demuxer.cpp67 if (memory != nullptr && memory->GetSize() > 0) { in ReadFrameData()
82 if (memory != nullptr && memory->GetSize() > 0) { in ReadHeaderData()
129 if (size <= memory->GetSize() - offsetInCache) { in PullDataWithCache()
133 bufferPtr->GetMemory()->Write(memory->GetReadOnlyData() + offsetInCache, memory->GetSize() - offsetInCache, 0); in PullDataWithCache()
134 uint64_t remainOffset = cacheDataMap_[streamID].GetOffset() + memory->GetSize(); in PullDataWithCache()
135 uint64_t remainSize = size - (memory->GetSize() - offsetInCache); in PullDataWithCache()
145 tempBuffer->GetMemory()->GetSize(), memory->GetSize() - offsetInCache); in PullDataWithCache()
151 tempBuffer->GetMemory()->GetSize() + memory->GetSize()); in PullDataWithCache()
[all...]
/foundation/graphic/graphic_3d/lume/metaobject/src/animation/
H A Dtrack_animation_state.cpp62 if (!keyframeArray_ || index >= GetTimeStamps()->GetSize()) { in RemoveKeyframe()
78 auto size = timestamps->GetSize(); in UpdateValid()
79 if (timestamps && size > 1 && keyframeArray_->GetSize() == size) { in UpdateValid()
111 if (auto size = keyframeArray_->GetSize()) { in ValidateValues()
137 if (const auto size = timestamps->GetSize()) { in SetKeyframes()
164 progress, currentRangeStartTs_, currentRangeEndTs_, currentIndex_ == keyframeArray_->GetSize() - 1);
174 const auto size = keyframeArray_ ? keyframeArray_->GetSize() : 0; in UpdateIndex()
176 if (!size || !timestamps || timestamps->GetSize() != size) { in UpdateIndex()
217 const auto size = keyframeArray_ ? keyframeArray_->GetSize() : 0; in JumpTo()
219 if (!size || !timestamps || timestamps->GetSize() ! in JumpTo()
[all...]
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/recording/
H A Dcmd_list_helper.cpp82 if (data == nullptr || data->GetSize() == 0) { in AddVerticesToCmdList()
87 auto offset = cmdList.AddImageData(data->GetData(), data->GetSize()); in AddVerticesToCmdList()
88 return { offset, data->GetSize() }; in AddVerticesToCmdList()
189 if (data == nullptr || data->GetSize() == 0) { in AddPictureToCmdList()
194 auto offset = cmdList.AddImageData(data->GetData(), data->GetSize()); in AddPictureToCmdList()
195 return { offset, data->GetSize() }; in AddPictureToCmdList()
222 if (data == nullptr || data->GetSize() == 0) { in AddCompressDataToCmdList()
227 auto offset = cmdList.AddImageData(data->GetData(), data->GetSize()); in AddCompressDataToCmdList()
228 return { offset, data->GetSize() }; in AddCompressDataToCmdList()
420 if (!data || data->GetSize() in AddTextBlobToCmdList()
[all...]
H A Ddraw_cmd_list.cpp134 if (opAllocator_.GetSize() <= offset && drawOpItems_.size() == 0) { in IsEmpty()
246 if (opAllocator_.GetSize() <= offset_) { in UnmarshallingDrawOps()
263 auto op = player.Unmarshalling(type, itemPtr, opAllocator_.GetSize() - offset); in UnmarshallingDrawOps()
277 size_t avaliableSize = opAllocator_.GetSize() - replacedOpListForBuffer_[opReplaceIndex].second; in UnmarshallingDrawOps()
295 lastOpGenSize_ = opAllocator_.GetSize(); in UnmarshallingDrawOps()
297 if ((int)imageAllocator_.GetSize() > 0) { in UnmarshallingDrawOps()
448 if (opAllocator_.GetSize() <= offset_) { in GenerateCacheByBuffer()
454 uint32_t maxOffset = opAllocator_.GetSize(); in GenerateCacheByBuffer()
462 size_t avaliableSize = opAllocator_.GetSize() - offset; in GenerateCacheByBuffer()
505 size_t size = opAllocator_.GetSize() in PlaybackToDrawCmdList()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/base/
H A Dgeometry_node.h60 auto size = frame_.rect_.GetSize(); in GetMarginFrameSize()
62 size += selfAdjust_.GetSize(); in GetMarginFrameSize()
85 auto size = frame_.rect_.GetSize(); in GetMarginFrameRect()
88 size += selfAdjust_.GetSize(); in GetMarginFrameRect()
117 auto result = frame_.rect_.GetSize(); in GetFrameSize()
119 result += selfAdjust_.GetSize(); in GetFrameSize()
173 auto size = frame_.rect_.GetSize(); in GetPaddingSize()
175 size += selfAdjust_.GetSize(); in GetPaddingSize()
202 auto size = rect.GetSize(); in GetPaddingRect()
235 return content_ ? content_->rect_.GetSize() in GetContentSize()
[all...]
/foundation/multimedia/camera_framework/frameworks/native/camera/src/output/
H A Dcamera_output_capability.cpp63 Size Profile::GetSize() in GetSize() function in OHOS::CameraStandard::Profile
144 "height: %{public}d] cant match", profile.GetCameraFormat(), profile.GetSize().width, in IsMatchPreviewProfiles()
145 profile.GetSize().height); in IsMatchPreviewProfiles()
161 "height: %{public}d] cant match", profile.GetCameraFormat(), profile.GetSize().width, in IsMatchPhotoProfiles()
162 profile.GetSize().height); in IsMatchPhotoProfiles()
177 profile_.GetSize().width == profile.GetSize().width && in IsMatchVideoProfiles()
178 profile_.GetSize().height == profile.GetSize().height && in IsMatchVideoProfiles()
186 profile.GetSize() in IsMatchVideoProfiles()
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/
H A Ddata_value.cpp59 uint32_t Blob::GetSize() const in GetSize() function in DistributedDB::Blob
180 if (blob == nullptr || blob->GetSize() < 0) { in Set()
208 if (dataValue.value_.blobPtr->GetSize() != value_.blobPtr->GetSize()) { in operator ==()
211 for (uint32_t i = 0; i < dataValue.value_.blobPtr->GetSize(); ++i) { in operator ==()
256 return outVal->WriteBlob(value_.blobPtr->GetData(), value_.blobPtr->GetSize()); in GetBlob()
262 if (val.GetSize() < 0) { in SetBlob()
271 if (val.GetSize() > 0) { in SetBlob()
272 errCode = value_.blobPtr->WriteBlob(val.GetData(), val.GetSize()); in SetBlob()
282 return outVal.WriteBlob(value_.blobPtr->GetData(), value_.blobPtr->GetSize()); in GetBlob()
[all...]
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/image_source_test/
H A Dmetadata_stream_test.cpp389 byte *buf = new byte[stream1.GetSize()]; in HWTEST_F()
390 stream1.Read(buf, stream1.GetSize()); in HWTEST_F()
391 ASSERT_EQ(stream2.Write(buf, stream1.GetSize()), stream1.GetSize()); in HWTEST_F()
421 byte *buf = new byte[sourceStream.GetSize()]; in HWTEST_F()
422 EXPECT_EQ(sourceStream.Read(buf, sourceStream.GetSize()), -1); in HWTEST_F()
475 ASSERT_EQ(stream.GetSize(), size); in HWTEST_F()
746 ASSERT_EQ(dest.GetSize(), src.GetSize()); in HWTEST_F()
777 ASSERT_EQ(src.GetSize(), des in HWTEST_F()
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/relational/
H A Drelational_result_set_impl.cpp30 return !isClosed_ && cacheDataSet_.empty() && index >= 0 && index < dataSet_.GetSize(); in IsValid()
37 return dataSet_.GetSize(); in GetCount()
55 return MoveToPosition(dataSet_.GetSize() - 1); in MoveToLast()
83 } else if (index >= dataSet_.GetSize()) { in MoveToPosition()
84 index_ = dataSet_.GetSize(); in MoveToPosition()
98 return IsValid(index_) && index_ == dataSet_.GetSize() - 1; in IsLast()
104 return dataSet_.GetSize() == 0 || index_ <= -1; in IsBeforeFirst()
110 return dataSet_.GetSize() == 0 || index_ >= dataSet_.GetSize(); in IsAfterLast()
/foundation/multimedia/av_codec/test/unittest/common/common_mock/avmemory/inner/
H A Davmemory_inner_mock.cpp28 int32_t AVMemoryInnerMock::GetSize() const in GetSize() function in OHOS::MediaAVCodec::AVMemoryInnerMock
31 return memory_->GetSize(); in GetSize()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/
H A Ddistributeddb_relational_remote_query_test.cpp202 EXPECT_EQ(rowDataSet.GetSize(), 1); in HWTEST_F()
264 EXPECT_EQ(rowDataSet.GetSize(), 3); in HWTEST_F()
268 EXPECT_EQ(rowDataSet.GetSize(), 3); in HWTEST_F()
272 EXPECT_EQ(rowDataSet.GetSize(), 3); in HWTEST_F()
276 EXPECT_EQ(rowDataSet.GetSize(), 3); in HWTEST_F()
280 EXPECT_EQ(rowDataSet.GetSize(), 0); in HWTEST_F()
284 EXPECT_EQ(rowDataSet.GetSize(), 0); in HWTEST_F()
288 EXPECT_EQ(rowDataSet.GetSize(), 0); in HWTEST_F()
329 EXPECT_EQ(rowDataSet.GetSize(), 1); in HWTEST_F()
334 EXPECT_EQ(rowDataSet.GetSize(), in HWTEST_F()
[all...]
/foundation/graphic/graphic_2d/rosen/test/frame_analyzer/unittest/
H A Dframe_collector_test.cpp111 STEP_ASSERT_EQ(collector.LockGetFrameQueue().GetSize(), 0); in HWTEST_F()
127 STEP_ASSERT_EQ(collector.LockGetFrameQueue().GetSize(), 0); in HWTEST_F()
136 STEP_ASSERT_EQ(collector.LockGetFrameQueue().GetSize(), 1); in HWTEST_F()
145 STEP_ASSERT_EQ(collector.LockGetFrameQueue().GetSize(), 2); in HWTEST_F()
154 STEP_ASSERT_EQ(collector.LockGetFrameQueue().GetSize(), 0); in HWTEST_F()
/foundation/multimedia/media_foundation/engine/plugin/plugins/source/http_source/http/
H A Dhttp_media_downloader.cpp90 while (buffer_->GetSize() == 0) { in Read()
102 (buffer_->GetSize() < wantReadLength)) { in Read()
106 return buffer_->GetSize() >= wantReadLength || downloadRequest_->IsEos() || downloadRequest_->IsClosed(); in Read()
118 MEDIA_LOG_I("Seek: buffer size " PUBLIC_LOG_ZU ", offset " PUBLIC_LOG_D32, buffer_->GetSize(), offset); in SeekToPos()
168 size_t bufferSize = buffer_->GetSize(); in SaveData()
/foundation/ai/intelligent_voice_framework/services/intell_voice_engine/server/base/
H A Ddata_operation_callback.cpp119 if ((buffer->GetSize() == 0) || (buffer->GetData() == nullptr)) { in CreateAshmemFromArrayBuffer()
124 sptr<Ashmem> ashmem = OHOS::Ashmem::CreateAshmem(name.c_str(), buffer->GetSize() * sizeof(uint8_t)); in CreateAshmemFromArrayBuffer()
141 if (!ashmem->WriteToAshmem(buffer->GetData(), buffer->GetSize() * sizeof(uint8_t), 0)) { in CreateAshmemFromArrayBuffer()
148 static_cast<uint32_t>(buffer->GetSize() * sizeof(uint8_t))); in CreateAshmemFromArrayBuffer()
/foundation/arkui/ace_engine/frameworks/core/animation/
H A Dsimple_spring_chain.cpp68 for (int32_t index = 0; index < springAdapter_->GetSize(); index++) { in SetDeltaValue()
101 for (int32_t idx = 0; idx < springAdapter_->GetSize(); idx++) { in Cancel()
106 LOGW("Node size mismatch. size: %{public}d, current size: %{public}d", springAdapter_->GetSize(), idx + 1); in Cancel()
114 for (int32_t idx = 0; idx < springAdapter_->GetSize(); idx++) { in TransferParamsInternal()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/accessor/src/
H A Dbuffer_metadata_stream.cpp245 if (src.GetSize() == 0) { in CopyFrom()
249 if (src.GetSize() > static_cast<ssize_t>(capacity_)) { in CopyFrom()
253 src.GetSize(), capacity_); in CopyFrom()
264 ssize_t estimatedSize = ((src.GetSize() + METADATA_STREAM_PAGE_SIZE - 1) / METADATA_STREAM_PAGE_SIZE) * in CopyFrom()
287 ssize_t buffer_size = std::min((ssize_t)METADATA_STREAM_PAGE_SIZE, src.GetSize()); in ReadAndWriteData()
322 ssize_t BufferMetadataStream::GetSize() in GetSize() function in OHOS::Media::BufferMetadataStream
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/communicator/src/
H A Dframe_retainer.cpp33 work.frameId, work.remainTime, work.buffer->GetSize()); in LogRetainInfo()
89 if (work.buffer->GetSize() > MAX_RETAIN_FRAME_SIZE) { in RetainFrame()
90 LOGE("[Retainer][Retain] Frame size=%u over limit=%u.", work.buffer->GetSize(), MAX_RETAIN_FRAME_SIZE); in RetainFrame()
109 totalSizeByByte_ -= iter->second.buffer->GetSize(); in RetainFrame()
117 totalSizeByByte_ += inFrame.buffer->GetSize(); in RetainFrame()
145 totalSizeByByte_ -= work.buffer->GetSize(); in FetchFramesForSpecificCommunicator()
163 totalSizeByByte_ -= eachFrame.second.buffer->GetSize(); in DecreaseRemainTimeAndDiscard()
216 totalSizeByByte_ -= workRef.buffer->GetSize(); in DiscardObsoleteFramesIfNeed()
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/interface/model/
H A Dintf_data_model.h83 virtual size_t GetSize(const DataModelIndex& index) const = 0;
88 size_t GetSize() const in GetSize() function in IDataModel
90 return GetSize(DataModelIndex {}); in GetSize()
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/unittest/
H A Drs_region_test.cpp55 EXPECT_EQ(sub.GetSize(), 2); in HWTEST_F()
74 EXPECT_EQ(resOr.GetSize(), 3); in HWTEST_F()
93 EXPECT_EQ(resAnd.GetSize(), 1); in HWTEST_F()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/accessor/include/
H A Dmetadata_stream.h174 virtual ssize_t GetSize() = 0;
183 return GetSize(); in GetOriginalSize()
204 if (GetOriginalSize() < static_cast<size_t>(GetSize())) { in IsFileSizeChanged()
/foundation/multimedia/av_codec/test/unittest/avsource_test/
H A Davsource_mock.h63 mem->GetBase(), mem->GetSize(), mem->GetSize() in ReadAt()
69 int32_t GetSize(int64_t &size) in GetSize() function in OHOS::MediaAVCodec::NativeAVDataSource
/foundation/graphic/graphic_3d/lume/metaobject/test/src/interface/
H A DIntfContainerTest.cpp68 ASSERT_EQ(container_->GetSize(), NumDirectChildren);
174 EXPECT_EQ(container_->GetSize(), NumDirectChildren + 1); in HWTEST_P()
344 EXPECT_EQ(container_->GetSize(), 0); in HWTEST_P()
368 EXPECT_EQ(container_->GetSize(), expectedCount); in HWTEST_P()
397 EXPECT_EQ(container_->GetSize(), expectedCount); in HWTEST_P()
402 EXPECT_EQ(container_->GetSize(), expectedCount); in HWTEST_P()
410 EXPECT_EQ(container_->GetSize(), expectedCount + 1); in HWTEST_P()
433 EXPECT_EQ(container_->GetSize(), NumDirectChildren); in HWTEST_P()
435 EXPECT_EQ(container_->GetSize(), NumDirectChildren); in HWTEST_P()
440 EXPECT_EQ(container_->GetSize(), NumDirectChildre in HWTEST_P()
[all...]
/foundation/graphic/surface_lite/test/unittest/
H A Dgraphic_surface_test.cpp74 EXPECT_EQ(0, buffer->GetSize()); in HWTEST_F()
210 EXPECT_EQ(0, surface->GetSize()); in HWTEST_F()
285 EXPECT_EQ(0, surface->GetSize()); in HWTEST_F()
328 EXPECT_EQ(0, surface->GetSize()); in HWTEST_F()
380 EXPECT_EQ(0, surface->GetSize()); in HWTEST_F()
388 EXPECT_EQ(0, surface->GetSize()); in HWTEST_F()
392 EXPECT_EQ(0, surface->GetSize()); in HWTEST_F()
396 EXPECT_EQ(1024, surface->GetSize()); in HWTEST_F()
427 EXPECT_EQ(0, surface->GetSize()); in HWTEST_F()
471 EXPECT_EQ(0, surface->GetSize()); in HWTEST_F()
[all...]

Completed in 19 milliseconds

12345678910>>...37