diff options
| author | 2019-11-26 18:57:30 +0800 | |
|---|---|---|
| committer | 2019-12-02 17:13:28 +0000 | |
| commit | 0e6ea2f549bca92450690a19cda450804b56c073 (patch) | |
| tree | 9fac971896946683077d95a1183a0f5abb97d218 | |
| parent | f998947a6f954bb7a224ee32d193e3ba6a7ecacf (diff) | |
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
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/dock/DockManager.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/dock/DockManager.java b/packages/SystemUI/src/com/android/systemui/dock/DockManager.java index 42e065a113e6..4ee2ed3e34c0 100644 --- a/packages/SystemUI/src/com/android/systemui/dock/DockManager.java +++ b/packages/SystemUI/src/com/android/systemui/dock/DockManager.java @@ -35,6 +35,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. */ int ALIGN_STATE_GOOD = 0; |