InputDispatcher: Dropped event because input dispatch is disabled

前端 未结 2 571
我寻月下人不归
我寻月下人不归 2021-02-11 01:55

I am developing ui automation platform for android.

For some reason sometimes (very rare) click events can be dropped

When it happen I see in log



        
2条回答
  •  时光取名叫无心
    2021-02-11 02:46

    There are certain conditions in which Input Dispatcher will drop the input events:

    1. DROP_REASON_BLOCKED : If current application is not responding and user is tapping on device, input event will be dropped
    2. DROP_REASON_STALE: Dropped event because it is stale
    3. DROP_REASON_APP_SWITCH: Dropped event because of pending overdue app switch
    4. DROP_REASON_DISABLED: Dropped event because input dispatch is disabled

    etc.

    In your case, its executing case 4. Means something going fishy or your first input is not executed yet. So Input Dispatcher is disabled.

    Check [method dropInboundEventLocked of middleware class InputDispatcher.cpp

提交回复
热议问题