public class NotificationPanelView extends PanelView implements com.android.systemui.statusbar.ExpandableView.OnHeightChangedListener, View.OnClickListener, NotificationStackScrollLayout.OnOverscrollTopChangedListener, KeyguardAffordanceHelper.Callback, NotificationStackScrollLayout.OnEmptySpaceClickListener, HeadsUpManager.OnHeadsUpChangedListener
FrameLayout.LayoutParams
ViewGroup.MarginLayoutParams, ViewGroup.OnHierarchyChangeListener
View.AccessibilityDelegate, View.BaseSavedState, View.DragShadowBuilder, View.DrawingCacheQuality, View.FindViewFlags, View.FocusableMode, View.FocusDirection, View.FocusRealDirection, View.LayoutDir, View.MeasureSpec, View.OnApplyWindowInsetsListener, View.OnAttachStateChangeListener, View.OnClickListener, View.OnContextClickListener, View.OnCreateContextMenuListener, View.OnDragListener, View.OnFocusChangeListener, View.OnGenericMotionListener, View.OnHoverListener, View.OnKeyListener, View.OnLayoutChangeListener, View.OnLongClickListener, View.OnScrollChangeListener, View.OnSystemUiVisibilityChangeListener, View.OnTouchListener, View.ResolvedLayoutDir, View.ScrollBarStyle, View.ScrollIndicators, View.TextAlignment, View.Visibility
Modifier and Type | Field and Description |
---|---|
static long |
DOZE_ANIMATION_DURATION |
protected NotificationsQuickSettingsContainer |
mNotificationContainerParent |
protected NotificationStackScrollLayout |
mNotificationStackScroller |
protected QSContainer |
mQsContainer |
protected boolean |
mQsExpansionEnabled |
protected float |
mQsExpansionHeight |
protected int |
mQsMaxExpansionHeight |
protected int |
mQsMinExpansionHeight |
mExpandedHeight, mExpanding, mHeadsUpManager, mHintAnimationRunning, mKeyguardBottomArea, mPostCollapseRunnable, mStatusBar, mTouchSlop, mTracking, TAG
CLIP_TO_PADDING_MASK, DEBUG_DRAW, FLAG_DISALLOW_INTERCEPT, FLAG_SUPPORT_STATIC_TRANSFORMATIONS, FLAG_USE_CHILD_DRAWING_ORDER, FOCUS_AFTER_DESCENDANTS, FOCUS_BEFORE_DESCENDANTS, FOCUS_BLOCK_DESCENDANTS, LAYOUT_MODE_CLIP_BOUNDS, LAYOUT_MODE_DEFAULT, LAYOUT_MODE_OPTICAL_BOUNDS, mDisappearingChildren, mGroupFlags, mOnHierarchyChangeListener, mPersistentDrawingCache, PERSISTENT_ALL_CACHES, PERSISTENT_ANIMATION_CACHE, PERSISTENT_NO_CACHE, PERSISTENT_SCROLLING_CACHE
ACCESSIBILITY_CURSOR_POSITION_UNDEFINED, ACCESSIBILITY_LIVE_REGION_ASSERTIVE, ACCESSIBILITY_LIVE_REGION_NONE, ACCESSIBILITY_LIVE_REGION_POLITE, ALPHA, DEBUG_LAYOUT_PROPERTY, DRAG_FLAG_GLOBAL, DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION, DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION, DRAG_FLAG_GLOBAL_URI_READ, DRAG_FLAG_GLOBAL_URI_WRITE, DRAG_FLAG_OPAQUE, DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, EMPTY_STATE_SET, ENABLED_FOCUSED_SELECTED_STATE_SET, ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_FOCUSED_STATE_SET, ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, ENABLED_SELECTED_STATE_SET, ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_STATE_SET, ENABLED_WINDOW_FOCUSED_STATE_SET, FIND_VIEWS_WITH_ACCESSIBILITY_NODE_PROVIDERS, FIND_VIEWS_WITH_CONTENT_DESCRIPTION, FIND_VIEWS_WITH_TEXT, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, FOCUSABLES_ALL, FOCUSABLES_TOUCH_MODE, FOCUSED_SELECTED_STATE_SET, FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, FOCUSED_STATE_SET, FOCUSED_WINDOW_FOCUSED_STATE_SET, GONE, HAPTIC_FEEDBACK_ENABLED, IMPORTANT_FOR_ACCESSIBILITY_AUTO, IMPORTANT_FOR_ACCESSIBILITY_NO, IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS, IMPORTANT_FOR_ACCESSIBILITY_YES, INVISIBLE, KEEP_SCREEN_ON, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, LAYER_TYPE_SOFTWARE, LAYOUT_DIRECTION_INHERIT, LAYOUT_DIRECTION_LOCALE, LAYOUT_DIRECTION_LTR, LAYOUT_DIRECTION_RTL, LAYOUT_DIRECTION_UNDEFINED, mAttributes, mBottom, mCachingFailed, mContext, mCurrentAnimation, mDebugViewAttributes, MEASURED_HEIGHT_STATE_SHIFT, MEASURED_SIZE_MASK, MEASURED_STATE_MASK, MEASURED_STATE_TOO_SMALL, mInputEventConsistencyVerifier, mLayoutParams, mLeft, mPaddingBottom, mPaddingLeft, mPaddingRight, mPaddingTop, mParent, mRight, mScrollX, mScrollY, mTag, mTop, mUserPaddingBottom, mUserPaddingLeft, mUserPaddingRight, NAVIGATION_BAR_TRANSIENT, NAVIGATION_BAR_TRANSLUCENT, NAVIGATION_BAR_TRANSPARENT, NAVIGATION_BAR_UNHIDE, NO_ID, OVER_SCROLL_ALWAYS, OVER_SCROLL_IF_CONTENT_SCROLLS, OVER_SCROLL_NEVER, PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET, PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_SELECTED_STATE_SET, PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_STATE_SET, PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_SELECTED_STATE_SET, PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_STATE_SET, PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_SELECTED_STATE_SET, PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_STATE_SET, PRESSED_WINDOW_FOCUSED_STATE_SET, PUBLIC_STATUS_BAR_VISIBILITY_MASK, ROTATION, ROTATION_X, ROTATION_Y, SCALE_X, SCALE_Y, SCREEN_STATE_OFF, SCREEN_STATE_ON, SCROLL_AXIS_HORIZONTAL, SCROLL_AXIS_NONE, SCROLL_AXIS_VERTICAL, SCROLL_INDICATOR_BOTTOM, SCROLL_INDICATOR_END, SCROLL_INDICATOR_LEFT, SCROLL_INDICATOR_RIGHT, SCROLL_INDICATOR_START, SCROLL_INDICATOR_TOP, SCROLLBAR_POSITION_DEFAULT, SCROLLBAR_POSITION_LEFT, SCROLLBAR_POSITION_RIGHT, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SELECTED_STATE_SET, SELECTED_WINDOW_FOCUSED_STATE_SET, SOUND_EFFECTS_ENABLED, sPreserveMarginParamsInLayoutParamConversion, STATUS_BAR_DISABLE_BACK, STATUS_BAR_DISABLE_CLOCK, STATUS_BAR_DISABLE_EXPAND, STATUS_BAR_DISABLE_HOME, STATUS_BAR_DISABLE_NOTIFICATION_ALERTS, STATUS_BAR_DISABLE_NOTIFICATION_ICONS, STATUS_BAR_DISABLE_NOTIFICATION_TICKER, STATUS_BAR_DISABLE_RECENT, STATUS_BAR_DISABLE_SEARCH, STATUS_BAR_DISABLE_SYSTEM_INFO, STATUS_BAR_HIDDEN, STATUS_BAR_TRANSIENT, STATUS_BAR_TRANSLUCENT, STATUS_BAR_TRANSPARENT, STATUS_BAR_UNHIDE, STATUS_BAR_VISIBLE, SYSTEM_UI_CLEARABLE_FLAGS, SYSTEM_UI_FLAG_FULLSCREEN, SYSTEM_UI_FLAG_HIDE_NAVIGATION, SYSTEM_UI_FLAG_IMMERSIVE, SYSTEM_UI_FLAG_IMMERSIVE_STICKY, SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN, SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LAYOUT_STABLE, SYSTEM_UI_FLAG_LIGHT_STATUS_BAR, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_VISIBLE, SYSTEM_UI_LAYOUT_FLAGS, SYSTEM_UI_TRANSPARENT, TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_GRAVITY, TEXT_ALIGNMENT_INHERIT, TEXT_ALIGNMENT_TEXT_END, TEXT_ALIGNMENT_TEXT_START, TEXT_ALIGNMENT_VIEW_END, TEXT_ALIGNMENT_VIEW_START, TEXT_DIRECTION_ANY_RTL, TEXT_DIRECTION_FIRST_STRONG, TEXT_DIRECTION_FIRST_STRONG_LTR, TEXT_DIRECTION_FIRST_STRONG_RTL, TEXT_DIRECTION_INHERIT, TEXT_DIRECTION_LOCALE, TEXT_DIRECTION_LTR, TEXT_DIRECTION_RTL, TRANSLATION_X, TRANSLATION_Y, TRANSLATION_Z, VIEW_LOG_TAG, VISIBLE, WINDOW_FOCUSED_STATE_SET, X, Y, Z
Constructor and Description |
---|
NotificationPanelView(Context context,
AttributeSet attrs) |
Modifier and Type | Method and Description |
---|---|
void |
animateCloseQs() |
void |
animateToFullShade(long delay) |
boolean |
canCameraGestureBeLaunched(boolean keyguardIsShowing)
Whether the camera application can be launched for the camera launch gesture.
|
void |
clearNotificationEffects() |
void |
closeQs() |
void |
closeQsDetail() |
int |
computeMaxKeyguardNotifications(int maximum) |
protected void |
dispatchDraw(Canvas canvas)
Called by draw to draw the child views.
|
boolean |
dispatchPopulateAccessibilityEventInternal(AccessibilityEvent event) |
void |
expand(boolean animate) |
void |
expandWithQs() |
void |
fling(float vel,
boolean expand) |
protected boolean |
flingExpands(float vel,
float vectorVel,
float x,
float y) |
void |
flingSettings(float vel,
boolean expand) |
protected void |
flingToHeight(float vel,
boolean expand,
float target,
float collapseSpeedUpFactor,
boolean expandBecauseOfFalsing) |
void |
flingTopOverscroll(float velocity,
boolean open)
Notify a listener that the scroller wants to escape from the scrolling motion and
start a fling animation to the expanded or collapsed overscroll view (e.g expand the QS)
|
protected boolean |
fullyExpandedClearAllVisible() |
float |
getAffordanceFalsingFactor() |
protected float |
getCannedFlingDurationFactor() |
com.android.systemui.statusbar.KeyguardAffordanceView |
getCenterIcon() |
protected int |
getClearAllHeight() |
protected float |
getHeaderTranslation() |
com.android.systemui.statusbar.KeyguardAffordanceView |
getLeftIcon() |
View |
getLeftPreview() |
protected int |
getMaxPanelHeight()
This returns the maximum height of the panel.
|
float |
getMaxTranslationDistance() |
protected float |
getOverExpansionAmount() |
protected float |
getOverExpansionPixels() |
protected float |
getPeekHeight() |
com.android.systemui.statusbar.KeyguardAffordanceView |
getRightIcon() |
View |
getRightPreview() |
protected boolean |
hasConflictingGestures() |
boolean |
hasOverlappingRendering()
Returns whether this View has content which overlaps.
|
protected boolean |
isClearAllVisible() |
boolean |
isDozing() |
boolean |
isExpanding() |
protected boolean |
isInContentBounds(float x,
float y) |
boolean |
isInSettings() |
boolean |
isLaunchTransitionFinished() |
boolean |
isLaunchTransitionRunning() |
protected boolean |
isPanelVisibleBecauseOfHeadsUp() |
boolean |
isQsDetailShowing() |
boolean |
isQsExpanded() |
protected boolean |
isScrolledToBottom() |
protected boolean |
isTrackingBlocked() |
void |
launchCamera(boolean animate,
int source) |
protected void |
loadDimens() |
boolean |
needsAntiFalsing() |
void |
onAffordanceLaunchEnded() |
void |
onAnimationToSideEnded()
Notifies the callback the animation to a side page has ended.
|
void |
onAnimationToSideStarted(boolean rightPage,
float translation,
float vel)
Notifies the callback when an animation to a side page was started.
|
WindowInsets |
onApplyWindowInsets(WindowInsets insets)
Called when the view should apply
WindowInsets according to its internal policy. |
void |
onClick(View v)
Called when a view has been clicked.
|
protected void |
onClosingFinished() |
protected void |
onConfigurationChanged(Configuration newConfig)
Called when the current configuration of the resources being used
by the application have changed.
|
void |
onEmptySpaceClicked(float x,
float y) |
protected void |
onExpandingFinished() |
protected void |
onExpandingStarted() |
protected void |
onFinishInflate()
Finalize inflating a view from XML.
|
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 |
onHeightChanged(com.android.systemui.statusbar.ExpandableView view,
boolean needsAnimation) |
protected void |
onHeightUpdated(float expandedHeight) |
void |
onIconClicked(boolean rightIcon) |
boolean |
onInterceptTouchEvent(MotionEvent event)
Implement this method to intercept all touch screen motion events.
|
protected void |
onLayout(boolean changed,
int left,
int top,
int right,
int bottom)
Called from layout when this view should
assign a size and position to each of its children.
|
protected boolean |
onMiddleClicked() |
void |
onOverscrollTopChanged(float amount,
boolean isRubberbanded)
Notifies a listener that the overscroll has changed.
|
void |
onQsHeightChanged() |
void |
onReset(com.android.systemui.statusbar.ExpandableView view)
Called when the view is reset and therefore the height will change abruptly
|
void |
onRtlPropertiesChanged(int layoutDirection)
Called when any RTL property (layout direction or text direction or text alignment) has
been changed.
|
void |
onScreenTurningOn() |
void |
onSwipingAborted() |
void |
onSwipingStarted(boolean rightIcon) |
boolean |
onTouchEvent(MotionEvent event)
Implement this method to handle touch screen motion events.
|
protected void |
onTrackingStarted() |
protected void |
onTrackingStopped(boolean expand) |
void |
openQs() |
protected void |
requestScrollerTopPaddingUpdate(boolean animate) |
void |
resetViews() |
void |
setAlpha(float alpha)
Sets the opacity of the view to a value from 0 to 1, where 0 means the view is
completely transparent and 1 means the view is completely opaque.
|
void |
setBarState(int statusBarState,
boolean keyguardFadingAway,
boolean goingToFullShade) |
void |
setDozing(boolean dozing,
boolean animate) |
void |
setEmptyDragAmount(float amount) |
void |
setGroupManager(NotificationGroupManager groupManager) |
void |
setHeadsUpManager(HeadsUpManager headsUpManager) |
void |
setKeyguardUserSwitcher(KeyguardUserSwitcher keyguardUserSwitcher) |
void |
setLaunchTransitionEndRunnable(Runnable r) |
protected void |
setOverExpansion(float overExpansion,
boolean isPixels) |
void |
setPanelScrimMinFraction(float minFraction) |
void |
setQsExpansionEnabled(boolean qsExpansionEnabled) |
void |
setQsScrimEnabled(boolean qsScrimEnabled) |
void |
setShadeEmpty(boolean shadeEmpty) |
void |
setStatusBar(PhoneStatusBar bar) |
void |
setTrackingHeadsUp(boolean tracking) |
protected void |
setVerticalPanelTranslation(float translation) |
boolean |
shouldDelayChildPressedState()
Return true if the pressed state should be delayed for children or descendants of this
ViewGroup.
|
protected boolean |
shouldGestureIgnoreXTouchSlop(float x,
float y) |
protected void |
startUnlockHintAnimation() |
protected void |
updateExpandedHeight(float expandedHeight) |
protected void |
updateQsExpansion() |
void |
updateResources() |
protected void |
updateVerticalPanelPosition(float x)
Updates the vertical position of the panel so it is positioned closer to the touch
responsible for opening the panel.
|
cancelHeightAnimator, cancelPeek, collapse, dump, fling, fling, getContentHeight, getExpandedFraction, getExpandedHeight, getName, instantCollapse, isCollapsing, isFullyCollapsed, isFullyExpanded, isTracking, notifyBarPanelExpansionChanged, notifyExpandingFinished, onAttachedToWindow, onEmptySpaceClick, requestPanelHeightUpdate, setBar, setExpandedFraction, setExpandedHeight, setExpandedHeightInternal, setTouchDisabled, startExpandMotion
checkLayoutParams, encodeProperties, generateDefaultLayoutParams, generateLayoutParams, generateLayoutParams, getAccessibilityClassName, getConsiderGoneChildrenWhenMeasuring, getMeasureAllChildren, onMeasure, setForegroundGravity, setMeasureAllChildren
addChildrenForAccessibility, addFocusables, addStatesFromChildren, addTouchables, addTransientView, addView, addView, addView, addView, addView, addViewInLayout, addViewInLayout, attachLayoutAnimationParameters, attachViewToParent, bringChildToFront, buildTouchDispatchChildList, canAnimate, captureTransitioningViews, childDrawableStateChanged, childHasTransientStateChanged, cleanupLayoutState, clearChildFocus, clearDisappearingChildren, clearFocus, createSnapshot, damageChild, damageChildDeferred, damageChildInParent, debug, detachAllViewsFromParent, detachViewFromParent, detachViewFromParent, detachViewsFromParent, dispatchActivityResult, dispatchApplyWindowInsets, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchDrawableHotspotChanged, dispatchFinishTemporaryDetach, dispatchFreezeSelfOnly, dispatchGenericFocusedEvent, dispatchGenericPointerEvent, dispatchGetDisplayList, dispatchHoverEvent, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchProvideStructure, dispatchRestoreInstanceState, dispatchSaveInstanceState, dispatchSetActivated, dispatchSetPressed, dispatchSetSelected, dispatchStartTemporaryDetach, dispatchSystemUiVisibilityChanged, dispatchThawSelfOnly, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchVisibilityChanged, dispatchWindowFocusChanged, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, drawableStateChanged, drawChild, endViewTransition, findFocus, findNamedViews, findViewByAccessibilityIdTraversal, findViewByPredicateTraversal, findViewsWithText, findViewTraversal, findViewWithTagTraversal, focusableViewAvailable, focusSearch, gatherTransparentRegion, getChildAt, getChildCount, getChildDrawingOrder, getChildMeasureSpec, getChildStaticTransformation, getChildVisibleRect, getChildVisibleRect, getClipChildren, getClipToPadding, getDescendantFocusability, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getLayoutMode, getLayoutTransition, getNestedScrollAxes, getOverlay, getPersistentDrawingCache, getTouchscreenBlocksFocus, getTransientView, getTransientViewCount, getTransientViewIndex, hasFocus, hasFocusable, hasHoveredChild, hasTransientState, indexOfChild, internalSetPadding, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isChildrenDrawingOrderEnabled, isChildrenDrawnWithCacheEnabled, isLayoutSuppressed, isMotionEventSplittingEnabled, isShowingContextMenuWithCoords, isTransformedTouchPointInView, isTransitionGroup, jumpDrawablesToCurrentState, layout, makeOptionalFitsSystemWindows, measureChild, measureChildren, measureChildWithMargins, notifySubtreeAccessibilityStateChanged, offsetChildrenTopAndBottom, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onChildVisibilityChanged, onCreateDrawableState, onDebugDraw, onDebugDrawMargins, onDetachedFromWindow, onInitializeAccessibilityNodeInfoInternal, onInterceptHoverEvent, onNestedFling, onNestedPreFling, onNestedPrePerformAccessibilityAction, onNestedPreScroll, onNestedScroll, onNestedScrollAccepted, onRequestFocusInDescendants, onRequestSendAccessibilityEvent, onRequestSendAccessibilityEventInternal, onResolvePointerIcon, onSetLayoutParams, onStartNestedScroll, onStopNestedScroll, onViewAdded, onViewRemoved, recomputeViewAttributes, removeAllViews, removeAllViewsInLayout, removeDetachedView, removeTransientView, removeView, removeViewAt, removeViewInLayout, removeViews, removeViewsInLayout, requestChildFocus, requestChildRectangleOnScreen, requestDisallowInterceptTouchEvent, requestFocus, requestSendAccessibilityEvent, requestTransitionStart, requestTransparentRegion, resetResolvedDrawables, resetResolvedLayoutDirection, resetResolvedPadding, resetResolvedTextAlignment, resetResolvedTextDirection, resolveDrawables, resolveLayoutDirection, resolveLayoutParams, resolvePadding, resolveRtlPropertiesIfNeeded, resolveTextAlignment, resolveTextDirection, scheduleLayoutAnimation, setAddStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setChildrenDrawingCacheEnabled, setChildrenDrawingOrderEnabled, setChildrenDrawnWithCacheEnabled, setClipChildren, setClipToPadding, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setLayoutMode, setLayoutTransition, setMotionEventSplittingEnabled, setOnHierarchyChangeListener, setPersistentDrawingCache, setStaticTransformationsEnabled, setTouchscreenBlocksFocus, setTransitionGroup, showContextMenuForChild, showContextMenuForChild, startActionModeForChild, startActionModeForChild, startLayoutAnimation, startViewTransition, suppressLayout, transformPointToViewLocal, updateViewLayout
addFocusables, addFrameMetricsListener, addOnAttachStateChangeListener, addOnLayoutChangeListener, animate, announceForAccessibility, applyDrawableToTransparentRegion, awakenScrollBars, awakenScrollBars, awakenScrollBars, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelDragAndDrop, cancelLongPress, cancelPendingInputEvents, canHaveDisplayList, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, checkInputConnectionProxy, clearAccessibilityFocus, clearAnimation, combineMeasuredStates, computeFitSystemWindows, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeOpaqueFlags, computeScroll, computeSystemWindowInsets, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, createAccessibilityNodeInfo, createAccessibilityNodeInfoInternal, createContextMenu, damageInParent, debug, debugIndent, destroyDrawingCache, destroyHardwareResources, dispatchGenericMotionEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, dispatchPointerEvent, dispatchPopulateAccessibilityEvent, draw, drawableHotspotChanged, encode, findViewById, findViewByPredicate, findViewByPredicateInsideOut, findViewWithTag, fitsSystemWindows, fitSystemWindows, focusSearch, forceHasOverlappingRendering, forceLayout, generateViewId, getAccessibilityDelegate, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAccessibilitySelectionEnd, getAccessibilitySelectionStart, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, getAccessibilityViewId, getAccessibilityWindowId, getAlpha, getAnimation, getApplicationWindowToken, getBackground, getBackgroundTintList, getBackgroundTintMode, getBaseline, getBottom, getBottomFadingEdgeStrength, getBottomPaddingOffset, getBoundsOnScreen, getBoundsOnScreen, getCameraDistance, getClipBounds, getClipBounds, getClipToOutline, getContentDescription, getContext, getContextMenuInfo, getDefaultSize, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getFadeHeight, getFadeTop, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintList, getForegroundTintMode, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHardwareRenderer, getHasOverlappingRendering, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, getHorizontalScrollFactor, getHotspotBounds, getId, getImportantForAccessibility, getInverseMatrix, getIterableTextForAccessibility, getIteratorForGranularity, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLeftFadingEdgeStrength, getLeftPaddingOffset, getLocalVisibleRect, getLocationInSurface, getLocationInWindow, getLocationOnScreen, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOpticalInsets, getOutlineProvider, getOutsets, getOverScrollMode, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getPointerIcon, getRawLayoutDirection, getRawTextAlignment, getRawTextDirection, getResources, getRevealOnFocusHint, getRight, getRightFadingEdgeStrength, getRightPaddingOffset, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getStateListAnimator, getSuggestedMinimumHeight, getSuggestedMinimumWidth, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTop, getTopFadingEdgeStrength, getTopPaddingOffset, getTouchables, getTouchDelegate, getTransitionAlpha, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarWidth, getVerticalScrollFactor, getViewRootImpl, getViewTreeObserver, getVisibility, getWidth, getWindowAttachCount, getWindowDisplayFrame, getWindowId, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, handleScrollBarDragging, hasNestedScrollingParent, hasOnClickListeners, hasOpaqueScrollbars, hasShadow, hasWindowFocus, includeForAccessibility, inflate, initializeFadingEdge, initializeFadingEdgeInternal, initializeScrollbars, initializeScrollbarsInternal, invalidate, invalidate, invalidate, invalidateDrawable, invalidateOutline, invalidateParentCaches, invalidateParentIfNeeded, invalidateParentIfNeededAndWasQuickRejected, isAccessibilityFocused, isAccessibilitySelectionExtendable, isActionableForAccessibility, isActivated, isAssistBlocked, isAttachedToWindow, isClickable, isContextClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isForegroundInsidePadding, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isInEditMode, isInLayout, isInScrollingContainer, isInTouchMode, isLaidOut, isLayoutDirectionInherited, isLayoutDirectionResolved, isLayoutModeOptical, isLayoutRequested, isLayoutRtl, isLongClickable, isNestedScrollingEnabled, isOpaque, isPaddingOffsetRequired, isPaddingRelative, isPressed, isRootNamespace, isSaveEnabled, isSaveFromParentEnabled, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShown, isSoundEffectsEnabled, isTemporarilyDetached, isTextAlignmentInherited, isTextAlignmentResolved, isTextDirectionInherited, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, isVerticalScrollBarHidden, isVisibleToUser, isVisibleToUser, measure, mergeDrawableStates, notifySubtreeAccessibilityStateChangedIfNeeded, notifyViewAccessibilityStateChangedIfNeeded, offsetLeftAndRight, offsetTopAndBottom, onActivityResult, onAnimationEnd, onAnimationStart, onCancelPendingInputEvents, onCheckIsTextEditor, onCloseSystemDialogs, onCreateContextMenu, onCreateInputConnection, onDetachedFromWindowInternal, onDisplayHint, onDragEvent, onDraw, onDrawForeground, onDrawHorizontalScrollBar, onDrawScrollBars, onDrawVerticalScrollBar, onFilterTouchEventForSecurity, onFinishTemporaryDetach, onFocusChanged, onFocusLost, onGenericMotionEvent, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityEventInternal, onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onOverScrolled, onPopulateAccessibilityEvent, onPopulateAccessibilityEventInternal, onProvideStructure, onProvideVirtualStructure, onRenderNodeDetached, onResolveDrawables, onRestoreInstanceState, onSaveInstanceState, onScreenStateChanged, onScrollChanged, onSetAlpha, onSizeChanged, onStartTemporaryDetach, onTrackballEvent, onVisibilityAggregated, onVisibilityChanged, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, onWindowVisibilityChanged, outputDirtyFlags, overScrollBy, performAccessibilityAction, performAccessibilityActionInternal, performButtonActionOnTouchDown, performClick, performContextClick, performContextClick, performHapticFeedback, performHapticFeedback, performLongClick, performLongClick, playSoundEffect, pointInView, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, recomputePadding, refreshDrawableState, removeCallbacks, removeFrameMetricsListener, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, requestAccessibilityFocus, requestApplyInsets, requestFitSystemWindows, requestFocus, requestFocus, requestFocusFromTouch, requestKeyboardShortcuts, requestLayout, requestRectangleOnScreen, requestRectangleOnScreen, requestUnbufferedDispatch, resetPaddingToInitialValues, resetRtlProperties, resolveSize, resolveSizeAndState, restoreHierarchyState, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventInternal, sendAccessibilityEventUnchecked, sendAccessibilityEventUncheckedInternal, setAccessibilityDelegate, setAccessibilityLiveRegion, setAccessibilitySelection, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAnimation, setAnimationMatrix, setAssistBlocked, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBackgroundTintList, setBackgroundTintMode, setBottom, setCameraDistance, setClickable, setClipBounds, setClipToOutline, setContentDescription, setContextClickable, setDisabledSystemUiVisibility, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusableInTouchMode, setForeground, setForegroundTintList, setForegroundTintMode, setFrame, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHovered, setId, setImportantForAccessibility, setIsRootNamespace, setKeepScreenOn, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLeftTopRightBottom, setLongClickable, setMeasuredDimension, setMinimumHeight, setMinimumWidth, setNestedScrollingEnabled, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnClickListener, setOnContextClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnScrollChangeListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOpticalInsets, setOutlineProvider, setOverScrollMode, setPadding, setPaddingRelative, setPivotX, setPivotY, setPointerIcon, setPressed, setRevealClip, setRevealOnFocusHint, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollBarStyle, setScrollContainer, setScrollIndicators, setScrollIndicators, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setStateListAnimator, setSystemUiVisibility, setTag, setTag, setTagInternal, setTextAlignment, setTextDirection, setTop, setTouchDelegate, setTransitionAlpha, setTransitionName, setTransitionVisibility, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, setZ, showContextMenu, showContextMenu, startActionMode, startActionMode, startActivityForResult, startAnimation, startDrag, startDragAndDrop, startMovingTask, startNestedScroll, stopNestedScroll, toGlobalMotionEvent, toLocalMotionEvent, toString, transformFromViewToWindowSpace, transformMatrixToGlobal, transformMatrixToLocal, unscheduleDrawable, unscheduleDrawable, updateDisplayListIfDirty, updateDragShadow, verifyDrawable, willNotCacheDrawing, willNotDraw
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, createContextMenu, getLayoutDirection, getParent, getParentForAccessibility, getTextAlignment, getTextDirection, isLayoutDirectionResolved, isLayoutRequested, isTextAlignmentResolved, isTextDirectionResolved, requestFitSystemWindows, requestLayout
public static final long DOZE_ANIMATION_DURATION
protected QSContainer mQsContainer
protected NotificationsQuickSettingsContainer mNotificationContainerParent
protected NotificationStackScrollLayout mNotificationStackScroller
protected float mQsExpansionHeight
protected int mQsMinExpansionHeight
protected int mQsMaxExpansionHeight
protected boolean mQsExpansionEnabled
public NotificationPanelView(Context context, AttributeSet attrs)
public void setStatusBar(PhoneStatusBar bar)
protected void onFinishInflate()
View
Even if the subclass overrides onFinishInflate, they should always be sure to call the super method, so that we get called.
onFinishInflate
in class PanelView
protected void loadDimens()
loadDimens
in class PanelView
public void updateResources()
protected void onLayout(boolean changed, int left, int top, int right, int bottom)
View
public int computeMaxKeyguardNotifications(int maximum)
maximum
- the maximum to return at mostpublic void animateToFullShade(long delay)
public void setQsExpansionEnabled(boolean qsExpansionEnabled)
public void resetViews()
resetViews
in class PanelView
public void closeQs()
public void animateCloseQs()
public void openQs()
public void expandWithQs()
protected void flingToHeight(float vel, boolean expand, float target, float collapseSpeedUpFactor, boolean expandBecauseOfFalsing)
flingToHeight
in class PanelView
public boolean dispatchPopulateAccessibilityEventInternal(AccessibilityEvent event)
dispatchPopulateAccessibilityEventInternal
in class ViewGroup
Note: Called from the default {@link AccessibilityDelegate}.
public boolean onInterceptTouchEvent(MotionEvent event)
ViewGroup
Using this function takes some care, as it has a fairly complicated
interaction with View.onTouchEvent(MotionEvent)
, and using it requires implementing
that method as well as this one in the correct way. Events will be
received in the following order:
MotionEvent.ACTION_CANCEL
, and all further
events will be delivered to your onTouchEvent() method and no longer
appear here.
onInterceptTouchEvent
in class PanelView
event
- The motion event being dispatched down the hierarchy.protected boolean isInContentBounds(float x, float y)
isInContentBounds
in class PanelView
public boolean onTouchEvent(MotionEvent event)
View
If this method is used to detect click actions, it is recommended that
the actions be performed by implementing and calling
View.performClick()
. This will ensure consistent system behavior,
including:
ACTION_CLICK
when
accessibility features are enabled
onTouchEvent
in class PanelView
event
- The motion event.protected boolean flingExpands(float vel, float vectorVel, float x, float y)
flingExpands
in class PanelView
vel
- the current vertical velocity of the motionvectorVel
- the length of the vectorial velocityprotected boolean hasConflictingGestures()
hasConflictingGestures
in class PanelView
protected boolean shouldGestureIgnoreXTouchSlop(float x, float y)
shouldGestureIgnoreXTouchSlop
in class PanelView
public void onOverscrollTopChanged(float amount, boolean isRubberbanded)
NotificationStackScrollLayout.OnOverscrollTopChangedListener
onOverscrollTopChanged
in interface NotificationStackScrollLayout.OnOverscrollTopChangedListener
amount
- the amount of overscroll, in pixelsisRubberbanded
- if true, this is a rubberbanded overscroll; if false, this is an
unrubberbanded motion to directly expand overscroll view (e.g expand
QS)public void flingTopOverscroll(float velocity, boolean open)
NotificationStackScrollLayout.OnOverscrollTopChangedListener
flingTopOverscroll
in interface NotificationStackScrollLayout.OnOverscrollTopChangedListener
velocity
- The velocity that the Scroller had when over flingingopen
- Should the fling open or close the overscroll view.public void setBarState(int statusBarState, boolean keyguardFadingAway, boolean goingToFullShade)
protected void updateQsExpansion()
protected void requestScrollerTopPaddingUpdate(boolean animate)
public void flingSettings(float vel, boolean expand)
protected boolean isScrolledToBottom()
isScrolledToBottom
in class PanelView
protected int getMaxPanelHeight()
PanelView
getMaxPanelHeight
in class PanelView
public boolean isInSettings()
public boolean isExpanding()
protected void onHeightUpdated(float expandedHeight)
onHeightUpdated
in class PanelView
protected float getOverExpansionAmount()
getOverExpansionAmount
in class PanelView
protected float getOverExpansionPixels()
getOverExpansionPixels
in class PanelView
protected float getHeaderTranslation()
protected void onExpandingStarted()
onExpandingStarted
in class PanelView
protected void onExpandingFinished()
onExpandingFinished
in class PanelView
protected void setOverExpansion(float overExpansion, boolean isPixels)
setOverExpansion
in class PanelView
protected void onTrackingStarted()
onTrackingStarted
in class PanelView
protected void onTrackingStopped(boolean expand)
onTrackingStopped
in class PanelView
public void onHeightChanged(com.android.systemui.statusbar.ExpandableView view, boolean needsAnimation)
onHeightChanged
in interface com.android.systemui.statusbar.ExpandableView.OnHeightChangedListener
view
- the view for which the height changed, or null
if just the top
padding or the padding between the elements changedneedsAnimation
- whether the view height needs to be animatedpublic void onReset(com.android.systemui.statusbar.ExpandableView view)
com.android.systemui.statusbar.ExpandableView.OnHeightChangedListener
onReset
in interface com.android.systemui.statusbar.ExpandableView.OnHeightChangedListener
view
- The view which was reset.public void onQsHeightChanged()
protected void onConfigurationChanged(Configuration newConfig)
View
Activity
mechanism of
recreating the activity instance upon a configuration change.onConfigurationChanged
in class PanelView
newConfig
- The new resource configuration.public WindowInsets onApplyWindowInsets(WindowInsets insets)
View
WindowInsets
according to its internal policy.
This method should be overridden by views that wish to apply a policy different from or
in addition to the default behavior. Clients that wish to force a view subtree
to apply insets should call View.dispatchApplyWindowInsets(WindowInsets)
.
Clients may supply an View.OnApplyWindowInsetsListener
to a view. If one is set
it will be called during dispatch instead of this method. The listener may optionally
call this method from its own implementation if it wishes to apply the view's default
insets policy in addition to its own.
Implementations of this method should either return the insets parameter unchanged
or a new WindowInsets
cloned from the supplied insets with any insets consumed
that this view applied itself. This allows new inset types added in future platform
versions to pass through existing implementations unchanged without being erroneously
consumed.
By default if a view's fitsSystemWindows
property is set then the view will consume the system window insets and apply them
as padding for the view.
onApplyWindowInsets
in class View
insets
- Insets to applypublic void onRtlPropertiesChanged(int layoutDirection)
View
onRtlPropertiesChanged
in class View
layoutDirection
- the direction of the layoutView.LAYOUT_DIRECTION_LTR
,
View.LAYOUT_DIRECTION_RTL
public void onClick(View v)
View.OnClickListener
onClick
in interface View.OnClickListener
v
- The view that was clicked.public void onAnimationToSideStarted(boolean rightPage, float translation, float vel)
KeyguardAffordanceHelper.Callback
onAnimationToSideStarted
in interface KeyguardAffordanceHelper.Callback
rightPage
- Is the page animated to the right page?public void onAnimationToSideEnded()
KeyguardAffordanceHelper.Callback
onAnimationToSideEnded
in interface KeyguardAffordanceHelper.Callback
protected void startUnlockHintAnimation()
startUnlockHintAnimation
in class PanelView
public float getMaxTranslationDistance()
getMaxTranslationDistance
in interface KeyguardAffordanceHelper.Callback
public void onSwipingStarted(boolean rightIcon)
onSwipingStarted
in interface KeyguardAffordanceHelper.Callback
public void onSwipingAborted()
onSwipingAborted
in interface KeyguardAffordanceHelper.Callback
public void onIconClicked(boolean rightIcon)
onIconClicked
in interface KeyguardAffordanceHelper.Callback
public com.android.systemui.statusbar.KeyguardAffordanceView getLeftIcon()
getLeftIcon
in interface KeyguardAffordanceHelper.Callback
public com.android.systemui.statusbar.KeyguardAffordanceView getCenterIcon()
getCenterIcon
in interface KeyguardAffordanceHelper.Callback
public com.android.systemui.statusbar.KeyguardAffordanceView getRightIcon()
getRightIcon
in interface KeyguardAffordanceHelper.Callback
public View getLeftPreview()
getLeftPreview
in interface KeyguardAffordanceHelper.Callback
public View getRightPreview()
getRightPreview
in interface KeyguardAffordanceHelper.Callback
public float getAffordanceFalsingFactor()
getAffordanceFalsingFactor
in interface KeyguardAffordanceHelper.Callback
public boolean needsAntiFalsing()
needsAntiFalsing
in interface KeyguardAffordanceHelper.Callback
protected float getPeekHeight()
getPeekHeight
in class PanelView
protected float getCannedFlingDurationFactor()
getCannedFlingDurationFactor
in class PanelView
protected boolean fullyExpandedClearAllVisible()
fullyExpandedClearAllVisible
in class PanelView
protected boolean isClearAllVisible()
isClearAllVisible
in class PanelView
protected int getClearAllHeight()
getClearAllHeight
in class PanelView
protected boolean isTrackingBlocked()
isTrackingBlocked
in class PanelView
public boolean isQsExpanded()
public boolean isQsDetailShowing()
public void closeQsDetail()
public boolean shouldDelayChildPressedState()
ViewGroup
shouldDelayChildPressedState
in class FrameLayout
public boolean isLaunchTransitionFinished()
public boolean isLaunchTransitionRunning()
public void setLaunchTransitionEndRunnable(Runnable r)
public void setEmptyDragAmount(float amount)
public void setDozing(boolean dozing, boolean animate)
public void setShadeEmpty(boolean shadeEmpty)
public void setQsScrimEnabled(boolean qsScrimEnabled)
public void setKeyguardUserSwitcher(KeyguardUserSwitcher keyguardUserSwitcher)
public void onScreenTurningOn()
public void onEmptySpaceClicked(float x, float y)
onEmptySpaceClicked
in interface NotificationStackScrollLayout.OnEmptySpaceClickListener
protected boolean onMiddleClicked()
onMiddleClicked
in class PanelView
protected void dispatchDraw(Canvas canvas)
View
dispatchDraw
in class ViewGroup
canvas
- the canvas on which to draw the viewpublic 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 notificationpublic void setHeadsUpManager(HeadsUpManager headsUpManager)
setHeadsUpManager
in class PanelView
public void setTrackingHeadsUp(boolean tracking)
protected void onClosingFinished()
onClosingFinished
in class PanelView
protected void updateVerticalPanelPosition(float x)
x
- the x-coordinate the touch eventprotected void setVerticalPanelTranslation(float translation)
protected void updateExpandedHeight(float expandedHeight)
public void setPanelScrimMinFraction(float minFraction)
public void clearNotificationEffects()
protected boolean isPanelVisibleBecauseOfHeadsUp()
isPanelVisibleBecauseOfHeadsUp
in class PanelView
public boolean hasOverlappingRendering()
View
This function, intended to be overridden by specific View types, is an optimization when alpha is set on a view. If rendering overlaps in a view with alpha < 1, that view is drawn to an offscreen buffer and then composited into place, which can be expensive. If the view has no overlapping rendering, the view can draw each primitive with the appropriate alpha value directly. An example of overlapping rendering is a TextView with a background image, such as a Button. An example of non-overlapping rendering is a TextView with no background, or an ImageView with only the foreground image. The default implementation returns true; subclasses should override if they have cases which can be optimized.
The current implementation of the saveLayer and saveLayerAlpha methods in Canvas
necessitates that a View return true if it uses the methods internally without passing the
Canvas.CLIP_TO_LAYER_SAVE_FLAG
.
Note: The return value of this method is ignored if View.forceHasOverlappingRendering(boolean)
has been called on this view.
hasOverlappingRendering
in class View
public void launchCamera(boolean animate, int source)
public void onAffordanceLaunchEnded()
public void setAlpha(float alpha)
View
Note: setting alpha to a translucent value (0 < alpha < 1) can have significant performance implications, especially for large views. It is best to use the alpha property sparingly and transiently, as in the case of fading animations.
For a view with a frequently changing alpha, such as during a fading animation, it is
strongly recommended for performance reasons to either override
View.hasOverlappingRendering()
to return false
if appropriate, or setting a
layer type
on the view for the duration
of the animation. On versions Build.VERSION_CODES.M
and below,
the default path for rendering an unlayered View with alpha could add multiple milliseconds
of rendering cost, even for simple or small views. Starting with
Build.VERSION_CODES.M
, View.LAYER_TYPE_HARDWARE
is automatically
applied to the view at the rendering level.
If this view overrides View.onSetAlpha(int)
to return true, then this view is
responsible for applying the opacity itself.
On versions Build.VERSION_CODES.LOLLIPOP_MR1
and below, note that if
the view is backed by a layer
and is
associated with a layer paint
, setting an
alpha value less than 1.0 will supersede the alpha of the layer paint.
Starting with Build.VERSION_CODES.M
, setting a translucent alpha
value will clip a View to its bounds, unless the View returns false
from
View.hasOverlappingRendering()
.
setAlpha
in class View
alpha
- The opacity of the view.View.hasOverlappingRendering()
,
View.setLayerType(int, android.graphics.Paint)
public boolean canCameraGestureBeLaunched(boolean keyguardIsShowing)
keyguardIsShowing
- whether keyguard is being shownpublic void setGroupManager(NotificationGroupManager groupManager)