am 644b8222: blacklist KEYCODE_SLEEP in random key generation

* commit '644b8222183d57dafd8de98e04756cbd28b7ae80':
  blacklist KEYCODE_SLEEP in random key generation
This commit is contained in:
Guang Zhu
2014-03-21 14:24:57 -07:00
committed by Android Git Automerger

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;
} }