There should be an UNKNOWN state to handle more conditions

Driver could report error while calculating alignment conditions.

Test: make
Bug: b/144822861
Bug: b/144905377
Change-Id: Ic184b8f30c9e40c14e6edf92cc63b5b2a82be68d
Merged-In: Ic184b8f30c9e40c14e6edf92cc63b5b2a82be68d
This commit is contained in:
Chris.CC Lee
2019-11-26 18:57:30 +08:00
committed by Lucas Dupin
parent f998947a6f
commit 0e6ea2f549

View File

@@ -34,6 +34,12 @@ public interface DockManager {
*/
int STATE_DOCKED_HIDE = 2;
/**
* Indicates there's no alignment info. This could happen when the device is unable to decide
* its alignment condition.
*/
int ALIGN_STATE_UNKNOWN = -1;
/**
* Indicates there's no alignment issue.
*/