Home
last modified time | relevance | path

Searched refs:totalSize (Results 1 - 25 of 133) sorted by relevance

123456

/foundation/deviceprofile/device_info_manager/old/services/core/src/contentsensor/
H A Dstorage_info_collector.cpp40 int64_t totalSize = GetTotalSize(); in ConvertToProfileData() local
41 if (totalSize == 0) { in ConvertToProfileData()
44 jsonData[CAPACITY] = totalSize; in ConvertToProfileData()
51 int64_t totalSize = 0; in GetTotalSize() local
56 return totalSize; in GetTotalSize()
58 totalSize = (int64_t)diskInfo.f_bsize * (int64_t)diskInfo.f_blocks / KILOBYTE; in GetTotalSize()
59 return totalSize; in GetTotalSize()
/foundation/arkui/ace_engine_lite/frameworks/common/memory/cache/test/unittest/common/
H A Dcache_manager_tdd_test.cpp41 const size_t totalSize = 20 * 1024; // 20KB in HWTEST_F() local
42 char *buffer = static_cast<char *>(ace_malloc(sizeof(char) * totalSize)); in HWTEST_F()
50 CacheManager::GetInstance().SetupCacheMemInfo(startAddr, totalSize); in HWTEST_F()
75 const size_t totalSize = 20 * 1024; // 40KB in HWTEST_F() local
76 char *buffer = static_cast<char *>(ace_malloc(sizeof(char) * totalSize)); in HWTEST_F()
92 CacheManager::GetInstance().SetupCacheMemInfo(startAddr, totalSize); in HWTEST_F()
118 const size_t totalSize = 2 * 1024; // 2KB in HWTEST_F() local
119 char *buffer = static_cast<char *>(ace_malloc(sizeof(char) * totalSize)); in HWTEST_F()
128 CacheManager::GetInstance().SetupCacheMemInfo(startAddr, totalSize); in HWTEST_F()
149 const size_t totalSize in HWTEST_F() local
182 const size_t totalSize = 20 * 1024; // 20KB HWTEST_F() local
220 const size_t totalSize = 16 * 1024; // 16KB, the total length equals to the requirement HWTEST_F() local
[all...]
/foundation/systemabilitymgr/samgr_lite/samgr/adapter/posix/
H A Dlock_free_queue.c38 queue->totalSize = total; in LFQUE_Create()
45 if (nextWrite >= queue->totalSize) { in LFQUE_IsFull()
66 uint32 copyLen = (queue->totalSize - queue->write < queue->itemSize) ? in LFQUE_Push()
67 (queue->totalSize - queue->write) : queue->itemSize; in LFQUE_Push()
81 if (write >= queue->totalSize) { in LFQUE_Push()
82 write = write - queue->totalSize; in LFQUE_Push()
98 uint32 copyLen = (queue->totalSize - queue->read < queue->itemSize) ? in LFQUE_Pop()
99 (queue->totalSize - queue->read) : queue->itemSize; in LFQUE_Pop()
113 if (read >= queue->totalSize) { in LFQUE_Pop()
114 read = read - queue->totalSize; in LFQUE_Pop()
[all...]
/foundation/filemanagement/storage_service/services/storage_manager/innerkits_impl/test/
H A Dstorage_stats_test.cpp45 int64_t totalSize = 1001; in HWTEST_F() local
51 StorageStats res(totalSize, audioSize, videoSize, imageSize, fileSize, appSize); in HWTEST_F()
54 EXPECT_EQ(parcel.ReadInt64(), totalSize); in HWTEST_F()
75 int64_t totalSize = 2001; in HWTEST_F() local
82 parcel.WriteInt64(totalSize); in HWTEST_F()
90 EXPECT_EQ(res.total_, totalSize); in HWTEST_F()
/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/src/
H A Dspunge_mem.c30 FILLP_UINT32 totalSize = (FILLP_UINT32)(blockSize * blockNum); in SpungeAlloc() local
31 if ((totalSize == 0) || (blockNum != totalSize / blockSize)) { in SpungeAlloc()
35 return FILLP_MALLOC((FILLP_UINT32)totalSize); in SpungeAlloc()
/foundation/filemanagement/storage_service/services/storage_manager/storage/src/
H A Dstorage_monitor_service.cpp113 int64_t totalSize; in CheckAndCleanBundleCache() local
114 int32_t err = DelayedSingleton<StorageTotalStatusService>::GetInstance()->GetTotalSize(totalSize); in CheckAndCleanBundleCache()
115 if ((err != E_OK) || (totalSize <= 0)) { in CheckAndCleanBundleCache()
126 if (freeSize < (totalSize * STORAGE_LEFT_SIZE_THRESHOLD) / CONST_NUM_ONE_HUNDRED) { in CheckAndCleanBundleCache()
127 CheckAndEventNotify(freeSize, totalSize); in CheckAndCleanBundleCache()
129 int64_t lowThreshold = GetLowerThreshold(totalSize); in CheckAndCleanBundleCache()
154 int64_t StorageMonitorService::GetLowerThreshold(int64_t totalSize) in GetLowerThreshold() argument
156 int64_t lowBytes = (totalSize * STORAGE_THRESHOLD_PERCENTAGE) / CONST_NUM_ONE_HUNDRED; in GetLowerThreshold()
160 void StorageMonitorService::CheckAndEventNotify(int64_t freeSize, int64_t totalSize) in CheckAndEventNotify() argument
H A Dstorage_total_status_service.cpp54 int64_t totalSize = 0; in GetSystemSize() local
55 ret = GetSizeOfPath(PATH_DATA, SizeType::TOTAL, totalSize); in GetSystemSize()
68 systemSize = roundSize - totalSize; in GetSystemSize()
69 LOGE("StorageTotalStatusService::GetSystemSize success, roundSize=%{public}lld, (/data)totalSize=%{public}lld, " in GetSystemSize()
71 static_cast<long long>(roundSize), static_cast<long long>(totalSize), static_cast<long long>(systemSize)); in GetSystemSize()
75 int32_t StorageTotalStatusService::GetTotalSize(int64_t &totalSize) in GetTotalSize() argument
107 totalSize = GetRoundSize(dataSize + rootSize); in GetTotalSize()
110 static_cast<long long>(totalSize), static_cast<long long>(dataSize), static_cast<long long>(rootSize)); in GetTotalSize()
H A Dvolume_storage_status_service.cpp64 int32_t VolumeStorageStatusService::GetTotalSizeOfVolume(std::string volumeUuid, int64_t &totalSize) in GetTotalSizeOfVolume() argument
75 totalSize = (int64_t)diskInfo.f_bsize * (int64_t)diskInfo.f_blocks; in GetTotalSizeOfVolume()
/foundation/arkui/ace_engine/frameworks/core/components/select_popup/
H A Drender_select_popup.cpp319 Size totalSize; in PerformLayout() local
323 totalSize = renderTitleBox_->GetLayoutSize(); in PerformLayout()
325 totalSize.SetWidth(totalSize.Width() + NormalizeToPx(8.0_vp)); in PerformLayout()
326 fixHeight = totalSize.Height(); in PerformLayout()
343 if (option->GetLayoutSize().Width() > totalSize.Width()) { in PerformLayout()
344 totalSize.SetWidth(option->GetLayoutSize().Width()); in PerformLayout()
346 totalSize.AddHeight(option->GetLayoutSize().Height()); in PerformLayout()
349 totalSize.Width() < NormalizeToPx(minWidth_)) { in PerformLayout()
350 totalSize in PerformLayout()
[all...]
/foundation/filemanagement/storage_service/test/fuzztest/storagetotalstatusservice_fuzzer/
H A Dstoragetotalstatusservice_fuzzer.cpp27 int64_t totalSize; in StorageTotalStatusServiceFuzzTest() local
30 int32_t result = service->GetTotalSize(totalSize); in StorageTotalStatusServiceFuzzTest()
/foundation/filemanagement/storage_service/services/storage_manager/include/storage/
H A Dstorage_monitor_service.h39 int64_t GetLowerThreshold(int64_t totalSize);
40 void CheckAndEventNotify(int64_t freeSize, int64_t totalSize);
/foundation/filemanagement/storage_service/services/storage_manager/storage/test/
H A Dvolume_storage_status_service_test.cpp73 int64_t totalSize; in HWTEST_F() local
74 int32_t result = service->GetTotalSizeOfVolume(volumeUuid, totalSize); in HWTEST_F()
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/distributeddatafwk/src/
H A Dikvstore_observer.cpp59 int64_t totalSize = insertSize + updateSize + deleteSize + sizeof(uint32_t); in OnChange() local
60 if (insertSize < 0 || updateSize < 0 || deleteSize < 0 || !data.WriteInt32(totalSize)) { in OnChange()
64 ZLOGD("I(%" PRId64 ") U(%" PRId64 ") D(%" PRId64 ") T(%" PRId64 ")", insertSize, updateSize, deleteSize, totalSize); in OnChange()
65 if (totalSize < SWITCH_RAW_DATA_SIZE) { in OnChange()
/foundation/communication/netstack/frameworks/cj/http/include/
H A Dffi_structs.h108 uint32_t totalSize; member
113 uint32_t totalSize; member
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/
H A Dmenu_layout_algorithm.h207 const RefPtr<GeometryNode>& menuGeometryNode, SizeF& totalSize, float menuItemTotalHeight);
209 const RefPtr<GeometryNode>& menuGeometryNode, SizeF& totalSize);
211 const RefPtr<GeometryNode>& menuGeometryNode, SizeF& totalSize);
213 const RefPtr<GeometryNode>& menuGeometryNode, SizeF& totalSize, float menuItemTotalHeight);
215 const RefPtr<GeometryNode>& menuGeometryNode, SizeF& totalSize);
217 const RefPtr<GeometryNode>& menuGeometryNode, SizeF& totalSize);
220 const RefPtr<GeometryNode>& menuGeometryNode, SizeF& totalSize, float menuItemTotalHeight);
222 const RefPtr<GeometryNode>& menuGeometryNode, SizeF& totalSize);
224 const RefPtr<GeometryNode>& menuGeometryNode, SizeF& totalSize);
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/
H A Dmoving_photo_file_utils.cpp503 off_t totalSize = statSrc.st_size; in SendLivePhoto() local
504 CHECK_AND_RETURN_RET_LOG(sizeToSend <= totalSize - offset, E_INVALID_LIVE_PHOTO, "Failed to check sizeToSend"); in SendLivePhoto()
537 int64_t totalSize = st.st_size; in GetExtraDataSize() local
538 CHECK_AND_RETURN_RET_LOG(totalSize > MIN_STANDARD_SIZE, E_INVALID_LIVE_PHOTO, in GetExtraDataSize()
539 "Failed to check live photo, total size is %{public}" PRId64, totalSize); in GetExtraDataSize()
562 CHECK_AND_RETURN_RET_LOG(totalSize > MIN_STANDARD_SIZE + CINEMAGRAPH_INFO_SIZE_LEN, E_INVALID_LIVE_PHOTO, in GetExtraDataSize()
563 "Failed to check live photo with cinemagraph, total size is %{public}" PRId64, totalSize); in GetExtraDataSize()
595 int64_t totalSize = st.st_size; in ConvertToMovingPhoto() local
596 CHECK_AND_RETURN_RET_LOG(totalSize > MIN_STANDARD_SIZE, E_INVALID_LIVE_PHOTO, in ConvertToMovingPhoto()
597 "Failed to check live photo, total size is %{public}" PRId64, totalSize); in ConvertToMovingPhoto()
725 int64_t totalSize = st.st_size; GetVersionAndFrameNum() local
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/
H A Dsqlite_cloud_kv_executor_utils.cpp38 auto &[stepNum, totalSize] = detail; in GetCloudData()
52 data.insData.record.size(), data.updData.record.size(), data.delData.extend.size(), errCode, totalSize); in GetCloudData()
101 auto &[stepNum, totalSize] = detail; in GetCloudDataForSync()
104 uint32_t preSize = totalSize; in GetCloudDataForSync()
107 GetCloudLog(statement, log, totalSize, revisedTime, invalidTime); in GetCloudDataForSync()
122 errCode = GetCloudKvData(statement, data, totalSize); in GetCloudDataForSync()
128 if (CloudStorageUtils::IsGetCloudDataContinue(stepNum, totalSize, config.maxUploadSize, config.maxUploadCount)) { in GetCloudDataForSync()
135 totalSize = preSize; in GetCloudDataForSync()
142 uint32_t &totalSize, int64_t &revisedTime, int64_t &invalidTime) in GetCloudLog()
158 totalSize in GetCloudLog()
141 GetCloudLog(sqlite3_stmt *stmt, VBucket &logInfo, uint32_t &totalSize, int64_t &revisedTime, int64_t &invalidTime) GetCloudLog() argument
196 GetCloudKvData(sqlite3_stmt *stmt, VBucket &data, uint32_t &totalSize) GetCloudKvData() argument
221 GetCloudKvBlobData(const std::string &keyStr, int index, sqlite3_stmt *stmt, VBucket &data, uint32_t &totalSize) GetCloudKvBlobData() argument
1275 uint32_t totalSize = 0; GetCloudVersionFromCloud() local
1292 GetCloudVersionRecordData(sqlite3_stmt *stmt, VBucket &data, uint32_t &totalSize) GetCloudVersionRecordData() argument
1321 uint32_t totalSize = 0; GetWaitCompensatedSyncDataPk() local
1358 uint32_t totalSize = 0; GetWaitCompensatedSyncDataUserId() local
[all...]
/foundation/multimedia/media_foundation/engine/pipeline/filters/source/media_source/
H A Dmedia_source_filter.cpp170 uint64_t totalSize = 0; in PullData() local
171 if ((plugin_->GetSize(totalSize) == Status::OK) && (totalSize != 0)) { in PullData()
172 if (offset >= totalSize) { in PullData()
173 MEDIA_LOG_W("Offset: " PUBLIC_LOG_U64 " is larger than totalSize: " PUBLIC_LOG_U64, in PullData()
174 offset, totalSize); in PullData()
177 if ((offset + readSize) > totalSize) { in PullData()
178 readSize = totalSize - offset; in PullData()
184 MEDIA_LOG_DD("TotalSize_: " PUBLIC_LOG_U64, totalSize); in PullData()
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/free_install/
H A Dinstall_result.cpp32 const char* JSON_KEY_PROGRESS_TOTALSIZE = "totalSize";
80 {JSON_KEY_PROGRESS_TOTALSIZE, progress.totalSize} in to_json()
99 progress.totalSize, in from_json()
179 totalSize = parcel.ReadInt32(); in ReadFromParcel()
186 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(Int32, parcel, totalSize); in Marshalling()
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/recording/
H A Dmask_cmd_list.cpp42 size_t totalSize = opAllocator_.GetSize(); in Playback() local
44 if (totalSize < offset || totalSize - offset < sizeof(OpItem)) { in Playback()
51 if (!player.Playback(curOpItemPtr->GetType(), itemPtr, totalSize - offset)) { in Playback()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/common/
H A Drs_common_tools.cpp47 int32_t totalSize = pixelMap->GetByteCount(); in SavePixelmapToFile() local
57 outfile.write(reinterpret_cast<const char*>(pixelMap->GetPixels()), totalSize); in SavePixelmapToFile()
/foundation/multimedia/media_library/frameworks/services/media_mtp/src/
H A Dmtp_storage_manager.cpp64 int64_t totalSize = in GetTotalSize() local
66 return totalSize; in GetTotalSize()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Djpg_yuv_test.cpp625 const size_t totalSize = (ySize + 2 * uvSize); in YuvP010Crop() local
626 uint16_t* const chOrg = new uint16_t[totalSize]; in YuvP010Crop()
627 bool result = ReadFile(chOrg, IMAGE_INPUT_YUV_PATH3, totalSize, 1); in YuvP010Crop()
629 const uint32_t dataLength = totalSize * 2; in YuvP010Crop()
667 const size_t totalSize = (ySize + 2 * uvSize); in YuvP010Rotate() local
668 uint16_t* const chOrg = new uint16_t[totalSize]; in YuvP010Rotate()
669 bool result = ReadFile(chOrg, IMAGE_INPUT_YUV_PATH3, totalSize, 1); in YuvP010Rotate()
671 const uint32_t dataLength = totalSize * 2; in YuvP010Rotate()
707 const size_t totalSize = (ySize + 2 * uvSize); in ScaleYuv420P010() local
708 uint16_t* const chOrg = new uint16_t[totalSize]; in ScaleYuv420P010()
746 const size_t totalSize = (ySize + 2 * uvSize); ResizeYuv420P010() local
784 const size_t totalSize = (ySize + 2 * uvSize); FlipYuv420P010() local
827 const size_t totalSize = (ySize + 2 * uvSize); TranslateYuv420P010() local
865 const size_t totalSize = ySize * NUM_4; RGBA1010102Crop() local
905 const size_t totalSize = ySize * NUM_4; RGBA1010102Rotate() local
943 const size_t totalSize = ySize * NUM_4; RGBA1010102Scale() local
981 const size_t totalSize = ySize * NUM_4; RGBA1010102Resize() local
1018 const size_t totalSize = ySize * NUM_4; RGBA1010102Flip() local
1060 const size_t totalSize = ySize * NUM_4; RGBA1010102Translate() local
[all...]
/foundation/distributeddatamgr/udmf/framework/innerkitsimpl/data/
H A Dunified_data.cpp37 int64_t totalSize = 0; in GetSize() local
39 totalSize += record->GetSize(); in GetSize()
41 return totalSize; in GetSize()
/foundation/communication/ipc/ipc/native/src/mock/include/
H A Ddbinder_base_invoker_object.h119 uint32_t totalSize = 0; in IRemoteObjectTranslateWhenSend() local
128 uint32_t flatSize = TranslateBinderType(binderObject, flatOffset + totalSize, sessionObject); in IRemoteObjectTranslateWhenSend()
133 totalSize += flatSize; in IRemoteObjectTranslateWhenSend()
137 uint32_t flatSize = TranslateHandleType(binderObject, flatOffset + totalSize, sessionObject); in IRemoteObjectTranslateWhenSend()
142 totalSize += flatSize; in IRemoteObjectTranslateWhenSend()
246 size_t totalSize, uint64_t seqNum, int cmd, __u32 code, __u32 flags) in ConstructTransData()
248 transData.sizeOfSelf = totalSize; in ConstructTransData()
245 ConstructTransData(MessageParcel &data, dbinder_transaction_data &transData, size_t totalSize, uint64_t seqNum, int cmd, __u32 code, __u32 flags) ConstructTransData() argument

Completed in 15 milliseconds

123456