Home
last modified time | relevance | path

Searched refs:freeSize (Results 1 - 25 of 38) sorted by relevance

12

/foundation/filemanagement/storage_service/services/storage_manager/storage/src/
H A Dstorage_monitor_service.cpp120 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 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()
H A Dstorage_total_status_service.cpp114 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 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, dataPt in FillpSha256Upd()
[all...]
/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()
/foundation/filemanagement/storage_service/services/storage_manager/storage/test/
H A Dvolume_storage_status_service_test.cpp51 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 Dmtp_storage_manager.cpp77 int64_t freeSize = in GetFreeSize() local
79 return freeSize; in GetFreeSize()
/foundation/filemanagement/storage_service/services/storage_manager/include/storage/
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);
H A Dstorage_monitor_service.h40 void CheckAndEventNotify(int64_t freeSize, int64_t totalSize);
/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);
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/
H A Devent_report.h148 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 Devent_report.cpp187 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 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()
/foundation/filemanagement/storage_service/services/storage_manager/kits_impl/src/
H A Dstorage_manager_connect.cpp81 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 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()
/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()
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 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()
/foundation/arkui/ace_engine_lite/frameworks/include/base/
H A Dproduct_adapter.h40 uint32_t freeSize; /* total free size */ member
/foundation/ability/ability_runtime/test/unittest/uri_permission_impl_test/mock/include/
H A Dmock_storage_manager_service.h75 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 Dstorage_manager.h40 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 Dstorage_manager_proxy_mock.h35 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 Dstorage_manager_service_mock.h63 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 Dstoragemanagerproxymock.h60 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 Dstorage_manager_proxy.h35 int32_t GetFreeSizeOfVolume(std::string volumeUuid, int64_t &freeSize) override;
40 int32_t GetFreeSize(int64_t &freeSize) override;

Completed in 11 milliseconds

12