commit | 4efd36dc596496b3076d808dcd53fd0e847e725f | [log] [tgz] |
---|---|---|
author | Zhomart Mukhamejanov <zhomart@google.com> | Mon Apr 19 14:22:59 2021 -0700 |
committer | Zhomart Mukhamejanov <zhomart@google.com> | Thu May 06 20:23:20 2021 +0000 |
tree | e8176f8444e51e2e50651855ed4332e3d2d4cea5 | |
parent | 00ea235ad10a9ee88d7ec06c6b25a37b64950f76 [diff] |
Add pushing CarData to the ICarDataListener - Move business logic to TelemetryServer class. - TelemetryServer has a single mutex for all the operations. Operations are cheap, don't block for long time. - cartelemetryd sends CarDataInternal one-by-one, it drops if ICarDataListener cannot receive data. No need to retry if the listener cannot receive data. Test: atest cartelemetryd_impl_test Test: run in emulator and use sampleclient to verify Bug: 174608802 Change-Id: Iccc7275a74b2ed2f221b3e8d28bd329d010b0765 Merged-In: Iccc7275a74b2ed2f221b3e8d28bd329d010b0765 (cherry picked from commit 383708f7cd28836ecee938b36ba780e8b69a1691)
Native (C++) code format is required to be compatible with .clang-format file. Run
git clang-format --style=file --extension='h,cpp,cc' HEAD~
Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.