commit | abb507c3979cdcf20addba8b57b8fb4194a5994d | [log] [tgz] |
---|---|---|
author | Ayush Jain <ayushjain@google.com> | Fri Mar 31 03:46:14 2023 +0000 |
committer | Ayush Jain <ayushjain@google.com> | Mon Apr 03 20:40:58 2023 +0000 |
tree | e9dc30dd183fc007b9275dce1a4f694c063e7268 | |
parent | 451f3c72d2838b8247edb90d66bfa1b822171bc5 [diff] |
Make getAdapterState() consistent with AdapterState notification. When the country code is not valid, or, it's valid but setting it results in an error, the AdapterState notification is sent with STATE_DISABLED. This CL updates the UwbServiceCore.getAdapterState() API to return the same state as in the AdapterState notification (STATE_DISABLED in the above cases). Test: atest ServiceUwbTests Bug: 276383595 Change-Id: I18f64a3dfab54fbf466765b62b548b32276c1372