commit | f46aaa38b1fcba04088b83e51339fdaef3b9d56a | [log] [tgz] |
---|---|---|
author | Changyeon Jo <changyeon@google.com> | Wed Dec 21 20:36:22 2022 -0800 |
committer | Changyeon Jo <changyeon@google.com> | Fri Jan 06 12:14:10 2023 -0800 |
tree | 101e96a63b4d45b6585cb6130d6bc40a6ea3db27 | |
parent | cc844245a9cbfb1629e7e6d49172907f11ebba37 [diff] |
Fix issues in wrapper classes - AidlCamera's constructor takes an additional parameter that makes it use android::hardware::automotive::evs::V1_0 methods even if a passed IEvsCamera object implements android::hardware::automotive::evs::V1_1::IEvsCamera. This makes it work properly when cameras are open via AidlEnumerator object. - AidlEnumerator stores a weak pointer of an active display handle and use it to check the status of current display client. - HidlCameraStream::deliverFrame() method programs a timestamp and a device id, which is stored in AidlCamera object. These two fields make a frame delivery logic handle frame buffers properly through android::hardware::automotive::evs::V1_0 methods. - Fix a logic to count number of stream configurations in camera metadata. - Initialize a vector container with a proper size in HidlCamera::setExtendedInfo() method. - Check an wrapped object before making a call. - Modify HIDL EVS method implementations to return a proper status code if they do not return a EvsResult. - Introduce kDisplayIdUnavailable and use it to support HIDL IEvsEnumerator::openDisplay() method properly. Bug: 263438927 Bug: 263896317 Test: atest evsmanagerd_test VtsHalEvsTargetTest VtsHalEvsV1_1TargetTest Change-Id: I5dcaa9375d93665c3519080abb36ddd7174aebe3
Source code for Android Automotive OS.
car_product/ - AAOS product car-builtin-lib/ - A helper library for CarService to access hidden framework APIs car-lib/ - Car API car-lib-module/ - Car API module cpp/ - Native services experimental/ - Experimental Car API and services packages/ - Apps and services for cars service/ - Car service module service-builint - Platform builtin component that runs CarService module tests/ - Tests and sample apps tools/ - Helper scripts
Native (C++) code format is required to be compatible with .clang-format file. The formatter is already integrated to repo
tool. To run manually, use:
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.
Dumpsys and car shell can be useful when debugging CarService integration issues.
adb shell dumpsys car_service # to dump all car service information adb shell dumpsys car_service --services [service name] # to dump a specific service information adb shell dumpsys car_service --list # get list of available services
Dumpsys for CarService includes the following (more information is availble in dumpsys, below are just highlights):
adb shell cmd car_service
CarService supports commands via car shell:
(list is not complete, run adb shell cmd car_service -h for more details)
Start Garage mode
adb shell cmd car_service garage-mode on
Finish Garage mode
adb shell cmd car_service garage-mode on
Get Garage mode status
adb shell cmd car_service garage-mode query
Change Garage mode max duration (only eng and debug builds)
adb shell setprop android.car.garagemodeduration <seconds>