down votefavorite <http://stackoverflow.com/questions/34995268/android-monkey-script-executes-slow-on-lollipop#>
I used adb shell and command "monkey -v -f click.m 1" to run following monkey script. type = user count= 1 speed= 1 start data >>DispatchPointer(1, 1,0, 720, 390, 0, 0, 0,0,0,0, 0)UserWait(10)DispatchPointer(1, 1, 1, 720, 370, 0, 0, 0,0,0,0, 0) If run on Android version before Lollipop, everything is fine. The terminal return :Monkey: seed=1454578478126 count=1:IncludeCategory: android.intent.category.LAUNCHER:IncludeCategory: android.intent.category.MONKEYReplaying 1 events with speed 1.0:Sending Touch (ACTION_DOWN): 0:(90.0,45.0):Sending Touch (ACTION_UP): 0:(90.0,45.0)Events injected: 3:Sending rotation degree=0, persist=false:Dropped: keys=0 pointers=0 trackballs=0 flips=0 rotations=0## Network stats: elapsed time=90ms (0ms mobile, 0ms wifi, 90ms not connected)// Monkey finished But for Lollipop, the result is :Monkey: seed=1454026680534 count=1:IncludeCategory: android.intent.category.LAUNCHER:IncludeCategory: android.intent.category.MONKEYReplaying 1 events with speed 1.0:Sending Touch (ACTION_DOWN): 0:(720.0,390.0):Sending Touch (ACTION_UP): 0:(720.0,370.0)Events injected: 3:Sending rotation degree=0, persist=false:Dropped: keys=0 pointers=2 trackballs=0 flips=0 rotations=0## Network stats: elapsed time=6200ms (0ms mobile, 0ms wifi, 6200ms not connected)// Monkey finished The elapsed time is 90ms vs. 6200ms. It's abnormal for Lollipop. What's should I do? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/fca5d201-65cb-4f45-bcbf-ad271b8b0547%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.