aboutsummaryrefslogtreecommitdiff
path: root/RotaryPlayground/src/com/android/car/rotaryplayground/DirectManipulationHandler.java
diff options
context:
space:
mode:
authorPardis Beikzadeh <pardis@google.com>2020-06-02 14:05:15 -0700
committerPardis Beikzadeh <pardis@google.com>2020-06-11 19:54:25 -0700
commitb4d094e1c6c5b9bdbf0f2476ba47f865b91e3c13 (patch)
tree9bf852e0743cb4c93377bdead211609c76f992a7 /RotaryPlayground/src/com/android/car/rotaryplayground/DirectManipulationHandler.java
parent97c16099017c074fc8292c17959966a5e4e26f61 (diff)
downloadtests-b4d094e1c6c5b9bdbf0f2476ba47f865b91e3c13.tar.gz
Add direct manipulation sys window widgets.
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
Diffstat (limited to 'RotaryPlayground/src/com/android/car/rotaryplayground/DirectManipulationHandler.java')
-rw-r--r--RotaryPlayground/src/com/android/car/rotaryplayground/DirectManipulationHandler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/RotaryPlayground/src/com/android/car/rotaryplayground/DirectManipulationHandler.java b/RotaryPlayground/src/com/android/car/rotaryplayground/DirectManipulationHandler.java
index 8a87467..fc06754 100644
--- a/RotaryPlayground/src/com/android/car/rotaryplayground/DirectManipulationHandler.java
+++ b/RotaryPlayground/src/com/android/car/rotaryplayground/DirectManipulationHandler.java
@@ -103,7 +103,7 @@ public class DirectManipulationHandler implements View.OnKeyListener,
@Override
public boolean onKey(View view, int keyCode, KeyEvent keyEvent) {
boolean isActionUp = keyEvent.getAction() == KeyEvent.ACTION_UP;
- Log.d("RotaryPlayGround", "View: " + view + " is handling " + keyCode
+ Log.d(L.TAG, "View: " + view + " is handling " + keyCode
+ " and action " + keyEvent.getAction()
+ " direct manipulation mode is "
+ (mDirectManipulationMode.isActive() ? "active" : "inactive"));