Home
last modified time | relevance | path

Searched refs:externalVibration (Results 1 – 4 of 4) sorted by relevance

/frameworks/av/services/audioflinger/afutils/
DVibrator.cpp47 os::HapticScale onExternalVibrationStart(const sp<os::ExternalVibration>& externalVibration) { in onExternalVibrationStart() argument
48 if (externalVibration->getAudioAttributes().flags & AUDIO_FLAG_MUTE_HAPTIC) { in onExternalVibrationStart()
56 binder::Status status = evs->onExternalVibrationStart(*externalVibration, &ret); in onExternalVibrationStart()
69 void onExternalVibrationStop(const sp<os::ExternalVibration>& externalVibration) { in onExternalVibrationStop() argument
73 evs->onExternalVibrationStop(*externalVibration); in onExternalVibrationStop()
DVibrator.h25 os::HapticScale onExternalVibrationStart(const sp<os::ExternalVibration>& externalVibration);
27 void onExternalVibrationStop(const sp<os::ExternalVibration>& externalVibration);
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DVibratorManagerServiceTest.java1142 ExternalVibration externalVibration = new ExternalVibration(UID, PACKAGE_NAME, in vibrate_withOngoingLowerImportanceExternalVibration_cancelsOngoingVibration() local
1146 mExternalVibratorService.onExternalVibrationStart(externalVibration); in vibrate_withOngoingLowerImportanceExternalVibration_cancelsOngoingVibration()
1843 ExternalVibration externalVibration = new ExternalVibration(UID, PACKAGE_NAME, in onExternalVibration_ignoreVibrationFromVirtualDevices() local
1847 externalVibration); in onExternalVibration_ignoreVibrationFromVirtualDevices()
1852 scale = mExternalVibratorService.onExternalVibrationStart(externalVibration); in onExternalVibration_ignoreVibrationFromVirtualDevices()
1863 ExternalVibration externalVibration = new ExternalVibration(UID, PACKAGE_NAME, in onExternalVibration_setsExternalControl() local
1867 externalVibration); in onExternalVibration_setsExternalControl()
1868 mExternalVibratorService.onExternalVibrationStop(externalVibration); in onExternalVibration_setsExternalControl()
1938 ExternalVibration externalVibration = new ExternalVibration(UID, PACKAGE_NAME, in onExternalVibration_withOngoingVibration_cancelsOngoingVibrationImmediately() local
1942 mExternalVibratorService.onExternalVibrationStart(externalVibration); in onExternalVibration_withOngoingVibration_cancelsOngoingVibrationImmediately()
[all …]
/frameworks/base/services/core/java/com/android/server/vibrator/
DVibratorManagerService.java601 mCurrentExternalVibration.externalVibration.getVibrationAttributes(), in cancelVibrate()
1616 public final ExternalVibration externalVibration; field in VibratorManagerService.ExternalVibrationHolder
1621 private ExternalVibrationHolder(ExternalVibration externalVibration) { in ExternalVibrationHolder() argument
1622 super(externalVibration.getToken(), new Vibration.CallerInfo( in ExternalVibrationHolder()
1623 externalVibration.getVibrationAttributes(), externalVibration.getUid(), in ExternalVibrationHolder()
1626 Context.DEVICE_ID_INVALID, externalVibration.getPackage(), null)); in ExternalVibrationHolder()
1627 this.externalVibration = externalVibration; in ExternalVibrationHolder()
1638 externalVibration.mute(); in mute()
1642 externalVibration.linkToDeath(this); in linkToDeath()
1646 externalVibration.unlinkToDeath(this); in unlinkToDeath()
[all …]