Home
last modified time | relevance | path

Searched refs:isVibrating (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DVibrationThreadTest.java202 assertFalse(mControllers.get(VIBRATOR_ID).isVibrating()); in vibrate_singleVibratorOneShot_runsVibrationAndSetsAmplitude()
219 assertFalse(mControllers.get(VIBRATOR_ID).isVibrating()); in vibrate_oneShotWithoutAmplitudeControl_runsVibrationWithDefaultAmplitude()
239 assertFalse(mControllers.get(VIBRATOR_ID).isVibrating()); in vibrate_singleVibratorWaveform_runsVibrationAndChangesAmplitudes()
303 assertTrue(mControllers.get(VIBRATOR_ID).isVibrating());
318 assertFalse(mControllers.get(VIBRATOR_ID).isVibrating());
347 assertFalse(mControllers.get(VIBRATOR_ID).isVibrating()); in vibrate_singleVibratorRepeatingShortAlwaysOnWaveform_turnsVibratorOnForLonger()
365 assertThat(mControllers.get(VIBRATOR_ID).isVibrating()).isFalse(); in vibrate_singleVibratorPatternWithZeroDurationSteps_skipsZeroDurationSteps()
386 assertThat(mControllers.get(VIBRATOR_ID).isVibrating()).isFalse(); in vibrate_singleVibratorPatternWithZeroDurationAndAmplitude_skipsZeroDurationSteps()
417 assertThat(mControllers.get(VIBRATOR_ID).isVibrating()).isFalse(); in vibrate_singleVibratorRepeatingPatternWithZeroDurationSteps_repeatsEffectCorrectly()
451 assertFalse(mControllers.get(VIBRATOR_ID).isVibrating()); in vibrate_singleVibratorRepeatingPwle_generatesLargestPwles()
[all …]
DVibratorControllerTest.java189 assertTrue(controller.isVibrating()); in on_withDuration_turnsVibratorOn()
202 assertTrue(controller.isVibrating()); in on_withPrebaked_performsEffect()
218 assertTrue(controller.isVibrating()); in on_withComposed_performsEffect()
233 assertTrue(controller.isVibrating()); in on_withComposedPwle_performsEffect()
244 assertTrue(controller.isVibrating()); in off_turnsOffVibrator()
248 assertFalse(controller.isVibrating()); in off_turnsOffVibrator()
259 assertTrue(controller.isVibrating()); in reset_turnsOffVibratorAndDisablesExternalControl()
262 assertFalse(controller.isVibrating()); in reset_turnsOffVibratorAndDisablesExternalControl()
DVibratorManagerServiceTest.java264 if (s.isVibrating(vibratorId)) { in tearDown()
384 assertFalse(service.isVibrating(1)); in createService_doNotCrashIfUsedBeforeSystemReady()
517 assertTrue(waitUntil(s -> s.isVibrating(1), service, TEST_TIMEOUT_MILLIS)); in unregisterVibratorStateListener_callbackNotTriggeredAfter()
522 assertTrue(waitUntil(s -> !s.isVibrating(1), service, TEST_TIMEOUT_MILLIS)); in unregisterVibratorStateListener_callbackNotTriggeredAfter()
1232 assertTrue(waitUntil(s -> s.isVibrating(1), service, TEST_TIMEOUT_MILLIS)); in vibrate_withNativeCallbackTriggered_finishesVibration()
1239 assertTrue(waitUntil(s -> !s.isVibrating(1), service, TEST_TIMEOUT_MILLIS)); in vibrate_withNativeCallbackTriggered_finishesVibration()
1290 assertTrue(waitUntil(s -> !s.isVibrating(1), service, TEST_TIMEOUT_MILLIS)); in vibrate_withriggerCallback_finishesVibration()
1671 assertTrue(waitUntil(s -> s.isVibrating(1), service, TEST_TIMEOUT_MILLIS));
1676 assertTrue(waitUntil(s -> !s.isVibrating(1), service, TEST_TIMEOUT_MILLIS));
1687 assertTrue(waitUntil(s -> s.isVibrating(1), service, TEST_TIMEOUT_MILLIS)); in vibrate_withSettingsChange_doNotCancelVibration()
[all …]
/frameworks/base/services/core/java/com/android/server/vibrator/
DVibratorController.java158 public boolean isVibrating() { in isVibrating() method in VibratorController
380 private void notifyListenerOnVibrating(boolean isVibrating) { in notifyListenerOnVibrating() argument
381 if (mIsVibrating != isVibrating) { in notifyListenerOnVibrating()
382 mIsVibrating = isVibrating; in notifyListenerOnVibrating()
386 listener -> notifyStateListener(listener, isVibrating)); in notifyListenerOnVibrating()
390 private void notifyStateListener(IVibratorStateListener listener, boolean isVibrating) { in notifyStateListener() argument
392 listener.onVibrating(isVibrating); in notifyStateListener()
DVibratorManagerService.java338 public boolean isVibrating(int vibratorId) { in isVibrating() method in VibratorManagerService
341 return controller != null && controller.isVibrating(); in isVibrating()
718 boolean isVibrating = false; in dumpProto()
722 isVibrating |= mVibrators.valueAt(i).isVibrating(); in dumpProto()
725 proto.write(VibratorManagerServiceDumpProto.IS_VIBRATING, isVibrating); in dumpProto()
/frameworks/base/core/java/android/hardware/input/
DInputDeviceVibrator.java79 public void onVibrating(boolean isVibrating) { in onVibrating() argument
80 mExecutor.execute(() -> mListener.onVibratorStateChanged(isVibrating)); in onVibrating()
95 public boolean isVibrating() { in isVibrating() method in InputDeviceVibrator
96 return mGlobal.isVibrating(mDeviceId); in isVibrating()
DIInputManager.aidl144 boolean isVibrating(int deviceId); in isVibrating() method
DInputManagerGlobal.java1298 boolean isVibrating(int deviceId) { in isVibrating() method in InputManagerGlobal
1300 return mIm.isVibrating(deviceId); in isVibrating()
/frameworks/base/core/java/android/os/
DSystemVibratorManager.java200 public void onVibrating(boolean isVibrating) { in onVibrating() argument
201 mExecutor.execute(() -> mListener.onVibratorStateChanged(isVibrating)); in onVibrating()
264 public boolean isVibrating() { in isVibrating() method in SystemVibratorManager.SingleVibrator
271 return mService.isVibrating(mVibratorInfo.getId()); in isVibrating()
DSystemVibrator.java106 public boolean isVibrating() { in isVibrating() method in SystemVibrator
112 if (mVibratorManager.getVibrator(vibratorId).isVibrating()) { in isVibrating()
270 public void onVibratorStateChanged(boolean isVibrating) { in onVibratorStateChanged() argument
271 mAllVibratorsListener.onVibrating(mVibratorIdx, isVibrating); in onVibratorStateChanged()
DNullVibrator.java40 public boolean isVibrating() { in isVibrating() method in NullVibrator
DIVibratorManagerService.aidl29 boolean isVibrating(int vibratorId); in isVibrating() method
DVibrator.java723 public boolean isVibrating() { in isVibrating() method in Vibrator
742 void onVibratorStateChanged(boolean isVibrating); in onVibratorStateChanged() argument
/frameworks/native/services/inputflinger/reader/mapper/
DVibratorInputMapper.h38 virtual bool isVibrating() override;
DInputMapper.cpp85 bool InputMapper::isVibrating() { in isVibrating() function in android::InputMapper
DVibratorInputMapper.cpp77 bool VibratorInputMapper::isVibrating() { in isVibrating() function in android::VibratorInputMapper
DInputMapper.h94 virtual bool isVibrating();
/frameworks/base/services/core/java/com/android/server/input/
DNativeInputManagerService.java153 boolean isVibrating(int deviceId); in isVibrating() method
422 public native boolean isVibrating(int deviceId); in isVibrating() method in NativeInputManagerService.NativeImpl
/frameworks/base/tests/permission/src/com/android/framework/permission/tests/
DVibratorManagerServicePermissionTest.java80 mVibratorService.isVibrating(1); in testIsVibratingFails()
/frameworks/native/services/inputflinger/tests/fuzzers/
DInputReaderFuzzer.cpp94 bool isVibrating(int32_t deviceId) { return reader->isVibrating(deviceId); } in isVibrating() function in android::FuzzInputReader
/frameworks/native/services/inputflinger/include/
DInputReaderBase.h352 virtual bool isVibrating(int32_t deviceId) = 0;
/frameworks/native/services/inputflinger/reader/
DInputDevice.cpp614 bool InputDevice::isVibrating() { in isVibrating() function in android::InputDevice
616 for_each_mapper([&vibrating](InputMapper& mapper) { vibrating |= mapper.isVibrating(); }); in isVibrating()
DInputReader.cpp688 bool InputReader::isVibrating(int32_t deviceId) { in isVibrating() function in android::InputReader
693 return device->isVibrating(); in isVibrating()
/frameworks/native/services/inputflinger/reader/include/
DInputReader.h83 bool isVibrating(int32_t deviceId) override;
DInputDevice.h109 bool isVibrating();

12