diff options
author | Fabian Kozynski <kozynski@google.com> | 2019-02-01 10:14:26 -0500 |
---|---|---|
committer | Fabian Kozynski <kozynski@google.com> | 2019-02-01 10:43:41 -0500 |
commit | a37d5233ecc3845f8ed3f4d5cbfe9536c0f16f55 (patch) | |
tree | 04a72ed1295455c92d86c123ab812a076daad94c /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp | |
parent | 1ec11dbda282e02b3f1db03a454d0e9db91a6b0e (diff) |
Reduce number of calls to getApplicationInfo
Converted PrivacyApplication calls to PackageManager#getApplicationInfo
to lazy and removed sort by app name in PrivacyDialogBuilder (only the
actual dialog needs that sort). This makes it so the calls to
getApplicationInfo are only realized when needed.
Test: manual using trace-ipc. In one minute of usage, calls are reduced
from ~6000 to 7.
Test: atest
Test: manual, no change in observed behavior
Bug: 122878595
Change-Id: Iff4d2b27b8210687079cb12d1bbae83ba33f8392
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions