ConcreteClientModeManager: Refactor CMM to accept listener on role changes
Refactor of existing code to help change the role of an existing
secondary CMM.
Changes:
i) setRole now optionally accepts a listener.
ii) Added an internal RoleChangeInfo structure to cleanup setting the
various role change related state in the class.
iii) Ensured that all of the internal states - role, requestorWs,
modeListener are all set centrally in one method - setRoleInternal().
Bug: 158666312
Test: atest com.android.server.wifi
Change-Id: I0e73ec6167ae66b3eb2b578338e92bec196c418e
2 files changed