Home
last modified time | relevance | path

Searched refs:bundleStats (Results 1 – 25 of 68) sorted by relevance

123

/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/storage/src/
H A Dstorage_status_service.cpp285 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 Dsms_adapter.cpp53 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 Dbms_adapter.cpp97 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 Dstoragestatusservice_fuzzer.cpp35 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 Dstorage_total_status_service_test.cpp187 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 Dstorage_statistics_n_exporter.cpp188 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 Dstorage_status_service.h33 …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 Dsms_adapter_mock.cpp24 StorageManager::BundleStats bundleStats; in GetBundleStats() local
25 return bundleStats; in GetBundleStats()
/ohos5.0/foundation/filemanagement/storage_service/test/fuzztest/storagemanagerproxy_fuzzer/
H A Dstoragemanagerproxy_fuzzer.cpp87 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 Dbmsextensionclient_fuzzer.cpp39 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 Dstorage_manager_connect.h33 …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 Djs-apis-file-storage-statistics.md78 …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 Dapp-fs-space-statistics.md51 …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 Ddrv_bundle_state_callback.cpp63 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 Dbms_installd_client_test.cpp603 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 Dapp-fs-space-statistics.md51 …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 Djs-apis-file-storage-statistics.md78 …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 Dinstalld_client.cpp173 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 Dinstalld_client.cpp192 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 Dbms_extension_data_mgr_test.cpp312 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 Dstorage_manager.cpp148 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 Distorage_manager.h45 virtual int32_t GetBundleStats(std::string pkgName, BundleStats &bundleStats,
53 virtual int32_t GetCurrentBundleStats(BundleStats &bundleStats, uint32_t statFlag = 0) = 0;
H A Dstorage_manager_proxy.h37 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 Dstorage_manager.h42 …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 Dstorage_manager_proxy_mock.h37 int32_t GetBundleStats(std::string pkgName, BundleStats &bundleStats, int32_t appIndex,
45 int32_t GetCurrentBundleStats(BundleStats &bundleStats, uint32_t statFlag) override;

123