Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +0 −2 Original line number Diff line number Diff line Loading @@ -1174,7 +1174,6 @@ public class PhoneStatusBar extends StatusBar { case MSG_OPEN_RECENTS_PANEL: if (DEBUG) Slog.d(TAG, "opening recents panel"); if (mRecentsPanel != null) { disable(StatusBarManager.DISABLE_BACK); mRecentsPanel.setVisibility(View.VISIBLE); mRecentsPanel.show(true, true); } Loading @@ -1182,7 +1181,6 @@ public class PhoneStatusBar extends StatusBar { case MSG_CLOSE_RECENTS_PANEL: if (DEBUG) Slog.d(TAG, "closing recents panel"); if (mRecentsPanel != null && mRecentsPanel.isShowing()) { disable(StatusBarManager.DISABLE_NONE); mRecentsPanel.show(false, true); } break; Loading packages/SystemUI/src/com/android/systemui/statusbar/policy/DateView.java +6 −7 Original line number Diff line number Diff line Loading @@ -22,11 +22,9 @@ import android.content.Intent; import android.content.IntentFilter; import android.text.format.DateFormat; import android.util.AttributeSet; import android.util.Slog; import android.widget.TextView; import android.view.MotionEvent; import android.view.View; import android.view.ViewParent; import android.widget.TextView; import com.android.systemui.R; Loading @@ -42,9 +40,10 @@ public final class DateView extends TextView { private BroadcastReceiver mIntentReceiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { String action = intent.getAction(); if (action.equals(Intent.ACTION_TIME_TICK) || action.equals(Intent.ACTION_TIMEZONE_CHANGED)) { final String action = intent.getAction(); if (Intent.ACTION_TIME_TICK.equals(action) || Intent.ACTION_TIME_CHANGED.equals(action) || Intent.ACTION_TIMEZONE_CHANGED.equals(action)) { updateClock(); } } Loading Loading @@ -118,6 +117,7 @@ public final class DateView extends TextView { // Register for Intent broadcasts for the clock and battery IntentFilter filter = new IntentFilter(); filter.addAction(Intent.ACTION_TIME_TICK); filter.addAction(Intent.ACTION_TIME_CHANGED); filter.addAction(Intent.ACTION_TIMEZONE_CHANGED); mContext.registerReceiver(mIntentReceiver, filter, null, null); updateClock(); Loading @@ -127,4 +127,3 @@ public final class DateView extends TextView { } } } packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java +1 −2 Original line number Diff line number Diff line Loading @@ -301,6 +301,7 @@ public class TabletStatusBar extends StatusBar implements mRecentsPanel = (RecentsPanelView) View.inflate(context, R.layout.status_bar_recent_panel, null); mRecentsPanel.setVisibility(View.GONE); mRecentsPanel.setSystemUiVisibility(View.STATUS_BAR_DISABLE_BACK); mRecentsPanel.setOnTouchListener(new TouchOutsideListener(MSG_CLOSE_RECENTS_PANEL, mRecentsPanel)); mStatusBarView.setIgnoreChildren(2, mRecentButton, mRecentsPanel); Loading Loading @@ -705,7 +706,6 @@ public class TabletStatusBar extends StatusBar implements case MSG_OPEN_RECENTS_PANEL: if (DEBUG) Slog.d(TAG, "opening recents panel"); if (mRecentsPanel != null) { disable(StatusBarManager.DISABLE_BACK); mRecentsPanel.setVisibility(View.VISIBLE); mRecentsPanel.show(true, true); } Loading @@ -713,7 +713,6 @@ public class TabletStatusBar extends StatusBar implements case MSG_CLOSE_RECENTS_PANEL: if (DEBUG) Slog.d(TAG, "closing recents panel"); if (mRecentsPanel != null && mRecentsPanel.isShowing()) { disable(StatusBarManager.DISABLE_NONE); mRecentsPanel.show(false, true); } break; Loading policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java +6 −3 Original line number Diff line number Diff line Loading @@ -1202,12 +1202,15 @@ public class KeyguardViewMediator implements KeyguardViewCallback, // showing secure lockscreen; disable expanding. flags |= StatusBarManager.DISABLE_EXPAND; } if (isSecure()) { // showing secure lockscreen; disable ticker. flags |= StatusBarManager.DISABLE_NOTIFICATION_TICKER; } } if (DEBUG) { Log.d(TAG, "adjustStatusBarLocked: mShowing=" + mShowing + " mHidden=" + mHidden + " isSecure=" + isSecure() + " --> flags=" + flags); Log.d(TAG, "adjustStatusBarLocked: mShowing=" + mShowing + " mHidden=" + mHidden + " isSecure=" + isSecure() + " --> flags=0x" + Integer.toHexString(flags)); } mStatusBarManager.disable(flags); Loading services/java/com/android/server/StatusBarManagerService.java +1 −1 Original line number Diff line number Diff line Loading @@ -301,7 +301,7 @@ public class StatusBarManagerService extends IStatusBarService.Stub // also allows calls from window manager which is in this process. enforceStatusBarService(); if (SPEW) Slog.d(TAG, "setSystemUiVisibility(" + vis + ")"); if (SPEW) Slog.d(TAG, "setSystemUiVisibility(0x" + Integer.toHexString(vis) + ")"); synchronized (mLock) { updateUiVisibilityLocked(vis); Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +0 −2 Original line number Diff line number Diff line Loading @@ -1174,7 +1174,6 @@ public class PhoneStatusBar extends StatusBar { case MSG_OPEN_RECENTS_PANEL: if (DEBUG) Slog.d(TAG, "opening recents panel"); if (mRecentsPanel != null) { disable(StatusBarManager.DISABLE_BACK); mRecentsPanel.setVisibility(View.VISIBLE); mRecentsPanel.show(true, true); } Loading @@ -1182,7 +1181,6 @@ public class PhoneStatusBar extends StatusBar { case MSG_CLOSE_RECENTS_PANEL: if (DEBUG) Slog.d(TAG, "closing recents panel"); if (mRecentsPanel != null && mRecentsPanel.isShowing()) { disable(StatusBarManager.DISABLE_NONE); mRecentsPanel.show(false, true); } break; Loading
packages/SystemUI/src/com/android/systemui/statusbar/policy/DateView.java +6 −7 Original line number Diff line number Diff line Loading @@ -22,11 +22,9 @@ import android.content.Intent; import android.content.IntentFilter; import android.text.format.DateFormat; import android.util.AttributeSet; import android.util.Slog; import android.widget.TextView; import android.view.MotionEvent; import android.view.View; import android.view.ViewParent; import android.widget.TextView; import com.android.systemui.R; Loading @@ -42,9 +40,10 @@ public final class DateView extends TextView { private BroadcastReceiver mIntentReceiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { String action = intent.getAction(); if (action.equals(Intent.ACTION_TIME_TICK) || action.equals(Intent.ACTION_TIMEZONE_CHANGED)) { final String action = intent.getAction(); if (Intent.ACTION_TIME_TICK.equals(action) || Intent.ACTION_TIME_CHANGED.equals(action) || Intent.ACTION_TIMEZONE_CHANGED.equals(action)) { updateClock(); } } Loading Loading @@ -118,6 +117,7 @@ public final class DateView extends TextView { // Register for Intent broadcasts for the clock and battery IntentFilter filter = new IntentFilter(); filter.addAction(Intent.ACTION_TIME_TICK); filter.addAction(Intent.ACTION_TIME_CHANGED); filter.addAction(Intent.ACTION_TIMEZONE_CHANGED); mContext.registerReceiver(mIntentReceiver, filter, null, null); updateClock(); Loading @@ -127,4 +127,3 @@ public final class DateView extends TextView { } } }
packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java +1 −2 Original line number Diff line number Diff line Loading @@ -301,6 +301,7 @@ public class TabletStatusBar extends StatusBar implements mRecentsPanel = (RecentsPanelView) View.inflate(context, R.layout.status_bar_recent_panel, null); mRecentsPanel.setVisibility(View.GONE); mRecentsPanel.setSystemUiVisibility(View.STATUS_BAR_DISABLE_BACK); mRecentsPanel.setOnTouchListener(new TouchOutsideListener(MSG_CLOSE_RECENTS_PANEL, mRecentsPanel)); mStatusBarView.setIgnoreChildren(2, mRecentButton, mRecentsPanel); Loading Loading @@ -705,7 +706,6 @@ public class TabletStatusBar extends StatusBar implements case MSG_OPEN_RECENTS_PANEL: if (DEBUG) Slog.d(TAG, "opening recents panel"); if (mRecentsPanel != null) { disable(StatusBarManager.DISABLE_BACK); mRecentsPanel.setVisibility(View.VISIBLE); mRecentsPanel.show(true, true); } Loading @@ -713,7 +713,6 @@ public class TabletStatusBar extends StatusBar implements case MSG_CLOSE_RECENTS_PANEL: if (DEBUG) Slog.d(TAG, "closing recents panel"); if (mRecentsPanel != null && mRecentsPanel.isShowing()) { disable(StatusBarManager.DISABLE_NONE); mRecentsPanel.show(false, true); } break; Loading
policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java +6 −3 Original line number Diff line number Diff line Loading @@ -1202,12 +1202,15 @@ public class KeyguardViewMediator implements KeyguardViewCallback, // showing secure lockscreen; disable expanding. flags |= StatusBarManager.DISABLE_EXPAND; } if (isSecure()) { // showing secure lockscreen; disable ticker. flags |= StatusBarManager.DISABLE_NOTIFICATION_TICKER; } } if (DEBUG) { Log.d(TAG, "adjustStatusBarLocked: mShowing=" + mShowing + " mHidden=" + mHidden + " isSecure=" + isSecure() + " --> flags=" + flags); Log.d(TAG, "adjustStatusBarLocked: mShowing=" + mShowing + " mHidden=" + mHidden + " isSecure=" + isSecure() + " --> flags=0x" + Integer.toHexString(flags)); } mStatusBarManager.disable(flags); Loading
services/java/com/android/server/StatusBarManagerService.java +1 −1 Original line number Diff line number Diff line Loading @@ -301,7 +301,7 @@ public class StatusBarManagerService extends IStatusBarService.Stub // also allows calls from window manager which is in this process. enforceStatusBarService(); if (SPEW) Slog.d(TAG, "setSystemUiVisibility(" + vis + ")"); if (SPEW) Slog.d(TAG, "setSystemUiVisibility(0x" + Integer.toHexString(vis) + ")"); synchronized (mLock) { updateUiVisibilityLocked(vis); Loading