Lines Matching refs:RecoveryUI
42 RecoveryUI::RecoveryUI() in RecoveryUI() function in RecoveryUI
58 void RecoveryUI::OnKeyDetected(int key_code) { in OnKeyDetected()
68 int RecoveryUI::InputCallback(int fd, uint32_t epevents, void* data) { in InputCallback()
69 return reinterpret_cast<RecoveryUI*>(data)->OnInputEvent(fd, epevents); in InputCallback()
82 void RecoveryUI::Init() { in Init()
85 ev_iterate_available_keys(std::bind(&RecoveryUI::OnKeyDetected, this, std::placeholders::_1)); in Init()
90 int RecoveryUI::OnInputEvent(int fd, uint32_t epevents) { in OnInputEvent()
138 void RecoveryUI::ProcessKey(int key_code, int updown) { in ProcessKey()
154 pthread_create(&thread, nullptr, &RecoveryUI::time_key_helper, info); in ProcessKey()
168 case RecoveryUI::IGNORE: in ProcessKey()
171 case RecoveryUI::TOGGLE: in ProcessKey()
175 case RecoveryUI::REBOOT: in ProcessKey()
181 case RecoveryUI::ENQUEUE: in ProcessKey()
188 void* RecoveryUI::time_key_helper(void* cookie) { in time_key_helper()
195 void RecoveryUI::time_key(int key_code, int count) { in time_key()
206 void RecoveryUI::EnqueueKey(int key_code) { in EnqueueKey()
216 int RecoveryUI::WaitKey() { in WaitKey()
244 bool RecoveryUI::IsUsbConnected() { in IsUsbConnected()
262 bool RecoveryUI::IsKeyPressed(int key) { in IsKeyPressed()
269 bool RecoveryUI::IsLongPress() { in IsLongPress()
276 bool RecoveryUI::HasThreeButtons() { in HasThreeButtons()
280 void RecoveryUI::FlushKeys() { in FlushKeys()
286 RecoveryUI::KeyAction RecoveryUI::CheckKey(int key, bool is_long_press) { in CheckKey()
330 void RecoveryUI::KeyLongPress(int) { in KeyLongPress()
333 void RecoveryUI::SetEnableReboot(bool enabled) { in SetEnableReboot()