Home
last modified time | relevance | path

Searched refs:freeSize (Results 1 – 25 of 40) sorted by relevance

12

/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/storage/src/
H A Dstorage_monitor_service.cpp129 int64_t freeSize; in MonitorAndManageStorage() local
131 if ((err != E_OK) || (freeSize < 0)) { in MonitorAndManageStorage()
135 if (freeSize < (totalSize * STORAGE_LEFT_SIZE_THRESHOLD) / CONST_NUM_ONE_HUNDRED) { in MonitorAndManageStorage()
136 CheckAndEventNotify(freeSize, totalSize); in MonitorAndManageStorage()
137 CheckAndCleanCache(freeSize, totalSize); in MonitorAndManageStorage()
141 void StorageMonitorService::CheckAndCleanCache(int64_t freeSize, int64_t totalSize) in CheckAndCleanCache() argument
152 if (freeSize < (lowThreshold * CONST_NUM_THREE) / CONST_NUM_TWO) { in CheckAndCleanCache()
157 if (freeSize > (totalSize * STORAGE_THRESHOLD_PERCENTAGE) / CONST_NUM_ONE_HUNDRED) { in CheckAndCleanCache()
205 void StorageMonitorService::CheckAndEventNotify(int64_t freeSize, int64_t totalSize) in CheckAndEventNotify() argument
208 if (freeSize < STORAGE_THRESHOLD_100M) { in CheckAndEventNotify()
[all …]
H A Dstorage_total_status_service.cpp86 int32_t StorageTotalStatusService::GetFreeSize(int64_t &freeSize) in GetFreeSize() argument
88 int32_t ret = GetSizeOfPath(PATH_DATA, SizeType::FREE, freeSize); in GetFreeSize()
94 static_cast<long long>(freeSize)); in GetFreeSize()
H A Dvolume_storage_status_service.cpp48 int32_t VolumeStorageStatusService::GetFreeSizeOfVolume(std::string volumeUuid, int64_t &freeSize) in GetFreeSizeOfVolume() argument
60 freeSize = (int64_t)diskInfo.f_bsize * (int64_t)diskInfo.f_bfree; in GetFreeSizeOfVolume()
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/fillp/src/fillp_lib/src/
H A Dsha256.c182 FILLP_UINT32 freeSize = FILLP_SHA256_BLOCK_SIZE - offset; in FillpSha256Upd() local
190 while (len >= (size_t)freeSize) { in FillpSha256Upd()
191 err = memcpy_s(((FILLP_UINT8 *)ctx->wbuf) + offset, freeSize, dataPtr, freeSize); in FillpSha256Upd()
193 FILLP_LOGERR("FillpSha256Upd memcpy_s 1 failed : %d, freeSize = %u", err, freeSize); in FillpSha256Upd()
197 dataPtr += freeSize; in FillpSha256Upd()
198 len -= freeSize; in FillpSha256Upd()
199 freeSize = FILLP_SHA256_BLOCK_SIZE; in FillpSha256Upd()
206 err = memcpy_s(((FILLP_UINT8 *)ctx->wbuf) + offset, freeSize, dataPtr, (FILLP_UINT32)len); in FillpSha256Upd()
208 …ILLP_LOGERR("FillpSha256Upd memcpy_s 2 failed : %d, freeSize = %u, len = %zu", err, freeSize, len); in FillpSha256Upd()
/ohos5.0/foundation/filemanagement/storage_service/test/fuzztest/storagetotalstatusservice_fuzzer/
H A Dstoragetotalstatusservice_fuzzer.cpp29 int64_t freeSize; in StorageTotalStatusServiceFuzzTest() local
40 result = service->GetFreeSize(freeSize); in StorageTotalStatusServiceFuzzTest()
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/storage/test/
H A Dvolume_storage_status_service_test.cpp51 int64_t freeSize; variable
52 int32_t result = service->GetFreeSizeOfVolume(volumeUuid, freeSize);
H A Dstorage_total_status_service_test.cpp118 int64_t freeSize; variable
119 int32_t result = service->GetFreeSize(freeSize);
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/include/storage/
H A Dstorage_monitor_service.h42 void CheckAndCleanCache(int64_t freeSize, int64_t totalSize);
43 void CheckAndEventNotify(int64_t freeSize, int64_t totalSize);
H A Dvolume_storage_status_service.h28 int32_t GetFreeSizeOfVolume(std::string volumeUuid, int64_t &freeSize);
H A Dstorage_total_status_service.h42 int32_t GetFreeSize(int64_t &freeSize);
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/
H A Devent_report.h145 int64_t freeSize = 0; member
186 freeSize = 0; in Reset()
285 int64_t freeSize, int32_t operationType);
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/kits_impl/src/
H A Dstorage_manager_connect.cpp82 int32_t StorageManagerConnect::GetFreeSizeOfVolume(string volumeUuid, int64_t &freeSize) in GetFreeSizeOfVolume() argument
93 return storageManager_->GetFreeSizeOfVolume(volumeUuid, freeSize); in GetFreeSizeOfVolume()
180 int32_t StorageManagerConnect::GetFreeSize(int64_t &freeSize) in GetFreeSize() argument
191 return storageManager_->GetFreeSize(freeSize); in GetFreeSize()
/ohos5.0/foundation/filemanagement/storage_service/interfaces/kits/js/storage_manager/include/
H A Dstorage_manager_connect.h34 int32_t GetFreeSizeOfVolume(std::string volumeUuid, int64_t &freeSize);
41 int32_t GetFreeSize(int64_t &freeSize);
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/
H A Devent_report.cpp180 int64_t freeSize, int32_t operationType) in SendDiskSpaceEvent() argument
184 eventInfo.freeSize = freeSize; in SendDiskSpaceEvent()
H A Dbundle_util.cpp197 int64_t freeSize = static_cast<int64_t>(diskInfo.f_bavail * diskInfo.f_bsize); in CheckSystemSize() local
198 APP_LOGD("left free size in the disk path is %{public}" PRId64, freeSize); in CheckSystemSize()
204 if (std::max(fileInfo.st_size * SPACE_NEED_DOUBLE, HALF_GB) > freeSize) { in CheckSystemSize()
217 int64_t freeSize = static_cast<int64_t>(diskInfo.f_bavail * diskInfo.f_bsize); in CheckSystemFreeSize() local
218 return freeSize >= size; in CheckSystemFreeSize()
228 int64_t freeSize = static_cast<int64_t>(diskInfo.f_bavail * diskInfo.f_bsize); in CheckSystemSizeAndHisysEvent() local
229 return freeSize < DISK_REMAINING_SIZE_LIMIT; in CheckSystemSizeAndHisysEvent()
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_statvfs/
H A Dstatvfs_n_exporter.cpp50 unsigned long long freeSize = static_cast<unsigned long long>(diskInfo.f_bsize) * in GetFreeSizeSync() local
52 return NVal::CreateInt64(env, freeSize).val_; in GetFreeSizeSync()
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/ipc/src/
H A Dstorage_manager.cpp120 int32_t StorageManager::GetFreeSizeOfVolume(std::string volumeUuid, int64_t &freeSize) in GetFreeSizeOfVolume() argument
127 int32_t err = volumeStatsManager->GetFreeSizeOfVolume(volumeUuid, freeSize); in GetFreeSizeOfVolume()
182 int32_t StorageManager::GetFreeSize(int64_t &freeSize) in GetFreeSize() argument
186 int32_t err = DelayedSingleton<StorageTotalStatusService>::GetInstance()->GetFreeSize(freeSize); in GetFreeSize()
/ohos5.0/foundation/filemanagement/storage_service/interfaces/innerkits/storage_manager/native/
H A Distorage_manager.h43 virtual int32_t GetFreeSizeOfVolume(std::string volumeUuid, int64_t &freeSize) = 0;
49 virtual int32_t GetFreeSize(int64_t &freeSize) = 0;
H A Dstorage_manager_proxy.h35 int32_t GetFreeSizeOfVolume(std::string volumeUuid, int64_t &freeSize) override;
41 int32_t GetFreeSize(int64_t &freeSize) override;
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/include/ipc/
H A Dstorage_manager.h40 int32_t GetFreeSizeOfVolume(std::string volumeUuid, int64_t &freeSize) override;
45 int32_t GetFreeSize(int64_t &freeSize) override;
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/include/mock/
H A Dstorage_manager_proxy_mock.h35 int32_t GetFreeSizeOfVolume(std::string volumeUuid, int64_t &freeSize) override;
41 int32_t GetFreeSize(int64_t &freeSize) override;
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_statfs/
H A Dstatfs_n_exporter.cpp48 unsigned long long freeSize = static_cast<unsigned long long>(diskInfo.f_bsize) * in GetFrSizeSync() local
50 return NVal::CreateInt64(env, freeSize).val_; in GetFrSizeSync()
396 unsigned long long freeSize = static_cast<unsigned long long>(diskInfo.f_bsize) * in GetFreeBytesSync() local
398 return NVal::CreateInt64(env, freeSize).val_; in GetFreeBytesSync()
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/mock/
H A Dstorage_manager_proxy_mock.cpp108 int32_t StorageManagerProxy::GetFreeSizeOfVolume(std::string volumeUuid, int64_t &freeSize) in GetFreeSizeOfVolume() argument
191 int32_t StorageManagerProxy::GetFreeSize(int64_t &freeSize) in GetFreeSize() argument
/ohos5.0/foundation/filemanagement/storage_service/test/fuzztest/storagemanagerproxy_fuzzer/
H A Dstoragemanagerproxymock.h60 int32_t GetFreeSizeOfVolume(std::string volumeUuid, int64_t &freeSize) override in GetFreeSizeOfVolume() argument
85 int32_t GetFreeSize(int64_t &freeSize) override in GetFreeSize() argument
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/ipc/test/
H A Dstorage_manager_service_mock.h63 virtual int32_t GetFreeSizeOfVolume(std::string volumeUuid, int64_t &freeSize) override in GetFreeSizeOfVolume() argument
89 virtual int32_t GetFreeSize(int64_t &freeSize) override in GetFreeSize() argument

12