blacklist KEYCODE_SLEEP in random key generation
Bug: 13583213 Change-Id: Ic0fa933440acb27a0636b2db83be08695e9df0db
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user