Home
last modified time | relevance | path

Searched refs:bundleStats (Results 1 - 25 of 63) sorted by relevance

123

/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.bundleIndex); in GetBundleStats()
100 if (!res || bundleStats.size() != dataDir.size()) { in GetBundleStats()
104 for (uint i = 0; i < bundleStats.size(); i++) { in GetBundleStats()
105 if (bundleStats[i] == E_ERR) { in GetBundleStats()
107 bundleStats[i] = 0; in GetBundleStats()
110 int64_t dataSize = bundleStats[LOCAL] + bundleStats[DISTRIBUTED] + bundleStats[DATABASE]; in GetBundleStats()
254 HILOGE("Failed to get bundleStats resul in GenerateBundleStatsIncrease()
[all...]
/foundation/filemanagement/storage_service/services/storage_manager/storage/src/
H A Dstorage_status_service.cpp171 BundleStats &bundleStats, int32_t appIndex) in GetBundleStats()
175 return GetBundleStats(pkgName, userId, bundleStats, appIndex); in GetBundleStats()
279 int32_t StorageStatusService::GetCurrentBundleStats(BundleStats &bundleStats) in GetCurrentBundleStats() argument
284 int32_t ret = GetBundleStats(pkgName, userId, bundleStats, DEFAULT_APP_INDEX); in GetCurrentBundleStats()
318 vector<int64_t> bundleStats; in GetBundleStats() local
319 bool res = bundleMgr->GetBundleStats(pkgName, userId, bundleStats, appIndex); in GetBundleStats()
320 if (!res || bundleStats.size() != dataDir.size()) { in GetBundleStats()
324 for (uint i = 0; i < bundleStats.size(); i++) { in GetBundleStats()
325 if (bundleStats[i] == E_ERR) { in GetBundleStats()
327 bundleStats[ in GetBundleStats()
170 GetBundleStats(const std::string &pkgName, BundleStats &bundleStats, int32_t appIndex) GetBundleStats() argument
350 vector<int64_t> bundleStats; GetAppSize() local
[all...]
/foundation/filemanagement/storage_service/test/fuzztest/storagestatusservice_fuzzer/
H A Dstoragestatusservice_fuzzer.cpp35 BundleStats bundleStats; in StorageStatusServiceFuzzTest() local
47 service->GetBundleStats(pkgName, bundleStats, 0); in StorageStatusServiceFuzzTest()
51 service->GetCurrentBundleStats(bundleStats); in StorageStatusServiceFuzzTest()
52 service->GetBundleStats(pkgName, userId, bundleStats, 0); in StorageStatusServiceFuzzTest()
/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);
37 int32_t GetCurrentBundleStats(BundleStats &bundleStats);
38 int32_t GetBundleStats(const std::string &pkgName, int32_t userId, BundleStats &bundleStats, int32_t appIndex);
/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()
/foundation/filemanagement/storage_service/services/storage_manager/kits_impl/src/
H A Dstorage_statistics_n_exporter.cpp177 auto bundleStats = std::make_shared<BundleStats>(); in GetBundleStats() local
178 auto cbExec = [nameString, bundleStats, index]() -> NError { in GetBundleStats()
180 *bundleStats, index); in GetBundleStats()
186 auto cbComplete = [bundleStats](napi_env env, NError err) -> NVal { in GetBundleStats()
191 bundleObject.AddProp("appSize", NVal::CreateInt64(env, (bundleStats->appSize_)).val_); in GetBundleStats()
193 (bundleStats->cacheSize_)).val_); in GetBundleStats()
194 bundleObject.AddProp("dataSize", NVal::CreateInt64(env, (bundleStats->dataSize_)).val_); in GetBundleStats()
216 auto bundleStats = std::make_shared<BundleStats>(); in GetCurrentBundleStats() local
217 auto cbExec = [bundleStats]() -> NError { in GetCurrentBundleStats()
218 int32_t errNum = DelayedSingleton<StorageManagerConnect>::GetInstance()->GetCurrentBundleStats(*bundleStats); in GetCurrentBundleStats()
[all...]
/foundation/filemanagement/storage_service/services/storage_manager/storage/test/
H A Dstorage_total_status_service_test.cpp187 BundleStats bundleStats; in HWTEST_F() local
188 int32_t result = service->GetBundleStats(pkgName, bundleStats, 0); in HWTEST_F()
208 BundleStats bundleStats; in HWTEST_F() local
209 int32_t result = service->GetBundleStats(pkgName, userId, bundleStats, 0); in HWTEST_F()
227 BundleStats bundleStats; in HWTEST_F() local
228 int32_t result = service->GetCurrentBundleStats(bundleStats); in HWTEST_F()
/foundation/filemanagement/storage_service/test/fuzztest/storagemanagerproxy_fuzzer/
H A Dstoragemanagerproxy_fuzzer.cpp87 BundleStats bundleStats; in StorageManagerProxyGetFuzzTest() local
105 proxy->GetBundleStats(metaData, bundleStats, 0); in StorageManagerProxyGetFuzzTest()
106 proxy->GetCurrentBundleStats(bundleStats); in StorageManagerProxyGetFuzzTest()
/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()
/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);
45 int32_t GetCurrentBundleStats(BundleStats &bundleStats);
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/mock/src/
H A Dinstalld_client.cpp168 std::vector<int64_t> &bundleStats, const int32_t uid, const int32_t appIndex) in GetBundleStats()
175 return CallService(&IInstalld::GetBundleStats, bundleName, userId, bundleStats, uid, appIndex); in GetBundleStats()
179 std::vector<int64_t> &bundleStats, const std::vector<int32_t> &uids) in GetAllBundleStats()
186 return CallService(&IInstalld::GetAllBundleStats, userId, bundleStats, uids); in GetAllBundleStats()
167 GetBundleStats(const std::string &bundleName, const int32_t userId, std::vector<int64_t> &bundleStats, const int32_t uid, const int32_t appIndex) GetBundleStats() argument
178 GetAllBundleStats(const int32_t userId, std::vector<int64_t> &bundleStats, const std::vector<int32_t> &uids) GetAllBundleStats() argument
H A Dmock_installd_host_impl.cpp111 const std::string &bundleName, const int32_t userId, std::vector<int64_t> &bundleStats, const int32_t uid, in GetBundleStats()
118 std::vector<int64_t> &bundleStats, const std::vector<int32_t> &uids) in GetAllBundleStats()
110 GetBundleStats( const std::string &bundleName, const int32_t userId, std::vector<int64_t> &bundleStats, const int32_t uid, const int32_t appIndex) GetBundleStats() argument
117 GetAllBundleStats(const int32_t userId, std::vector<int64_t> &bundleStats, const std::vector<int32_t> &uids) GetAllBundleStats() argument
H A Dmock_install_client.cpp122 std::vector<int64_t> &bundleStats, const int32_t uid, const int32_t appIndex) in GetBundleStats()
128 std::vector<int64_t> &bundleStats, const std::vector<int32_t> &uids) in GetAllBundleStats()
121 GetBundleStats(const std::string &bundleName, const int32_t userId, std::vector<int64_t> &bundleStats, const int32_t uid, const int32_t appIndex) GetBundleStats() argument
127 GetAllBundleStats(const int32_t userId, std::vector<int64_t> &bundleStats, const std::vector<int32_t> &uids) GetAllBundleStats() argument
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_application/bundlemgrproxy_fuzzer/
H A Dbundlemgrproxy_fuzzer.cpp132 std::vector<int64_t> bundleStats; in DoSomethingInterestingWithMyAPI() local
133 bundleStats.push_back(reinterpret_cast<intptr_t>(data)); in DoSomethingInterestingWithMyAPI()
134 bundleMgrProxy.GetBundleStats(bundleName, reinterpret_cast<uintptr_t>(data), bundleStats); in DoSomethingInterestingWithMyAPI()
250 bundleMgrProxy.GetAllBundleStats(reinterpret_cast<uintptr_t>(data), bundleStats); in DoSomethingInterestingWithMyAPI() local
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/
H A Dinstalld_client.cpp183 std::vector<int64_t> &bundleStats, const int32_t uid, const int32_t appIndex) in GetBundleStats()
190 return CallService(&IInstalld::GetBundleStats, bundleName, userId, bundleStats, uid, appIndex); in GetBundleStats()
194 std::vector<int64_t> &bundleStats, const std::vector<int32_t> &uids) in GetAllBundleStats()
201 return CallService(&IInstalld::GetAllBundleStats, userId, bundleStats, uids); in GetAllBundleStats()
182 GetBundleStats(const std::string &bundleName, const int32_t userId, std::vector<int64_t> &bundleStats, const int32_t uid, const int32_t appIndex) GetBundleStats() argument
193 GetAllBundleStats(const int32_t userId, std::vector<int64_t> &bundleStats, const std::vector<int32_t> &uids) GetAllBundleStats() argument
/foundation/filemanagement/storage_service/services/storage_manager/ipc/src/
H A Dstorage_manager.cpp148 int32_t StorageManager::GetBundleStats(std::string pkgName, BundleStats &bundleStats, int32_t appIndex) in GetBundleStats() argument
151 int32_t err = DelayedSingleton<StorageStatusService>::GetInstance()->GetBundleStats(pkgName, bundleStats, appIndex); in GetBundleStats()
213 int32_t StorageManager::GetCurrentBundleStats(BundleStats &bundleStats) in GetCurrentBundleStats() argument
217 int32_t err = DelayedSingleton<StorageStatusService>::GetInstance()->GetCurrentBundleStats(bundleStats); in GetCurrentBundleStats()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_installd_client_test/
H A Dbms_installd_client_test.cpp603 std::vector<int64_t> bundleStats; in HWTEST_F() local
604 ErrCode result = installClient_->GetBundleStats(bundleName, userId, bundleStats, 0, 0); in HWTEST_F()
619 std::vector<int64_t> bundleStats; in HWTEST_F() local
620 ErrCode result = installClient_->GetBundleStats(bundleName, userId, bundleStats, 0, 0); in HWTEST_F()
621 EXPECT_EQ(result, installClient_->CallService(&IInstalld::GetBundleStats, bundleName, userId, bundleStats, 0, 0)); in HWTEST_F()
1556 std::vector<int64_t> bundleStats; in HWTEST_F() local
1559 ErrCode result = installClient_->GetAllBundleStats(userId, bundleStats, uids); in HWTEST_F()
1571 std::vector<int64_t> bundleStats; in HWTEST_F() local
1574 ErrCode result = installClient_->GetAllBundleStats(userId, bundleStats, uids); in HWTEST_F()
1586 std::vector<int64_t> bundleStats; in HWTEST_F() local
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_install_daemon_test/
H A Dbms_install_daemon_test.cpp75 std::vector<int64_t> &bundleStats, const int32_t uid) const;
204 std::vector<int64_t> &bundleStats, const int32_t uid) const in GetBundleStats()
209 if (InstalldClient::GetInstance()->GetBundleStats(bundleName, userId, bundleStats, uid) == ERR_OK) { in GetBundleStats()
1060 std::vector<int64_t> bundleStats; in HWTEST_F() local
1062 ErrCode ret = hostImpl.GetAllBundleStats(userId, bundleStats, uids); in HWTEST_F()
1075 std::vector<int64_t> bundleStats; in HWTEST_F() local
1079 ErrCode ret = hostImpl.GetAllBundleStats(userId, bundleStats, uids); in HWTEST_F()
203 GetBundleStats(const std::string &bundleName, const int32_t userId, std::vector<int64_t> &bundleStats, const int32_t uid) const GetBundleStats() argument
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/bms_extension/
H A Dbms_extension_client.h57 ErrCode GetBundleStats(const std::string &bundleName, int32_t userId, std::vector<int64_t> &bundleStats);
/foundation/ability/ability_runtime/test/unittest/uri_permission_impl_test/mock/include/
H A Dmock_storage_manager_service.h85 virtual int32_t GetBundleStats(std::string pkgName, BundleStats &bundleStats, int32_t) override
115 virtual int32_t GetCurrentBundleStats(BundleStats &bundleStats) override
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/installd/
H A Dinstalld_host_impl.h134 * @param bundleStats Indicates the bundle Stats.
138 std::vector<int64_t> &bundleStats, const int32_t uid = Constants::INVALID_UID,
142 std::vector<int64_t> &bundleStats, const std::vector<int32_t> &uids) override;
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/
H A Dinstalld_client.h114 * @param bundleStats Indicates the bundle Stats.
118 std::vector<int64_t> &bundleStats, const int32_t uid = Constants::INVALID_UID, const int32_t appIndex = 0);
121 std::vector<int64_t> &bundleStats, const std::vector<int32_t> &uids);
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/ipc/
H A Dinstalld_interface.h194 * @param bundleStats Indicates the bundle Stats.
198 std::vector<int64_t> &bundleStats, const int32_t uid, const int32_t appIndex = 0) in GetBundleStats()
204 std::vector<int64_t> &bundleStats, const std::vector<int32_t> &uids) in GetAllBundleStats()
197 GetBundleStats(const std::string &bundleName, const int32_t userId, std::vector<int64_t> &bundleStats, const int32_t uid, const int32_t appIndex = 0) GetBundleStats() argument
203 GetAllBundleStats(const int32_t userId, std::vector<int64_t> &bundleStats, const std::vector<int32_t> &uids) GetAllBundleStats() argument
H A Dinstalld_proxy.h136 * @param bundleStats Indicates the bundle Stats.
140 std::vector<int64_t> &bundleStats, const int32_t uid = Constants::INVALID_UID,
144 std::vector<int64_t> &bundleStats, const std::vector<int32_t> &uids) override;

Completed in 18 milliseconds

123