OSDN Git Service

Introduce HapticFeedbackConstants.TEXT_HANDLE_MOVE
authorYohei Yukawa <yukawa@google.com>
Fri, 9 Jun 2017 19:01:51 +0000 (12:01 -0700)
committerYohei Yukawa <yukawa@google.com>
Fri, 9 Jun 2017 19:01:51 +0000 (12:01 -0700)
commitda5b4a3e3b2dab6485833d99107bd6e4afeb7a02
treed7f61ecc1db85fadc46d5e76c65e7f8ccdc6c3d3
parent62031b89372bd1b9090573873c994e9f623ad106
Introduce HapticFeedbackConstants.TEXT_HANDLE_MOVE

This CL introduces a new haptic feedback type for the scenario where
the user is manually moving the text insertion/selection handle on the
touch devices such as touch screen.

Having a dedicated constant is necessary for device-wide consistency and
flexibility to fine tune the feedback in future.

Bug: 62454887
Bug: 62487772
Fixes: 62486763
Test: Confirmed that View#performHapticFeedback() with this constant
      triggers vibration.
Change-Id: I25841f20c3b8dbf0e9dabe75227c41d954193d33
core/java/android/view/HapticFeedbackConstants.java
services/core/java/com/android/server/policy/PhoneWindowManager.java