Home
last modified time | relevance | path

Searched refs:state_ (Results 1 – 8 of 8) sorted by relevance

/device/google/bonito/health/
DBatteryRechargingControl.cpp31 state_ = INACTIVE; in BatteryRechargingControl()
88 if ((state_ == INACTIVE) && (props->batteryLevel < kFullSoc)) in updateBatteryProperties()
91 LOG(INFO) << "Entry state_: " << state_ << " charger_status: " << charger_status in updateBatteryProperties()
93 switch (state_) { in updateBatteryProperties()
95 state_ = WAIT_EOC; in updateBatteryProperties()
99 state_ = INACTIVE; in updateBatteryProperties()
102 state_ = RECHARGING_CYCLE; in updateBatteryProperties()
107 state_ = NO_POWER_SOURCE; in updateBatteryProperties()
125 state_ = OVER_LOADING; in updateBatteryProperties()
134 state_ = NO_POWER_SOURCE; in updateBatteryProperties()
[all …]
DBatteryRechargingControl.h65 enum RechargeState state_; variable
/device/google/crosshatch/health/
DBatteryRechargingControl.cpp32 state_ = INACTIVE; in BatteryRechargingControl()
89 if ((state_ == INACTIVE) && (props->batteryLevel < kFullSoc)) in updateBatteryProperties()
92 LOG(INFO) << "Entry state_: " << state_ << " charger_status: " << charger_status in updateBatteryProperties()
94 switch (state_) { in updateBatteryProperties()
96 state_ = WAIT_EOC; in updateBatteryProperties()
100 state_ = RECHARGING_CYCLE; in updateBatteryProperties()
105 state_ = NO_POWER_SOURCE; in updateBatteryProperties()
123 state_ = OVER_LOADING; in updateBatteryProperties()
132 state_ = NO_POWER_SOURCE; in updateBatteryProperties()
142 state_ = INACTIVE; in updateBatteryProperties()
[all …]
DBatteryRechargingControl.h67 enum RechargeState state_; variable
/device/google/cuttlefish_common/common/vsoc/lib/
Dlock_test.cpp45 state_ = BEFORE_LOCK; in Work()
47 state_ = IN_CRITICAL_SECTION; in Work()
50 state_ = DONE; in Work()
57 state_ = JOINED; in Join()
62 volatile State state_{BEFORE_EXECUTION}; member in SimpleLocker
/device/google/cuttlefish_common/host/commands/launch/
Dmain.cc83 : fg_launcher_pipe_(fg_launcher_pipe), state_(kBootStarted) {} in CvdBootStateMachine()
92 state_ |= kGuestBootFailed; in OnBootEvtReceived()
95 state_ |= kGuestBootCompleted; in OnBootEvtReceived()
98 state_ |= kGuestBootFailed; in OnBootEvtReceived()
107 state_ |= kE2eTestFailed; in OnE2eTestCompleted()
110 state_ |= kE2eTestPassed; in OnE2eTestCompleted()
116 bool boot_completed = state_ & kGuestBootCompleted; in BootCompleted()
118 (state_ & kE2eTestPassed) || (state_ & kE2eTestDisabled); in BootCompleted()
120 state_ & ~(kGuestBootCompleted | kE2eTestPassed | kE2eTestDisabled); in BootCompleted()
125 state_ |= kE2eTestDisabled; in DisableE2eTests()
[all …]
/device/linaro/hikey/bluetooth/
Dhci_packetizer.cc51 switch (state_) { in OnDataReady()
64 state_ = HCI_PAYLOAD; in OnDataReady()
80 state_ = HCI_PREAMBLE; in OnDataReady()
Dhci_packetizer.h42 State state_{HCI_PREAMBLE};