Add a new utility to check the incompatible charger state

Add a new utility to check the incompatible charger state to provide
warning message for users on the SystemUI notification and Settings
banner tip https://docs.google.com/document/d/1lKC-WTxNq9JRJd_m2g1QOxyvHQgcL6MKjBlrBAEH6ms

Bug: 246960554
Test: make test RunSettingsLibRoboTests -j40
Change-Id: I8b87bce0a02199e7b4a1ea639383758a89f8057e
2 files changed