Methods Summary |
---|
public void | addPanel(PanelView pv)
super.addPanel(pv);
if (pv.getId() == R.id.notification_panel) {
mNotificationPanel = pv;
}
|
public BarTransitions | getBarTransitions()
return mBarTransitions;
|
public void | onAllPanelsCollapsed()
super.onAllPanelsCollapsed();
// Close the status bar in the next frame so we can show the end of the animation.
postOnAnimation(new Runnable() {
@Override
public void run() {
mBar.makeExpandedInvisible();
}
});
mLastFullyOpenedPanel = null;
|
public void | onClosingFinished()
super.onClosingFinished();
mBar.onClosingFinished();
|
public void | onExpandingFinished()
super.onExpandingFinished();
mScrimController.onExpandingFinished();
|
public void | onFinishInflate()
mBarTransitions.init();
|
public boolean | onInterceptTouchEvent(android.view.MotionEvent event)
return mBar.interceptTouchEvent(event) || super.onInterceptTouchEvent(event);
|
public void | onPanelFullyOpened(PanelView openPanel)
super.onPanelFullyOpened(openPanel);
if (openPanel != mLastFullyOpenedPanel) {
openPanel.sendAccessibilityEvent(AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED);
}
mLastFullyOpenedPanel = openPanel;
|
public void | onPanelPeeked()
super.onPanelPeeked();
mBar.makeExpandedVisible(false);
|
public boolean | onRequestSendAccessibilityEvent(android.view.View child, android.view.accessibility.AccessibilityEvent event)
if (super.onRequestSendAccessibilityEvent(child, event)) {
// The status bar is very small so augment the view that the user is touching
// with the content of the status bar a whole. This way an accessibility service
// may announce the current item as well as the entire content if appropriate.
AccessibilityEvent record = AccessibilityEvent.obtain();
onInitializeAccessibilityEvent(record);
dispatchPopulateAccessibilityEvent(record);
event.appendRecord(record);
return true;
}
return false;
|
public boolean | onTouchEvent(android.view.MotionEvent event)
boolean barConsumedEvent = mBar.interceptTouchEvent(event);
if (DEBUG_GESTURES) {
if (event.getActionMasked() != MotionEvent.ACTION_MOVE) {
EventLog.writeEvent(EventLogTags.SYSUI_PANELBAR_TOUCH,
event.getActionMasked(), (int) event.getX(), (int) event.getY(),
barConsumedEvent ? 1 : 0);
}
}
return barConsumedEvent || super.onTouchEvent(event);
|
public void | onTrackingStarted(PanelView panel)
super.onTrackingStarted(panel);
mBar.onTrackingStarted();
mScrimController.onTrackingStarted();
|
public void | onTrackingStopped(PanelView panel, boolean expand)
super.onTrackingStopped(panel, expand);
mBar.onTrackingStopped(expand);
|
public void | panelExpansionChanged(PanelView panel, float frac, boolean expanded)
super.panelExpansionChanged(panel, frac, expanded);
mScrimController.setPanelExpansion(frac);
mBar.updateCarrierLabelVisibility(false);
|
public boolean | panelsEnabled()
return mBar.panelsEnabled();
|
public PanelView | selectPanelForTouch(android.view.MotionEvent touch)
// No double swiping. If either panel is open, nothing else can be pulled down.
return mNotificationPanel.getExpandedHeight() > 0
? null
: mNotificationPanel;
|
public void | setBar(PhoneStatusBar bar)
mBar = bar;
|
public void | setScrimController(ScrimController scrimController)
mScrimController = scrimController;
|