Home
last modified time | relevance | path

Searched refs:storageStats (Results 1 – 23 of 23) sorted by relevance

/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/storage/src/
H A Dstorage_status_service.cpp82 storageStats.image_ += size; in GetMediaTypeAndSize()
84 storageStats.audio_ = size; in GetMediaTypeAndSize()
86 storageStats.video_ = size; in GetMediaTypeAndSize()
206 storageStats.total_ = totalSize; in GetUserStorageStats()
207 storageStats.app_ = appSize; in GetUserStorageStats()
228 … userId, static_cast<long long>(storageStats.total_), static_cast<long long>(storageStats.app_), in GetUserStorageStats()
229 static_cast<long long>(storageStats.video_), static_cast<long long>(storageStats.audio_), in GetUserStorageStats()
230 static_cast<long long>(storageStats.image_), static_cast<long long>(storageStats.file_)); in GetUserStorageStats()
334 storageStats.video_ = 0; in GetUserStorageStatsByType()
335 storageStats.image_ = 0; in GetUserStorageStatsByType()
[all …]
/ohos5.0/foundation/filemanagement/storage_service/test/fuzztest/storagestatusservice_fuzzer/
H A Dstoragestatusservice_fuzzer.cpp36 StorageStats storageStats; in StorageStatusServiceFuzzTest() local
48 service->GetUserStorageStats(storageStats); in StorageStatusServiceFuzzTest()
49 service->GetUserStorageStats(userId, storageStats); in StorageStatusServiceFuzzTest()
50 service->GetUserStorageStatsByType(userId, storageStats, type); in StorageStatusServiceFuzzTest()
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/storage/test/
H A Dstorage_total_status_service_test.cpp137 StorageStats storageStats; variable
148 int32_t result = service->GetUserStorageStats(storageStats);
167 StorageStats storageStats; variable
168 int32_t result = service->GetUserStorageStats(userId, storageStats);
265 StorageStats storageStats; variable
266 int32_t result = service->GetUserStorageStatsByType(userId, storageStats, type);
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/include/storage/
H A Dstorage_status_service.h34 int32_t GetUserStorageStats(StorageStats &storageStats);
35 int32_t GetUserStorageStats(int32_t userId, StorageStats &storageStats);
36 int32_t GetUserStorageStatsByType(int32_t userId, StorageStats &storageStats, std::string type);
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/kits_impl/src/
H A Dstorage_manager_connect.cpp194 int32_t StorageManagerConnect::GetUserStorageStats(StorageStats &storageStats) in GetUserStorageStats() argument
205 return storageManager_->GetUserStorageStats(storageStats); in GetUserStorageStats()
208 int32_t StorageManagerConnect::GetUserStorageStats(int32_t userId, StorageStats &storageStats) in GetUserStorageStats() argument
219 return storageManager_->GetUserStorageStats(userId, storageStats); in GetUserStorageStats()
368 int32_t StorageManagerConnect::GetUserStorageStatsByType(int32_t userId, StorageStats &storageStats in GetUserStorageStatsByType() argument
379 return storageManager_->GetUserStorageStatsByType(userId, storageStats, type); in GetUserStorageStatsByType()
H A Dstorage_statistics_n_exporter.cpp333 auto storageStats = std::make_shared<StorageStats>(); in GetUserStorageStats() local
334 auto cbExec = [fac, userId, storageStats]() -> NError { in GetUserStorageStats()
337 …rrNum = DelayedSingleton<StorageManagerConnect>::GetInstance()->GetUserStorageStats(*storageStats); in GetUserStorageStats()
339 …DelayedSingleton<StorageManagerConnect>::GetInstance()->GetUserStorageStats(userId, *storageStats); in GetUserStorageStats()
346 auto cbComplete = [storageStats](napi_env env, NError err) -> NVal { in GetUserStorageStats()
351 totalObject.AddProp("total", NVal::CreateInt64(env, (storageStats->total_)).val_); in GetUserStorageStats()
352 totalObject.AddProp("audio", NVal::CreateInt64(env, (storageStats->audio_)).val_); in GetUserStorageStats()
353 totalObject.AddProp("video", NVal::CreateInt64(env, (storageStats->video_)).val_); in GetUserStorageStats()
354 totalObject.AddProp("image", NVal::CreateInt64(env, (storageStats->image_)).val_); in GetUserStorageStats()
355 totalObject.AddProp("file", NVal::CreateInt64(env, (storageStats->file_)).val_); in GetUserStorageStats()
[all …]
/ohos5.0/foundation/filemanagement/storage_service/test/fuzztest/storagemanagerproxy_fuzzer/
H A Dstoragemanagerproxy_fuzzer.cpp88 StorageStats storageStats; in StorageManagerProxyGetFuzzTest() local
104 proxy->GetUserStorageStats(storageStats); in StorageManagerProxyGetFuzzTest()
107 proxy->GetUserStorageStats(userId, storageStats); in StorageManagerProxyGetFuzzTest()
108 proxy->GetUserStorageStatsByType(userId, storageStats, metaData); in StorageManagerProxyGetFuzzTest()
H A Dstoragemanagerproxymock.h90 int32_t GetUserStorageStats(StorageStats &storageStats) override in GetUserStorageStats() argument
95 int32_t GetUserStorageStats(int32_t userId, StorageStats &storageStats) override in GetUserStorageStats() argument
100 …int32_t GetUserStorageStatsByType(int32_t userId, StorageStats &storageStats, std::string type) ov… in GetUserStorageStatsByType() argument
/ohos5.0/foundation/filemanagement/storage_service/interfaces/kits/js/storage_manager/include/
H A Dstorage_manager_connect.h42 int32_t GetUserStorageStats(StorageStats &storageStats);
43 int32_t GetUserStorageStats(int32_t userId, StorageStats &storageStats);
44 int32_t GetUserStorageStatsByType(int32_t userId, StorageStats &storageStats, std::string type);
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/ipc/src/
H A Dstorage_manager.cpp193 int32_t StorageManager::GetUserStorageStats(StorageStats &storageStats) in GetUserStorageStats() argument
197 …2_t err = DelayedSingleton<StorageStatusService>::GetInstance()->GetUserStorageStats(storageStats); in GetUserStorageStats()
204 int32_t StorageManager::GetUserStorageStats(int32_t userId, StorageStats &storageStats) in GetUserStorageStats() argument
208 …= DelayedSingleton<StorageStatusService>::GetInstance()->GetUserStorageStats(userId, storageStats); in GetUserStorageStats()
574 int32_t StorageManager::GetUserStorageStatsByType(int32_t userId, StorageStats &storageStats, std::… in GetUserStorageStatsByType() argument
579 storageStats, type); in GetUserStorageStatsByType()
H A Dstorage_manager_stub.cpp485 StorageStats storageStats; in HandleGetCurrUserStorageStats() local
486 int32_t err = GetUserStorageStats(storageStats); in HandleGetCurrUserStorageStats()
490 if (!storageStats.Marshalling(reply)) { in HandleGetCurrUserStorageStats()
502 StorageStats storageStats; in HandleGetUserStorageStats() local
503 int32_t err = GetUserStorageStats(userId, storageStats); in HandleGetUserStorageStats()
507 if (!storageStats.Marshalling(reply)) { in HandleGetUserStorageStats()
1079 StorageStats storageStats; in HandleGetUserStorageStatsByType() local
1080 int32_t err = GetUserStorageStatsByType(userId, storageStats, type); in HandleGetUserStorageStatsByType()
1084 if (!storageStats.Marshalling(reply)) { in HandleGetUserStorageStatsByType()
/ohos5.0/foundation/filemanagement/storage_service/interfaces/innerkits/storage_manager/native/
H A Distorage_manager.h50 virtual int32_t GetUserStorageStats(StorageStats &storageStats) = 0;
51 virtual int32_t GetUserStorageStats(int32_t userId, StorageStats &storageStats) = 0;
52 …virtual int32_t GetUserStorageStatsByType(int32_t userId, StorageStats &storageStats, std::string …
H A Dstorage_manager_proxy.h42 int32_t GetUserStorageStats(StorageStats &storageStats) override;
43 int32_t GetUserStorageStats(int32_t userId, StorageStats &storageStats) override;
44 …int32_t GetUserStorageStatsByType(int32_t userId, StorageStats &storageStats, std::string type) ov…
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/include/ipc/
H A Dstorage_manager.h46 int32_t GetUserStorageStats(StorageStats &storageStats) override;
47 int32_t GetUserStorageStats(int32_t userId, StorageStats &storageStats) override;
49 …int32_t GetUserStorageStatsByType(int32_t userId, StorageStats &storageStats, std::string type) ov…
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/include/mock/
H A Dstorage_manager_proxy_mock.h42 int32_t GetUserStorageStats(StorageStats &storageStats) override;
43 int32_t GetUserStorageStats(int32_t userId, StorageStats &storageStats) override;
44 …int32_t GetUserStorageStatsByType(int32_t userId, StorageStats &storageStats, std::string type) ov…
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/mock/
H A Dstorage_manager_proxy_mock.cpp196 int32_t StorageManagerProxy::GetUserStorageStats(StorageStats &storageStats) in GetUserStorageStats() argument
201 int32_t StorageManagerProxy::GetUserStorageStats(int32_t userId, StorageStats &storageStats) in GetUserStorageStats() argument
271 int32_t StorageManagerProxy::GetUserStorageStatsByType(int32_t userId, StorageStats &storageStats, … in GetUserStorageStatsByType() argument
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/ipc/test/
H A Dstorage_manager_service_mock.h94 virtual int32_t GetUserStorageStats(StorageStats &storageStats) override in GetUserStorageStats() argument
99 virtual int32_t GetUserStorageStats(int32_t userId, StorageStats &storageStats) override in GetUserStorageStats() argument
104 …virtual int32_t GetUserStorageStatsByType(int32_t userId, StorageStats &storageStats, std::string … in GetUserStorageStatsByType() argument
H A Dstorage_manager_proxy_test.cpp854 StorageStats storageStats; variable
860 int32_t result = proxy_->GetUserStorageStats(storageStats);
877 StorageStats storageStats; variable
884 int32_t result = proxy_->GetUserStorageStats(userId, storageStats);
1525 StorageStats storageStats; variable
1533 int32_t result = proxy_->GetUserStorageStatsByType(userId, storageStats, type);
/ohos5.0/foundation/ability/ability_runtime/test/unittest/uri_permission_impl_test/mock/include/
H A Dmock_storage_manager_service.h95 virtual int32_t GetUserStorageStats(StorageStats &storageStats) override in GetUserStorageStats() argument
100 virtual int32_t GetUserStorageStats(int32_t userId, StorageStats &storageStats) override in GetUserStorageStats() argument
285 …virtual int32_t GetUserStorageStatsByType(int32_t userId, StorageStats &storageStats, std::string … in GetUserStorageStatsByType() argument
/ohos5.0/docs/zh-cn/application-dev/reference/apis-core-file-kit/
H A Djs-apis-file-storage-statistics-sys.md732 storageStatistics.getUserStorageStats().then((storageStats: storageStatistics.StorageStats) => {
733 console.info("getUserStorageStats successfully:" + JSON.stringify(storageStats));
773 …storageStatistics.getUserStorageStats((error: BusinessError, storageStats: storageStatistics.Stora…
778 console.info("getUserStorageStats successfully:" + JSON.stringify(storageStats));
825 …storageStatistics.getUserStorageStats(userId).then((storageStats: storageStatistics.StorageStats) …
826 console.info("getUserStorageStats successfully:" + JSON.stringify(storageStats));
869 …storageStatistics.getUserStorageStats(userId, (error: BusinessError, storageStats: storageStatisti…
874 console.info("getUserStorageStats successfully:" + JSON.stringify(storageStats));
/ohos5.0/docs/en/application-dev/reference/apis-core-file-kit/
H A Djs-apis-file-storage-statistics-sys.md732 storageStatistics.getUserStorageStats().then((storageStats: storageStatistics.StorageStats) => {
733 console.info("getUserStorageStats successfully:" + JSON.stringify(storageStats));
773 …storageStatistics.getUserStorageStats((error: BusinessError, storageStats: storageStatistics.Stora…
778 console.info("getUserStorageStats successfully:" + JSON.stringify(storageStats));
825 …storageStatistics.getUserStorageStats(userId).then((storageStats: storageStatistics.StorageStats) …
826 console.info("getUserStorageStats successfully:" + JSON.stringify(storageStats));
869 …storageStatistics.getUserStorageStats(userId, (error: BusinessError, storageStats: storageStatisti…
874 console.info("getUserStorageStats successfully:" + JSON.stringify(storageStats));
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/innerkits_impl/src/
H A Dstorage_manager_proxy.cpp907 int32_t StorageManagerProxy::GetUserStorageStats(StorageStats &storageStats) in GetUserStorageStats() argument
927 storageStats = *StorageStats::Unmarshalling(reply); in GetUserStorageStats()
931 int32_t StorageManagerProxy::GetUserStorageStats(int32_t userId, StorageStats &storageStats) in GetUserStorageStats() argument
954 storageStats = *StorageStats::Unmarshalling(reply); in GetUserStorageStats()
1299 int32_t StorageManagerProxy::GetUserStorageStatsByType(int32_t userId, StorageStats &storageStats, … in GetUserStorageStatsByType() argument
1327 storageStats = *StorageStats::Unmarshalling(reply); in GetUserStorageStatsByType()
/ohos5.0/base/account/os_account/services/accountmgr/test/unittest/account_iam/
H A Daccount_iam_manager_test.cpp121 int32_t GetUserStorageStats(StorageStats &storageStats) in GetUserStorageStats() argument
126 int32_t GetUserStorageStats(int32_t userId, StorageStats &storageStats) in GetUserStorageStats() argument
131 int32_t GetUserStorageStatsByType(int32_t userId, StorageStats &storageStats, std::string type) in GetUserStorageStatsByType() argument