Home
last modified time | relevance | path

Searched refs:vibrationId (Results 1 – 7 of 7) sorted by relevance

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/
H A DVibrationThreadTest.java160 long vibrationId = conductor.getVibration().id; in vibrate_noVibrator_ignoresVibration() local
174 long vibrationId = conductor.getVibration().id; in vibrate_missingVibrators_ignoresVibration() local
187 long vibrationId = conductor.getVibration().id; in vibrate_singleVibratorOneShot_runsVibrationAndSetsAmplitude() local
206 long vibrationId = conductor.getVibration().id; in vibrate_oneShotWithoutAmplitudeControl_runsVibrationWithDefaultAmplitude() local
228 long vibrationId = conductor.getVibration().id; in vibrate_singleVibratorWaveform_runsVibrationAndChangesAmplitudes() local
252 long vibrationId = conductor.getVibration().id; in vibrate_singleVibratorRepeatingWaveform_runsVibrationUntilThreadCancelled() local
295 long vibrationId = conductor.getVibration().id; in vibrate_singleVibratorRepeatingShortAlwaysOnWaveform_turnsVibratorOnForLonger() local
327 long vibrationId = conductor.getVibration().id; in vibrate_singleVibratorRepeatingPwle_generatesLargestPwles() local
358 long vibrationId = conductor.getVibration().id; in vibrate_singleVibratorRepeatingPrimitives_generatesLargestComposition() local
383 long vibrationId = conductor.getVibration().id; in vibrate_singleVibratorRepeatingLongAlwaysOnWaveform_turnsVibratorOnForACycle() local
[all …]
H A DFakeVibratorControllerProvider.java76 void recordBraking(long vibrationId, int braking) { in recordBraking() argument
102 scheduleListener(milliseconds, vibrationId); in on()
124 recordEffectSegment(vibrationId, in perform()
127 scheduleListener(EFFECT_DURATION, vibrationId); in perform()
144 recordEffectSegment(vibrationId, primitive); in compose()
147 scheduleListener(duration, vibrationId); in compose()
158 recordBraking(vibrationId, braking); in composePwle()
160 scheduleListener(duration, vibrationId); in composePwle()
332 public List<Integer> getBraking(long vibrationId) { in getBraking() argument
333 if (mBraking.containsKey(vibrationId)) { in getBraking()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/vibrator/
H A DVibratorController.java62 void onComplete(int vibratorId, long vibrationId); in onComplete() argument
245 public long on(long milliseconds, long vibrationId) { in on() argument
265 public long on(PrebakedSegment prebaked, long vibrationId) { in on() argument
268 prebaked.getEffectStrength(), vibrationId); in on()
286 public long on(PrimitiveSegment[] primitives, long vibrationId) { in on() argument
308 public long on(RampSegment[] primitives, long vibrationId) { in on() argument
403 long vibrationId); in performEffect() argument
406 long vibrationId); in performComposedEffect() argument
409 int braking, long vibrationId); in performPwleEffect() argument
441 public long on(long milliseconds, long vibrationId) { in on() argument
[all …]
H A DVibrationThread.java59 boolean triggerSyncedVibration(long vibrationId); in triggerSyncedVibration() argument
79 void onVibrationCompleted(long vibrationId, @NonNull Vibration.EndInfo vibrationEndInfo); in onVibrationCompleted() argument
85 void onVibrationThreadReleased(long vibrationId); in onVibrationThreadReleased() argument
H A DVibratorManagerService.java822 private void onSyncedVibrationComplete(long vibrationId) { in onSyncedVibrationComplete() argument
1299 public boolean triggerSyncedVibration(long vibrationId) { in triggerSyncedVibration() argument
1300 return mNativeWrapper.triggerSynced(vibrationId); in triggerSyncedVibration()
1354 public void onVibrationThreadReleased(long vibrationId) { in onVibrationThreadReleased() argument
1395 void onComplete(long vibrationId); in onComplete() argument
1410 public void onComplete(long vibrationId) { in onComplete() argument
1413 service.onSyncedVibrationComplete(vibrationId); in onComplete()
1418 public void onComplete(int vibratorId, long vibrationId) { in onComplete() argument
1421 service.onVibrationComplete(vibratorId, vibrationId); in onComplete()
1570 public boolean triggerSynced(long vibrationId) { in triggerSynced() argument
[all …]
/aosp14/frameworks/base/services/core/jni/
H A Dcom_android_server_vibrator_VibratorManagerService.cpp55 std::function<void()> createCallback(jlong vibrationId) { in createCallback() argument
56 return [vibrationId, this]() { in createCallback()
58 jniEnv->CallVoidMethod(mCallbackListener, sMethodIdOnComplete, vibrationId); in createCallback()
138 jlong vibrationId) { in nativeTriggerSynced() argument
145 auto callback = service->createCallback(vibrationId); in nativeTriggerSynced()
H A Dcom_android_server_vibrator_VibratorController.cpp133 std::function<void()> createCallback(jlong vibrationId) { in createCallback() argument
134 return [vibrationId, this]() { in createCallback()
137 vibrationId); in createCallback()
217 jlong vibrationId) { in vibratorOn() argument
223 auto callback = wrapper->createCallback(vibrationId); in vibratorOn()
267 jlong strength, jlong vibrationId) { in vibratorPerformEffect() argument
275 auto callback = wrapper->createCallback(vibrationId); in vibratorPerformEffect()
284 jobjectArray composition, jlong vibrationId) { in vibratorPerformComposedEffect() argument
296 auto callback = wrapper->createCallback(vibrationId); in vibratorPerformComposedEffect()
306 jobjectArray waveform, jint brakingId, jlong vibrationId) { in vibratorPerformPwleEffect() argument
[all …]