History log of /frameworks/support/car/src/androidTest/java/androidx/car/drawer/CarDrawerTestActivity.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3737d1dff953969c27652b49b010ea9902b3da4f 07-Feb-2018 Yao, Yuxing <yaoyx@google.com> Support UXR in drawer and list item adapter.

Bug: 72970870
Fixes: 72160941
Test: ./gradlew :car:connectedCheck

make target for generating the stubs.jar is in ag/3569597.

- All tests will only run on automotive devices now due to implicit
dependency on android.car.

- We are ignoring exception from Car/UXR. Exception comes from car
connection failure, which should be handled in UxrManager so default
behavior (fully restricted vs. no restrictions) can be configured by
OEMs. Also this way 3rd party apps will not need to worry
about retrying.

- We are opting for unrestricted mode when UXR is unavailable. This is
more of a product decision to be made. So current decision is taking the
easier route.

- APIs in car support lib cannot expose APIs from android.car, namely
implementing OnUXRChangedListener, since android.car stub is only
available at compile time.

Change-Id: I4903838d9e21b3ba68508345bbbafa6fbab29ac4
/frameworks/support/car/src/androidTest/java/androidx/car/drawer/CarDrawerTestActivity.java