Loading packages/SystemUI/shared/src/com/android/systemui/shared/recents/IOverviewProxy.aidl +4 −4 Original line number Diff line number Diff line Loading @@ -115,23 +115,23 @@ oneway interface IOverviewProxy { /** * Sent when {@link TaskbarDelegate#checkNavBarModes} is called. */ void checkNavBarModes() = 30; void checkNavBarModes(int displayId) = 30; /** * Sent when {@link TaskbarDelegate#finishBarAnimations} is called. */ void finishBarAnimations() = 31; void finishBarAnimations(int displayId) = 31; /** * Sent when {@link TaskbarDelegate#touchAutoDim} is called. {@param reset} is true, when auto * dim is reset after a timeout. */ void touchAutoDim(boolean reset) = 32; void touchAutoDim(int displayid, boolean reset) = 32; /** * Sent when {@link TaskbarDelegate#transitionTo} is called. */ void transitionTo(int barMode, boolean animate) = 33; void transitionTo(int displayId, int barMode, boolean animate) = 33; /** * Sent when {@link TaskbarDelegate#appTransitionPending} is called. Loading packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBarControllerImpl.java +4 −4 Original line number Diff line number Diff line Loading @@ -406,7 +406,7 @@ public class NavigationBarControllerImpl implements if (navBar != null) { navBar.checkNavBarModes(); } else { mTaskbarDelegate.checkNavBarModes(); mTaskbarDelegate.checkNavBarModes(displayId); } } Loading @@ -416,7 +416,7 @@ public class NavigationBarControllerImpl implements if (navBar != null) { navBar.finishBarAnimations(); } else { mTaskbarDelegate.finishBarAnimations(); mTaskbarDelegate.finishBarAnimations(displayId); } } Loading @@ -426,7 +426,7 @@ public class NavigationBarControllerImpl implements if (navBar != null) { navBar.touchAutoDim(); } else { mTaskbarDelegate.touchAutoDim(); mTaskbarDelegate.touchAutoDim(displayId); } } Loading @@ -436,7 +436,7 @@ public class NavigationBarControllerImpl implements if (navBar != null) { navBar.transitionTo(barMode, animate); } else { mTaskbarDelegate.transitionTo(barMode, animate); mTaskbarDelegate.transitionTo(displayId, barMode, animate); } } Loading packages/SystemUI/src/com/android/systemui/navigationbar/TaskbarDelegate.java +19 −9 Original line number Diff line number Diff line Loading @@ -159,7 +159,7 @@ public class TaskbarDelegate implements CommandQueue.Callbacks, private final AutoHideUiElement mAutoHideUiElement = new AutoHideUiElement() { @Override public void synchronizeState() { checkNavBarModes(); checkNavBarModes(mDisplayId); } @Override Loading Loading @@ -220,6 +220,16 @@ public class TaskbarDelegate implements CommandQueue.Callbacks, mEdgeBackGestureHandler = navBarHelper.getEdgeBackGestureHandler(); } @Override public void onDisplayReady(int displayId) { CommandQueue.Callbacks.super.onDisplayReady(displayId); } @Override public void onDisplayRemoved(int displayId) { CommandQueue.Callbacks.super.onDisplayRemoved(displayId); } // Separated into a method to keep setDependencies() clean/readable. private LightBarTransitionsController createLightBarTransitionsController() { Loading Loading @@ -349,31 +359,31 @@ public class TaskbarDelegate implements CommandQueue.Callbacks, } } void checkNavBarModes() { void checkNavBarModes(int displayId) { if (mOverviewProxyService.getProxy() == null) { return; } try { mOverviewProxyService.getProxy().checkNavBarModes(); mOverviewProxyService.getProxy().checkNavBarModes(displayId); } catch (RemoteException e) { Log.e(TAG, "checkNavBarModes() failed", e); } } void finishBarAnimations() { void finishBarAnimations(int displayId) { if (mOverviewProxyService.getProxy() == null) { return; } try { mOverviewProxyService.getProxy().finishBarAnimations(); mOverviewProxyService.getProxy().finishBarAnimations(displayId); } catch (RemoteException e) { Log.e(TAG, "finishBarAnimations() failed", e); } } void touchAutoDim() { void touchAutoDim(int displayId) { if (mOverviewProxyService.getProxy() == null) { return; } Loading @@ -382,19 +392,19 @@ public class TaskbarDelegate implements CommandQueue.Callbacks, int state = mStatusBarStateController.getState(); boolean shouldReset = state != StatusBarState.KEYGUARD && state != StatusBarState.SHADE_LOCKED; mOverviewProxyService.getProxy().touchAutoDim(shouldReset); mOverviewProxyService.getProxy().touchAutoDim(displayId, shouldReset); } catch (RemoteException e) { Log.e(TAG, "touchAutoDim() failed", e); } } void transitionTo(@BarTransitions.TransitionMode int barMode, boolean animate) { void transitionTo(int displayId, @BarTransitions.TransitionMode int barMode, boolean animate) { if (mOverviewProxyService.getProxy() == null) { return; } try { mOverviewProxyService.getProxy().transitionTo(barMode, animate); mOverviewProxyService.getProxy().transitionTo(displayId, barMode, animate); } catch (RemoteException e) { Log.e(TAG, "transitionTo() failed, barMode: " + barMode, e); } Loading Loading
packages/SystemUI/shared/src/com/android/systemui/shared/recents/IOverviewProxy.aidl +4 −4 Original line number Diff line number Diff line Loading @@ -115,23 +115,23 @@ oneway interface IOverviewProxy { /** * Sent when {@link TaskbarDelegate#checkNavBarModes} is called. */ void checkNavBarModes() = 30; void checkNavBarModes(int displayId) = 30; /** * Sent when {@link TaskbarDelegate#finishBarAnimations} is called. */ void finishBarAnimations() = 31; void finishBarAnimations(int displayId) = 31; /** * Sent when {@link TaskbarDelegate#touchAutoDim} is called. {@param reset} is true, when auto * dim is reset after a timeout. */ void touchAutoDim(boolean reset) = 32; void touchAutoDim(int displayid, boolean reset) = 32; /** * Sent when {@link TaskbarDelegate#transitionTo} is called. */ void transitionTo(int barMode, boolean animate) = 33; void transitionTo(int displayId, int barMode, boolean animate) = 33; /** * Sent when {@link TaskbarDelegate#appTransitionPending} is called. Loading
packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBarControllerImpl.java +4 −4 Original line number Diff line number Diff line Loading @@ -406,7 +406,7 @@ public class NavigationBarControllerImpl implements if (navBar != null) { navBar.checkNavBarModes(); } else { mTaskbarDelegate.checkNavBarModes(); mTaskbarDelegate.checkNavBarModes(displayId); } } Loading @@ -416,7 +416,7 @@ public class NavigationBarControllerImpl implements if (navBar != null) { navBar.finishBarAnimations(); } else { mTaskbarDelegate.finishBarAnimations(); mTaskbarDelegate.finishBarAnimations(displayId); } } Loading @@ -426,7 +426,7 @@ public class NavigationBarControllerImpl implements if (navBar != null) { navBar.touchAutoDim(); } else { mTaskbarDelegate.touchAutoDim(); mTaskbarDelegate.touchAutoDim(displayId); } } Loading @@ -436,7 +436,7 @@ public class NavigationBarControllerImpl implements if (navBar != null) { navBar.transitionTo(barMode, animate); } else { mTaskbarDelegate.transitionTo(barMode, animate); mTaskbarDelegate.transitionTo(displayId, barMode, animate); } } Loading
packages/SystemUI/src/com/android/systemui/navigationbar/TaskbarDelegate.java +19 −9 Original line number Diff line number Diff line Loading @@ -159,7 +159,7 @@ public class TaskbarDelegate implements CommandQueue.Callbacks, private final AutoHideUiElement mAutoHideUiElement = new AutoHideUiElement() { @Override public void synchronizeState() { checkNavBarModes(); checkNavBarModes(mDisplayId); } @Override Loading Loading @@ -220,6 +220,16 @@ public class TaskbarDelegate implements CommandQueue.Callbacks, mEdgeBackGestureHandler = navBarHelper.getEdgeBackGestureHandler(); } @Override public void onDisplayReady(int displayId) { CommandQueue.Callbacks.super.onDisplayReady(displayId); } @Override public void onDisplayRemoved(int displayId) { CommandQueue.Callbacks.super.onDisplayRemoved(displayId); } // Separated into a method to keep setDependencies() clean/readable. private LightBarTransitionsController createLightBarTransitionsController() { Loading Loading @@ -349,31 +359,31 @@ public class TaskbarDelegate implements CommandQueue.Callbacks, } } void checkNavBarModes() { void checkNavBarModes(int displayId) { if (mOverviewProxyService.getProxy() == null) { return; } try { mOverviewProxyService.getProxy().checkNavBarModes(); mOverviewProxyService.getProxy().checkNavBarModes(displayId); } catch (RemoteException e) { Log.e(TAG, "checkNavBarModes() failed", e); } } void finishBarAnimations() { void finishBarAnimations(int displayId) { if (mOverviewProxyService.getProxy() == null) { return; } try { mOverviewProxyService.getProxy().finishBarAnimations(); mOverviewProxyService.getProxy().finishBarAnimations(displayId); } catch (RemoteException e) { Log.e(TAG, "finishBarAnimations() failed", e); } } void touchAutoDim() { void touchAutoDim(int displayId) { if (mOverviewProxyService.getProxy() == null) { return; } Loading @@ -382,19 +392,19 @@ public class TaskbarDelegate implements CommandQueue.Callbacks, int state = mStatusBarStateController.getState(); boolean shouldReset = state != StatusBarState.KEYGUARD && state != StatusBarState.SHADE_LOCKED; mOverviewProxyService.getProxy().touchAutoDim(shouldReset); mOverviewProxyService.getProxy().touchAutoDim(displayId, shouldReset); } catch (RemoteException e) { Log.e(TAG, "touchAutoDim() failed", e); } } void transitionTo(@BarTransitions.TransitionMode int barMode, boolean animate) { void transitionTo(int displayId, @BarTransitions.TransitionMode int barMode, boolean animate) { if (mOverviewProxyService.getProxy() == null) { return; } try { mOverviewProxyService.getProxy().transitionTo(barMode, animate); mOverviewProxyService.getProxy().transitionTo(displayId, barMode, animate); } catch (RemoteException e) { Log.e(TAG, "transitionTo() failed, barMode: " + barMode, e); } Loading