summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorLais Andrade <lsandrade@google.com>2020-11-25 18:32:37 +0000
committerLais Andrade <lsandrade@google.com>2021-01-19 11:48:34 +0000
commitd6fae9a1e8ce2195ad26204daeb71222b87283e6 (patch)
tree1c0f49e3d902ba7b2364058cf590a8a42e7b23d2 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent13658939c59824ecd724886d95189e7a888e5269 (diff)
Create single thread to play any Vibration
This thread takes in a CombinedVibrationEffect and plays all vibrations. The Prebaked effect now also holds a fallback VibrationEffect, which is resolved and scaled together with the original effect and is passed on to the VibrateThread. All class attributes are not final, making this effect immutable as all the others. The Vibration now takes in a CombinedVibrationEffect, in preparation to be used by the VibratorManagerService in multiple vibrators. The new thread is replacing all vibration from VibratorService, which means they are all triggering the HAL asynchronously. Bug: 167946816 Bug: 131311651 Test: VibrationThreadTest, VibratorServiceTest, VibrationEffectTest, VibrationScalerTest Change-Id: Ic27b35e63ca35ad47083f94da9ca7bd75b683d43
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions