Tune UiModeManagerTest CTS for automotive device

- testNightModeAutoPersisted and testNightModeAutoNotPersistedCarMode
need to be skipped when UI night mode is locked.
- Getting night mode from Setting should be done as user 0 if the device
is automotive.

Bug: 153603590
Test: atest android.app.cts.UiModeManagerTest
Change-Id: Ia4058bd8d9647d36165e5a457b2e235d6a70615f
Merged-In: Ia4058bd8d9647d36165e5a457b2e235d6a70615f
(cherry picked from commit 85d77a6e6e55dadfcb12b0e50c4a77c15f7093b9)
2 files changed