public class PhoneStatusBar extends com.android.systemui.statusbar.BaseStatusBar implements DemoMode, com.android.systemui.statusbar.DragDownHelper.DragDownCallback, ActivityStarter, UnlockMethodCache.OnUnlockMethodChangedListener, HeadsUpManager.OnHeadsUpChangedListener
ActivityStarter.Callback
ENABLE_CHILD_NOTIFICATIONS, ENABLE_HEADS_UP, ENABLE_REMOTE_INPUT, FORCE_REMOTE_INPUT_HISTORY, mAccessibilityManager, mAllowLockscreenRemoteInput, mAssistManager, mBarService, mBouncerShowing, mCommandQueue, mCurrentProfiles, mCurrentUserId, mDeviceInteractive, mDevicePolicyManager, mDisableNotificationAlerts, mDismissView, mDreamManager, mEmptyShadeView, mGroupManager, mHandler, mHeadsUpEntriesToRemoveOnSwitch, mHeadsUpManager, mHeadsUpTicker, mKeyguardIconOverflowContainer, mKeysKeptForRemoteInput, mLayoutDirection, mNavigationBarView, mNotificationData, mPowerManager, mRecents, mRecentsPreloadOnTouchListener, mRemoteInputController, mRemoteInputEntriesToRemoveOnCollapse, mSettingsObserver, MSG_CANCEL_PRELOAD_RECENT_APPS, MSG_DISMISS_KEYBOARD_SHORTCUTS_MENU, MSG_HIDE_RECENT_APPS, MSG_PRELOAD_RECENT_APPS, MSG_SHOW_NEXT_AFFILIATED_TASK, MSG_SHOW_PREV_AFFILIATED_TASK, MSG_SHOW_RECENT_APPS, MSG_TOGGLE_KEYBOARD_SHORTCUTS_MENU, MSG_TOGGLE_RECENTS_APPS, mShowLockscreenNotifications, mStackScroller, mState, mStatusBarKeyguardViewManager, MULTIUSER_DEBUG, mUseHeadsUp, mVisible, mVrMode, mWindowManager, mWindowManagerService, mZenMode, SETTING_HEADS_UP_TICKER, SYSTEM_DIALOG_REASON_HOME_KEY, SYSTEM_DIALOG_REASON_RECENT_APPS
mComponents, mContext
ACTION_DEMO, COMMAND_BARS, COMMAND_BATTERY, COMMAND_CLOCK, COMMAND_ENTER, COMMAND_EXIT, COMMAND_NETWORK, COMMAND_NOTIFICATIONS, COMMAND_STATUS, COMMAND_VOLUME, DEMO_MODE_ALLOWED, EXTRA_COMMAND
Constructor and Description |
---|
PhoneStatusBar() |
Modifier and Type | Method and Description |
---|---|
protected void |
addNavigationBar() |
void |
addNotification(StatusBarNotification notification,
NotificationListenerService.RankingMap ranking,
com.android.systemui.statusbar.NotificationData.Entry oldEntry) |
void |
addPostCollapseAction(Runnable r) |
void |
addQsTile(ComponentName tile) |
protected int |
adjustDisableFlags(int state) |
void |
animateCollapsePanels() |
void |
animateCollapsePanels(int flags) |
void |
animateCollapsePanels(int flags,
boolean force) |
void |
animateCollapsePanels(int flags,
boolean force,
boolean delayed) |
void |
animateCollapsePanels(int flags,
boolean force,
boolean delayed,
float speedUpFactor) |
void |
animateCollapseQuickSettings() |
void |
animateExpandNotificationsPanel() |
void |
animateExpandSettingsPanel(String subPanel) |
void |
animateKeyguardUnoccluding()
Plays the animation when an activity that was occluding Keyguard goes away.
|
void |
appTransitionCancelled() |
void |
appTransitionFinished() |
void |
appTransitionPending() |
void |
appTransitionStarting(long startTime,
long duration) |
void |
buzzBeepBlinked() |
long |
calculateGoingToFullShadeDelay() |
void |
clearAllNotifications() |
void |
clickTile(ComponentName tile) |
void |
createAndAddWindows()
Create all windows necessary for the status bar (including navigation, overlay panels, etc)
and add them to the window manager.
|
protected BatteryController |
createBatteryController() |
protected com.android.systemui.statusbar.BaseStatusBar.H |
createHandler() |
protected void |
createIconController() |
protected void |
createNavigationBarView(Context context) |
protected void |
createUserSwitcher() |
void |
destroy() |
void |
disable(int state1,
int state2,
boolean animate)
State is one or more of the DISABLE constants from StatusBarManager.
|
void |
dismissKeyguard() |
protected void |
dismissKeyguardThenExecute(KeyguardHostView.OnDismissAction action,
boolean afterKeyguardGone)
Takes the necessary steps to prepare the status bar for starting an activity, then starts it.
|
void |
dispatchDemoCommand(String command,
Bundle args) |
void |
dump(FileDescriptor fd,
PrintWriter pw,
String[] args) |
void |
endAffordanceLaunch() |
void |
executeRunnableDismissingKeyguard(Runnable runnable,
Runnable cancelAction,
boolean dismissShade,
boolean afterKeyguardGone,
boolean deferred) |
void |
fadeKeyguardAfterLaunchTransition(Runnable beforeFading,
Runnable endRunnable)
Fades the content of the keyguard away after the launch transition is done.
|
void |
fadeKeyguardWhilePulsing()
Fades the content of the Keyguard while we are dozing and makes it invisible when finished
fading.
|
void |
findAndUpdateMediaNotifications() |
void |
finishKeyguardFadingAway()
Notifies that the Keyguard fading away animation is done.
|
int |
getBarState() |
protected ViewGroup |
getBouncerContainer() |
String |
getCurrentMediaNotificationKey() |
UserHandle |
getCurrentUserHandle() |
com.android.systemui.statusbar.GestureRecorder |
getGestureRecorder() |
ButtonDispatcher |
getHomeButton() |
long |
getKeyguardFadingAwayDelay() |
long |
getKeyguardFadingAwayDuration() |
int |
getMaxKeyguardNotifications() |
protected int |
getMaxKeyguardNotifications(boolean recompute) |
NavigationBarView |
getNavigationBarView() |
int |
getStatusBarHeight() |
protected View |
getStatusBarView() |
StatusBarWindowView |
getStatusBarWindow() |
void |
goToKeyguard()
Goes back to the keyguard after hanging around in
StatusBarState.SHADE_LOCKED . |
void |
goToLockedShade(View expandView)
If secure with redaction: Show bouncer, go to unlocked shade.
|
void |
handleSystemNavigationKey(int key)
Called for system navigation gestures.
|
protected void |
handleVisibleToUserChanged(boolean visibleToUser)
The LEDs are turned off when the notification panel is shown, even just a little bit.
|
boolean |
hasActiveNotifications() |
boolean |
hideKeyguard() |
protected void |
inflateNavigationBarView(Context context) |
protected void |
inflateStatusBarWindow(Context context) |
protected void |
initSignalCluster(View containerView) |
boolean |
interceptMediaKey(KeyEvent event) |
boolean |
interceptTouchEvent(MotionEvent event) |
boolean |
isCollapsing() |
boolean |
isDozing() |
boolean |
isFalsingThresholdNeeded() |
boolean |
isGoingToNotificationShade() |
boolean |
isHeadsUp(String key) |
boolean |
isInLaunchTransition() |
boolean |
isKeyguardCurrentlySecure() |
boolean |
isKeyguardFadingAway() |
boolean |
isPanelFullyCollapsed() |
boolean |
isQsExpanded() |
boolean |
isScrimSrcModeEnabled() |
protected boolean |
isSnoozedPackage(StatusBarNotification sbn) |
static boolean |
isTopLevelChild(com.android.systemui.statusbar.NotificationData.Entry entry) |
boolean |
isWakeUpComingFromTouch() |
void |
keyguardGoingAway()
Notifies the status bar that Keyguard is going away very soon.
|
protected void |
loadDimens() |
protected PhoneStatusBarView |
makeStatusBarView() |
void |
maybeEscalateHeadsUp()
If there is an active heads-up notification and it has a fullscreen intent, fire it now.
|
void |
notificationLightOff() |
void |
notificationLightPulse(int argb,
int onMillis,
int offMillis) |
void |
notifyFpAuthModeChanged() |
void |
onActivated(com.android.systemui.statusbar.ActivatableNotificationView view) |
void |
onActivationReset(com.android.systemui.statusbar.ActivatableNotificationView view) |
boolean |
onBackPressed() |
void |
onCameraHintStarted() |
void |
onCameraLaunchGestureDetected(int source) |
void |
onClosingFinished() |
protected void |
onConfigurationChanged(Configuration newConfig) |
void |
onCrossedThreshold(boolean above)
The user has dragged either above or below the threshold
|
protected void |
onDensityOrFontScaleChanged() |
void |
onDragDownReset() |
boolean |
onDraggedDown(View startingChild,
int dragLengthY) |
void |
onExpandClicked(com.android.systemui.statusbar.NotificationData.Entry clickedEntry,
boolean nowExpanded) |
void |
onFinishedGoingToSleep() |
void |
onHeadsUpPinned(com.android.systemui.statusbar.ExpandableNotificationRow headsUp)
A notification was just pinned to the top.
|
void |
onHeadsUpPinnedModeChanged(boolean inPinnedMode)
The state whether there exist pinned heads-ups or not changed.
|
void |
onHeadsUpStateChanged(com.android.systemui.statusbar.NotificationData.Entry entry,
boolean isHeadsUp)
A notification just became a heads up or turned back to its normal state.
|
void |
onHeadsUpUnPinned(com.android.systemui.statusbar.ExpandableNotificationRow headsUp)
A notification was just unpinned from the top.
|
void |
onHintFinished() |
void |
onKeyguardViewManagerStatesUpdated()
To be called when there's a state change in StatusBarKeyguardViewManager.
|
void |
onLockedNotificationImportanceChange(KeyguardHostView.OnDismissAction dismissAction) |
protected void |
onLockedRemoteInput(com.android.systemui.statusbar.ExpandableNotificationRow row,
View clicked) |
protected void |
onLockedWorkRemoteInput(int userId,
com.android.systemui.statusbar.ExpandableNotificationRow row,
View clicked) |
boolean |
onMenuPressed() |
void |
onPhoneHintStarted() |
void |
onScreenTurnedOff() |
void |
onScreenTurnedOn() |
void |
onScreenTurningOn() |
boolean |
onSpacePressed() |
void |
onStartedGoingToSleep() |
void |
onStartedWakingUp() |
void |
onTouchSlopExceeded() |
void |
onTrackingStarted() |
void |
onTrackingStopped(boolean expand) |
void |
onUnlockHintStarted() |
void |
onUnlockMethodStateChanged() |
void |
onVoiceAssistHintStarted() |
protected void |
onWorkChallengeUnlocked() |
protected void |
performRemoveNotification(StatusBarNotification n,
boolean removeView) |
void |
postAnimateCollapsePanels() |
void |
postAnimateOpenPanels() |
void |
postQSRunnableDismissingKeyguard(Runnable runnable) |
void |
postStartActivityDismissingKeyguard(Intent intent,
int delay) |
void |
postStartActivityDismissingKeyguard(PendingIntent intent) |
void |
preventNextAnimation() |
protected void |
refreshLayout(int layoutDirection) |
void |
removeIcon(String slot) |
void |
removeNotification(String key,
NotificationListenerService.RankingMap ranking) |
void |
remQsTile(ComponentName tile) |
protected void |
repositionNavigationBar() |
void |
requestNotificationUpdate() |
void |
resetUserExpandedStates() |
protected void |
setAreThereNotifications() |
void |
setBarState(int state) |
void |
setBouncerShowing(boolean bouncerShowing) |
void |
setEmptyDragAmount(float amount) |
protected void |
setHeadsUpUser(int newUserId) |
void |
setIcon(String slot,
StatusBarIcon icon) |
void |
setImeWindowStatus(IBinder token,
int vis,
int backDisposition,
boolean showImeSwitcher) |
void |
setInteracting(int barWindow,
boolean interacting) |
void |
setKeyguardFadingAway(long startTime,
long delay,
long fadeoutDuration)
Notifies the status bar the Keyguard is fading away with the specified timings.
|
void |
setLightsOn(boolean on) |
void |
setPanelExpanded(boolean isExpanded) |
void |
setQsExpanded(boolean expanded) |
void |
setSystemUiVisibility(int vis,
int fullscreenStackVis,
int dockedStackVis,
int mask,
Rect fullscreenStackBounds,
Rect dockedStackBounds) |
void |
setWindowState(int window,
int state) |
protected void |
setZenMode(int mode) |
boolean |
shouldDisableNavbarGestures() |
void |
showKeyguard() |
void |
showScreenPinningRequest(int taskId) |
void |
showScreenPinningRequest(int taskId,
boolean allowCancel) |
void |
showTvPictureInPictureMenu() |
void |
start() |
void |
startActivity(Intent intent,
boolean dismissShade) |
void |
startActivity(Intent intent,
boolean dismissShade,
ActivityStarter.Callback callback) |
void |
startActivityDismissingKeyguard(Intent intent,
boolean onlyProvisioned,
boolean dismissShade) |
void |
startActivityDismissingKeyguard(Intent intent,
boolean onlyProvisioned,
boolean dismissShade,
ActivityStarter.Callback callback) |
protected void |
startKeyguard() |
void |
startLaunchTransitionTimeout()
Starts the timeout when we try to start the affordances on Keyguard.
|
protected boolean |
startWorkChallengeIfNecessary(int userId,
IntentSender intendSender,
String notificationKey) |
void |
stopWaitingForKeyguardExit() |
protected void |
toggleSplitScreenMode(int metricsDockAction,
int metricsUndockAction)
Toggle docking the app window
|
void |
topAppWindowChanged(boolean showMenu) |
protected void |
updateHeadsUp(String key,
com.android.systemui.statusbar.NotificationData.Entry entry,
boolean shouldPeek,
boolean alertAgain) |
protected void |
updateKeyguardState(boolean goingToFullShade,
boolean fromShadeLocked) |
void |
updateMediaMetaData(boolean metaDataChanged,
boolean allowEnterAnimation)
Refresh or remove lockscreen artwork from media metadata or the lockscreen wallpaper.
|
protected void |
updateNotificationRanking(NotificationListenerService.RankingMap ranking) |
protected void |
updateNotifications() |
void |
updateStackScrollerState(boolean goingToFullShade,
boolean fromShadeLocked) |
void |
userActivity() |
void |
userSwitched(int newUserId) |
static String |
viewInfo(View v) |
void |
wakeUpIfDozing(long time,
MotionEvent event) |
addNotificationViews, applyColorsAndBackgrounds, bindDismissListener, cancelPreloadingRecents, cancelPreloadRecentApps, clearNotificationEffects, createIcon, createNotificationViews, dismissKeyboardShortcuts, dismissKeyboardShortcutsMenu, dismissPopups, dismissPopups, getActivityOptions, getExposedGuts, getGroupManager, getNotificationLongClicker, getPackageManagerForUser, hideRecentApps, hideRecents, inflateViews, isBouncerShowing, isCurrentProfile, isDeviceInVrMode, isDeviceProvisioned, isKeyguardSecure, isLockscreenPublicMode, isMediaNotification, isNotificationForCurrentProfiles, logNotificationExpansion, notifyHeadsUpScreenOff, notifyUserAboutHiddenNotifications, onGutsClosed, onNotificationClear, onPanelLaidOut, onSecureLockScreen, overrideActivityPendingAppTransition, preloadRecentApps, preloadRecents, removeNotificationViews, sendCloseSystemWindows, setLockScreenAllowRemoteInput, setLockscreenPublicMode, setNotificationShown, setNotificationsShown, setShowLockscreenNotifications, shouldHideNotifications, shouldHideNotifications, shouldPeek, shouldPeek, shouldShowOnKeyguard, showAssistDisclosure, showNextAffiliatedTask, showPreviousAffiliatedTask, showRecentApps, showRecents, showRecentsNextAffiliatedTask, showRecentsPreviousAffiliatedTask, startAssist, startPendingIntentDismissingKeyguard, toggleKeyboardShortcuts, toggleKeyboardShortcutsMenu, toggleRecentApps, toggleRecents, toggleSplitScreen, updateNotification, updatePublicContentView, updateRowStates, updateVisibleToUser, userAllowsNotificationsInPublic, userAllowsPrivateNotificationsInPublic, visibilityChanged, workAroundBadLayerDrawableOpacity
getComponent, onBootCompleted, overrideNotificationAppName, putComponent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
startPendingIntentDismissingKeyguard
public static final boolean DEBUG
public static final boolean SPEW
public static final boolean DUMPTRUCK
public static final boolean DEBUG_GESTURES
public static final boolean DEBUG_MEDIA
public static final boolean DEBUG_MEDIA_FAKE_ARTWORK
public static final boolean DEBUG_WINDOW_STATE
public static final boolean CHATTY
public static final boolean SHOW_LOCKSCREEN_MEDIA_ARTWORK
public static final String ACTION_FAKE_ARTWORK
public static final int FADE_KEYGUARD_START_DELAY
public static final int FADE_KEYGUARD_DURATION
public static final int FADE_KEYGUARD_DURATION_PULSING
protected BatteryController mBatteryController
protected ZenModeController mZenModeController
protected UserSwitcherController mUserSwitcherController
protected KeyguardMonitor mKeyguardMonitor
protected LockscreenWallpaper mLockscreenWallpaper
protected StatusBarWindowView mStatusBarWindow
protected PhoneStatusBarView mStatusBarView
protected StatusBarWindowManager mStatusBarWindowManager
protected StatusBarIconController mIconController
protected NotificationPanelView mNotificationPanel
protected KeyguardStatusBarView mKeyguardStatusBar
protected ScrimController mScrimController
protected DozeScrimController mDozeScrimController
protected boolean mScrimSrcModeEnabled
public static final Interpolator ALPHA_IN
public static final Interpolator ALPHA_OUT
protected boolean mStartedGoingToSleep
public void start()
start
in class com.android.systemui.statusbar.BaseStatusBar
protected void createIconController()
protected PhoneStatusBarView makeStatusBarView()
protected BatteryController createBatteryController()
protected void onDensityOrFontScaleChanged()
onDensityOrFontScaleChanged
in class com.android.systemui.statusbar.BaseStatusBar
protected void createUserSwitcher()
protected void inflateStatusBarWindow(Context context)
protected void createNavigationBarView(Context context)
protected void inflateNavigationBarView(Context context)
protected void initSignalCluster(View containerView)
public void clearAllNotifications()
protected void setZenMode(int mode)
setZenMode
in class com.android.systemui.statusbar.BaseStatusBar
protected void startKeyguard()
protected View getStatusBarView()
getStatusBarView
in class com.android.systemui.statusbar.BaseStatusBar
public StatusBarWindowView getStatusBarWindow()
protected ViewGroup getBouncerContainer()
public int getStatusBarHeight()
protected void toggleSplitScreenMode(int metricsDockAction, int metricsUndockAction)
com.android.systemui.statusbar.BaseStatusBar
toggleSplitScreenMode
in class com.android.systemui.statusbar.BaseStatusBar
metricsDockAction
- the action to log when docking is successful, or -1 to not log
anything on successful dockingmetricsUndockAction
- the action to log when undocking, or -1 to not log anything when
undockingprotected void addNavigationBar()
protected void repositionNavigationBar()
public void setIcon(String slot, StatusBarIcon icon)
setIcon
in interface com.android.systemui.statusbar.CommandQueue.Callbacks
public void removeIcon(String slot)
removeIcon
in interface com.android.systemui.statusbar.CommandQueue.Callbacks
public UserHandle getCurrentUserHandle()
public void addNotification(StatusBarNotification notification, NotificationListenerService.RankingMap ranking, com.android.systemui.statusbar.NotificationData.Entry oldEntry)
addNotification
in class com.android.systemui.statusbar.BaseStatusBar
protected void updateNotificationRanking(NotificationListenerService.RankingMap ranking)
updateNotificationRanking
in class com.android.systemui.statusbar.BaseStatusBar
public void removeNotification(String key, NotificationListenerService.RankingMap ranking)
removeNotification
in class com.android.systemui.statusbar.BaseStatusBar
protected void performRemoveNotification(StatusBarNotification n, boolean removeView)
performRemoveNotification
in class com.android.systemui.statusbar.BaseStatusBar
protected void refreshLayout(int layoutDirection)
refreshLayout
in class com.android.systemui.statusbar.BaseStatusBar
public void addQsTile(ComponentName tile)
addQsTile
in interface com.android.systemui.statusbar.CommandQueue.Callbacks
public void remQsTile(ComponentName tile)
remQsTile
in interface com.android.systemui.statusbar.CommandQueue.Callbacks
public void clickTile(ComponentName tile)
clickTile
in interface com.android.systemui.statusbar.CommandQueue.Callbacks
public static boolean isTopLevelChild(com.android.systemui.statusbar.NotificationData.Entry entry)
protected void updateNotifications()
updateNotifications
in class com.android.systemui.statusbar.BaseStatusBar
public void requestNotificationUpdate()
protected void setAreThereNotifications()
setAreThereNotifications
in class com.android.systemui.statusbar.BaseStatusBar
public void findAndUpdateMediaNotifications()
public void updateMediaMetaData(boolean metaDataChanged, boolean allowEnterAnimation)
protected int adjustDisableFlags(int state)
public void disable(int state1, int state2, boolean animate)
disable
in interface com.android.systemui.statusbar.CommandQueue.Callbacks
protected com.android.systemui.statusbar.BaseStatusBar.H createHandler()
createHandler
in class com.android.systemui.statusbar.BaseStatusBar
public void startActivity(Intent intent, boolean dismissShade)
startActivity
in interface ActivityStarter
public void startActivity(Intent intent, boolean dismissShade, ActivityStarter.Callback callback)
startActivity
in interface ActivityStarter
public void preventNextAnimation()
preventNextAnimation
in interface ActivityStarter
public void setQsExpanded(boolean expanded)
public boolean isGoingToNotificationShade()
public boolean isQsExpanded()
public boolean isWakeUpComingFromTouch()
public boolean isFalsingThresholdNeeded()
public boolean isDozing()
public String getCurrentMediaNotificationKey()
getCurrentMediaNotificationKey
in interface com.android.systemui.statusbar.NotificationData.Environment
getCurrentMediaNotificationKey
in class com.android.systemui.statusbar.BaseStatusBar
public boolean isScrimSrcModeEnabled()
public void onKeyguardViewManagerStatesUpdated()
public void onUnlockMethodStateChanged()
onUnlockMethodStateChanged
in interface UnlockMethodCache.OnUnlockMethodChangedListener
public void onHeadsUpPinnedModeChanged(boolean inPinnedMode)
HeadsUpManager.OnHeadsUpChangedListener
onHeadsUpPinnedModeChanged
in interface HeadsUpManager.OnHeadsUpChangedListener
inPinnedMode
- whether there are any pinned heads-upspublic void onHeadsUpPinned(com.android.systemui.statusbar.ExpandableNotificationRow headsUp)
HeadsUpManager.OnHeadsUpChangedListener
onHeadsUpPinned
in interface HeadsUpManager.OnHeadsUpChangedListener
public void onHeadsUpUnPinned(com.android.systemui.statusbar.ExpandableNotificationRow headsUp)
HeadsUpManager.OnHeadsUpChangedListener
onHeadsUpUnPinned
in interface HeadsUpManager.OnHeadsUpChangedListener
public void onHeadsUpStateChanged(com.android.systemui.statusbar.NotificationData.Entry entry, boolean isHeadsUp)
HeadsUpManager.OnHeadsUpChangedListener
onHeadsUpStateChanged
in interface HeadsUpManager.OnHeadsUpChangedListener
entry
- the entry of the changed notificationisHeadsUp
- whether the notification is now a headsUp notificationprotected void updateHeadsUp(String key, com.android.systemui.statusbar.NotificationData.Entry entry, boolean shouldPeek, boolean alertAgain)
updateHeadsUp
in class com.android.systemui.statusbar.BaseStatusBar
protected void setHeadsUpUser(int newUserId)
setHeadsUpUser
in class com.android.systemui.statusbar.BaseStatusBar
public boolean isHeadsUp(String key)
protected boolean isSnoozedPackage(StatusBarNotification sbn)
isSnoozedPackage
in class com.android.systemui.statusbar.BaseStatusBar
public boolean isKeyguardCurrentlySecure()
public void setPanelExpanded(boolean isExpanded)
public void onScreenTurnedOff()
public void maybeEscalateHeadsUp()
com.android.systemui.statusbar.BaseStatusBar
maybeEscalateHeadsUp
in class com.android.systemui.statusbar.BaseStatusBar
public void handleSystemNavigationKey(int key)
handleSystemNavigationKey
in interface com.android.systemui.statusbar.CommandQueue.Callbacks
public void animateCollapsePanels()
public void postAnimateCollapsePanels()
public void postAnimateOpenPanels()
public void animateCollapsePanels(int flags)
animateCollapsePanels
in interface com.android.systemui.statusbar.CommandQueue.Callbacks
public void animateCollapsePanels(int flags, boolean force)
animateCollapsePanels
in class com.android.systemui.statusbar.BaseStatusBar
public void animateCollapsePanels(int flags, boolean force, boolean delayed)
animateCollapsePanels
in class com.android.systemui.statusbar.BaseStatusBar
public void animateCollapsePanels(int flags, boolean force, boolean delayed, float speedUpFactor)
public void animateExpandNotificationsPanel()
animateExpandNotificationsPanel
in interface com.android.systemui.statusbar.CommandQueue.Callbacks
public void animateExpandSettingsPanel(String subPanel)
animateExpandSettingsPanel
in interface com.android.systemui.statusbar.CommandQueue.Callbacks
public void animateCollapseQuickSettings()
public boolean interceptTouchEvent(MotionEvent event)
public com.android.systemui.statusbar.GestureRecorder getGestureRecorder()
public void setWindowState(int window, int state)
setWindowState
in interface com.android.systemui.statusbar.CommandQueue.Callbacks
public void buzzBeepBlinked()
buzzBeepBlinked
in interface com.android.systemui.statusbar.CommandQueue.Callbacks
public void notificationLightOff()
notificationLightOff
in interface com.android.systemui.statusbar.CommandQueue.Callbacks
public void notificationLightPulse(int argb, int onMillis, int offMillis)
notificationLightPulse
in interface com.android.systemui.statusbar.CommandQueue.Callbacks
public void setSystemUiVisibility(int vis, int fullscreenStackVis, int dockedStackVis, int mask, Rect fullscreenStackBounds, Rect dockedStackBounds)
setSystemUiVisibility
in interface com.android.systemui.statusbar.CommandQueue.Callbacks
public void setInteracting(int barWindow, boolean interacting)
setInteracting
in class com.android.systemui.statusbar.BaseStatusBar
public void setLightsOn(boolean on)
public void topAppWindowChanged(boolean showMenu)
topAppWindowChanged
in interface com.android.systemui.statusbar.CommandQueue.Callbacks
public void setImeWindowStatus(IBinder token, int vis, int backDisposition, boolean showImeSwitcher)
setImeWindowStatus
in interface com.android.systemui.statusbar.CommandQueue.Callbacks
public void dump(FileDescriptor fd, PrintWriter pw, String[] args)
public void createAndAddWindows()
com.android.systemui.statusbar.BaseStatusBar
createAndAddWindows
in class com.android.systemui.statusbar.BaseStatusBar
public void startActivityDismissingKeyguard(Intent intent, boolean onlyProvisioned, boolean dismissShade)
public void startActivityDismissingKeyguard(Intent intent, boolean onlyProvisioned, boolean dismissShade, ActivityStarter.Callback callback)
public void executeRunnableDismissingKeyguard(Runnable runnable, Runnable cancelAction, boolean dismissShade, boolean afterKeyguardGone, boolean deferred)
public void resetUserExpandedStates()
protected void dismissKeyguardThenExecute(KeyguardHostView.OnDismissAction action, boolean afterKeyguardGone)
com.android.systemui.statusbar.BaseStatusBar
dismissKeyguardThenExecute
in class com.android.systemui.statusbar.BaseStatusBar
action
- A dismiss action that is called if it's safe to start the activity.afterKeyguardGone
- Whether the action should be executed after the Keyguard is gone.public void dismissKeyguard()
protected void onConfigurationChanged(Configuration newConfig)
onConfigurationChanged
in class com.android.systemui.statusbar.BaseStatusBar
public void userSwitched(int newUserId)
userSwitched
in class com.android.systemui.statusbar.BaseStatusBar
protected void loadDimens()
protected void handleVisibleToUserChanged(boolean visibleToUser)
com.android.systemui.statusbar.BaseStatusBar
handleVisibleToUserChanged
in class com.android.systemui.statusbar.BaseStatusBar
public boolean shouldDisableNavbarGestures()
shouldDisableNavbarGestures
in class com.android.systemui.statusbar.BaseStatusBar
public void postQSRunnableDismissingKeyguard(Runnable runnable)
public void postStartActivityDismissingKeyguard(PendingIntent intent)
public void postStartActivityDismissingKeyguard(Intent intent, int delay)
public void destroy()
destroy
in class com.android.systemui.statusbar.BaseStatusBar
public void dispatchDemoCommand(String command, Bundle args)
dispatchDemoCommand
in interface DemoMode
public int getBarState()
StatusBarState
the status bar is in.public boolean isPanelFullyCollapsed()
isPanelFullyCollapsed
in class com.android.systemui.statusbar.BaseStatusBar
public void showKeyguard()
public boolean isCollapsing()
isCollapsing
in class com.android.systemui.statusbar.BaseStatusBar
public void addPostCollapseAction(Runnable r)
addPostCollapseAction
in class com.android.systemui.statusbar.BaseStatusBar
public boolean isInLaunchTransition()
public void fadeKeyguardAfterLaunchTransition(Runnable beforeFading, Runnable endRunnable)
beforeFading
- the runnable to be run when the circle is fully expanded and the fading
startsendRunnable
- the runnable to be run when the transition is donepublic void fadeKeyguardWhilePulsing()
public void animateKeyguardUnoccluding()
public void startLaunchTransitionTimeout()
public boolean hideKeyguard()
public long calculateGoingToFullShadeDelay()
public void keyguardGoingAway()
public void setKeyguardFadingAway(long startTime, long delay, long fadeoutDuration)
startTime
- the start time of the animations in uptime millisdelay
- the precalculated animation delay in milisecondsfadeoutDuration
- the duration of the exit animation, in millisecondspublic boolean isKeyguardFadingAway()
public void finishKeyguardFadingAway()
public void stopWaitingForKeyguardExit()
protected void updateKeyguardState(boolean goingToFullShade, boolean fromShadeLocked)
public void updateStackScrollerState(boolean goingToFullShade, boolean fromShadeLocked)
public void userActivity()
public boolean interceptMediaKey(KeyEvent event)
public boolean onMenuPressed()
public void endAffordanceLaunch()
public boolean onBackPressed()
public boolean onSpacePressed()
public void onActivated(com.android.systemui.statusbar.ActivatableNotificationView view)
onActivated
in interface com.android.systemui.statusbar.ActivatableNotificationView.OnActivatedListener
public ButtonDispatcher getHomeButton()
public void setBarState(int state)
state
- The StatusBarState
to set.public void onActivationReset(com.android.systemui.statusbar.ActivatableNotificationView view)
onActivationReset
in interface com.android.systemui.statusbar.ActivatableNotificationView.OnActivatedListener
public void onTrackingStarted()
public void onClosingFinished()
public void onUnlockHintStarted()
public void onHintFinished()
public void onCameraHintStarted()
public void onVoiceAssistHintStarted()
public void onPhoneHintStarted()
public void onTrackingStopped(boolean expand)
protected int getMaxKeyguardNotifications(boolean recompute)
getMaxKeyguardNotifications
in class com.android.systemui.statusbar.BaseStatusBar
recompute
- wheter the number should be recomputedpublic int getMaxKeyguardNotifications()
public NavigationBarView getNavigationBarView()
public boolean onDraggedDown(View startingChild, int dragLengthY)
onDraggedDown
in interface com.android.systemui.statusbar.DragDownHelper.DragDownCallback
public void onDragDownReset()
onDragDownReset
in interface com.android.systemui.statusbar.DragDownHelper.DragDownCallback
public void onCrossedThreshold(boolean above)
com.android.systemui.statusbar.DragDownHelper.DragDownCallback
onCrossedThreshold
in interface com.android.systemui.statusbar.DragDownHelper.DragDownCallback
above
- whether he dragged above itpublic void onTouchSlopExceeded()
onTouchSlopExceeded
in interface com.android.systemui.statusbar.DragDownHelper.DragDownCallback
public void setEmptyDragAmount(float amount)
setEmptyDragAmount
in interface com.android.systemui.statusbar.DragDownHelper.DragDownCallback
public void goToLockedShade(View expandView)
If secure without redaction or no security: Go to StatusBarState.SHADE_LOCKED
.
expandView
- The view to expand after going to the shade.public void onLockedNotificationImportanceChange(KeyguardHostView.OnDismissAction dismissAction)
onLockedNotificationImportanceChange
in class com.android.systemui.statusbar.BaseStatusBar
protected void onLockedRemoteInput(com.android.systemui.statusbar.ExpandableNotificationRow row, View clicked)
onLockedRemoteInput
in class com.android.systemui.statusbar.BaseStatusBar
protected boolean startWorkChallengeIfNecessary(int userId, IntentSender intendSender, String notificationKey)
startWorkChallengeIfNecessary
in class com.android.systemui.statusbar.BaseStatusBar
protected void onLockedWorkRemoteInput(int userId, com.android.systemui.statusbar.ExpandableNotificationRow row, View clicked)
onLockedWorkRemoteInput
in class com.android.systemui.statusbar.BaseStatusBar
protected void onWorkChallengeUnlocked()
onWorkChallengeUnlocked
in class com.android.systemui.statusbar.BaseStatusBar
public void onExpandClicked(com.android.systemui.statusbar.NotificationData.Entry clickedEntry, boolean nowExpanded)
onExpandClicked
in interface com.android.systemui.statusbar.ExpandableNotificationRow.OnExpandClickListener
onExpandClicked
in class com.android.systemui.statusbar.BaseStatusBar
public void goToKeyguard()
StatusBarState.SHADE_LOCKED
.public long getKeyguardFadingAwayDelay()
public long getKeyguardFadingAwayDuration()
public void setBouncerShowing(boolean bouncerShowing)
setBouncerShowing
in class com.android.systemui.statusbar.BaseStatusBar
public void onStartedGoingToSleep()
public void onFinishedGoingToSleep()
public void onStartedWakingUp()
public void onScreenTurningOn()
public void onScreenTurnedOn()
public void showScreenPinningRequest(int taskId)
showScreenPinningRequest
in interface com.android.systemui.statusbar.CommandQueue.Callbacks
public void showScreenPinningRequest(int taskId, boolean allowCancel)
public boolean hasActiveNotifications()
public void wakeUpIfDozing(long time, MotionEvent event)
public void appTransitionPending()
appTransitionPending
in interface com.android.systemui.statusbar.CommandQueue.Callbacks
public void appTransitionCancelled()
appTransitionCancelled
in interface com.android.systemui.statusbar.CommandQueue.Callbacks
public void appTransitionStarting(long startTime, long duration)
appTransitionStarting
in interface com.android.systemui.statusbar.CommandQueue.Callbacks
public void appTransitionFinished()
appTransitionFinished
in interface com.android.systemui.statusbar.CommandQueue.Callbacks
public void onCameraLaunchGestureDetected(int source)
onCameraLaunchGestureDetected
in interface com.android.systemui.statusbar.CommandQueue.Callbacks
public void showTvPictureInPictureMenu()
showTvPictureInPictureMenu
in interface com.android.systemui.statusbar.CommandQueue.Callbacks
public void notifyFpAuthModeChanged()