commit | f1006575bd7ac0e173d8fe10cef89ff91a699baa | [log] [tgz] |
---|---|---|
author | Chaowei Zhang <chaowei.zhang@gm.com> | Tue Nov 26 15:31:13 2024 -0500 |
committer | BK Choi <bkchoi@google.com> | Tue Dec 17 22:39:57 2024 -0800 |
tree | 89f01b34a4393dd26268b2bd4e7cb18ccba8bebc | |
parent | 1c951aa6219ee56ee4c0ee109c43bd9113069c4e [diff] |
Always sendConfigChangeEvent when it's user switch In CarOccupantZoneService the first time call handleUserChangeLocked the currentuser can be SystemUser 0 or DriverUser 11, later when user switch from 0->11 happens, if previous set user is 11, there is no user change, then the later logic sendConfigChangeEvent will not be called. In this case, we always sendConfigChangeEvent when it's a user switch regardless the return result from the handleUserChangeLocked. Bug: 380898344 Flag: EXEMPT Bugfix Test: manual test, run 'atest CarOccupantZoneServiceTest', and cts CarOccupantZoneManagerTest Merged-In: Ib5d3ed07886724922683b35bf5fddb47ce078cff Change-Id: Ib5d3ed07886724922683b35bf5fddb47ce078cff
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>