/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/ |
D | VibrationThreadTest.java | 202 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 …]
|
D | VibratorControllerTest.java | 189 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()
|
D | VibratorManagerServiceTest.java | 264 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/ |
D | VibratorController.java | 158 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()
|
D | VibratorManagerService.java | 338 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/ |
D | InputDeviceVibrator.java | 79 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()
|
D | IInputManager.aidl | 144 boolean isVibrating(int deviceId); in isVibrating() method
|
D | InputManagerGlobal.java | 1298 boolean isVibrating(int deviceId) { in isVibrating() method in InputManagerGlobal 1300 return mIm.isVibrating(deviceId); in isVibrating()
|
/frameworks/base/core/java/android/os/ |
D | SystemVibratorManager.java | 200 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()
|
D | SystemVibrator.java | 106 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()
|
D | NullVibrator.java | 40 public boolean isVibrating() { in isVibrating() method in NullVibrator
|
D | IVibratorManagerService.aidl | 29 boolean isVibrating(int vibratorId); in isVibrating() method
|
D | Vibrator.java | 723 public boolean isVibrating() { in isVibrating() method in Vibrator 742 void onVibratorStateChanged(boolean isVibrating); in onVibratorStateChanged() argument
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | VibratorInputMapper.h | 38 virtual bool isVibrating() override;
|
D | InputMapper.cpp | 85 bool InputMapper::isVibrating() { in isVibrating() function in android::InputMapper
|
D | VibratorInputMapper.cpp | 77 bool VibratorInputMapper::isVibrating() { in isVibrating() function in android::VibratorInputMapper
|
D | InputMapper.h | 94 virtual bool isVibrating();
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | NativeInputManagerService.java | 153 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/ |
D | VibratorManagerServicePermissionTest.java | 80 mVibratorService.isVibrating(1); in testIsVibratingFails()
|
/frameworks/native/services/inputflinger/tests/fuzzers/ |
D | InputReaderFuzzer.cpp | 94 bool isVibrating(int32_t deviceId) { return reader->isVibrating(deviceId); } in isVibrating() function in android::FuzzInputReader
|
/frameworks/native/services/inputflinger/include/ |
D | InputReaderBase.h | 352 virtual bool isVibrating(int32_t deviceId) = 0;
|
/frameworks/native/services/inputflinger/reader/ |
D | InputDevice.cpp | 614 bool InputDevice::isVibrating() { in isVibrating() function in android::InputDevice 616 for_each_mapper([&vibrating](InputMapper& mapper) { vibrating |= mapper.isVibrating(); }); in isVibrating()
|
D | InputReader.cpp | 688 bool InputReader::isVibrating(int32_t deviceId) { in isVibrating() function in android::InputReader 693 return device->isVibrating(); in isVibrating()
|
/frameworks/native/services/inputflinger/reader/include/ |
D | InputReader.h | 83 bool isVibrating(int32_t deviceId) override;
|
D | InputDevice.h | 109 bool isVibrating();
|