diff options
author | Divya Sharma <divyash@codeaurora.org> | 2018-02-27 08:32:05 -0800 |
---|---|---|
committer | Divya Sharma <divyash@codeaurora.org> | 2018-02-27 08:32:05 -0800 |
commit | 4e4914b22b779e6376bb00ae20636175b2a70d8c (patch) | |
tree | f4ebc5eae2c99e20aceefcc9ffc3de19782f0fbe /packages/SystemUI/src/com/android/systemui/OverviewProxyService.java | |
parent | dbed40a3cd31af821ea99c605664908d67df2747 (diff) | |
parent | ed5d4d06907844e1c87a6ee17c4f2868a8cc6d56 (diff) |
PPR1.180219.001_AOSP_Merge
Conflicts:
core/res/res/values/config.xml
core/res/res/values/symbols.xml
packages/SystemUI/res/values/config.xml
packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java
telecomm/java/android/telecom/Call.java
telecomm/java/android/telecom/Connection.java
telecomm/java/android/telecom/ConnectionService.java
Change-Id: I524d38a61608069028b3496a189118d8eff75f4b
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/OverviewProxyService.java')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/OverviewProxyService.java | 37 |
1 files changed, 32 insertions, 5 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java b/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java index b7e1d67a5b3a..1185f45469df 100644 --- a/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java +++ b/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java @@ -47,6 +47,8 @@ import java.io.PrintWriter; import java.util.ArrayList; import java.util.List; +import static com.android.systemui.shared.system.NavigationBarCompat.InteractionType; + /** * Class to send information from overview to launcher with a binder. */ @@ -66,6 +68,8 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis private IOverviewProxy mOverviewProxy; private int mConnectionBackoffAttempts; + private CharSequence mOnboardingText; + private @InteractionType int mInteractionFlags; private ISystemUiProxy mSysUiProxy = new ISystemUiProxy.Stub() { @@ -98,9 +102,27 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis public void onRecentsAnimationStarted() { long token = Binder.clearCallingIdentity(); try { - mHandler.post(() -> { - notifyRecentsAnimationStarted(); - }); + mHandler.post(OverviewProxyService.this::notifyRecentsAnimationStarted); + } finally { + Binder.restoreCallingIdentity(token); + } + } + + public void setRecentsOnboardingText(CharSequence text) { + mOnboardingText = text; + } + + public void setInteractionState(@InteractionType int flags) { + long token = Binder.clearCallingIdentity(); + try { + if (mInteractionFlags != flags) { + mInteractionFlags = flags; + mHandler.post(() -> { + for (int i = mConnectionCallbacks.size() - 1; i >= 0; --i) { + mConnectionCallbacks.get(i).onInteractionFlagsChanged(flags); + } + }); + } } finally { Binder.restoreCallingIdentity(token); } @@ -223,8 +245,12 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis return mOverviewProxy; } - public ComponentName getLauncherComponent() { - return mLauncherComponentName; + public CharSequence getOnboardingText() { + return mOnboardingText; + } + + public int getInteractionFlags() { + return mInteractionFlags; } private void disconnectFromLauncherService() { @@ -260,5 +286,6 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis public interface OverviewProxyListener { default void onConnectionChanged(boolean isConnected) {} default void onRecentsAnimationStarted() {} + default void onInteractionFlagsChanged(@InteractionType int flags) {} } } |