commit | bc4926a4f8b55680a0e87bbf3e2c0abfa32a320d | [log] [tgz] |
---|---|---|
author | Changyeon Jo <changyeon@google.com> | Fri May 14 07:24:18 2021 -0700 |
committer | Changyeon Jo <changyeon@google.com> | Mon May 17 20:53:57 2021 -0700 |
tree | 9452164683458ec731b01f37e4e9c65475f28417 | |
parent | 04f135f5706d9819b1b4c315bb2e3c8b4f5a366c [diff] |
Correct a logic to start and stop a video stream This CL corrects its logic to request CarEvsService to start or stop a video stream, and fixes an issue that CarEvsCameraPreviewApp requests to stop a video stream unexpectedly on displayChanged callback while a user is being switched. This CL is verified by below steps: 1. Requests to start the preview > adb shell cmd car_service inject-vhal-event 0x11410f10 0,1 2. Switches to another user, for example, 11 > adb shell am switch-user 11 3. Confirms that handleVideoStreamLocked() does not request to stop a video stream. Fix: 188176263 Test: Run test in a commit message Change-Id: I7c4b6a7141930e3ff52ac1aa565a4aeaec227ed0
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.