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
2 files changed