Lines Matching refs:state
74 // Linked list of key state objects.
77 // Current state of the trackball.
140 * Resets the state of the input event consistency verifier.
153 final KeyState state = mKeyStateList;
154 mKeyStateList = state.next;
155 state.recycle();
207 KeyState state = findKeyState(deviceId, source, keyCode, /*remove*/ false);
208 if (state != null) {
213 if (state.unhandled) {
214 state.unhandled = false;
226 KeyState state = findKeyState(deviceId, source, keyCode, /*remove*/ true);
227 if (state == null) {
230 state.recycle();
534 final KeyState state = findKeyState(deviceId, source, keyCode, /*remove*/ false);
535 if (state != null) {
536 state.unhandled = true;
670 KeyState state = mKeyStateList;
671 while (state != null) {
672 if (state.deviceId == deviceId && state.source == source
673 && state.keyCode == keyCode) {
676 last.next = state.next;
678 mKeyStateList = state.next;
680 state.next = null;
682 return state;
684 last = state;
685 state = state.next;
691 KeyState state = KeyState.obtain(deviceId, source, keyCode);
692 state.next = mKeyStateList;
693 mKeyStateList = state;
710 KeyState state;
712 state = mRecycledList;
713 if (state != null) {
714 mRecycledList = state.next;
716 state = new KeyState();
719 state.deviceId = deviceId;
720 state.source = source;
721 state.keyCode = keyCode;
722 state.unhandled = false;
723 return state;