/foundation/filemanagement/storage_service/services/storage_manager/storage/src/ |
H A D | storage_monitor_service.cpp | 120 int64_t freeSize;
in CheckAndCleanBundleCache() local 121 err = DelayedSingleton<StorageTotalStatusService>::GetInstance()->GetFreeSize(freeSize);
in CheckAndCleanBundleCache() 122 if ((err != E_OK) || (freeSize <= 0)) {
in CheckAndCleanBundleCache() 126 if (freeSize < (totalSize * STORAGE_LEFT_SIZE_THRESHOLD) / CONST_NUM_ONE_HUNDRED) {
in CheckAndCleanBundleCache() 127 CheckAndEventNotify(freeSize, totalSize);
in CheckAndCleanBundleCache() 135 LOGI("Device storage freeSize=%{public}lld, threshold=%{public}lld", static_cast<long long>(freeSize),
in CheckAndCleanBundleCache() 137 if (freeSize >= (lowThreshold * CONST_NUM_THREE) / CONST_NUM_TWO) {
in CheckAndCleanBundleCache() 160 void StorageMonitorService::CheckAndEventNotify(int64_t freeSize, int64_t totalSize)
in CheckAndEventNotify() argument 168 if (freeSize > in CheckAndEventNotify() [all...] |
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()
|
H A D | storage_total_status_service.cpp | 114 int32_t StorageTotalStatusService::GetFreeSize(int64_t &freeSize) in GetFreeSize() argument 116 int32_t ret = GetSizeOfPath(PATH_DATA, SizeType::FREE, freeSize); in GetFreeSize() 128 LOGE("StorageTotalStatusService::GetFreeSize success, (/data)freeSize=%{public}lld", in GetFreeSize() 129 static_cast<long long>(freeSize)); in GetFreeSize()
|
/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, dataPt in FillpSha256Upd() [all...] |
/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()
|
/foundation/filemanagement/storage_service/services/storage_manager/storage/test/ |
H A D | volume_storage_status_service_test.cpp | 51 int64_t freeSize; in HWTEST_F() local 52 int32_t result = service->GetFreeSizeOfVolume(volumeUuid, freeSize); in HWTEST_F()
|
/foundation/multimedia/media_library/frameworks/services/media_mtp/src/ |
H A D | mtp_storage_manager.cpp | 77 int64_t freeSize = in GetFreeSize() local 79 return freeSize; in GetFreeSize()
|
/foundation/filemanagement/storage_service/services/storage_manager/include/storage/ |
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);
|
H A D | storage_monitor_service.h | 40 void CheckAndEventNotify(int64_t freeSize, int64_t totalSize);
|
/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);
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/ |
H A D | event_report.h | 148 int64_t freeSize = 0; member 193 freeSize = 0; in Reset() 292 * @param freeSize free size. 296 int64_t freeSize, int32_t operationType);
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | event_report.cpp | 187 int64_t freeSize, int32_t operationType) in SendDiskSpaceEvent() 191 eventInfo.freeSize = freeSize; in SendDiskSpaceEvent() 186 SendDiskSpaceEvent(const std::string &fileName, int64_t freeSize, int32_t operationType) SendDiskSpaceEvent() argument
|
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()
|
/foundation/filemanagement/storage_service/services/storage_manager/kits_impl/src/ |
H A D | storage_manager_connect.cpp | 81 int32_t StorageManagerConnect::GetFreeSizeOfVolume(string volumeUuid, int64_t &freeSize) in GetFreeSizeOfVolume() argument 92 return storageManager_->GetFreeSizeOfVolume(volumeUuid, freeSize); in GetFreeSizeOfVolume() 179 int32_t StorageManagerConnect::GetFreeSize(int64_t &freeSize) in GetFreeSize() argument 190 return storageManager_->GetFreeSize(freeSize); in GetFreeSize()
|
/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()
|
/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() 180 int32_t StorageManager::GetFreeSize(int64_t &freeSize) in GetFreeSize() argument 184 int32_t err = DelayedSingleton<StorageTotalStatusService>::GetInstance()->GetFreeSize(freeSize); in GetFreeSize()
|
/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()
|
/foundation/arkui/ace_engine_lite/frameworks/include/base/ |
H A D | product_adapter.h | 40 uint32_t freeSize; /* total free size */ member
|
/foundation/ability/ability_runtime/test/unittest/uri_permission_impl_test/mock/include/ |
H A D | mock_storage_manager_service.h | 75 virtual int32_t GetFreeSizeOfVolume(std::string volumeUuid, int64_t &freeSize) override
100 virtual int32_t GetFreeSize(int64_t &freeSize) override
|
/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;
|
/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; 40 int32_t GetFreeSize(int64_t &freeSize) override;
|
/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 88 virtual int32_t GetFreeSize(int64_t &freeSize) override
|
/foundation/filemanagement/storage_service/test/fuzztest/storagemanagerproxy_fuzzer/ |
H A D | storagemanagerproxymock.h | 60 int32_t GetFreeSizeOfVolume(std::string volumeUuid, int64_t &freeSize) override 85 int32_t GetFreeSize(int64_t &freeSize) override
|
/foundation/filemanagement/storage_service/interfaces/innerkits/storage_manager/native/ |
H A D | storage_manager_proxy.h | 35 int32_t GetFreeSizeOfVolume(std::string volumeUuid, int64_t &freeSize) override;
40 int32_t GetFreeSize(int64_t &freeSize) override;
|