/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | VibratorHelperTest.kt | 40 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/ |
D | SliderHapticFeedbackProviderTest.kt | 24 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/ |
D | QSLongPressEffectTest.kt | 24 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/ |
D | KeyguardQuickAffordanceViewBinder.kt | 76 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>()
|
D | KeyguardBottomAreaViewBinder.kt | 112 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>()
|
D | DeviceEntryIconViewBinder.kt | 65 vibratorHelper: VibratorHelper, in <lambda>() 78 vibratorHelper.performHapticFeedback( in <lambda>() 125 vibratorHelper.performHapticFeedback( in <lambda>()
|
D | KeyguardQuickAffordanceOnTouchListener.kt | 38 private val vibratorHelper: VibratorHelper?, constant in com.android.systemui.keyguard.ui.binder.KeyguardQuickAffordanceOnTouchListener 118 vibratorHelper?.vibrate( in dispatchClick()
|
D | KeyguardSettingsViewBinder.kt | 49 vibratorHelper: VibratorHelper, in <lambda>() 59 vibratorHelper.vibrate(KeyguardBottomAreaVibrations.Activated) in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/haptics/qs/ |
D | QSLongPressEffect.kt | 41 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/ |
D | QSLongPressEffectKosmos.kt | 19 import com.android.systemui.haptics.vibratorHelper 24 Kosmos.Fixture { QSLongPressEffect(vibratorHelper, keyguardStateController) } in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/haptics/slider/ |
D | SliderHapticFeedbackProvider.kt | 40 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()
|
D | SeekbarHapticPlugin.kt | 41 vibratorHelper: VibratorHelper, 53 vibratorHelper,
|
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/keyguard/ui/composable/section/ |
D | BottomAreaSection.kt | 54 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>()
|
D | SettingsMenuSection.kt | 46 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/ |
D | BrightnessSliderControllerKosmos.kt | 21 import com.android.systemui.haptics.vibratorHelper 33 vibratorHelper, in <lambda>()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/haptics/slider/ |
D | SeekbarHapticPluginTest.kt | 52 @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/ |
D | BackPanelControllerTest.kt | 65 @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/ |
D | ControlActionCoordinatorImplTest.kt | 54 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/ |
D | AlignShortcutsToUdfpsSection.kt | 49 private val vibratorHelper: VibratorHelper, constant in com.android.systemui.keyguard.ui.view.layout.sections.AlignShortcutsToUdfpsSection 66 vibratorHelper, in bindData() 76 vibratorHelper, in bindData()
|
D | DefaultShortcutsSection.kt | 53 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>()
|
D | DefaultSettingsPopupMenuSection.kt | 53 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/ |
D | MediaTttSenderCoordinatorTest.kt | 101 @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/ |
D | VibratorHelperKosmos.kt | 21 var Kosmos.vibratorHelper by Kosmos.Fixture { FakeVibratorHelper() } in <lambda>() variable
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/settings/brightness/ |
D | BrightnessSliderControllerTest.kt | 69 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/ |
D | KeyguardBottomAreaView.kt | 73 vibratorHelper: VibratorHelper? = null, in <lambda>() 82 vibratorHelper, in <lambda>()
|