Searched refs:userHistory (Results 1 - 7 of 7) sorted by relevance
/foundation/resourceschedule/device_usage_statistics/services/packagegroup/src/ |
H A D | bundle_active_user_history.cpp | 49 auto userHistory = GetUserHistory(userId, false); in WriteBundleUsage() local 50 if (userHistory == nullptr) { in WriteBundleUsage() 54 database_.PutBundleHistoryData(userId, userHistory); in WriteBundleUsage()
|
/foundation/resourceschedule/device_usage_statistics/test/unittest/ |
H A D | package_usage_test.cpp | 741 auto userHistory = std::make_shared<std::map<std::string, std::shared_ptr<BundleActivePackageHistory>>>(); in HWTEST_F() local 745 userHistory->emplace(bundleName + std::to_string(uid), std::make_shared<BundleActivePackageHistory>()); in HWTEST_F() 747 userHistory->emplace(bundleName + std::to_string(uid), std::make_shared<BundleActivePackageHistory>()); in HWTEST_F() 749 userHistory->emplace(bundleName + std::to_string(uid), std::make_shared<BundleActivePackageHistory>()); in HWTEST_F() 750 groupController->DeleteUsageGroupCache(userHistory, bundleName, uid, appIndex); in HWTEST_F() 751 auto it = userHistory->find(bundleName + std::to_string(uid)); in HWTEST_F() 752 EXPECT_EQ(it, userHistory->end()); in HWTEST_F() 754 groupController->DeleteUsageGroupCache(userHistory, bundleName, uid, appIndex); in HWTEST_F() 756 it = userHistory->find(bundleName + std::to_string(uid)); in HWTEST_F() 757 EXPECT_EQ(it, userHistory in HWTEST_F() [all...] |
H A D | bundle_active_total_test.cpp | 247 std::shared_ptr<map<string, std::shared_ptr<BundleActivePackageHistory>>> userHistory; in HWTEST_F() local 248 test.PutBundleHistoryData(0, userHistory); in HWTEST_F()
|
H A D | device_usage_statistics_service_test.cpp | 473 std::shared_ptr<std::map<std::string, std::shared_ptr<BundleActivePackageHistory>>> userHistory = nullptr; in HWTEST_F() local 474 database->PutBundleHistoryData(userId, userHistory); in HWTEST_F() 476 userHistory = std::make_shared<std::map<string, std::shared_ptr<BundleActivePackageHistory>>>(); in HWTEST_F() 477 userHistory->emplace("defaultTest", std::make_shared<BundleActivePackageHistory>()); in HWTEST_F() 478 database->PutBundleHistoryData(userId, userHistory); in HWTEST_F() 479 database->PutBundleHistoryData(userId, userHistory); in HWTEST_F()
|
H A D | device_usage_statistics_mock_test.cpp | 429 auto userHistory = std::make_shared<std::map<std::string, std::shared_ptr<BundleActivePackageHistory>>>(); in HWTEST_F() local 430 database->PutBundleHistoryData(userId, userHistory); in HWTEST_F()
|
/foundation/resourceschedule/device_usage_statistics/services/common/include/ |
H A D | bundle_active_usage_database.h | 64 std::shared_ptr<BundleActivePackageHistory>>> userHistory);
|
/foundation/resourceschedule/device_usage_statistics/services/common/src/ |
H A D | bundle_active_usage_database.cpp | 804 shared_ptr<map<string, shared_ptr<BundleActivePackageHistory>>> userHistory) in PutBundleHistoryData() 807 if (userHistory == nullptr) { in PutBundleHistoryData() 811 if (userHistory == nullptr || rdbStore == nullptr) { in PutBundleHistoryData() 821 for (auto iter = userHistory->begin(); iter != userHistory->end(); iter++) { in PutBundleHistoryData() 803 PutBundleHistoryData(int32_t userId, shared_ptr<map<string, shared_ptr<BundleActivePackageHistory>>> userHistory) PutBundleHistoryData() argument
|
Completed in 11 milliseconds