From 0e6ea2f549bca92450690a19cda450804b56c073 Mon Sep 17 00:00:00 2001 From: "Chris.CC Lee" Date: Tue, 26 Nov 2019 18:57:30 +0800 Subject: [PATCH] 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 --- .../SystemUI/src/com/android/systemui/dock/DockManager.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/dock/DockManager.java b/packages/SystemUI/src/com/android/systemui/dock/DockManager.java index 42e065a113e60..4ee2ed3e34c0c 100644 --- a/packages/SystemUI/src/com/android/systemui/dock/DockManager.java +++ b/packages/SystemUI/src/com/android/systemui/dock/DockManager.java @@ -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. */