Home
last modified time | relevance | path

Searched refs:mVibrator (Results 1 – 6 of 6) sorted by relevance

/cts/tests/vibrator/src/android/os/cts/
DVibratorTest.java171 private final Vibrator mVibrator; field in VibratorTest
186 mVibrator = vibratorProvider.getVibrator(); in VibratorTest()
187 assertThat(mVibrator).isNotNull(); in VibratorTest()
192 mVibrator.addVibratorStateListener(mStateListener); in setUp()
204 mVibrator.cancel(); in cleanUp()
207 if (mVibrator.isVibrating()) { in cleanUp()
212 mVibrator.removeVibratorStateListener(mStateListener); in cleanUp()
214 mVibrator.removeVibratorStateListener(listener); in cleanUp()
223 assertThat(mVibrator.getId()).isEqualTo(-1); in testSystemVibratorGetIdAndMaybeHasVibrator()
226 mVibrator.hasVibrator(); in testSystemVibratorGetIdAndMaybeHasVibrator()
[all …]
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/
DVibratorTests.java36 private Vibrator mVibrator; field in VibratorTests
40 mVibrator = InstrumentationRegistry.getContext().getSystemService(Vibrator.class); in setUp()
45 mVibrator.vibrate(VibrationEffect.createOneShot(500, VibrationEffect.DEFAULT_AMPLITUDE)); in testOneShotVibration()
52 mVibrator.vibrate(VibrationEffect.createPredefined(VibrationEffect.EFFECT_CLICK)); in testPredefinedClickVibration()
59 mVibrator.vibrate( in testComposedTickThenClickVibration()
72 mVibrator.vibrate(VibrationEffect.createWaveform(new long[] { 50, 50 }, /* repeat= */ 0)); in testRepeatedWaveformVibration()
75 mVibrator.cancel(); in testRepeatedWaveformVibration()
/cts/tests/tests/view/src/android/view/cts/input/
DInputDeviceVibratorTest.java77 private Vibrator mVibrator; field in InputDeviceVibratorTest
116 mVibrator = getVibrator(mUinputDevice.getVendorId(), mUinputDevice.getProductId()); in setup()
117 assertNotNull(mVibrator); in setup()
118 mVibrator.addVibratorStateListener(mListener); in setup()
157 mVibrator.vibrate(effect); in testInputVibratorEvents()
161 assertTrue(mVibrator.isVibrating()); in testInputVibratorEvents()
191 assertFalse(mVibrator.isVibrating()); in testInputVibratorEvents()
195 mVibrator.removeVibratorStateListener(mListener); in testInputVibratorEvents()
197 mVibrator.vibrate(VibrationEffect.createOneShot(100 /* duration */, 255 /* amplitude */)); in testInputVibratorEvents()
198 assertTrue(mVibrator.isVibrating()); in testInputVibratorEvents()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/vibrations/
DHasVibratorVerifierActivity.java51 private Vibrator mVibrator; field in HasVibratorVerifierActivity
84 mVibrator = vibratorManager.getDefaultVibrator(); in onCreate()
85 mHasVibrator = mVibrator.hasVibrator(); in onCreate()
102 mVibrator.vibrate( in startVibrating()
/cts/hostsidetests/backup/OtherSoundsSettingsApp/src/android/cts/backup/othersoundssettingsapp/
DOtherSoundsSettingsTest.java158 Vibrator mVibrator = in testOtherSoundsSettings_touchVibration() local
164 "Device Under Test does not have a vibrator, skipping.", mVibrator.hasVibrator()); in testOtherSoundsSettings_touchVibration()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsService.java281 private Vibrator mVibrator = null; field in ItsService
485 mVibrator = (Vibrator)getSystemService(Context.VIBRATOR_SERVICE); in onCreate()
1450 obj.put("vibrator", mVibrator.hasVibrator());
2351 if (mVibrator == null) {
2366 mVibrator.vibrate(pattern, -1, audioAttributes);