commit | d6292a4b1c984a9119230ceb06f0bc7f46c1b292 | [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 03:43:50 2021 +0000 |
tree | 984a24f3cc53acd97a9b946e8411e5527ecd563d | |
parent | 0ed8af172b5efa596a374ef7ca649bc5b3d25d70 [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.