commit | 40fcb0c5c030656ad3ed67ef1d9f4f27eb7171b9 | [log] [tgz] |
---|---|---|
author | Keun young Park <keunyoung@google.com> | Tue Sep 14 18:47:28 2021 -0700 |
committer | Keun-young Park <keunyoung@google.com> | Fri Sep 24 02:57:36 2021 +0000 |
tree | 2670f8d5529e7e0fa3889c69ede42f278ea8c2ab | |
parent | c483c979d3c0c3d37b5c50127a815a40aa7353c1 [diff] |
Add driving safety region support with one time bypassing - Driving safety regions of app tells which regional regulation the app supports. - App still should have distractionOptimized metadata besides driving safety region metadata. - Apps not supporting the curret system's region will be considered as not safe. - driving safety region can be set from system properties: ro.android.car.drivingsafetyregion - It can be also set through adb shell command for testing purpose but it is not allowed for user build. $ adb shell cmd car_service set-drivingsafety-region {REGION_NAME} - Driving safety region is currently only for OEM apps only. Other than all region, there is no other standared regions defined. - App should specify its regions using android.car.drivingsafetyregions metadata in AndroidManifest. - Check added DrivingSafetyRegionTest for additional details on the expected behavior. Bug: 193247516 Test: run added api test under userdebug or eng build $ atest android.car.apitest.DrivingSafetyRegionTest Change-Id: I31728ac6cebf25ce93fac0e47a8dadee954e67e2 Merged-In: I31728ac6cebf25ce93fac0e47a8dadee954e67e2
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.