Skip to content
Commit 122f12d0 authored by Lais Andrade's avatar Lais Andrade
Browse files

Use vibration id as callback reference in VibratorService

Instead of creating a new global reference for each Vibration jobject
for native callback we are now only keeping a local copy of a jlong
vibrationId to be passed back to a method from VibrationService.

The single global reference to VibrationService is created in
vibratorInit and used in all callbacks.

Fix: 163901838
Fix: 165045639
Fix: 164290392
Bug: 153418251
Test: atest FrameworksServicesTests:VibratorServiceTest
      atest CorePerfTests:ViewPerfTest
      atest CorePerfTests:VibratorPerfTest
Change-Id: I91791d0a8c524f09167bf6256faa751b957f3056
parent e92740ab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment