commit | 72754e5847a69303dfa0dd605b3f350d736df4a5 | [log] [tgz] |
---|---|---|
author | Kweku Adams <kwekua@google.com> | Thu Oct 21 14:09:07 2021 -0700 |
committer | Kweku Adams <kwekua@google.com> | Thu Oct 21 14:09:07 2021 -0700 |
tree | 09e77ab8eed00071a633f5d4316389f8b9afe68d | |
parent | 0c6c7812f1338d33c70b6b594a06920e59a4808a [diff] |
Address small inefficiencies. 1. Don't hold the lock for validation checks that don't need it. 2. Put early returns ahead of other work when possible. Bug: 203811598 Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/usage Test: atest frameworks/base/services/tests/mockingservicestests/src/com/android/server/usage Change-Id: Ic923db1534e27e0932e594b8259fe482772b8a6a