commit | 42cda4953cd287faa81bed4d8baa87acdde9c88c | [log] [tgz] |
---|---|---|
author | Vova Sharaienko <sharaienko@google.com> | Sat May 08 00:37:25 2021 +0000 |
committer | Vova Sharaienko <sharaienko@google.com> | Sat May 08 02:36:25 2021 +0000 |
tree | 6218bdd3e961f52e59e6e115104a86dc4dbe02c9 | |
parent | 26df817b7cac2e0bbae03e2ef7c5d0a7be0becd4 [diff] |
AMS: added caching DataInputStream object DataInputStream is cached for the lmkd socket communication Since the LmkdConnection ByteBuffer is allocated once, no need to dynamically allocate DataInputStream, just do a reset() before using Bug: 184698933 Test: lmkd_unit_test - test check_for_oom tests lmkd message send to AMS Test: statsd_testdrive 51 54 to inspect statsd logged atoms data Change-Id: I9b65d82618654d59236c79be8cd8da66bc90c91c