Add logging for failed injections to Monkey.
Bug: 13679803 Change-Id: Iefb0073ad892b15b734b739fe036262ea60066d2
This commit is contained in:
@@ -1150,6 +1150,7 @@ public class Monkey {
|
||||
if (ev != null) {
|
||||
int injectCode = ev.injectEvent(mWm, mAm, mVerbose);
|
||||
if (injectCode == MonkeyEvent.INJECT_FAIL) {
|
||||
System.out.println(" // Injection Failed");
|
||||
if (ev instanceof MonkeyKeyEvent) {
|
||||
mDroppedKeyEvents++;
|
||||
} else if (ev instanceof MonkeyMotionEvent) {
|
||||
|
||||
Reference in New Issue
Block a user