summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.h
diff options
context:
space:
mode:
author Yeabkal Wubshit <yeabkal@google.com> 2023-08-17 03:15:11 -0700
committer Yeabkal Wubshit <yeabkal@google.com> 2023-08-18 17:31:21 +0000
commit915513c99a2c1f662c04eeefd5d2dea266b1943f (patch)
tree3738f7084a200f4a99ca1768ced839c00c5ba361 /libs/input/PointerController.h
parent32a09a1a47b0a2a08c510b79fe4aab126d415c2b (diff)
Extract VibratorInfo aggregation logic to a factory
The aggregation logic used to live in SystemVibrator. To allow the server side code to do VibratorInfo aggregation, we're extracting this logic into a factory class in android.os that can be used by both the client and server side codes. SystemVibrator now uses the new class to combine its VibratorInfos. The factory will later be used within VibratorManagerService. Unit tests for the aggregation logic used to live in VibratorTest. They have now been moved to the factory class's test, along with more tests checking the factory method (ID assignment, handling of empty vibrator info list, and handling of a size-1 list). Bug: 296358077 Test: atest VibratorInfoFactoryTest Test: atest VibratorTest Test: atest VibratorInfoTest Change-Id: I27a8245e3e9f322ccd046b7d748141ec05293b99
Diffstat (limited to 'libs/input/PointerController.h')
0 files changed, 0 insertions, 0 deletions