Loading packages/SystemUI/shared/src/com/android/systemui/shared/recents/IOverviewProxy.aidl +19 −14 Original line number Diff line number Diff line Loading @@ -88,6 +88,11 @@ oneway interface IOverviewProxy { */ void onNavButtonsDarkIntensityChanged(float darkIntensity) = 22; /** * Sent when when navigation bar luma sampling is enabled or disabled. */ void onNavigationBarLumaSamplingEnabled(int displayId, boolean enable) = 23; /** * Sent when split keyboard shortcut is triggered to enter stage split. */ Loading packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBarControllerImpl.java +0 −6 Original line number Diff line number Diff line Loading @@ -302,9 +302,6 @@ public class NavigationBarControllerImpl implements final NavigationBarView navBarView = getNavigationBarView(displayId); if (navBarView != null) { navBarView.showPinningEnterExitToast(entering); } else if (displayId == mDisplayTracker.getDefaultDisplayId() && mTaskbarDelegate.isInitialized()) { mTaskbarDelegate.showPinningEnterExitToast(entering); } } Loading @@ -314,9 +311,6 @@ public class NavigationBarControllerImpl implements final NavigationBarView navBarView = getNavigationBarView(displayId); if (navBarView != null) { navBarView.showPinningEscapeToast(); } else if (displayId == mDisplayTracker.getDefaultDisplayId() && mTaskbarDelegate.isInitialized()) { mTaskbarDelegate.showPinningEscapeToast(); } } }; Loading packages/SystemUI/src/com/android/systemui/navigationbar/TaskbarDelegate.java +5 −0 Original line number Diff line number Diff line Loading @@ -503,6 +503,11 @@ public class TaskbarDelegate implements CommandQueue.Callbacks, mEdgeBackGestureHandler.onConfigurationChanged(configuration); } @Override public void setNavigationBarLumaSamplingEnabled(int displayId, boolean enable) { mOverviewProxyService.onNavigationBarLumaSamplingEnabled(displayId, enable); } @Override public void showPinningEnterExitToast(boolean entering) { updateSysuiFlags(); Loading packages/SystemUI/src/com/android/systemui/recents/OverviewProxyService.java +13 −0 Original line number Diff line number Diff line Loading @@ -1037,6 +1037,19 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis } } public void onNavigationBarLumaSamplingEnabled(int displayId, boolean enable) { try { if (mOverviewProxy != null) { mOverviewProxy.onNavigationBarLumaSamplingEnabled(displayId, enable); } else { Log.e(TAG_OPS, "Failed to get overview proxy to enable/disable nav bar luma" + "sampling"); } } catch (RemoteException e) { Log.e(TAG_OPS, "Failed to call onNavigationBarLumaSamplingEnabled()", e); } } private void updateEnabledState() { final int currentUser = mUserTracker.getUserId(); mIsEnabled = mContext.getPackageManager().resolveServiceAsUser(mQuickStepIntent, Loading Loading
packages/SystemUI/shared/src/com/android/systemui/shared/recents/IOverviewProxy.aidl +19 −14 Original line number Diff line number Diff line Loading @@ -88,6 +88,11 @@ oneway interface IOverviewProxy { */ void onNavButtonsDarkIntensityChanged(float darkIntensity) = 22; /** * Sent when when navigation bar luma sampling is enabled or disabled. */ void onNavigationBarLumaSamplingEnabled(int displayId, boolean enable) = 23; /** * Sent when split keyboard shortcut is triggered to enter stage split. */ Loading
packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBarControllerImpl.java +0 −6 Original line number Diff line number Diff line Loading @@ -302,9 +302,6 @@ public class NavigationBarControllerImpl implements final NavigationBarView navBarView = getNavigationBarView(displayId); if (navBarView != null) { navBarView.showPinningEnterExitToast(entering); } else if (displayId == mDisplayTracker.getDefaultDisplayId() && mTaskbarDelegate.isInitialized()) { mTaskbarDelegate.showPinningEnterExitToast(entering); } } Loading @@ -314,9 +311,6 @@ public class NavigationBarControllerImpl implements final NavigationBarView navBarView = getNavigationBarView(displayId); if (navBarView != null) { navBarView.showPinningEscapeToast(); } else if (displayId == mDisplayTracker.getDefaultDisplayId() && mTaskbarDelegate.isInitialized()) { mTaskbarDelegate.showPinningEscapeToast(); } } }; Loading
packages/SystemUI/src/com/android/systemui/navigationbar/TaskbarDelegate.java +5 −0 Original line number Diff line number Diff line Loading @@ -503,6 +503,11 @@ public class TaskbarDelegate implements CommandQueue.Callbacks, mEdgeBackGestureHandler.onConfigurationChanged(configuration); } @Override public void setNavigationBarLumaSamplingEnabled(int displayId, boolean enable) { mOverviewProxyService.onNavigationBarLumaSamplingEnabled(displayId, enable); } @Override public void showPinningEnterExitToast(boolean entering) { updateSysuiFlags(); Loading
packages/SystemUI/src/com/android/systemui/recents/OverviewProxyService.java +13 −0 Original line number Diff line number Diff line Loading @@ -1037,6 +1037,19 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis } } public void onNavigationBarLumaSamplingEnabled(int displayId, boolean enable) { try { if (mOverviewProxy != null) { mOverviewProxy.onNavigationBarLumaSamplingEnabled(displayId, enable); } else { Log.e(TAG_OPS, "Failed to get overview proxy to enable/disable nav bar luma" + "sampling"); } } catch (RemoteException e) { Log.e(TAG_OPS, "Failed to call onNavigationBarLumaSamplingEnabled()", e); } } private void updateEnabledState() { final int currentUser = mUserTracker.getUserId(); mIsEnabled = mContext.getPackageManager().resolveServiceAsUser(mQuickStepIntent, Loading