blacklist KEYCODE_SLEEP in random key generation

Bug: 13583213
Change-Id: Ic0fa933440acb27a0636b2db83be08695e9df0db
This commit is contained in:
Guang Zhu
2014-03-21 12:16:05 -07:00
parent afe9bac93a
commit 644b822218

View File

@@ -436,6 +436,7 @@ public class MonkeySourceRandom implements MonkeyEventSource {
if (lastKey != KeyEvent.KEYCODE_POWER if (lastKey != KeyEvent.KEYCODE_POWER
&& lastKey != KeyEvent.KEYCODE_ENDCALL && lastKey != KeyEvent.KEYCODE_ENDCALL
&& lastKey != KeyEvent.KEYCODE_SLEEP
&& PHYSICAL_KEY_EXISTS[lastKey]) { && PHYSICAL_KEY_EXISTS[lastKey]) {
break; break;
} }