Lines Matching refs:key
772 * of time the key spent not being pressed is not useful */
778 LOGV("[%lld] key[%d] down\n", now, code);
783 LOGV("[%lld] key[%d] up (was down for %lld.%lldsec)\n", now,
799 struct key_state *key,
802 int64_t then = key->timestamp + timeout;
810 struct key_state *key = &charger->keys[code];
814 if (key->down) {
815 int64_t reboot_timeout = key->timestamp + POWER_ON_KEY_TIME;
820 /* if the key is pressed but timeout hasn't expired,
823 set_next_key_check(charger, key, POWER_ON_KEY_TIME);
826 /* if the power key got released, force screen state cycle */
827 if (key->pending)
832 key->pending = false;
873 LOGV("[%lld] next screen: %lld next key: %lld next pwr: %lld\n", now,