Searched refs:AppTimeController (Results 1 – 15 of 15) sorted by relevance
182 AppTimeController::TestApi::TestApi(AppTimeController* controller) in TestApi()185 AppTimeController::TestApi::~TestApi() = default;219 AppTimeController::AppTimeController(Profile* profile) in AppTimeController() function in chromeos::app_time::AppTimeController278 AppTimeController::~AppTimeController() { in ~AppTimeController()290 bool AppTimeController::IsExtensionAllowlisted( in IsExtensionAllowlisted()308 void AppTimeController::SystemClockUpdated() { in SystemClockUpdated()319 void AppTimeController::RegisterProfilePrefObservers( in RegisterProfilePrefObservers()506 void AppTimeController::OnResetTimeReached() { in OnResetTimeReached()516 void AppTimeController::RestoreLastResetTime() { in RestoreLastResetTime()566 void AppTimeController::OpenFamilyLinkApp() { in OpenFamilyLinkApp()[all …]
49 class AppTimeController : public SystemClockClient::Observer,57 explicit TestApi(AppTimeController* controller);67 AppTimeController* const controller_;76 explicit AppTimeController(Profile* profile);77 AppTimeController(const AppTimeController&) = delete;78 AppTimeController& operator=(const AppTimeController&) = delete;79 ~AppTimeController() override;180 base::WeakPtrFactory<AppTimeController> weak_ptr_factory_{this};
24 class AppTimeController; variable30 explicit WebTimeLimitEnforcer(AppTimeController* controller);57 AppTimeController* const app_time_controller_;
31 class AppTimeController; variable40 WebTimeActivityProvider(AppTimeController* app_time_controller,86 AppTimeController* const app_time_controller_;
23 return AppTimeController::ArePerAppTimeLimitsEnabled() && in ShouldReportAppActivity()24 AppTimeController::IsAppActivityReportingEnabled(); in ShouldReportAppActivity()
137 AppTimeController::TestApi* test_api() { return test_api_.get(); } in test_api()138 AppTimeController* controller() { return controller_.get(); } in controller()165 std::unique_ptr<AppTimeController> controller_;166 std::unique_ptr<AppTimeController::TestApi> test_api_;288 controller_ = std::make_unique<AppTimeController>(&profile_); in InstantiateController()289 test_api_ = std::make_unique<AppTimeController::TestApi>(controller_.get()); in InstantiateController()294 EXPECT_TRUE(AppTimeController::ArePerAppTimeLimitsEnabled()); in TEST_F()
24 if (!AppTimeController::ArePerAppTimeLimitsEnabled() || in MaybeCreateForWebContents()
35 AppTimeController* app_time_controller) in WebTimeLimitEnforcer()
62 AppTimeController* app_time_controller, in WebTimeActivityProvider()
159 AppTimeController::TestApi(child_user_service.app_time_controller()); in GetAppRegistry()
32 class AppTimeController; variable50 app_time::AppTimeController* app_time_controller();101 std::unique_ptr<app_time::AppTimeController> app_time_controller_;
32 app_time::AppTimeController* ChildUserService::TestApi::app_time_controller() { in app_time_controller()44 if (app_time::AppTimeController::ArePerAppTimeLimitsEnabled()) { in ChildUserService()45 app_time_controller_ = std::make_unique<app_time::AppTimeController>( in ChildUserService()
311 chromeos::app_time::AppTimeController::TestApi( in SimulateAppActivity()
946 chromeos::app_time::AppTimeController::RegisterProfilePrefs(registry); in RegisterProfilePrefs()
1026 chromeos::app_time::AppTimeController::RegisterProfilePrefs(registry); in RegisterProfilePrefs()