Home
last modified time | relevance | path

Searched refs:HapticFeedbackConstants (Results 1 – 25 of 61) sorted by relevance

123

/frameworks/base/services/core/java/com/android/server/vibrator/
DHapticFeedbackVibrationProvider.java28 import android.view.HapticFeedbackConstants;
82 effectHasCustomization(HapticFeedbackConstants.SAFE_MODE_ENABLED) in HapticFeedbackVibrationProvider()
83 ? mHapticCustomizations.get(HapticFeedbackConstants.SAFE_MODE_ENABLED) in HapticFeedbackVibrationProvider()
104 case HapticFeedbackConstants.CONTEXT_CLICK: in getVibrationForHapticFeedback()
105 case HapticFeedbackConstants.GESTURE_END: in getVibrationForHapticFeedback()
106 case HapticFeedbackConstants.GESTURE_THRESHOLD_ACTIVATE: in getVibrationForHapticFeedback()
107 case HapticFeedbackConstants.SCROLL_TICK: in getVibrationForHapticFeedback()
108 case HapticFeedbackConstants.SEGMENT_TICK: in getVibrationForHapticFeedback()
111 case HapticFeedbackConstants.TEXT_HANDLE_MOVE: in getVibrationForHapticFeedback()
116 case HapticFeedbackConstants.CLOCK_TICK: in getVibrationForHapticFeedback()
[all …]
DVibratorFrameworkStatsLogger.java22 import android.view.HapticFeedbackConstants;
192 case HapticFeedbackConstants.KEYBOARD_TAP: in logPerformHapticsFeedbackIfKeyboard()
193 case HapticFeedbackConstants.KEYBOARD_RELEASE: in logPerformHapticsFeedbackIfKeyboard()
/frameworks/base/core/tests/coretests/src/android/view/
DHapticScrollFeedbackProviderTest.java19 import static android.view.HapticFeedbackConstants.SCROLL_ITEM_FOCUS;
20 import static android.view.HapticFeedbackConstants.SCROLL_LIMIT;
21 import static android.view.HapticFeedbackConstants.SCROLL_TICK;
137 assertOnlyFeedback(mView, HapticFeedbackConstants.SCROLL_ITEM_FOCUS); in testSnapToItem()
149 assertFeedbackCount(mView, HapticFeedbackConstants.SCROLL_LIMIT, 1); in testScrollLimit_start()
161 assertFeedbackCount(mView, HapticFeedbackConstants.SCROLL_LIMIT, 1); in testScrollLimit_stop()
191 assertOnlyFeedback(mView, HapticFeedbackConstants.SCROLL_TICK, 1); in testScrollProgress_progressEqualsOrExceedsPositiveThreshold()
197 assertOnlyFeedback(mView, HapticFeedbackConstants.SCROLL_TICK, 2); in testScrollProgress_progressEqualsOrExceedsPositiveThreshold()
214 assertOnlyFeedback(mView, HapticFeedbackConstants.SCROLL_TICK, 1); in testScrollProgress_progressEqualsOrExceedsNegativeThreshold()
223 assertOnlyFeedback(mView, HapticFeedbackConstants.SCROLL_TICK, 2); in testScrollProgress_progressEqualsOrExceedsNegativeThreshold()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardAbsKeyInputView.java21 import android.view.HapticFeedbackConstants;
82 performHapticFeedback(HapticFeedbackConstants.VIRTUAL_KEY, in doHapticKeyClick()
83 HapticFeedbackConstants.FLAG_IGNORE_VIEW_SETTING); in doHapticKeyClick()
DNumPadKey.java28 import android.view.HapticFeedbackConstants;
224 performHapticFeedback(HapticFeedbackConstants.VIRTUAL_KEY, in doHapticKeyClick()
225 HapticFeedbackConstants.FLAG_IGNORE_VIEW_SETTING); in doHapticKeyClick()
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DHapticFeedbackVibrationProviderTest.java30 import static android.view.HapticFeedbackConstants.BIOMETRIC_CONFIRM;
31 import static android.view.HapticFeedbackConstants.BIOMETRIC_REJECT;
32 import static android.view.HapticFeedbackConstants.CLOCK_TICK;
33 import static android.view.HapticFeedbackConstants.CONTEXT_CLICK;
34 import static android.view.HapticFeedbackConstants.KEYBOARD_RELEASE;
35 import static android.view.HapticFeedbackConstants.KEYBOARD_TAP;
36 import static android.view.HapticFeedbackConstants.SAFE_MODE_ENABLED;
37 import static android.view.HapticFeedbackConstants.SCROLL_ITEM_FOCUS;
38 import static android.view.HapticFeedbackConstants.SCROLL_LIMIT;
39 import static android.view.HapticFeedbackConstants.SCROLL_TICK;
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DControlActionCoordinatorImpl.kt33 import android.view.HapticFeedbackConstants in <lambda>()
94 cvh.layout.performHapticFeedback(HapticFeedbackConstants.CONTEXT_CLICK) in <lambda>()
110 cvh.layout.performHapticFeedback(HapticFeedbackConstants.CONTEXT_CLICK) in <lambda>()
126 HapticFeedbackConstants.SEGMENT_TICK in <lambda>()
128 HapticFeedbackConstants.SEGMENT_FREQUENT_TICK in <lambda>()
153 cvh.layout.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS) in <lambda>()
/frameworks/base/core/java/android/view/
DHapticFeedbackConstants.java23 public class HapticFeedbackConstants { class
25 private HapticFeedbackConstants() {} in HapticFeedbackConstants() method in HapticFeedbackConstants
DHapticScrollFeedbackProvider.java104 mView.performHapticFeedback(HapticFeedbackConstants.SCROLL_TICK); in onScrollProgress()
120 mView.performHapticFeedback(HapticFeedbackConstants.SCROLL_LIMIT); in onScrollLimit()
132 mView.performHapticFeedback(HapticFeedbackConstants.SCROLL_ITEM_FOCUS); in onSnapToItem()
/frameworks/base/apct-tests/perftests/core/src/android/view/
DViewPerfTest.java95 int flags = HapticFeedbackConstants.FLAG_IGNORE_VIEW_SETTING in testPerformHapticFeedback()
96 | HapticFeedbackConstants.FLAG_IGNORE_GLOBAL_SETTING; in testPerformHapticFeedback()
101 view.performHapticFeedback(HapticFeedbackConstants.KEYBOARD_PRESS, in testPerformHapticFeedback()
/frameworks/base/packages/CredentialManager/horologist/src/com/google/android/horologist/compose/rotaryinput/
DHaptics.kt22 import android.view.HapticFeedbackConstants in <lambda>()
287 view.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS) in performHapticFeedback()
291 view.performHapticFeedback(HapticFeedbackConstants.KEYBOARD_TAP) in performHapticFeedback()
295 view.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS) in performHapticFeedback()
370 view.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS) in performHapticFeedback()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DVibratorHelperTest.kt8 import android.view.HapticFeedbackConstants
91 val constant = HapticFeedbackConstants.CONFIRM in testPerformHapticFeedback()
98 val constant = HapticFeedbackConstants.CONFIRM in testPerformHapticFeedback_withFlags()
99 val flag = HapticFeedbackConstants.FLAG_IGNORE_VIEW_SETTING in testPerformHapticFeedback_withFlags()
/frameworks/base/core/java/com/android/internal/policy/
DPhoneFallbackEventHandler.java33 import android.view.HapticFeedbackConstants;
121 mView.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS); in onKeyDown()
147 mView.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS); in onKeyDown()
177 mView.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS); in onKeyDown()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/
DDeviceEntryIconViewBinder.kt23 import android.view.HapticFeedbackConstants in <lambda>()
80 HapticFeedbackConstants.CONFIRM, in <lambda>()
127 HapticFeedbackConstants.CONFIRM, in <lambda>()
DKeyguardRootViewBinder.kt26 import android.view.HapticFeedbackConstants in <lambda>()
332 HapticFeedbackConstants.CONFIRM, in <lambda>()
333 HapticFeedbackConstants.FLAG_IGNORE_GLOBAL_SETTING, in <lambda>()
342 HapticFeedbackConstants.REJECT, in <lambda>()
343 HapticFeedbackConstants.FLAG_IGNORE_GLOBAL_SETTING, in <lambda>()
/frameworks/base/core/java/android/inputmethodservice/navigationbar/
DKeyButtonView.java34 import android.view.HapticFeedbackConstants;
171 performHapticFeedback(HapticFeedbackConstants.VIRTUAL_KEY); in onTouchEvent()
201 performHapticFeedback(HapticFeedbackConstants.VIRTUAL_KEY); in onTouchEvent()
207 performHapticFeedback(HapticFeedbackConstants.VIRTUAL_KEY_RELEASE); in onTouchEvent()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/
DControlActionCoordinatorImplTest.kt21 import android.view.HapticFeedbackConstants
203 eq(HapticFeedbackConstants.SEGMENT_TICK) in drag_isEdge_performsSegmentTickHaptics()
213 eq(HapticFeedbackConstants.SEGMENT_FREQUENT_TICK) in drag_isNotEdge_performsFrequentTickHaptics()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/gestural/
DBackPanelControllerTest.kt21 import android.view.HapticFeedbackConstants
136 .performHapticFeedback(any(), eq(HapticFeedbackConstants.GESTURE_THRESHOLD_ACTIVATE)) in handlesBackCommitted()
181 .performHapticFeedback(any(), eq(HapticFeedbackConstants.GESTURE_THRESHOLD_DEACTIVATE)) in handlesBackCancelled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DSettingsButton.java23 import android.view.HapticFeedbackConstants;
166 performHapticFeedback(HapticFeedbackConstants.LONG_PRESS); in startContinuousSpin()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/
DNotificationPanelViewControllerWithCoroutinesTest.kt24 import android.view.HapticFeedbackConstants in <lambda>()
168 .performHapticFeedback(eq(mView), eq(HapticFeedbackConstants.REJECT)) in <lambda>()
194 .performHapticFeedback(eq(mView), eq(HapticFeedbackConstants.REJECT)) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ui/viewmodel/
DPromptViewModelTest.kt43 import android.view.HapticFeedbackConstants in <lambda>()
316 if (expectConfirmation) HapticFeedbackConstants.NO_HAPTICS in <lambda>()
317 else HapticFeedbackConstants.CONFIRM in <lambda>()
322 else HapticFeedbackConstants.FLAG_IGNORE_GLOBAL_SETTING in <lambda>()
331 .isEqualTo(HapticFeedbackConstants.CONFIRM) in <lambda>()
333 .isEqualTo(HapticFeedbackConstants.FLAG_IGNORE_GLOBAL_SETTING) in <lambda>()
347 .isEqualTo(HapticFeedbackConstants.CONFIRM) in <lambda>()
349 .isEqualTo(HapticFeedbackConstants.FLAG_IGNORE_GLOBAL_SETTING) in <lambda>()
357 assertThat(currentHaptics?.hapticFeedbackConstant).isEqualTo(HapticFeedbackConstants.REJECT) in <lambda>()
359 .isEqualTo(HapticFeedbackConstants.FLAG_IGNORE_GLOBAL_SETTING) in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/buttons/
DKeyButtonView.java42 import android.view.HapticFeedbackConstants;
291 performHapticFeedback(HapticFeedbackConstants.VIRTUAL_KEY); in onTouchEvent()
325 performHapticFeedback(HapticFeedbackConstants.VIRTUAL_KEY); in onTouchEvent()
331 performHapticFeedback(HapticFeedbackConstants.VIRTUAL_KEY_RELEASE); in onTouchEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/viewmodel/
DPromptViewModel.kt36 import android.view.HapticFeedbackConstants in <lambda>()
255 MutableStateFlow(HapticsToPlay(HapticFeedbackConstants.NO_HAPTICS, /* flag= */ null)) in <lambda>()
960 HapticFeedbackConstants.CONFIRM, in <lambda>()
961 HapticFeedbackConstants.FLAG_IGNORE_GLOBAL_SETTING, in <lambda>()
968 HapticFeedbackConstants.REJECT, in <lambda>()
969 HapticFeedbackConstants.FLAG_IGNORE_GLOBAL_SETTING, in <lambda>()
976 HapticsToPlay(HapticFeedbackConstants.NO_HAPTICS, previous.flag) in <lambda>()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/bouncer/ui/composable/
DPinBouncer.kt19 import android.view.HapticFeedbackConstants in <lambda>()
243 HapticFeedbackConstants.VIRTUAL_KEY, in PinPadButton()
244 HapticFeedbackConstants.FLAG_IGNORE_VIEW_SETTING, in PinPadButton()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DExpandableNotificationRowDragController.java40 import android.view.HapticFeedbackConstants;
139 view.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS); in startDragAndDrop()

123