/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/storage/src/ |
H A D | storage_status_service.cpp | 82 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 D | storagestatusservice_fuzzer.cpp | 36 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 D | storage_total_status_service_test.cpp | 137 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 D | storage_status_service.h | 34 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 D | storage_manager_connect.cpp | 194 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 D | storage_statistics_n_exporter.cpp | 333 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 D | storagemanagerproxy_fuzzer.cpp | 88 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 D | storagemanagerproxymock.h | 90 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 D | storage_manager_connect.h | 42 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 D | storage_manager.cpp | 193 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 D | storage_manager_stub.cpp | 485 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 D | istorage_manager.h | 50 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 D | storage_manager_proxy.h | 42 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 D | storage_manager.h | 46 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 D | storage_manager_proxy_mock.h | 42 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 D | storage_manager_proxy_mock.cpp | 196 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 D | storage_manager_service_mock.h | 94 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 D | storage_manager_proxy_test.cpp | 854 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 D | mock_storage_manager_service.h | 95 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 D | js-apis-file-storage-statistics-sys.md | 732 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 D | js-apis-file-storage-statistics-sys.md | 732 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 D | storage_manager_proxy.cpp | 907 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 D | account_iam_manager_test.cpp | 121 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
|