DLC: Throw an exception if isDeviceLocked is called before lock/unlock.
The locked/unlocked state is a global state for the device
that can only be set by the kiosk app.
Trying to get the locked state before setting it throws
an IllegalStateException.
Additionally, this patch reworks the exception propagation
infrastructure from the controller up to the kiosk app.
Bug: 304619993
Test: atest CtsDeviceLockTestCases
Test: atest DeviceLockControllerRoboTests
Change-Id: I321b0377ba32ba2234860904e23400e00edcdda3
16 files changed