History log of /frameworks/support/car/src/main/java/androidx/car/moderator/SpeedBumpController.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a69391c0e387422698abe643a1bf05142acf6359 17-May-2018 Anthony Chen <ajchen@google.com> Hook up the CarConfigurationManager.

Remove the usage of the CarUxRestrictionsHelper and instead, connect to
the Car directly within SpeedBumpController. This allows two managers to
be retreived without the need for an interface.

Fixes: 79999780
Test: boot on sample app and test
Change-Id: I4601f3068562497d966fbfd0c1d5e997d8fd4064
/frameworks/support/car/src/main/java/androidx/car/moderator/SpeedBumpController.java
848c0b37ff4505299655447f6e50e09fcf2d5948 26-Apr-2018 Anthony Chen <ajchen@google.com> Migrate floats to doubles.

Currently, no need for the micro-optimization of floats. The usage of
floats make things difficult for future libraries as well, such as if
you want to store values into a JSON file or any other file.

Instead, just use doubles.

Change-Id: I8f2d1cddbb2c2572543259fadc3101447ff43118
Fixes: 78592859
Test: ./gradlew car:connectedCheck
/frameworks/support/car/src/main/java/androidx/car/moderator/SpeedBumpController.java
073deef03c0761697ac418e78b49062baaa2cfe5 12-Mar-2018 Yao, Yuxing <yaoyx@google.com> Consolidate UXR listener code into helper class.

Bug: 74554948
Test: ./gradlew :car:connectedCheck
Change-Id: I9fb27a8035d80cf4f18458901a93fdd9c1cb846e
/frameworks/support/car/src/main/java/androidx/car/moderator/SpeedBumpController.java
ac5fe7c617c66850fff75a9fce9979c6e5674b0f 06-Mar-2018 Aurimas Liutikas <aurimas@google.com> Refactor support library

Test: None
Change-Id: I92e450c739fc9d77e8f8840bed4165ab88247fd6
/frameworks/support/car/src/main/java/androidx/car/moderator/SpeedBumpController.java
f27b1ffc67228d73326ec3426fef4c9db75cd6fd 06-Mar-2018 Aurimas Liutikas <aurimas@google.com> Revert "Refactor support library."

This reverts commit b31c3281d870e9abb673db239234d580dcc4feff.

Change-Id: Icfa5b9af633739ad2c857dff22a2181bac6661ef
/frameworks/support/car/src/main/java/androidx/car/moderator/SpeedBumpController.java
b31c3281d870e9abb673db239234d580dcc4feff 20-Feb-2018 Aurimas Liutikas <aurimas@google.com> Refactor support library.

Test: None
Change-Id: I11a047324832801555673dac45ec1d6590a6338b
/frameworks/support/car/src/main/java/androidx/car/moderator/SpeedBumpController.java
461cc7c0bdf1c9f9f609cacda1ac9228b4281d51 27-Feb-2018 Yao, Yuxing <yaoyx@google.com> Use explicit function instead of lambda.

Also make methods that uses drivingstate API non-public.

Fixes: 73902945 73904539
Test: ./gradlew :support-car-demos:installDebug
Change-Id: Ibeca9119f30633d02e31c921acaa08203a5f3701
/frameworks/support/car/src/main/java/androidx/car/moderator/SpeedBumpController.java
3000b58d71c32fe44dd360cb2d65d23f9494da0d 09-Feb-2018 Anthony Chen <ajchen@google.com> Integrate UX restrictions with SpeedBumpView.

There is no UXR that maps specifically to disabling speed bump. As a
result, toggle whehter or not speed bump is needed based on if driver
optimization is on or not.

Test: test on sample app.
Change-Id: I91f236e0d91c6f7cda7ac7b07c0dcd35f0b0000d
Fixes: 73164420
Fixes: 72885753
/frameworks/support/car/src/main/java/androidx/car/moderator/SpeedBumpController.java
c60dac8f267feba2797e79437a4e0d6ce9e16b4a 08-Feb-2018 Anthony Chen <ajchen@google.com> Refactor business logic out of SpeedBumpView.

The SpeedBumpView itself only deals with logic directly relating to view
rendering. Introduced a SpeedBumpController that handles interaction
logic.

Test: test on sample app.
Change-Id: I9b361379d15ff1e6bb40a87084423c69217d6ad8
Fixes: 73122532
/frameworks/support/car/src/main/java/androidx/car/moderator/SpeedBumpController.java