/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/storage/src/ |
H A D | storage_monitor_service.cpp | 129 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 D | storage_total_status_service.cpp | 86 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 D | volume_storage_status_service.cpp | 48 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 D | sha256.c | 182 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 D | storagetotalstatusservice_fuzzer.cpp | 29 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 D | volume_storage_status_service_test.cpp | 51 int64_t freeSize; variable 52 int32_t result = service->GetFreeSizeOfVolume(volumeUuid, freeSize);
|
H A D | storage_total_status_service_test.cpp | 118 int64_t freeSize; variable 119 int32_t result = service->GetFreeSize(freeSize);
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/include/storage/ |
H A D | storage_monitor_service.h | 42 void CheckAndCleanCache(int64_t freeSize, int64_t totalSize); 43 void CheckAndEventNotify(int64_t freeSize, int64_t totalSize);
|
H A D | volume_storage_status_service.h | 28 int32_t GetFreeSizeOfVolume(std::string volumeUuid, int64_t &freeSize);
|
H A D | storage_total_status_service.h | 42 int32_t GetFreeSize(int64_t &freeSize);
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/ |
H A D | event_report.h | 145 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 D | storage_manager_connect.cpp | 82 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 D | storage_manager_connect.h | 34 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 D | event_report.cpp | 180 int64_t freeSize, int32_t operationType) in SendDiskSpaceEvent() argument 184 eventInfo.freeSize = freeSize; in SendDiskSpaceEvent()
|
H A D | bundle_util.cpp | 197 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 D | statvfs_n_exporter.cpp | 50 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 D | storage_manager.cpp | 120 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 D | istorage_manager.h | 43 virtual int32_t GetFreeSizeOfVolume(std::string volumeUuid, int64_t &freeSize) = 0; 49 virtual int32_t GetFreeSize(int64_t &freeSize) = 0;
|
H A D | storage_manager_proxy.h | 35 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 D | storage_manager.h | 40 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 D | storage_manager_proxy_mock.h | 35 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 D | statfs_n_exporter.cpp | 48 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 D | storage_manager_proxy_mock.cpp | 108 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 D | storagemanagerproxymock.h | 60 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 D | storage_manager_service_mock.h | 63 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
|