diff options
author | Tracy Zhou <tracyzhou@google.com> | 2018-04-16 15:47:29 -0700 |
---|---|---|
committer | Tracy Zhou <tracyzhou@google.com> | 2018-04-18 17:08:27 -0700 |
commit | 27599053d59d43e88cdf1dce16f25a2cf3b0642e (patch) | |
tree | 169cc8640e60db03cefb104a92cb5af2965bcc3b /packages/SystemUI/src/com/android/systemui/OverviewProxyService.java | |
parent | 5b510f5c7bb6ffe39d3fceba065bb99ea53be828 (diff) |
Implement swipe up and quick scrub onboarding
Bug: 70180942
Test: manual test
Change-Id: I5c487d1e4ab800450c6b5a8f7ad1bf7434e45904
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/OverviewProxyService.java')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/OverviewProxyService.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java b/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java index 3443334e833a..e1540ea45013 100644 --- a/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java +++ b/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java @@ -118,6 +118,19 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis } } + public void onOverviewShown(boolean fromHome) { + long token = Binder.clearCallingIdentity(); + try { + mHandler.post(() -> { + for (int i = mConnectionCallbacks.size() - 1; i >= 0; --i) { + mConnectionCallbacks.get(i).onOverviewShown(fromHome); + } + }); + } finally { + Binder.restoreCallingIdentity(token); + } + } + public void setInteractionState(@InteractionType int flags) { long token = Binder.clearCallingIdentity(); try { @@ -306,6 +319,12 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis } } + public void notifyQuickScrubStarted() { + for (int i = mConnectionCallbacks.size() - 1; i >= 0; --i) { + mConnectionCallbacks.get(i).onQuickScrubStarted(); + } + } + private void updateEnabledState() { mIsEnabled = mContext.getPackageManager().resolveServiceAsUser(mQuickStepIntent, MATCH_DIRECT_BOOT_UNAWARE, @@ -325,5 +344,7 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis default void onConnectionChanged(boolean isConnected) {} default void onQuickStepStarted() {} default void onInteractionFlagsChanged(@InteractionType int flags) {} + default void onOverviewShown(boolean fromHome) {} + default void onQuickScrubStarted() {} } } |