Home
last modified time | relevance | path

Searched refs:bundleUserHistory_ (Results 1 - 5 of 5) sorted by relevance

/foundation/resourceschedule/device_usage_statistics/services/packagegroup/src/
H A Dbundle_active_group_controller.cpp58 bundleUserHistory_->WriteDeviceDuration(); in RestoreDurationToDatabase()
64 bundleUserHistory_->WriteBundleUsage(userId); in RestoreToDatabase()
70 bundleUserHistory_->userHistory_.erase(userId); in OnUserRemoved()
80 bundleUserHistory_->WriteBundleUsage(currentUsedUser); in OnUserSwitched()
98 bundleActiveGroupController->bundleUserHistory_->UpdateBootBasedAndScreenTime(isScreenOn, in OnScreenChanged()
108 if (bundleUserHistory_ == nullptr) { in SetHandlerAndCreateUserHistory()
109 BUNDLE_ACTIVE_LOGI("SetHandlerAndCreateUserHistory bundleUserHistory_ is null, " in SetHandlerAndCreateUserHistory()
111 bundleUserHistory_ = std::make_shared<BundleActiveUserHistory>(bootFromTimeStamp, bundleActiveCore); in SetHandlerAndCreateUserHistory()
123 auto oneUserHistory = bundleUserHistory_->GetUserHistory(userId, false); in OnBundleUninstalled()
128 bundleUserHistory_ in OnBundleUninstalled()
[all...]
/foundation/resourceschedule/device_usage_statistics/test/unittest/
H A Ddevice_usage_statistics_service_test.cpp930 auto bundleUserHistory_ = std::make_shared<BundleActiveUserHistory>(bootBasedTimeStamp, bundleActiveCore_); in HWTEST_F() local
931 bundleUserHistory_->GetLevelIndex("test", 0, 20000, screenTimeLevel, bootFromTimeLevel, 0); in HWTEST_F()
944 auto bundleUserHistory_ = std::make_shared<BundleActiveUserHistory>(bootBasedTimeStamp, bundleActiveCore_); in HWTEST_F() local
945 bundleUserHistory_->WriteDeviceDuration(); in HWTEST_F()
946 bundleUserHistory_->OnBundleUninstalled(0, "test", 0, 0); in HWTEST_F()
961 auto bundleUserHistory_ = std::make_shared<BundleActiveUserHistory>(bootBasedTimeStamp, bundleActiveCore_); in HWTEST_F() local
962 bundleUserHistory_->ReportUsage(oneBundleUsageHistory, "test", 0, 0, 1000, 2000, 100, 0); in HWTEST_F()
964 bundleUserHistory_->ReportUsage(oneBundleUsageHistory, "test", 0, 0, 2000, 1000, 100, 0); in HWTEST_F()
966 bundleUserHistory_->ReportUsage(oneBundleUsageHistory, "test", 10, 0, 1000, 2000, 100, 0); in HWTEST_F()
968 bundleUserHistory_ in HWTEST_F()
988 auto bundleUserHistory_ = std::make_shared<BundleActiveUserHistory>(bootBasedTimeStamp, bundleActiveCore_); HWTEST_F() local
1005 auto bundleUserHistory_ = std::make_shared<BundleActiveUserHistory>(bootBasedTimeStamp, bundleActiveCore_); HWTEST_F() local
[all...]
H A Ddevice_usage_statistics_mock_test.cpp339 groupController->bundleUserHistory_ = std::make_shared<BundleActiveUserHistory>(timeStamp, bundleActiveCore); in HWTEST_F()
/foundation/resourceschedule/device_usage_statistics/services/packagegroup/include/
H A Dbundle_active_group_controller.h60 std::shared_ptr<BundleActiveUserHistory> bundleUserHistory_; member in OHOS::DeviceUsageStats::BundleActiveGroupController
/foundation/resourceschedule/device_usage_statistics/services/common/src/
H A Dbundle_active_core.cpp397 if (bundleGroupController_ != nullptr && bundleGroupController_->bundleUserHistory_ != nullptr) { in RestoreAllData()

Completed in 7 milliseconds