commit | 4aa6211c9dc5fd2a93e04e6fe27e6cbe0334b1e6 | [log] [tgz] |
---|---|---|
author | Changyeon Jo <changyeon@google.com> | Sat Mar 06 14:56:32 2021 -0800 |
committer | Changyeon Jo <changyeon@google.com> | Sun Apr 18 12:28:41 2021 -0700 |
tree | 05bb3e16b3a2f4e5dd504d3952c1d9ede5837361 | |
parent | e789ee6b7de2c678ac0911ae51025c1352cb1adb [diff] |
Implement CarEvsService state machine This change updates CarEvsService implementation as designed at go/aaos-car-evs-service that defines CarEvsService as the state machine with below 4 states. - UNAVAILABLE: CarEvsService is not connected to the native EVS service. Any service requests will be declined. - INACTIVE: CarEvsService has a valid, live connection to the native EVS service and ready for service requests. - REQUESTED: CarEvsService has received a request to start one of available camera services from the System UI. - ACTIVE: CarEvsService is actively streaming a video from an active camera service and forwarding frames and events to a service requestor. Bug: 162894134 Fix: 179498566 Test: atest CarServiceTest:CarEvsManagerTest -c Change-Id: I315f87dc9f5d24b7fdc6891835f1d499cfdff851 Merged-In: I315f87dc9f5d24b7fdc6891835f1d499cfdff851 (cherry picked from commit 953c0fc975a4a4e50f6f81821c6d700cabf1fe18)
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.