mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-07 16:11:43 +00:00
detachables: Set fw screen timeout to 30 secs upon button press
For detachables, the short delay is to fast to them to read/choose
options. Setting timeout to 30 seconds once user starts scrolling
through the menu. If no action is taken by the user, will retain
the short delay timeout.
BUG=b:63056097, b:35585623
BRANCH=None
TEST=reboot with gbb flag bit 1 enabled and ensure using short delay.
reboot and press volume button and make sure using long delay.
reboot and make sure short delay performed again upon reboot.
reboot and make sure gbb flag bit 1 = 0 and make sure long delay
still working as expected.
Change-Id: I31e3ca8aff6b29abca70ca9587deae7f6443d837
Signed-off-by: Shelley Chen <shchen@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/563817
Reviewed-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
@@ -149,6 +149,8 @@ static uint32_t kbd_fire_key;
|
||||
static VbError_t beep_return;
|
||||
static note_event_t *expected_event;
|
||||
|
||||
extern int audio_open_count;
|
||||
|
||||
/* Reset mock data (for use before each test) */
|
||||
static void ResetMocks(void) {
|
||||
|
||||
@@ -181,6 +183,7 @@ static void ResetMocks(void) {
|
||||
kbd_fire_key = 0;
|
||||
|
||||
beep_return = VBERROR_SUCCESS;
|
||||
audio_open_count = 0;
|
||||
|
||||
matched_events = 0;
|
||||
max_events = 0;
|
||||
|
||||
@@ -50,6 +50,7 @@ static uint8_t notebuf[sizeof(good_header) +
|
||||
static VbDevMusic *use_hdr;
|
||||
static VbDevMusicNote *use_notes;
|
||||
static uint32_t use_size;
|
||||
extern int audio_open_count;
|
||||
|
||||
/* Set correct checksum for custom notes */
|
||||
void FixChecksum(VbDevMusic *hdr) {
|
||||
@@ -72,6 +73,7 @@ static void ResetMocks(void) {
|
||||
memcpy(use_notes, good_notes, sizeof(good_notes));
|
||||
FixChecksum(use_hdr);
|
||||
use_size = sizeof(notebuf);
|
||||
audio_open_count = 0;
|
||||
}
|
||||
|
||||
/* Compare two sets of notes */
|
||||
|
||||
Reference in New Issue
Block a user