commit | 298faca48766b3e64f0cd62a83780ae169775caf | [log] [tgz] |
---|---|---|
author | Changyeon Jo <changyeon@google.com> | Thu Apr 02 12:44:44 2020 -0700 |
committer | Changyeon Jo <changyeon@google.com> | Fri Apr 10 11:09:27 2020 -0700 |
tree | 55d8ddb72b0052eb0870fb4ad178755ca3094643 | |
parent | 134bca5913cac95f980a70f77603248fc178e0ee [diff] |
Implement dump() in HalCamera and VirtualCamera This function prints out current status of HalCamera VirtualCamera objects to a given file descriptor. The users can call them via lshal command. Examples: $ adb shell lshal debug android.hardware.automotive.evs@1.1::IEvsEnumerator/default --dump camera HalCamera: /dev/video3 Created: 7001510392634 (elapsed 2195874802 ns) Frames received: 26 (11.840384 fps) Frames not used: 0 Frames skipped to sync: 0 Active Stream Configuration: id: 7 width: 640 height: 360 format: 640 usage: 0x0 rotation: 0x0 Active clients: Client 0x766a229530 Logical camera device: F FramesAllowed = 2 Frames in hold: /dev/video3, 1 Current stream state = 1 Use a fence-based delivery: F Master client: 0x0 Synchronization support: F adb shell lshal debug Bug: 152222765 Test: Run examples above Change-Id: I1abc6f19c5b4d6acb36c301dfa2e1858c5ca9ac0
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.