commit | c0f877a774e849b68a9668069470be7a93850c00 | [log] [tgz] |
---|---|---|
author | Joanne <joannechung@google.com> | Fri Sep 23 17:59:27 2022 +0800 |
committer | Joanne <joannechung@google.com> | Mon Sep 26 11:55:35 2022 +0800 |
tree | 7d08976a122e501971531d09a00432e0e4ce53dd | |
parent | b294181643943a556d35e5a2622c3d40a411a8c7 [diff] |
Do not send event if the buffer is empty. Found many logs in bugreport that call sendEvents() even the buffer is empty. We should avoid unnecessary API call to reduce ipc spam. This change doesn't fix the potential ipc spam issue, only mitigates the issue. Bug: 231313913 Test: manual. Local add log and see the empty api call is skipped Change-Id: I9c8afc5ae2d06074900886cf5743b1ec61ccb973