diff options
author | Darryl L Johnson <darryljohnson@google.com> | 2021-02-04 08:54:40 -0800 |
---|---|---|
committer | Darryl L Johnson <darryljohnson@google.com> | 2021-03-01 09:31:22 -0800 |
commit | 2c35bdf90173c3c11c1a5c05f66be53945631bc9 (patch) | |
tree | 56f1ba455b10c70880d8479d4f52185e315150c5 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 25400d83db2227ea4dd4f97748af1d7d7c94b330 (diff) |
Add callbacks for change in supported device states and non-override
state.
This:
1. Renames DeviceStateListener to DeviceStateCallback as there is more
than one method in the callback.
2. Adds a callback to DeviceStateCallback to notify clients about a
change in supported device states.
3. Adds a callback to DeviceStateCallback to notify clients about a
change in non-override state (the state of the device without
considering override requests).
4. Restructures the IDeviceStateManager callback interface to return a
DeviceStateInfo object on successful registration of the callback
instead of triggering callbacks after registation. This simplifies the
callback code paths.
Bug: 159401801
Bug: 154038218
Fixes: 179291575
Test: atest DeviceStateManagerServiceTest
Test: atest DeviceStateManagerGlobalTest
Test: atest DeviceStateInfoTest
Change-Id: I42841de3e19ec0161a8c7b18c5baac0f2c2548bf
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions