Promote DeviceStateManager to System API and update DeviceStateManager API's

Promote DeviceStateManager to System API
and add updated DeviceState property API's, as well
as DeviceStateManager callback API's to return DeviceState
objects instead of just integer identifiers.

Deprecated the previous constructor and
flag based API's on DeviceState

Revert of Revert submission 26246900-revert-26228978-device-state-callbacks-XJADFJXEAY

Reason for revert: Fixing test failures

Reverted changes: /q/submissionid:26246900-revert-26228978-device-state-callbacks-XJADFJXEAY

Bug: 293636629
Test: DeviceStateManagerTests

Change-Id: Idaa7331c551838c7d167828c7d191d72d39369ae
11 files changed