logd: clearAll by UID speedup

(cherry pick from commit d280d8126f8df46c3a27743f96f49103c1ff7247)

- If doing a clear, skip accounting
- Ensure for busy checking, behind a region lock for instance, only
  break out if there was something to do. Basically move the filter
  actions first, and defer checking the region lock to the ends of
  the loops.

Bug: 23711431
Change-Id: Icc984f406880633516fb17dda84188a30d092e01
1 file changed
tree: 257177c6cb5578cac1346fc5c6790c1ffe02824c
  1. liblog/
  2. logcat/
  3. logd/
  4. logwrapper/