History log of /packages/services/Car/service/src/com/android/car/CarUxRestrictionsManagerService.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f6381fbe6dd18ada4f14ee998989af63bf0985a5 06-Jun-2018 Ram Periathiruvadi <ramperry@google.com> Fix driving state for manual transmission.

Listen to parking brake status in addition to the gear selection.
Revisit the initialization portion of the driving state and ux
restrictions when car service is created to handle corner case
situations when sensor data is not available from the VHAL.

Bug: 69859926
Test: runtest -x CarDrivingRestrictions.java
Change-Id: I4d11e0e7275c4cca840235619d83462742ba3f40
/packages/services/Car/service/src/com/android/car/CarUxRestrictionsManagerService.java
4d257023389c23b8836f10cda1bfa1ea136f56c9 27-Apr-2018 Steve Paik <spaik@google.com> Create CarPropertyService and CarPropertyManager

CarPropertyService replaces Cabin, Hvac, Info, Sensor,
and VendorExtension services.

Bug: 78782959
Bug: 36649684
Bug: 68056035
Test: runtest -x packages/services/Car/tests/android_car_api_test
runtest -x packages/services/Car/tests/carservice_unit_test
Change-Id: I69756654473fe66ef95e9e2cd4f3c1045e3ac938
Merged-In: Ic0a94805f83cc0222fb2bcf9674b6031bc050986

(cherry picked from commit fc0257133967edcb217e07e9ab942690eeaae3de)
(cherry picked from commit 0265d8348716b2971f76e697f410f4cf7128371c)
/packages/services/Car/service/src/com/android/car/CarUxRestrictionsManagerService.java
22c0d68f04b74a0089969068e23f187cf112dc00 11-May-2018 Ram Periathiruvadi <ramperry@google.com> Add driving state transition log to dumpsys.

Add a way to log transitions from one state to another for different
pieces of the car service to use.

Bug: 79547680
Test: adb shell dumpsys activity service com.android.car

Change-Id: I57825492114460ad3db96372bee97a3d0fec622e
/packages/services/Car/service/src/com/android/car/CarUxRestrictionsManagerService.java
7b78065a27b4157d3f31b4add46d571a8e7e177d 08-May-2018 Ram Periathiruvadi <ramperry@google.com> Reduce sensor subscription rate for driving state.

Reduce the rate of subscription to SENSOR_RATE_UI which is defined to
5Hz.
Also check for timestamps and ignore out of order delievered sensor
events.

Bug: 74525938
Test: Check receiving speed and gear data by injecting from adb shell dumpsys
activity service com.android.car inject-vhal-event

Change-Id: Idae629b23ac1adff21fe44ac5038cec451b7bd49
/packages/services/Car/service/src/com/android/car/CarUxRestrictionsManagerService.java
ac7e979b7e23c917b2cec15262f256831e43a4a6 05-Apr-2018 Ram Periathiruvadi <ramperry@google.com> Restriction parameters reported via CarUxRestrictions.

Moved the APIs to report CarUxRestrictions paramaters from
CarUxRestrictionaManager to CarUxRestrictions to make it easy for
clients to consume.

Bug: 77480435
Test: UXR changes can be observed and the parameter values are
retrieved.

Change-Id: Icf686fe49b18a5b4c01f5bf0a5bd817b4e37c574
/packages/services/Car/service/src/com/android/car/CarUxRestrictionsManagerService.java
12f424358cb26544c38af70a90de54a6c4253a3f 29-Mar-2018 Ram Periathiruvadi <ramperry@google.com> Support Distraction Optimized state in XML mapping.

CarUxRestrictions.requiresDistractionOptimization can be true even if
there are no active UX restrictions. Support that restricted state from
XML mapping and default restrictions.

Bug: 76223541
Test: Restriction values from dumpsys of com.android.car matches with
the ones configured in the XML.

Change-Id: I18f3b4180652b621fdbafc165b07003540c1a064
/packages/services/Car/service/src/com/android/car/CarUxRestrictionsManagerService.java
c81855d452c175a54a2a1e5412d269e0d120fc15 24-Mar-2018 Ram Periathiruvadi <ramperry@google.com> Rename Unrestricted UXR to Baseline

Bug: 76223206
Test: compile and boot.
Change-Id: If3242de4466177f93865b7a5c200e665e947ae2c
/packages/services/Car/service/src/com/android/car/CarUxRestrictionsManagerService.java
b966052d2c360bb5b7157ca8ef1015a569848e74 21-Mar-2018 Ram Periathiruvadi <ramperry@google.com> Merge "Update CarUxR APIs with finalized restrictions." into pi-dev
a68f8e10567ba83a71c6e93fcabc66ef877797fb 19-Mar-2018 Ram Periathiruvadi <ramperry@google.com> Update CarUxR APIs with finalized restrictions.

1. Update the UXRs with the finalized list.
2. Add APIs to get the parameters associated with some UX restrictions.

Bug: 72155508
Test: adb shell dumpsys activity service com.android.car shows the new
restrictions and restriction parameters parsed from the XML.

Change-Id: I01c39382b6ba3afcb446b57ac63c6eca72d3a72a
/packages/services/Car/service/src/com/android/car/CarUxRestrictionsManagerService.java
ec551ae4aeca6dd160c4d3bb98ce22a44401846c 15-Mar-2018 Ram Periathiruvadi <ramperry@google.com> Fix CarSensorManager test.

CarUxRestrictionsService needs to handle a situation where speed is not
available.

Bug:74813826
Test: runtest -x src/com/android/car/CarSensorManagerTest.java passes
Change-Id: I649fd8d8da59268c000fb78e9da98ba7a6088d93
/packages/services/Car/service/src/com/android/car/CarUxRestrictionsManagerService.java
ed9e8f87cd2bdc1b2791be8cd25e016c02cb93eb 07-Mar-2018 Ram Periathiruvadi <ramperry@google.com> Make driving state to UXR mapping configurable.

1. Added a new XML resource that provides a way to map driving state to
UX restrictions. This can be modified by the OEMs.
2. Made UxRestrictionService listen to speed when the driving state is
moving so we can support different restrictions across different speed
ranges.

Bug: 69859857
Test: Tested that restriction values from XML are honored by changing
driving state and speed.

Change-Id: I2b46b3d61ed9a4ca3560323b04d11dfae1e91567
/packages/services/Car/service/src/com/android/car/CarUxRestrictionsManagerService.java
2da6d0efdd5676ba5c48b00a7f3bb04a113eeafa 27-Jan-2018 Ram Periathiruvadi <ramperry@google.com> Make CarPackageManager listen to UX restrictions.

CarPackageManager used to subscribe to CarSensorManager's DRIVING_STATUS
to enforce activity blocking. Changing that to listen to the new
CarUxRestrictionsManagerService.
Add the Home App to the white list.
No change to the current restriction behavior yet, only changing the
source to the new Restriction Manager.

Bug: b/72570830
Test: Compile and boot. CarPackageManager can receive Ux Restriction
events.

Change-Id: I3b96a004cafa2813b7d1855e68cea53c9ffb5f40
/packages/services/Car/service/src/com/android/car/CarUxRestrictionsManagerService.java
4526a43140177072b5543f3cf0f06bd72fd8e38e 24-Jan-2018 Ram Periathiruvadi <ramperry@google.com> Revise CarUxRestrictions API.

UX Restriction related classes are renamed to follow convention.
UX Restriction related APIs - Manager and Event are renamed for
readability.
More granular UX Restrictions are added to the CarUxRestrictions.

Bug: b/72321163, b/72287236
Test: Compiles and boots. KitchenSync can listen to the events.
Change-Id: I0c3afdc9dd992f4247fd4a50816611a76d31ced8
/packages/services/Car/service/src/com/android/car/CarUxRestrictionsManagerService.java