commit | 686ec516bd61dfbaa7155780a71e28da40659377 | [log] [tgz] |
---|---|---|
author | Yu Shan <shanyu@google.com> | Mon Nov 01 16:04:56 2021 -0700 |
committer | Yu Shan <shanyu@google.com> | Wed Jan 19 18:31:00 2022 -0800 |
tree | 777c2dab15c5835dae47e23a66647175b0b24418 | |
parent | 5ad921ae275272ce5f76544f0ee35452884eb119 [diff] |
Add subscription manager. Add a class to manage VHAL subscription. It supports subscribing and unsubscribing to properties. For continuous property, it uses recurrent timer to recurrently calls the registered function. For on-change property, it would return all subscribed clients for a given property. Test: atest DefaultVehicleHalTest Bug: 200737967 Change-Id: I3e1a0401fd465dc31fe08ea77d5a6651fa7bbfaf