Loading packages/SystemUI/src/com/android/systemui/recents/OverviewProxyService.java +7 −4 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package com.android.systemui.recents; import static android.content.pm.PackageManager.MATCH_SYSTEM_ONLY; import static android.view.Display.DEFAULT_DISPLAY; import static android.view.MotionEvent.ACTION_CANCEL; import static android.view.MotionEvent.ACTION_DOWN; import static android.view.MotionEvent.ACTION_UP; Loading @@ -29,7 +30,6 @@ import static com.android.systemui.shared.system.QuickStepContract.KEY_EXTRA_WIN import static com.android.systemui.shared.system.QuickStepContract.SYSUI_STATE_BOUNCER_SHOWING; import static com.android.systemui.shared.system.QuickStepContract.SYSUI_STATE_NAV_BAR_HIDDEN; import static com.android.systemui.shared.system.QuickStepContract.SYSUI_STATE_NOTIFICATION_PANEL_EXPANDED; import static com.android.systemui.shared.system.QuickStepContract.SYSUI_STATE_SCREEN_PINNING; import android.annotation.FloatRange; import android.app.ActivityTaskManager; Loading Loading @@ -477,7 +477,12 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis } } public void setSystemUiStateFlag(int flag, boolean enabled) { public void setSystemUiStateFlag(int flag, boolean enabled, int displayId) { if (displayId != DEFAULT_DISPLAY) { // Ignore non-default displays for now return; } int newState = mSysUiStateFlags; if (enabled) { newState |= flag; Loading @@ -502,8 +507,6 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis && statusBar.getPanel().isFullyExpanded(); final boolean bouncerShowing = statusBar != null && statusBar.isBouncerShowing(); mSysUiStateFlags = 0; mSysUiStateFlags |= ActivityManagerWrapper.getInstance().isScreenPinningActive() ? SYSUI_STATE_SCREEN_PINNING : 0; mSysUiStateFlags |= (navBarFragment != null && !navBarFragment.isNavBarWindowVisible()) ? SYSUI_STATE_NAV_BAR_HIDDEN : 0; mSysUiStateFlags |= panelExpanded Loading packages/SystemUI/src/com/android/systemui/recents/ScreenPinningRequest.java +0 −2 Original line number Diff line number Diff line Loading @@ -16,7 +16,6 @@ package com.android.systemui.recents; import static com.android.systemui.shared.system.QuickStepContract.SYSUI_STATE_SCREEN_PINNING; import static com.android.systemui.util.leak.RotationUtils.ROTATION_LANDSCAPE; import static com.android.systemui.util.leak.RotationUtils.ROTATION_SEASCAPE; Loading Loading @@ -139,7 +138,6 @@ public class ScreenPinningRequest implements View.OnClickListener, if (v.getId() == R.id.screen_pinning_ok_button || mRequestWindow == v) { try { ActivityTaskManager.getService().startSystemLockTaskMode(taskId); mOverviewProxyService.setSystemUiStateFlag(SYSUI_STATE_SCREEN_PINNING, true); } catch (RemoteException e) {} } clearPrompt(); Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java +7 −5 Original line number Diff line number Diff line Loading @@ -27,7 +27,6 @@ import static com.android.systemui.recents.OverviewProxyService.OverviewProxyLis import static com.android.systemui.shared.system.QuickStepContract.SYSUI_STATE_A11Y_BUTTON_CLICKABLE; import static com.android.systemui.shared.system.QuickStepContract.SYSUI_STATE_A11Y_BUTTON_LONG_CLICKABLE; import static com.android.systemui.shared.system.QuickStepContract.SYSUI_STATE_NAV_BAR_HIDDEN; import static com.android.systemui.shared.system.QuickStepContract.SYSUI_STATE_SCREEN_PINNING; import static com.android.systemui.statusbar.phone.BarTransitions.MODE_LIGHTS_OUT; import static com.android.systemui.statusbar.phone.BarTransitions.MODE_LIGHTS_OUT_TRANSPARENT; import static com.android.systemui.statusbar.phone.BarTransitions.MODE_OPAQUE; Loading Loading @@ -328,7 +327,10 @@ public class NavigationBarFragment extends LifecycleFragment implements Callback filter.addAction(Intent.ACTION_USER_SWITCHED); getContext().registerReceiverAsUser(mBroadcastReceiver, UserHandle.ALL, filter, null, null); notifyNavigationBarScreenOn(); mOverviewProxyService.addCallback(mOverviewProxyListener); mOverviewProxyService.setSystemUiStateFlag(SYSUI_STATE_NAV_BAR_HIDDEN, !isNavBarWindowVisible(), mDisplayId); // Currently there is no accelerometer sensor on non-default display. if (mIsOnDefaultDisplay) { Loading Loading @@ -464,7 +466,7 @@ public class NavigationBarFragment extends LifecycleFragment implements Callback if (DEBUG_WINDOW_STATE) Log.d(TAG, "Navigation bar " + windowStateToString(state)); mOverviewProxyService.setSystemUiStateFlag(SYSUI_STATE_NAV_BAR_HIDDEN, !isNavBarWindowVisible()); !isNavBarWindowVisible(), mDisplayId); mNavigationBarView.getRotateSuggestionButton() .onNavigationBarWindowVisibilityChange(isNavBarWindowVisible()); } Loading Loading @@ -825,7 +827,6 @@ public class NavigationBarFragment extends LifecycleFragment implements Callback activityManager.stopSystemLockTaskMode(); // When exiting refresh disabled flags. mNavigationBarView.updateNavButtonIcons(); mOverviewProxyService.setSystemUiStateFlag(SYSUI_STATE_SCREEN_PINNING, false); } } Loading Loading @@ -877,9 +878,10 @@ public class NavigationBarFragment extends LifecycleFragment implements Callback boolean clickable = (flags & SYSUI_STATE_A11Y_BUTTON_CLICKABLE) != 0; boolean longClickable = (flags & SYSUI_STATE_A11Y_BUTTON_LONG_CLICKABLE) != 0; mNavigationBarView.setAccessibilityButtonState(clickable, longClickable); mOverviewProxyService.setSystemUiStateFlag(SYSUI_STATE_A11Y_BUTTON_CLICKABLE, clickable); mOverviewProxyService.setSystemUiStateFlag( SYSUI_STATE_A11Y_BUTTON_LONG_CLICKABLE, longClickable); SYSUI_STATE_A11Y_BUTTON_CLICKABLE, clickable, mDisplayId); mOverviewProxyService.setSystemUiStateFlag( SYSUI_STATE_A11Y_BUTTON_LONG_CLICKABLE, longClickable, mDisplayId); } /** Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java +1 −1 Original line number Diff line number Diff line Loading @@ -725,7 +725,7 @@ public class NavigationBarView extends FrameLayout implements PluginListener<Nav public void onPanelExpandedChange(boolean expanded) { updateSlippery(); mOverviewProxyService.setSystemUiStateFlag(SYSUI_STATE_NOTIFICATION_PANEL_EXPANDED, expanded); expanded, getContext().getDisplayId()); } public void updateStates() { Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +1 −1 Original line number Diff line number Diff line Loading @@ -3589,7 +3589,7 @@ public class StatusBar extends SystemUI implements DemoMode, // Notify overview proxy service of the new states Dependency.get(OverviewProxyService.class).setSystemUiStateFlag(SYSUI_STATE_BOUNCER_SHOWING, isBouncerShowing()); isBouncerShowing(), mContext.getDisplayId()); } /** Loading Loading
packages/SystemUI/src/com/android/systemui/recents/OverviewProxyService.java +7 −4 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package com.android.systemui.recents; import static android.content.pm.PackageManager.MATCH_SYSTEM_ONLY; import static android.view.Display.DEFAULT_DISPLAY; import static android.view.MotionEvent.ACTION_CANCEL; import static android.view.MotionEvent.ACTION_DOWN; import static android.view.MotionEvent.ACTION_UP; Loading @@ -29,7 +30,6 @@ import static com.android.systemui.shared.system.QuickStepContract.KEY_EXTRA_WIN import static com.android.systemui.shared.system.QuickStepContract.SYSUI_STATE_BOUNCER_SHOWING; import static com.android.systemui.shared.system.QuickStepContract.SYSUI_STATE_NAV_BAR_HIDDEN; import static com.android.systemui.shared.system.QuickStepContract.SYSUI_STATE_NOTIFICATION_PANEL_EXPANDED; import static com.android.systemui.shared.system.QuickStepContract.SYSUI_STATE_SCREEN_PINNING; import android.annotation.FloatRange; import android.app.ActivityTaskManager; Loading Loading @@ -477,7 +477,12 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis } } public void setSystemUiStateFlag(int flag, boolean enabled) { public void setSystemUiStateFlag(int flag, boolean enabled, int displayId) { if (displayId != DEFAULT_DISPLAY) { // Ignore non-default displays for now return; } int newState = mSysUiStateFlags; if (enabled) { newState |= flag; Loading @@ -502,8 +507,6 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis && statusBar.getPanel().isFullyExpanded(); final boolean bouncerShowing = statusBar != null && statusBar.isBouncerShowing(); mSysUiStateFlags = 0; mSysUiStateFlags |= ActivityManagerWrapper.getInstance().isScreenPinningActive() ? SYSUI_STATE_SCREEN_PINNING : 0; mSysUiStateFlags |= (navBarFragment != null && !navBarFragment.isNavBarWindowVisible()) ? SYSUI_STATE_NAV_BAR_HIDDEN : 0; mSysUiStateFlags |= panelExpanded Loading
packages/SystemUI/src/com/android/systemui/recents/ScreenPinningRequest.java +0 −2 Original line number Diff line number Diff line Loading @@ -16,7 +16,6 @@ package com.android.systemui.recents; import static com.android.systemui.shared.system.QuickStepContract.SYSUI_STATE_SCREEN_PINNING; import static com.android.systemui.util.leak.RotationUtils.ROTATION_LANDSCAPE; import static com.android.systemui.util.leak.RotationUtils.ROTATION_SEASCAPE; Loading Loading @@ -139,7 +138,6 @@ public class ScreenPinningRequest implements View.OnClickListener, if (v.getId() == R.id.screen_pinning_ok_button || mRequestWindow == v) { try { ActivityTaskManager.getService().startSystemLockTaskMode(taskId); mOverviewProxyService.setSystemUiStateFlag(SYSUI_STATE_SCREEN_PINNING, true); } catch (RemoteException e) {} } clearPrompt(); Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java +7 −5 Original line number Diff line number Diff line Loading @@ -27,7 +27,6 @@ import static com.android.systemui.recents.OverviewProxyService.OverviewProxyLis import static com.android.systemui.shared.system.QuickStepContract.SYSUI_STATE_A11Y_BUTTON_CLICKABLE; import static com.android.systemui.shared.system.QuickStepContract.SYSUI_STATE_A11Y_BUTTON_LONG_CLICKABLE; import static com.android.systemui.shared.system.QuickStepContract.SYSUI_STATE_NAV_BAR_HIDDEN; import static com.android.systemui.shared.system.QuickStepContract.SYSUI_STATE_SCREEN_PINNING; import static com.android.systemui.statusbar.phone.BarTransitions.MODE_LIGHTS_OUT; import static com.android.systemui.statusbar.phone.BarTransitions.MODE_LIGHTS_OUT_TRANSPARENT; import static com.android.systemui.statusbar.phone.BarTransitions.MODE_OPAQUE; Loading Loading @@ -328,7 +327,10 @@ public class NavigationBarFragment extends LifecycleFragment implements Callback filter.addAction(Intent.ACTION_USER_SWITCHED); getContext().registerReceiverAsUser(mBroadcastReceiver, UserHandle.ALL, filter, null, null); notifyNavigationBarScreenOn(); mOverviewProxyService.addCallback(mOverviewProxyListener); mOverviewProxyService.setSystemUiStateFlag(SYSUI_STATE_NAV_BAR_HIDDEN, !isNavBarWindowVisible(), mDisplayId); // Currently there is no accelerometer sensor on non-default display. if (mIsOnDefaultDisplay) { Loading Loading @@ -464,7 +466,7 @@ public class NavigationBarFragment extends LifecycleFragment implements Callback if (DEBUG_WINDOW_STATE) Log.d(TAG, "Navigation bar " + windowStateToString(state)); mOverviewProxyService.setSystemUiStateFlag(SYSUI_STATE_NAV_BAR_HIDDEN, !isNavBarWindowVisible()); !isNavBarWindowVisible(), mDisplayId); mNavigationBarView.getRotateSuggestionButton() .onNavigationBarWindowVisibilityChange(isNavBarWindowVisible()); } Loading Loading @@ -825,7 +827,6 @@ public class NavigationBarFragment extends LifecycleFragment implements Callback activityManager.stopSystemLockTaskMode(); // When exiting refresh disabled flags. mNavigationBarView.updateNavButtonIcons(); mOverviewProxyService.setSystemUiStateFlag(SYSUI_STATE_SCREEN_PINNING, false); } } Loading Loading @@ -877,9 +878,10 @@ public class NavigationBarFragment extends LifecycleFragment implements Callback boolean clickable = (flags & SYSUI_STATE_A11Y_BUTTON_CLICKABLE) != 0; boolean longClickable = (flags & SYSUI_STATE_A11Y_BUTTON_LONG_CLICKABLE) != 0; mNavigationBarView.setAccessibilityButtonState(clickable, longClickable); mOverviewProxyService.setSystemUiStateFlag(SYSUI_STATE_A11Y_BUTTON_CLICKABLE, clickable); mOverviewProxyService.setSystemUiStateFlag( SYSUI_STATE_A11Y_BUTTON_LONG_CLICKABLE, longClickable); SYSUI_STATE_A11Y_BUTTON_CLICKABLE, clickable, mDisplayId); mOverviewProxyService.setSystemUiStateFlag( SYSUI_STATE_A11Y_BUTTON_LONG_CLICKABLE, longClickable, mDisplayId); } /** Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java +1 −1 Original line number Diff line number Diff line Loading @@ -725,7 +725,7 @@ public class NavigationBarView extends FrameLayout implements PluginListener<Nav public void onPanelExpandedChange(boolean expanded) { updateSlippery(); mOverviewProxyService.setSystemUiStateFlag(SYSUI_STATE_NOTIFICATION_PANEL_EXPANDED, expanded); expanded, getContext().getDisplayId()); } public void updateStates() { Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +1 −1 Original line number Diff line number Diff line Loading @@ -3589,7 +3589,7 @@ public class StatusBar extends SystemUI implements DemoMode, // Notify overview proxy service of the new states Dependency.get(OverviewProxyService.class).setSystemUiStateFlag(SYSUI_STATE_BOUNCER_SHOWING, isBouncerShowing()); isBouncerShowing(), mContext.getDisplayId()); } /** Loading