Loading core/java/com/android/internal/statusbar/IStatusBar.aidl +2 −2 Original line number Diff line number Diff line Loading @@ -217,9 +217,9 @@ oneway interface IStatusBar void setUdfpsRefreshRateCallback(in IUdfpsRefreshRateRequestCallback callback); /** * Notifies System UI that the display is ready to show system decorations. * Notifies System UI that the system decorations should be added on the display. */ void onDisplayReady(int displayId); void onDisplayAddSystemDecorations(int displayId); /** * Notifies System UI that the system decorations should be removed from the display. Loading packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/CommandQueueTest.java +6 −6 Original line number Diff line number Diff line Loading @@ -460,17 +460,17 @@ public class CommandQueueTest extends SysuiTestCase { } @Test public void testOnDisplayReady() { mCommandQueue.onDisplayReady(DEFAULT_DISPLAY); public void testonDisplayAddSystemDecorations() { mCommandQueue.onDisplayAddSystemDecorations(DEFAULT_DISPLAY); waitForIdleSync(); verify(mCallbacks).onDisplayReady(eq(DEFAULT_DISPLAY)); verify(mCallbacks).onDisplayAddSystemDecorations(eq(DEFAULT_DISPLAY)); } @Test public void testOnDisplayReadyForSecondaryDisplay() { mCommandQueue.onDisplayReady(SECONDARY_DISPLAY); public void testonDisplayAddSystemDecorationsForSecondaryDisplay() { mCommandQueue.onDisplayAddSystemDecorations(SECONDARY_DISPLAY); waitForIdleSync(); verify(mCallbacks).onDisplayReady(eq(SECONDARY_DISPLAY)); verify(mCallbacks).onDisplayAddSystemDecorations(eq(SECONDARY_DISPLAY)); } @Test Loading packages/SystemUI/shared/src/com/android/systemui/shared/recents/ILauncherProxy.aidl +2 −2 Original line number Diff line number Diff line Loading @@ -146,9 +146,9 @@ oneway interface ILauncherProxy { void onUnbind(IRemoteCallback reply) = 35; /** * Sent when {@link TaskbarDelegate#onDisplayReady} is called. * Sent when {@link TaskbarDelegate#onDisplayAddSystemDecorations} is called. */ void onDisplayReady(int displayId) = 36; void onDisplayAddSystemDecorations(int displayId) = 36; /** * Sent when {@link TaskbarDelegate#onDisplayRemoved} is called. Loading packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBarControllerImpl.java +4 −1 Original line number Diff line number Diff line Loading @@ -284,7 +284,10 @@ public class NavigationBarControllerImpl implements } @Override public void onDisplayReady(int displayId) { public void onDisplayAddSystemDecorations(int displayId) { if (enableDisplayContentModeManagement()) { mHasNavBar.put(displayId, true); } Display display = mDisplayManager.getDisplay(displayId); mIsLargeScreen = isLargeScreen(mContext); createNavigationBar(display, null /* savedState */, null /* result */); Loading packages/SystemUI/src/com/android/systemui/navigationbar/TaskbarDelegate.java +4 −4 Original line number Diff line number Diff line Loading @@ -238,16 +238,16 @@ public class TaskbarDelegate implements CommandQueue.Callbacks, } @Override public void onDisplayReady(int displayId) { CommandQueue.Callbacks.super.onDisplayReady(displayId); public void onDisplayAddSystemDecorations(int displayId) { CommandQueue.Callbacks.super.onDisplayAddSystemDecorations(displayId); if (mLauncherProxyService.getProxy() == null) { return; } try { mLauncherProxyService.getProxy().onDisplayReady(displayId); mLauncherProxyService.getProxy().onDisplayAddSystemDecorations(displayId); } catch (RemoteException e) { Log.e(TAG, "onDisplayReady() failed", e); Log.e(TAG, "onDisplayAddSystemDecorations() failed", e); } } Loading Loading
core/java/com/android/internal/statusbar/IStatusBar.aidl +2 −2 Original line number Diff line number Diff line Loading @@ -217,9 +217,9 @@ oneway interface IStatusBar void setUdfpsRefreshRateCallback(in IUdfpsRefreshRateRequestCallback callback); /** * Notifies System UI that the display is ready to show system decorations. * Notifies System UI that the system decorations should be added on the display. */ void onDisplayReady(int displayId); void onDisplayAddSystemDecorations(int displayId); /** * Notifies System UI that the system decorations should be removed from the display. Loading
packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/CommandQueueTest.java +6 −6 Original line number Diff line number Diff line Loading @@ -460,17 +460,17 @@ public class CommandQueueTest extends SysuiTestCase { } @Test public void testOnDisplayReady() { mCommandQueue.onDisplayReady(DEFAULT_DISPLAY); public void testonDisplayAddSystemDecorations() { mCommandQueue.onDisplayAddSystemDecorations(DEFAULT_DISPLAY); waitForIdleSync(); verify(mCallbacks).onDisplayReady(eq(DEFAULT_DISPLAY)); verify(mCallbacks).onDisplayAddSystemDecorations(eq(DEFAULT_DISPLAY)); } @Test public void testOnDisplayReadyForSecondaryDisplay() { mCommandQueue.onDisplayReady(SECONDARY_DISPLAY); public void testonDisplayAddSystemDecorationsForSecondaryDisplay() { mCommandQueue.onDisplayAddSystemDecorations(SECONDARY_DISPLAY); waitForIdleSync(); verify(mCallbacks).onDisplayReady(eq(SECONDARY_DISPLAY)); verify(mCallbacks).onDisplayAddSystemDecorations(eq(SECONDARY_DISPLAY)); } @Test Loading
packages/SystemUI/shared/src/com/android/systemui/shared/recents/ILauncherProxy.aidl +2 −2 Original line number Diff line number Diff line Loading @@ -146,9 +146,9 @@ oneway interface ILauncherProxy { void onUnbind(IRemoteCallback reply) = 35; /** * Sent when {@link TaskbarDelegate#onDisplayReady} is called. * Sent when {@link TaskbarDelegate#onDisplayAddSystemDecorations} is called. */ void onDisplayReady(int displayId) = 36; void onDisplayAddSystemDecorations(int displayId) = 36; /** * Sent when {@link TaskbarDelegate#onDisplayRemoved} is called. Loading
packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBarControllerImpl.java +4 −1 Original line number Diff line number Diff line Loading @@ -284,7 +284,10 @@ public class NavigationBarControllerImpl implements } @Override public void onDisplayReady(int displayId) { public void onDisplayAddSystemDecorations(int displayId) { if (enableDisplayContentModeManagement()) { mHasNavBar.put(displayId, true); } Display display = mDisplayManager.getDisplay(displayId); mIsLargeScreen = isLargeScreen(mContext); createNavigationBar(display, null /* savedState */, null /* result */); Loading
packages/SystemUI/src/com/android/systemui/navigationbar/TaskbarDelegate.java +4 −4 Original line number Diff line number Diff line Loading @@ -238,16 +238,16 @@ public class TaskbarDelegate implements CommandQueue.Callbacks, } @Override public void onDisplayReady(int displayId) { CommandQueue.Callbacks.super.onDisplayReady(displayId); public void onDisplayAddSystemDecorations(int displayId) { CommandQueue.Callbacks.super.onDisplayAddSystemDecorations(displayId); if (mLauncherProxyService.getProxy() == null) { return; } try { mLauncherProxyService.getProxy().onDisplayReady(displayId); mLauncherProxyService.getProxy().onDisplayAddSystemDecorations(displayId); } catch (RemoteException e) { Log.e(TAG, "onDisplayReady() failed", e); Log.e(TAG, "onDisplayAddSystemDecorations() failed", e); } } Loading