class BootupTracker
Defined at line 18 of file ../../src/devices/bin/driver_manager/bootup_tracker.h
Protected Members
duration current_timeout_
Public Methods
void BootupTracker (BindManager * manager, async_dispatcher_t * dispatcher)
Defined at line 20 of file ../../src/devices/bin/driver_manager/bootup_tracker.h
void ~BootupTracker ()
Defined at line 23 of file ../../src/devices/bin/driver_manager/bootup_tracker.h
void WaitForBootup (fit::callback<void ()> callback)
Defined at line 32 of file ../../src/devices/bin/driver_manager/bootup_tracker.cc
void Start ()
Starts the bootup tracker timeout task.
Defined at line 27 of file ../../src/devices/bin/driver_manager/bootup_tracker.cc
void NotifyNewStartRequest (std::string node_moniker, std::string driver_url, std::weak_ptr<Node> node)
Called when there's a new request to start a driver for the given node.
Defined at line 40 of file ../../src/devices/bin/driver_manager/bootup_tracker.cc
void NotifyStartComplete (std::string node_moniker)
Called when a start driver request is completed for the given node.
Defined at line 52 of file ../../src/devices/bin/driver_manager/bootup_tracker.cc
void NotifyBindingChanged ()
Called when the ongoing bind state in the bind manager has changed.
Defined at line 62 of file ../../src/devices/bin/driver_manager/bootup_tracker.cc
void BootupDoneForTesting ()
Used to mark boot-up as done for testing purposes only.
Defined at line 64 of file ../../src/devices/bin/driver_manager/bootup_tracker.cc
bool BootupComplete ()
Returns whether boot-up is currently complete. Use `WaitForBootup` instead
of polling this value if you are watching for boot completion.
Defined at line 72 of file ../../src/devices/bin/driver_manager/bootup_tracker.cc
Protected Methods
void ResetBootupTimer ()
Exposed for testing.
Defined at line 132 of file ../../src/devices/bin/driver_manager/bootup_tracker.cc
bool IsUpdateDeadlineExceeded ()
Exposed for testing.
Defined at line 127 of file ../../src/devices/bin/driver_manager/bootup_tracker.cc
void OnBootupTimeout ()
Invoked by |bootup_timeout_task_|. Exposed for testing.
Defined at line 122 of file ../../src/devices/bin/driver_manager/bootup_tracker.cc