Home
last modified time | relevance | path

Searched refs:system_state (Results 1 – 25 of 37) sorted by relevance

12

/system/update_engine/update_manager/
Dreal_updater_provider.cc53 SystemState* system_state) in UpdaterVariableBase() argument
54 : Variable<T>(name, mode), system_state_(system_state) {} in UpdaterVariableBase()
58 inline SystemState* system_state() const { return system_state_; } in system_state() function in chromeos_update_manager::UpdaterVariableBase
67 GetStatusHelper(SystemState* system_state, string* errmsg) { in GetStatusHelper() argument
69 system_state->update_attempter()->GetStatus(&update_engine_status_); in GetStatusHelper()
99 LastCheckedTimeVariable(const string& name, SystemState* system_state) in LastCheckedTimeVariable() argument
100 : UpdaterVariableBase<Time>(name, kVariableModePoll, system_state) {} in LastCheckedTimeVariable()
104 GetStatusHelper raw(system_state(), errmsg); in GetValue()
118 ProgressVariable(const string& name, SystemState* system_state) in ProgressVariable() argument
119 : UpdaterVariableBase<double>(name, kVariableModePoll, system_state) {} in ProgressVariable()
[all …]
Dstate_factory.cc50 chromeos_update_engine::SystemState* system_state) { in DefaultStateFactory() argument
51 chromeos_update_engine::ClockInterface* const clock = system_state->clock(); in DefaultStateFactory()
53 new RealConfigProvider(system_state->hardware())); in DefaultStateFactory()
73 system_state->hardware(), system_state->boot_control(), kiosk_app_proxy)); in DefaultStateFactory()
77 new RealUpdaterProvider(system_state)); in DefaultStateFactory()
Dstate_factory.h39 chromeos_update_engine::SystemState* system_state);
/system/update_engine/
Dimage_properties_android.cc171 ImageProperties LoadImageProperties(SystemState* system_state) { in LoadImageProperties() argument
207 std::to_string(system_state->boot_control()->GetCurrentSlot()); in LoadImageProperties()
209 if (!system_state->prefs()->Exists(current_channel_key) || in LoadImageProperties()
210 !system_state->prefs()->GetString(current_channel_key, &current_channel)) in LoadImageProperties()
221 MutableImageProperties LoadMutableImageProperties(SystemState* system_state) { in LoadMutableImageProperties() argument
224 if (!system_state->prefs()->GetBoolean(kPrefsImgPropPowerwashAllowed, in LoadMutableImageProperties()
231 bool StoreMutableImageProperties(SystemState* system_state, in StoreMutableImageProperties() argument
236 if (!system_state->prefs()->SetBoolean(kPrefsImgPropPowerwashAllowed, in StoreMutableImageProperties()
Dimage_properties.h84 ImageProperties LoadImageProperties(SystemState* system_state);
88 MutableImageProperties LoadMutableImageProperties(SystemState* system_state);
92 bool StoreMutableImageProperties(SystemState* system_state,
Dimage_properties_chromeos.cc89 ImageProperties LoadImageProperties(SystemState* system_state) { in LoadImageProperties() argument
100 HardwareInterface* const hardware = system_state->hardware(); in LoadImageProperties()
127 MutableImageProperties LoadMutableImageProperties(SystemState* system_state) { in LoadMutableImageProperties() argument
140 bool StoreMutableImageProperties(SystemState* system_state, in StoreMutableImageProperties() argument
Domaha_request_action.h104 OmahaRequestAction(SystemState* system_state,
159 static int GetInstallDate(SystemState* system_state);
170 static bool HasInstallDate(SystemState* system_state);
175 static bool PersistInstallDate(SystemState* system_state,
Dconnection_manager.cc45 SystemState* system_state) { in CreateConnectionManager() argument
47 new ConnectionManager(new ShillProxy(), system_state)); in CreateConnectionManager()
52 SystemState* system_state) in ConnectionManager() argument
53 : shill_proxy_(shill_proxy), system_state_(system_state) {} in ConnectionManager()
Dmetrics_reporter_omaha.cc159 SystemState* system_state, in ReportUpdateCheckMetrics() argument
190 system_state, in ReportUpdateCheckMetrics()
206 system_state, &uptime_since_last_storage, &uptime_since_last)) { in ReportUpdateCheckMetrics()
218 if (system_state && system_state->request_params()) { in ReportUpdateCheckMetrics()
220 system_state->request_params()->target_version_prefix(); in ReportUpdateCheckMetrics()
227 if (system_state->request_params()->rollback_allowed()) { in ReportUpdateCheckMetrics()
251 SystemState* system_state, in ReportUpdateAttemptMetrics() argument
313 system_state, in ReportUpdateAttemptMetrics()
329 system_state, &uptime_since_last_storage, &uptime_since_last)) { in ReportUpdateAttemptMetrics()
Dmetrics_utils.h59 bool WallclockDurationHelper(SystemState* system_state,
72 bool MonotonicDurationHelper(SystemState* system_state,
Dmock_omaha_request_params.h30 explicit MockOmahaRequestParams(SystemState* system_state) in MockOmahaRequestParams() argument
31 : OmahaRequestParams(system_state) { in MockOmahaRequestParams()
Ddbus_service.cc55 DBusUpdateEngineService::DBusUpdateEngineService(SystemState* system_state) in DBusUpdateEngineService() argument
56 : common_(new UpdateEngineService{system_state}) {} in DBusUpdateEngineService()
195 UpdateEngineAdaptor::UpdateEngineAdaptor(SystemState* system_state) in UpdateEngineAdaptor() argument
198 dbus_service_(system_state), in UpdateEngineAdaptor()
Dmock_metrics_reporter.h40 void(SystemState* system_state,
46 void(SystemState* system_state,
Dmetrics_reporter_android.h42 SystemState* system_state, in ReportUpdateCheckMetrics() argument
47 void ReportUpdateAttemptMetrics(SystemState* system_state,
Dmetrics_reporter_stub.h42 SystemState* system_state, in ReportUpdateCheckMetrics() argument
47 void ReportUpdateAttemptMetrics(SystemState* system_state, in ReportUpdateAttemptMetrics() argument
Dmetrics_reporter_interface.h95 SystemState* system_state,
123 virtual void ReportUpdateAttemptMetrics(SystemState* system_state,
Dmetrics_utils.cc294 bool WallclockDurationHelper(SystemState* system_state, in WallclockDurationHelper() argument
299 Time now = system_state->clock()->GetWallclockTime(); in WallclockDurationHelper()
301 if (system_state->prefs()->GetInt64(state_variable_key, &stored_value)) { in WallclockDurationHelper()
312 if (!system_state->prefs()->SetInt64(state_variable_key, in WallclockDurationHelper()
320 bool MonotonicDurationHelper(SystemState* system_state, in MonotonicDurationHelper() argument
325 Time now = system_state->clock()->GetMonotonicTime(); in MonotonicDurationHelper()
Dconnection_manager_android.cc25 SystemState* system_state) { in CreateConnectionManager() argument
Dmetrics_reporter_omaha.h119 SystemState* system_state,
124 void ReportUpdateAttemptMetrics(SystemState* system_state,
Dconnection_manager_interface.h63 SystemState* system_state);
Dconnection_manager.h39 SystemState* system_state);
Ddbus_service.h41 explicit DBusUpdateEngineService(SystemState* system_state);
168 explicit UpdateEngineAdaptor(SystemState* system_state);
Domaha_request_action.cc275 SystemState* system_state, in OmahaRequestAction() argument
280 : system_state_(system_state), in OmahaRequestAction()
281 params_(system_state->request_params()), in OmahaRequestAction()
346 int OmahaRequestAction::GetInstallDate(SystemState* system_state) { in GetInstallDate() argument
347 PrefsInterface* prefs = system_state->prefs(); in GetInstallDate()
383 if (!system_state->hardware()->IsOOBEEnabled() || in GetInstallDate()
384 !system_state->hardware()->IsOOBEComplete(&time_of_oobe)) { in GetInstallDate()
400 system_state, num_days, kProvisionedFromOOBEMarker)) in GetInstallDate()
1372 bool OmahaRequestAction::HasInstallDate(SystemState* system_state) { in HasInstallDate() argument
1373 PrefsInterface* prefs = system_state->prefs(); in HasInstallDate()
[all …]
Domaha_response_handler_action.h45 explicit OmahaResponseHandlerAction(SystemState* system_state);
Dmock_payload_state.h31 bool Initialize(SystemState* system_state) { return true; } in Initialize() argument

12