/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/storage/src/ |
H A D | storage_status_service.cpp | 285 vector<int64_t> bundleStats; in GetBundleStats() local 291 for (uint i = 0; i < bundleStats.size(); i++) { in GetBundleStats() 292 if (bundleStats[i] == E_ERR) { in GetBundleStats() 294 bundleStats[i] = 0; in GetBundleStats() 297 pkgStats.appSize_ = bundleStats[APP]; in GetBundleStats() 298 pkgStats.cacheSize_ = bundleStats[CACHE]; in GetBundleStats() 299 pkgStats.dataSize_ = bundleStats[LOCAL] + bundleStats[DISTRIBUTED] + bundleStats[DATABASE]; in GetBundleStats() 317 vector<int64_t> bundleStats; in GetAppSize() local 321 res, bundleStats.size()); in GetAppSize() 325 for (uint i = 0; i < bundleStats.size(); i++) { in GetAppSize() [all …]
|
/ohos5.0/foundation/filemanagement/app_file_service/services/backup_sa/src/module_external/ |
H A D | sms_adapter.cpp | 53 StorageManager::BundleStats bundleStats; in GetBundleStats() local 55 if (storageMgr->GetBundleStats(bundleName, bundleStats)) { in GetBundleStats() 58 return bundleStats; in GetBundleStats() 63 StorageManager::StorageStats bundleStats; in GetUserStorageStats() local 66 if (storageMgr->GetUserStorageStatsByType(userId, bundleStats, MEDIA_TYPE)) { in GetUserStorageStats() 69 return bundleStats.image_ + bundleStats.video_; in GetUserStorageStats() 71 if (storageMgr->GetUserStorageStatsByType(userId, bundleStats, FILE_TYPE)) { in GetUserStorageStats() 74 return bundleStats.file_; in GetUserStorageStats()
|
H A D | bms_adapter.cpp | 97 vector<int64_t> bundleStats; in GetBundleStats() local 99 …bool res = bms->GetBundleStats(bundleDetailInfo.bundleName, userId, bundleStats, bundleDetailInfo.… in GetBundleStats() 101 if (!res || bundleStats.size() != dataDir.size()) { in GetBundleStats() 105 for (uint i = 0; i < bundleStats.size(); i++) { in GetBundleStats() 106 if (bundleStats[i] == E_ERR) { in GetBundleStats() 108 bundleStats[i] = 0; in GetBundleStats() 111 int64_t dataSize = bundleStats[LOCAL] + bundleStats[DISTRIBUTED] + bundleStats[DATABASE]; in GetBundleStats()
|
/ohos5.0/foundation/filemanagement/storage_service/test/fuzztest/storagestatusservice_fuzzer/ |
H A D | storagestatusservice_fuzzer.cpp | 35 BundleStats bundleStats; in StorageStatusServiceFuzzTest() local 47 service->GetBundleStats(pkgName, bundleStats, 0, 0); in StorageStatusServiceFuzzTest() 51 service->GetCurrentBundleStats(bundleStats, 0); in StorageStatusServiceFuzzTest() 52 service->GetBundleStats(pkgName, userId, bundleStats, 0, 0); in StorageStatusServiceFuzzTest()
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/storage/test/ |
H A D | storage_total_status_service_test.cpp | 187 BundleStats bundleStats; variable 188 int32_t result = service->GetBundleStats(pkgName, bundleStats, 0, 0); 208 BundleStats bundleStats; variable 209 int32_t result = service->GetBundleStats(pkgName, userId, bundleStats, 0, 0); 227 BundleStats bundleStats; variable 228 int32_t result = service->GetCurrentBundleStats(bundleStats, 0);
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/kits_impl/src/ |
H A D | storage_statistics_n_exporter.cpp | 188 auto bundleStats = std::make_shared<BundleStats>(); in GetBundleStats() local 189 auto cbExec = [nameString, bundleStats, index, statFlag]() -> NError { in GetBundleStats() 191 *bundleStats, index, statFlag); in GetBundleStats() 197 auto cbComplete = [bundleStats](napi_env env, NError err) -> NVal { in GetBundleStats() 202 bundleObject.AddProp("appSize", NVal::CreateInt64(env, (bundleStats->appSize_)).val_); in GetBundleStats() 204 (bundleStats->cacheSize_)).val_); in GetBundleStats() 227 auto bundleStats = std::make_shared<BundleStats>(); in GetCurrentBundleStats() local 241 auto cbExec = [bundleStats, statFlag]() -> NError { in GetCurrentBundleStats() 249 auto cbComplete = [bundleStats](napi_env env, NError err) -> NVal { in GetCurrentBundleStats() 254 bundleObject.AddProp("appSize", NVal::CreateInt64(env, (bundleStats->appSize_)).val_); in GetCurrentBundleStats() [all …]
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/include/storage/ |
H A D | storage_status_service.h | 33 …int32_t GetBundleStats(const std::string &pkgName, BundleStats &bundleStats, int32_t appIndex, uin… 37 int32_t GetCurrentBundleStats(BundleStats &bundleStats, uint32_t statFlag); 38 int32_t GetBundleStats(const std::string &pkgName, int32_t userId, BundleStats &bundleStats,
|
/ohos5.0/foundation/filemanagement/app_file_service/tests/mock/module_external/ |
H A D | sms_adapter_mock.cpp | 24 StorageManager::BundleStats bundleStats; in GetBundleStats() local 25 return bundleStats; in GetBundleStats()
|
/ohos5.0/foundation/filemanagement/storage_service/test/fuzztest/storagemanagerproxy_fuzzer/ |
H A D | storagemanagerproxy_fuzzer.cpp | 87 BundleStats bundleStats; in StorageManagerProxyGetFuzzTest() local 105 proxy->GetBundleStats(metaData, bundleStats, 0, 0); in StorageManagerProxyGetFuzzTest() 106 proxy->GetCurrentBundleStats(bundleStats, 0); in StorageManagerProxyGetFuzzTest()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/bmsextensionclient_fuzzer/ |
H A D | bmsextensionclient_fuzzer.cpp | 39 std::vector<int64_t> bundleStats; in DoSomethingInterestingWithMyAPI() local 61 … bmsExtensionClient.GetBundleStats(bundleName, reinterpret_cast<uintptr_t>(data), bundleStats); in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/foundation/filemanagement/storage_service/interfaces/kits/js/storage_manager/include/ |
H A D | storage_manager_connect.h | 33 …int32_t GetBundleStats(std::string pkgName, BundleStats &bundleStats, int32_t appIndex, uint32_t s… 45 int32_t GetCurrentBundleStats(BundleStats &bundleStats, uint32_t statFlag);
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-core-file-kit/ |
H A D | js-apis-file-storage-statistics.md | 78 …storageStatistics.getCurrentBundleStats((error: BusinessError, bundleStats: storageStatistics.Bund… 83 console.info("getCurrentBundleStats successfully:" + JSON.stringify(bundleStats));
|
/ohos5.0/docs/zh-cn/application-dev/file-management/ |
H A D | app-fs-space-statistics.md | 51 …storageStatistics.getCurrentBundleStats((err: BusinessError, bundleStats: storageStatistics.Bundle… 55 console.info(`Invoke getCurrentBundleStats succeeded, appsize is ${bundleStats.appSize}`);
|
/ohos5.0/drivers/external_device_manager/services/native/driver_extension_manager/src/drivers_pkg_manager/ |
H A D | drv_bundle_state_callback.cpp | 63 std::vector<int64_t> bundleStats; in GetBundleSize() local 64 if (!iBundleMgr->GetBundleStats(bundleName, userId, bundleStats)) { in GetBundleSize() 68 if (!bundleStats.empty()) { in GetBundleSize() 69 bundleSize.append(std::to_string(bundleStats[0])); in GetBundleSize()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_installd_client_test/ |
H A D | bms_installd_client_test.cpp | 603 std::vector<int64_t> bundleStats; variable 604 ErrCode result = installClient_->GetBundleStats(bundleName, userId, bundleStats, 0, 0); 619 std::vector<int64_t> bundleStats; variable 621 ErrCode result = installClient_->GetBundleStats(bundleName, userId, bundleStats, 0, 0, 0); 623 bundleName, userId, bundleStats, 0, 0, 0, moduleNameList)); 1529 std::vector<int64_t> bundleStats; variable 1531 ErrCode result = installClient_->GetAllBundleStats(userId, bundleStats, uids); 1543 std::vector<int64_t> bundleStats; variable 1545 ErrCode result = installClient_->GetAllBundleStats(userId, bundleStats, uids); 1557 std::vector<int64_t> bundleStats; variable [all …]
|
/ohos5.0/docs/en/application-dev/file-management/ |
H A D | app-fs-space-statistics.md | 51 …storageStatistics.getCurrentBundleStats((err: BusinessError, bundleStats: storageStatistics.Bundle… 55 console.info(`Invoke getCurrentBundleStats succeeded, appsize is ${bundleStats.appSize}`);
|
/ohos5.0/docs/en/application-dev/reference/apis-core-file-kit/ |
H A D | js-apis-file-storage-statistics.md | 78 …storageStatistics.getCurrentBundleStats((error: BusinessError, bundleStats: storageStatistics.Bund… 83 console.info("getCurrentBundleStats successfully:" + JSON.stringify(bundleStats));
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/mock/src/ |
H A D | installd_client.cpp | 173 std::vector<int64_t> &bundleStats, const int32_t uid, const int32_t appIndex, in GetBundleStats() argument 180 return CallService(&IInstalld::GetBundleStats, bundleName, userId, bundleStats, in GetBundleStats() 185 std::vector<int64_t> &bundleStats, const std::vector<int32_t> &uids) in GetAllBundleStats() argument 192 return CallService(&IInstalld::GetAllBundleStats, userId, bundleStats, uids); in GetAllBundleStats()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | installd_client.cpp | 192 std::vector<int64_t> &bundleStats, const int32_t uid, const int32_t appIndex, in GetBundleStats() argument 200 return CallService(&IInstalld::GetBundleStats, bundleName, userId, bundleStats, in GetBundleStats() 205 std::vector<int64_t> &bundleStats, const std::vector<int32_t> &uids) in GetAllBundleStats() argument 212 return CallService(&IInstalld::GetAllBundleStats, userId, bundleStats, uids); in GetAllBundleStats()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_data_mgr_test/ |
H A D | bms_extension_data_mgr_test.cpp | 312 std::vector<int64_t> bundleStats; variable 313 ErrCode res = bmsExtensionDataMgr.GetBundleStats("", USERID, bundleStats); 578 std::vector<int64_t> bundleStats; variable 579 ErrCode res = bundleMgrExtTest.GetBundleStats("", USERID, bundleStats);
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/ipc/src/ |
H A D | storage_manager.cpp | 148 int32_t StorageManager::GetBundleStats(std::string pkgName, BundleStats &bundleStats, in GetBundleStats() argument 152 …t err = DelayedSingleton<StorageStatusService>::GetInstance()->GetBundleStats(pkgName, bundleStats, in GetBundleStats() 215 int32_t StorageManager::GetCurrentBundleStats(BundleStats &bundleStats, uint32_t statFlag) in GetCurrentBundleStats() argument 219 …elayedSingleton<StorageStatusService>::GetInstance()->GetCurrentBundleStats(bundleStats, statFlag); in GetCurrentBundleStats()
|
/ohos5.0/foundation/filemanagement/storage_service/interfaces/innerkits/storage_manager/native/ |
H A D | istorage_manager.h | 45 virtual int32_t GetBundleStats(std::string pkgName, BundleStats &bundleStats, 53 virtual int32_t GetCurrentBundleStats(BundleStats &bundleStats, uint32_t statFlag = 0) = 0;
|
H A D | storage_manager_proxy.h | 37 int32_t GetBundleStats(std::string pkgName, BundleStats &bundleStats, int32_t appIndex, 45 int32_t GetCurrentBundleStats(BundleStats &bundleStats, uint32_t statFlag) override;
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/include/ipc/ |
H A D | storage_manager.h | 42 …int32_t GetBundleStats(std::string pkgName, BundleStats &bundleStats, int32_t appIndex, uint32_t s… 48 int32_t GetCurrentBundleStats(BundleStats &bundleStats, uint32_t statFlag) override;
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/include/mock/ |
H A D | storage_manager_proxy_mock.h | 37 int32_t GetBundleStats(std::string pkgName, BundleStats &bundleStats, int32_t appIndex, 45 int32_t GetCurrentBundleStats(BundleStats &bundleStats, uint32_t statFlag) override;
|