am 862d72e2: Merge "Improve dump of status bar service" into lmp-mr1-dev
* commit '862d72e2f4e600d6188f5a21a906d5374ab4f123': Improve dump of status bar service
This commit is contained in:
@@ -51,7 +51,7 @@ interface IStatusBarService
|
||||
void onNotificationVisibilityChanged(
|
||||
in String[] newlyVisibleKeys, in String[] noLongerVisibleKeys);
|
||||
void onNotificationExpansionChanged(in String key, in boolean userAction, in boolean expanded);
|
||||
void setSystemUiVisibility(int vis, int mask);
|
||||
void setSystemUiVisibility(int vis, int mask, String cause);
|
||||
void setWindowState(int window, int state);
|
||||
|
||||
void showRecentApps(boolean triggeredFromAltTab);
|
||||
|
||||
@@ -171,7 +171,8 @@ public final class NavigationBarTransitions extends BarTransitions {
|
||||
applyLightsOut(false, false, false);
|
||||
|
||||
try {
|
||||
mBarService.setSystemUiVisibility(0, View.SYSTEM_UI_FLAG_LOW_PROFILE);
|
||||
mBarService.setSystemUiVisibility(0, View.SYSTEM_UI_FLAG_LOW_PROFILE,
|
||||
"LightsOutListener");
|
||||
} catch (android.os.RemoteException ex) {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5920,7 +5920,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
private int updateSystemUiVisibilityLw() {
|
||||
// If there is no window focused, there will be nobody to handle the events
|
||||
// anyway, so just hang on in whatever state we're in until things settle down.
|
||||
WindowState win = mFocusedWindow != null ? mFocusedWindow : mTopFullscreenOpaqueWindowState;
|
||||
final WindowState win = mFocusedWindow != null ? mFocusedWindow
|
||||
: mTopFullscreenOpaqueWindowState;
|
||||
if (win == null) {
|
||||
return 0;
|
||||
}
|
||||
@@ -5956,7 +5957,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
try {
|
||||
IStatusBarService statusbar = getStatusBarService();
|
||||
if (statusbar != null) {
|
||||
statusbar.setSystemUiVisibility(visibility, 0xffffffff);
|
||||
statusbar.setSystemUiVisibility(visibility, 0xffffffff, win.toString());
|
||||
statusbar.topAppWindowChanged(needsMenu);
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
|
||||
@@ -353,7 +353,7 @@ public class StatusBarManagerService extends IStatusBarService.Stub {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setSystemUiVisibility(int vis, int mask) {
|
||||
public void setSystemUiVisibility(int vis, int mask, String cause) {
|
||||
// also allows calls from window manager which is in this process.
|
||||
enforceStatusBarService();
|
||||
|
||||
@@ -365,7 +365,7 @@ public class StatusBarManagerService extends IStatusBarService.Stub {
|
||||
mCurrentUserId,
|
||||
vis & StatusBarManager.DISABLE_MASK,
|
||||
mSysUiVisToken,
|
||||
"WindowManager.LayoutParams");
|
||||
cause);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user