DO NOT MERGE Disable AccelerometerListener when display is off

Unregister the accelerometer listener when the screen is off
to reduce power consumption.

Slight refactor of component constructors to facilitate testing.

Add test.

Bug: 23498050
Change-Id: If1971a39e8a418253f6611116c855e3c6cf81b93
4 files changed
tree: 5700f0791a86d5fc146234a9b9e1bfbdb30e36b1
  1. InCallUI/