aboutsummaryrefslogtreecommitdiff
path: root/RotaryPlayground
AgeCommit message (Collapse)Author
2021-09-14Merge "Edit gradle project for TestMediaApp" into sc-v2-devTreeHugger Robot
2021-09-10Edit gradle project for TestMediaAppArnaud Berry
Sign the app with the same certificate so the gradle and soong builds can override each other. Bug: 194511956 Test: manual Change-Id: Ica116ba3fd85da0aa721df267539d6737f0dae8b
2021-08-23Merge "Fix a crash on non car-ui Activity" into sc-v2-devTreeHugger Robot
2021-08-20Fix a crash on non car-ui ActivitySaeid Farivar Asanjan
We're avoiding injecting car-ui LayoutInflaterFactory when the launching Activity is not using Theme.CarUi. A workaround for these cases if they're intentionally trying to use car-ui components on a non car-ui Activity is adding the following attr to their theme. <item name="carUiActivity">true</item> Bug: 196567855 Test: Manually Change-Id: I0256a2f5f8f9dc9b01101f0013eeec3f6506ac2d
2021-08-19Add an example of popup windowYabin Huang
Bug: 194954154 Test: manual Change-Id: Ifbd468ec38a2cb519e5f5343dde5e64c10d2a8aa
2021-08-02Merge "Remove usage of deprecated DirectManipulationHelper methods" into ↵TreeHugger Robot
sc-v2-dev
2021-07-30Remove usage of deprecated DirectManipulationHelper methodsCole Faust
Bug: 190783163 Test: Compiling Change-Id: Ia32a3756335baa01ca73b5d867bd85001e3b2dc0
2021-07-24Add an example of overlapped SurfaceViewYabin Huang
Bug: 194148552 Test: manual Change-Id: I6e2509a8eda887cb5a1edebd6f48530f33448f2c
2021-06-25Fix a crash when creating PendingIntentandroid-12.0.0_r32android-12.0.0_r29android-12.0.0_r28android-12.0.0_r27android-12.0.0_r26android-12.0.0_r21android-12.0.0_r20android-12.0.0_r19android-12.0.0_r18android-12.0.0_r16android12-qpr1-releaseandroid12-qpr1-d-s3-releaseandroid12-qpr1-d-s2-releaseandroid12-qpr1-d-s1-releaseandroid12-qpr1-d-releaseandroid12-devYabin Huang
Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. So this CL uses FLAG_IMMUTABLE to create the PendingIntent because the flag is recommended in most cases. Fixes: 192103710 Test: manual Change-Id: Ie736f88ee939774d7e8ef95b91dbcf8e462950ee
2021-05-04Use new nudge shortcut attributesDanny Epstein
Migrate from the old nudge shortcut attributes that only let you specify a single shortcut to the new attributes that let you specify up to four shortcuts. Bug: 187223909 Test: manually nudge in custom focus area tab of Rotary Playground Change-Id: Ia2c5a244198335e0f9918bfb123299561ea31abd
2021-04-16Demo updating a view without losing focusYabin Huang
Add a FocusArea to the Cards tab to demonstrate how to update a view properly. Fixes: 185377477 Test: manual Change-Id: I66038ef4677ee904246bf1dd16503fca4b27c9c1
2021-02-21[LSC] Add LOCAL_LICENSE_KINDS to packages/apps/Car/tests am: 7777c04c43 am: ↵Bob Badour
c6651061dd am: c8e0bc0fe1 Original change: https://android-review.googlesource.com/c/platform/packages/apps/Car/tests/+/1587749 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Iad20b27aedeb5982ee7e5d783d0d1c33f922b314
2021-02-19[LSC] Add LOCAL_LICENSE_KINDS to packages/apps/Car/tests am: 7777c04c43 am: ↵Bob Badour
c6651061dd Original change: https://android-review.googlesource.com/c/platform/packages/apps/Car/tests/+/1587749 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Iedabc6bcb4d504500e869c47cfbad53184393a98
2021-02-12[LSC] Add LOCAL_LICENSE_KINDS to packages/apps/Car/testsBob Badour
Added SPDX-license-identifier-Apache-2.0 to: RotaryIME/Android.bp RotaryPlayground/Android.bp TestMediaApp/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: I39c7814e8f40a3e2f834f4dc36738211ac0a325e
2021-02-03Customize off-screen nudgesDanny Epstein
Test: nudge up, down, and left from Rotary Playground Bug: 174877801 Change-Id: I6fcf3f0a020e174c527aff116e0e466c037add52
2021-02-02DO NOT MERGE Customize off-screen nudgesDanny Epstein
Test: nudge up, down, and left from Rotary Playground Bug: 174877801 Change-Id: I6fcf3f0a020e174c527aff116e0e466c037add52
2021-01-26Test wrap-around in the Rotary Playground app am: b8d049676c am: 18aa35912eDanny Epstein
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Car/tests/+/13385919 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I25899a453bedb07c8b5d3843de5fddd5bbf9b51a
2021-01-22Test wrap-around in the Rotary Playground appDanny Epstein
Enable wrap-around in the top-left FocusArea in the Custom FocusAreas tab. Test: rotate in the top-left FocusArea in the Custom FocusAreas tab Test: rotate in other FocusAreas Bug: 177373453 Change-Id: I1eb2ddaeed048b0bf75da6e0761417dd3d4b91a0
2020-11-30Use custom app:rotaryScrollEnabled attribute am: d2a33c0982 am: c26cc2cf4aDanny Epstein
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Car/tests/+/13114489 Change-Id: Ib1a67832d59d5f2c011fa1ef4bb32307d9ff19a9
2020-11-23Use custom app:rotaryScrollEnabled attributeDanny Epstein
Make Scroll tab in RotaryPlayground use app:rotaryScrollEnabled custom attribute rather than setting the content description. Test: Use Scroll tab in RotaryPlayground Bug: 171339427 Change-Id: Id44fa7dcc9220c9b91b45f8ad24fba108dfe4039
2020-11-18Merge "Remove focus highlight on sample WebView" into rvc-qpr-dev am: ↵Danny Epstein
d89dd38cba am: 37de434cd8 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Car/tests/+/13073779 Change-Id: Id7176c515d705123e46b294de7ffa4d870df6775
2020-11-18Merge "Remove focus highlight on sample WebView" into rvc-qpr-devDanny Epstein
2020-11-13Remove focus highlight on sample WebViewDanny Epstein
Disable the default focus highlight on the WebView in the RotaryPlayground. Test: use rotary to focus a link in the sample WebView Bug: 173152508 Change-Id: I12adb7de0f144d4b82df10d2298b9b6cccef1e27
2020-11-13Update Rotary Playground for direct manipulation am: 46b0365709 am: 4d601b7eafHeemin Seog
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Car/tests/+/13033737 Change-Id: I4bd8309200e16963e103e9bedbc15c46c1ed8a91
2020-11-12Update Rotary Playground for direct manipulationHeemin Seog
Bug: 169884295 Test: manual Change-Id: I2ef1589cf9ae1cc82480b69ad120e6c947df3746
2020-10-21Tag demo scrollable containerDanny Epstein
Now that CarUiRecyclerViews no longer default to being considered scrollable containers, we need to explicitly tag the demo scrollable container in RotaryPlayground. Test: scroll in "scroll" tab of the demo app Bug: 160922045 Change-Id: I22c7d8a6e975d3a5718637d4d65e371254f2ac7c Merged-In: I22c7d8a6e975d3a5718637d4d65e371254f2ac7c
2020-10-20Tag demo scrollable containerDanny Epstein
Now that CarUiRecyclerViews no longer default to being considered scrollable containers, we need to explicitly tag the demo scrollable container in RotaryPlayground. Test: scroll in "scroll" tab of the demo app Bug: 160922045 Change-Id: I22c7d8a6e975d3a5718637d4d65e371254f2ac7c
2020-10-15Export the Rotary playground activity and ime serviceHeemin Seog
This is necessary for activities that have intent filters in Android S+ Bug: 170991691 Test: manually install Change-Id: I03b445b3a9771d05a956226f30e6c9d11858bf28
2020-09-18Add an example to demo custom FocusAreaYabin Huang
Bug: 155698037 Test: manual Change-Id: I4bf0648d66da4804e9d67c8f98accd92f65cbd41
2020-09-04Merge "Add a WebView to the reference app" into rvc-qpr-devDanny Epstein
2020-09-04Merge "Add an example of nudge shortcut" into rvc-qpr-devYabin Huang
2020-09-02Add a WebView to the reference appDanny Epstein
Add another fragment to the RotaryPlayground reference app for testing rotary navigation into, out of, and within WebViews. The WebView's content is chosen to include sections without any focusable elements. Includes a button to toggle the visibility of two buttons in the same focus area with the WebView. This enables testing: - nudging into a focus area with only a WebView without any visible focusable elements - rotating into a WebView without any visible focusable elements. Bug: 159936127 Test: manual Change-Id: I1273e32eec49ad0983f8875c4ad95938c7e50211
2020-09-02Add an example of nudge shortcutYabin Huang
Bug: 155698037 Test: manual Change-Id: I071b7b03f29a2b455f9064600df7c0968a8750a5
2020-08-26Make test apps buildable in Android StudioSam Lin
- Use AOSP links - Add git workflow & instructions in readme.md - Add build.gradle for RotaryPlayground - Fix build errors in TestMediaApp - Add git_clone_projects.sh & go_rotary.sh Bug: 161492279 Test: Build and Run both sucessfully on Android Studio and Emulator Change-Id: Ia73641f770044518a87f7487f52c734ec46f1a2b
2020-07-30Merge "Remove focus highlight" into rvc-qpr-devYabin Huang
2020-07-30Update build filesSam Lin
Disable dex_preopt, remove redundant libs & add a utility script Bug: 161492279 Test: packages/apps/Car/tests/tools/goRotary.sh b Change-Id: Ida8f2b6723e1f1e74c63e12c97e7a4aa65e66066
2020-07-24Remove focus highlightYabin Huang
Bug: 162026203 Test: manual Change-Id: I67447250e31e4539fc17181c497baa764eba344c
2020-07-18Improve tabs in reference app.Danny Epstein
For now, don't switch tabs on focus. Select the button for the active tab and visually indicate the selected button. Bug: 157241844 Test: manual Change-Id: I3f99b9a9a2a8c48d33e7852a75b4ecf3483280ba
2020-06-16Make scroll fragment more challenging.android11-devDanny Epstein
Add a gap between focusable elements to test the transition from an element being focused to the scrollable container being focused and vice versa. Add non-focusable content at the top and bottom of the list to make sure you can scroll to the top and bottom in this scenario. Add other focusable views in the same focus area with the scrollable view to test rotation into and out of scrollable containers. Remove content description indicating that the CarUiRecyclerView is scrollable. CarUiRecyclerViews are now opt-out rather than opt-in. Bug: 154540419 Test: manual Change-Id: Iea3723dedd255817e4c6fc5c6b0487bccbe2604c
2020-06-11Add direct manipulation sys window widgets.Pardis Beikzadeh
In particular, adding 2 SeekBars and 2 RadialTimePickerViews. 2 because in a system window, a given View can be marked as "supports direct manipulation mode" or not. So we add 1 of each thing that supports DM mode and one that doesn't. For the ones that support, entering DM mode allows rotary controls to be used to manipulate the value. For the ones that don't, the event that would have entered DM mode instead triggers an ACTION_CLICK which in our implementation changes the background color on every other invocation. Test: manual, build, install, run the app BUG: 153888753 Change-Id: If1d4de9def33c8bf062e6f0ce202b99797e2d014
2020-06-05Reduce code duplication further.Pardis Beikzadeh
Given that onPause() method needs to also disable DM mode, I moved the logic around some more so it can be reused there and by the DirectManipulationHandler class. Also fixed a bug I found that didn't consume nudge and rotation events when no handler delegate was provided for them. Not consuming the nudge events means that in DM mode user can nudge out of the view that should be directly manipulated. The rotation one doesn't cause an issue as far as I can tell but I am consuming them because that is what the javadoc claims to do (provide a "noop" impl if a delegate not provided = consume event and do nothing). BUG: 156978213 Test: make, install, run code Change-Id: I417b2dcbd5e0fd36e11db58681a8baff9bbfcf8e
2020-06-04Add notification fragment to reference app.Danny Epstein
The notification fragment has two pairs of buttons, with one pair at the top where it will be covered by the heads-up notification (HUN) and one further down where it won’t be covered by the HUN. Each pair includes a button to post a notification that will appear as a heads-up notification and a button to clear the previously posted notification. Test: manual Bug: 155681517 Change-Id: If2ac76cece527d7e45756dbf5659fa86cc98ac2a
2020-06-01Add a Scroll demo to RotaryPlaygroundAgatha Man
Bug: 154971276 Test: make and install Change-Id: Iaa884c4920b910115440ed8181b7fbd6c5ddafba
2020-05-29Merge "Refactor code to reduce duplication." into rvc-devTreeHugger Robot
2020-05-28Refactor code to reduce duplication.Pardis Beikzadeh
BUG: 153886988 Test: make, install and run Change-Id: I64294a3438e297fb8c6e90b078697b883dee8cb4
2020-05-28Merge "Add listeners for the direct manipulation example widgets." into rvc-devTreeHugger Robot
2020-05-28Add listeners for the direct manipulation example widgets.Pardis Beikzadeh
BUG: 153886988 Test: make, install, ran the app Change-Id: I2b18cee5ae84519316bfe98e551858257e268714
2020-05-21Add readme.md for RotaryPlaygroundAgatha Man
Bug: 157058629 Test: manual Change-Id: I2ceb428f5aeec2e140e02c18907d687e3f227c07
2020-05-19Merge "Exit direct manipulation mode when the fragment is not active" into ↵Yabin Huang
rvc-dev
2020-05-19Exit direct manipulation mode when the fragment is not activeYabin Huang
This is to prevent the app stuck in DM mode. This CL also refactors the fragmet to allow to initialize multiple direct manipulation views easily. Fixes: 156787734 Test: manual Change-Id: I63c78c897cb87c78c2883eed0b726049dce76884