Add UX restrictions configuration.
New class will contain the configuration for UX restrictions. It also:
- de/serializes as Json for UXR service internal storage.
- implements parcelable to be passed through binder.
- validates configuration before building.
Functional difference from current implementation:
- allow setting UXR for unknown driving state (previously always fully restricted).
- when not specified, speed range is null (previously INVALID_SPEED)
Test: atest AndroidCarApiTest:android.car.apitest.CarUxRestrictionsConfigurationTest
Bug: 120029082
Change-Id: I6d477f099b85737e162ec9d3ffc2365ffb673254
(cherry picked from commit 90dceff8cd577c9a892a10e2d6a2af0180b05b9b)
2 files changed