From aa2004b4362a67be9d29ebab15c93eb77a7376b2 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 Change-Id: 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 c7637fb428891..b6f7cd04c75fd 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. */