Home
last modified time | relevance | path

Searched refs:vibratorHelper (Results 1 – 25 of 43) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DVibratorHelperTest.kt40 lateinit var vibratorHelper: VibratorHelper variable in com.android.systemui.statusbar.VibratorHelperTest
44 vibratorHelper = VibratorHelper(vibrator, executor) in setup()
50 vibratorHelper.vibrate(VibrationEffect.EFFECT_CLICK) in testVibrate()
57 vibratorHelper.vibrate(UserHandle.USER_CURRENT, "package", in testVibrate2()
67 vibratorHelper.vibrate(mock(VibrationEffect::class.java), mock(AudioAttributes::class.java)) in testVibrate3()
73 vibratorHelper.vibrate(mock(VibrationEffect::class.java)) in testVibrate4()
79 vibratorHelper.vibrate( in testVibrate5()
92 vibratorHelper.performHapticFeedback(view, constant) in testPerformHapticFeedback()
100 vibratorHelper.performHapticFeedback(view, constant, flag) in testPerformHapticFeedback_withFlags()
106 assertThat(vibratorHelper.hasVibrator()).isTrue() in testHasVibrator()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/haptics/slider/
DSliderHapticFeedbackProviderTest.kt24 import com.android.systemui.haptics.vibratorHelper
59 kosmos.vibratorHelper.primitiveDurations[VibrationEffect.Composition.PRIMITIVE_LOW_TICK] = in setup()
63 kosmos.vibratorHelper, in setup()
85 assertTrue(vibratorHelper.hasVibratedWithEffects(vibration)) in playHapticAtLowerBookend_playsClick()
102 assertTrue(vibratorHelper.hasVibratedWithEffects(vibration)) in playHapticAtLowerBookend_twoTimes_playsClickOnlyOnce()
120 assertTrue(vibratorHelper.hasVibratedWithEffects(vibration)) in playHapticAtUpperBookend_playsClick()
139 assertEquals(/* expected=*/ 1, vibratorHelper.timesVibratedWithEffect(vibration)) in playHapticAtUpperBookend_twoTimes_playsClickOnlyOnce()
165 assertEquals(/* expected=*/ 1, vibratorHelper.timesVibratedWithEffect(ticks.compose())) in playHapticAtProgress_onQuickSuccession_playsLowTicksOnce()
189 assertEquals(/* expected= */ 1, vibratorHelper.timesVibratedWithEffect(firstTicks)) in playHapticAtProgress_beforeNextDragThreshold_playsLowTicksOnce()
190 assertEquals(/* expected= */ 1, vibratorHelper.totalVibrations) in playHapticAtProgress_beforeNextDragThreshold_playsLowTicksOnce()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/haptics/qs/
DQSLongPressEffectTest.kt24 import com.android.systemui.haptics.vibratorHelper
50 private val vibratorHelper = kosmos.vibratorHelper constant in com.android.systemui.haptics.qs.QSLongPressEffectTest
62 vibratorHelper.primitiveDurations[VibrationEffect.Composition.PRIMITIVE_LOW_TICK] = in setup()
64 vibratorHelper.primitiveDurations[VibrationEffect.Composition.PRIMITIVE_SPIN] = spinDuration in setup()
70 vibratorHelper, in setup()
164 assertThat(vibratorHelper.hasVibratedWithEffects(reverseHaptics!!)).isTrue() in <lambda>()
304 assertThat(vibratorHelper.hasVibratedWithEffects(longPressHint!!)).isTrue() in assertEffectStarted()
316 assertThat(vibratorHelper.totalVibrations).isEqualTo(0) in assertEffectDidNotStart()
328 assertThat(vibratorHelper.hasVibratedWithEffects(snapEffect!!)).isTrue() in assertEffectCompleted()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/
DKeyguardQuickAffordanceViewBinder.kt76 vibratorHelper: VibratorHelper?, in <lambda>()
91 vibratorHelper = vibratorHelper, in <lambda>()
133 vibratorHelper: VibratorHelper?, in <lambda>()
206 vibratorHelper, in <lambda>()
230 vibratorHelper?.vibrate(KeyguardBottomAreaVibrations.Shake) in <lambda>()
233 OnLongClickListener(falsingManager, viewModel, vibratorHelper, onTouchListener) in <lambda>()
291 private val vibratorHelper: VibratorHelper?, in <lambda>() constant in com.android.systemui.keyguard.ui.binder.KeyguardQuickAffordanceViewBinder.OnLongClickListener
307 vibratorHelper?.vibrate( in <lambda>()
DKeyguardBottomAreaViewBinder.kt112 vibratorHelper: VibratorHelper?, in <lambda>()
182 vibratorHelper = vibratorHelper, in <lambda>()
195 vibratorHelper = vibratorHelper, in <lambda>()
279 vibratorHelper?.vibrate(KeyguardBottomAreaVibrations.Activated) in <lambda>()
338 vibratorHelper: VibratorHelper?, in <lambda>()
422 vibratorHelper, in <lambda>()
446 vibratorHelper?.vibrate(KeyguardBottomAreaVibrations.Shake) in <lambda>()
449 OnLongClickListener(falsingManager, viewModel, vibratorHelper, onTouchListener) in <lambda>()
498 private val vibratorHelper: VibratorHelper?, in <lambda>() constant in com.android.systemui.keyguard.ui.binder.KeyguardBottomAreaViewBinder.OnLongClickListener
514 vibratorHelper?.vibrate( in <lambda>()
DDeviceEntryIconViewBinder.kt65 vibratorHelper: VibratorHelper, in <lambda>()
78 vibratorHelper.performHapticFeedback( in <lambda>()
125 vibratorHelper.performHapticFeedback( in <lambda>()
DKeyguardQuickAffordanceOnTouchListener.kt38 private val vibratorHelper: VibratorHelper?, constant in com.android.systemui.keyguard.ui.binder.KeyguardQuickAffordanceOnTouchListener
118 vibratorHelper?.vibrate( in dispatchClick()
DKeyguardSettingsViewBinder.kt49 vibratorHelper: VibratorHelper, in <lambda>()
59 vibratorHelper.vibrate(KeyguardBottomAreaVibrations.Activated) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/haptics/qs/
DQSLongPressEffect.kt41 private val vibratorHelper: VibratorHelper?, constant in com.android.systemui.haptics.qs.QSLongPressEffect
61 vibratorHelper?.getPrimitiveDurations(
85 vibratorHelper?.cancel() in playReverseHaptics()
90 if (vibratorHelper != null && effect != null) { in vibrate()
91 vibratorHelper.vibrate(effect) in vibrate()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/haptics/qs/
DQSLongPressEffectKosmos.kt19 import com.android.systemui.haptics.vibratorHelper
24 Kosmos.Fixture { QSLongPressEffect(vibratorHelper, keyguardStateController) } in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/haptics/slider/
DSliderHapticFeedbackProvider.kt40 private val vibratorHelper: VibratorHelper, constant in com.android.systemui.haptics.slider.SliderHapticFeedbackProvider
54 vibratorHelper.getPrimitiveDurations(VibrationEffect.Composition.PRIMITIVE_LOW_TICK)[0]
73 vibratorHelper.vibrate(vibration, VIBRATION_ATTRIBUTES_PIPELINING) in vibrateOnEdgeCollision()
119 vibratorHelper.vibrate(composition.compose(), VIBRATION_ATTRIBUTES_PIPELINING) in vibrateDragTexture()
DSeekbarHapticPlugin.kt41 vibratorHelper: VibratorHelper,
53 vibratorHelper,
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/keyguard/ui/composable/section/
DBottomAreaSection.kt54 private val vibratorHelper: VibratorHelper, in <lambda>() constant in com.android.systemui.keyguard.ui.composable.section.BottomAreaSection
81 vibratorHelper = vibratorHelper, in <lambda>()
125 vibratorHelper: VibratorHelper, in <lambda>()
163 vibratorHelper, in <lambda>()
DSettingsMenuSection.kt46 private val vibratorHelper: VibratorHelper, in <lambda>() constant in com.android.systemui.keyguard.ui.composable.section.SettingsMenuSection
74 vibratorHelper = vibratorHelper, in <lambda>()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/settings/
DBrightnessSliderControllerKosmos.kt21 import com.android.systemui.haptics.vibratorHelper
33 vibratorHelper, in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/haptics/slider/
DSeekbarHapticPluginTest.kt52 @Mock private lateinit var vibratorHelper: VibratorHelper variable in com.android.systemui.haptics.slider.SeekbarHapticPluginTest
58 whenever(vibratorHelper.getPrimitiveDurations(anyInt())).thenReturn(intArrayOf(0)) in setup()
146 vibratorHelper, in createPlugin()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/gestural/
DBackPanelControllerTest.kt65 @Mock private lateinit var vibratorHelper: VibratorHelper variable in com.android.systemui.navigationbar.gestural.BackPanelControllerTest
85 vibratorHelper, in setup()
135 verify(vibratorHelper) in handlesBackCommitted()
180 verify(vibratorHelper) in handlesBackCancelled()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/
DControlActionCoordinatorImplTest.kt54 private lateinit var vibratorHelper: VibratorHelper variable in com.android.systemui.controls.ui.ControlActionCoordinatorImplTest
101 vibratorHelper, in any()
201 verify(vibratorHelper).performHapticFeedback( in drag_isEdge_performsSegmentTickHaptics()
211 verify(vibratorHelper).performHapticFeedback( in drag_isNotEdge_performsFrequentTickHaptics()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/view/layout/sections/
DAlignShortcutsToUdfpsSection.kt49 private val vibratorHelper: VibratorHelper, constant in com.android.systemui.keyguard.ui.view.layout.sections.AlignShortcutsToUdfpsSection
66 vibratorHelper, in bindData()
76 vibratorHelper, in bindData()
DDefaultShortcutsSection.kt53 private val vibratorHelper: VibratorHelper, in <lambda>() constant in com.android.systemui.keyguard.ui.view.layout.sections.DefaultShortcutsSection
88 vibratorHelper, in <lambda>()
98 vibratorHelper, in <lambda>()
DDefaultSettingsPopupMenuSection.kt53 private val vibratorHelper: VibratorHelper, constant in com.android.systemui.keyguard.ui.view.layout.sections.DefaultSettingsPopupMenuSection
81 vibratorHelper, in bindData()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/taptotransfer/sender/
DMediaTttSenderCoordinatorTest.kt101 @Mock private lateinit var vibratorHelper: VibratorHelper variable in com.android.systemui.media.taptotransfer.sender.MediaTttSenderCoordinatorTest
159 vibratorHelper, in setUp()
218 verify(vibratorHelper) in commandQueueCallback_almostCloseToStartCast_triggersCorrectChip()
261 verify(vibratorHelper) in commandQueueCallback_almostCloseToEndCast_triggersCorrectChip()
289 verify(vibratorHelper) in commandQueueCallback_transferToReceiverTriggered_triggersCorrectChip()
332 verify(vibratorHelper) in commandQueueCallback_transferToThisDeviceTriggered_triggersCorrectChip()
345 reset(vibratorHelper) in commandQueueCallback_transferToReceiverSucceeded_triggersCorrectChip()
362 verify(vibratorHelper, never()) in commandQueueCallback_transferToReceiverSucceeded_triggersCorrectChip()
375 reset(vibratorHelper) in commandQueueCallback_transferToReceiverSucceeded_sameViewInstanceId()
385 verify(vibratorHelper, never()).vibrate(any<VibrationEffect>()) in commandQueueCallback_transferToReceiverSucceeded_sameViewInstanceId()
[all …]
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/haptics/
DVibratorHelperKosmos.kt21 var Kosmos.vibratorHelper by Kosmos.Fixture { FakeVibratorHelper() } in <lambda>() variable
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/settings/brightness/
DBrightnessSliderControllerTest.kt69 private lateinit var vibratorHelper: VibratorHelper variable in com.android.systemui.settings.brightness.BrightnessSliderControllerTest
89 whenever(vibratorHelper.getPrimitiveDurations(anyInt())).thenReturn(intArrayOf(0)) in setUp()
96 SeekbarHapticPlugin(vibratorHelper, systemClock), in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardBottomAreaView.kt73 vibratorHelper: VibratorHelper? = null, in <lambda>()
82 vibratorHelper, in <lambda>()

12