commit | 43f9280a24305e55930a25921ca33b36f7286898 | [log] [tgz] |
---|---|---|
author | Enrico Granata <egranata@google.com> | Mon Feb 06 14:30:07 2017 -0800 |
committer | Enrico Granata <egranata@google.com> | Wed Feb 08 11:29:25 2017 -0800 |
tree | 4b15549c9c3d909572bb67fee6a46db3977309fc | |
parent | 28c70332e34843b535d28f5d85400ae3556af7e6 [diff] |
Refactor SensorListeners and SensorClientWithRate into helper types. The logic of SensorListeners is generally helpful to everyone who needs to maintain a list of clients associated with a rate of data exchange. Moving these out of CarSensorService and making them generic in the type of the listener object helps other interested clients reuse this code. Test: build Change-Id: Ibe73c4b495e384a411f682ee30555424becf7eaa