Home
last modified time | relevance | path

Searched refs:mMenuView (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DMenuAnimationController.java69 private final MenuView mMenuView; field in MenuAnimationController
86 mMenuView = menuView; in MenuAnimationController()
98 mMenuView.setRadii(radii); in MenuAnimationController()
130 DynamicAnimation.TRANSLATION_X.setValue(mMenuView, positionX); in moveToPositionX()
145 DynamicAnimation.TRANSLATION_Y.setValue(mMenuView, positionY); in moveToPositionY()
152 final RecyclerView listView = (RecyclerView) mMenuView.getChildAt(/* index= */ 0); in moveToPositionYIfNeeded()
166 mMenuView.updateMenuMoveToTucked(/* isMoveToTucked= */ false); in moveToTopLeftPosition()
167 final Rect draggableBounds = mMenuView.getMenuDraggableBounds(); in moveToTopLeftPosition()
172 mMenuView.updateMenuMoveToTucked(/* isMoveToTucked= */ false); in moveToTopRightPosition()
173 final Rect draggableBounds = mMenuView.getMenuDraggableBounds(); in moveToTopRightPosition()
[all …]
DMenuViewLayer.java118 private final MenuView mMenuView; field in MenuViewLayer
235 mMenuView = menuView; in MenuViewLayer()
236 RecyclerView targetFeaturesView = mMenuView.getTargetFeaturesView(); in MenuViewLayer()
246 mMenuAnimationController = mMenuView.getMenuAnimationController(); in MenuViewLayer()
258 mDragToInteractView, mMenuView); in MenuViewLayer()
261 mDismissView, mMenuView); in MenuViewLayer()
288 mMenuView.addOnItemTouchListenerToList(mMenuListViewTouchHandler); in MenuViewLayer()
289 mMenuView.setMoveToTuckedListener(this); in MenuViewLayer()
293 mMenuView.setOnTargetFeaturesChangeListener(newTargetFeatures -> { in MenuViewLayer()
317 addView(mMenuView, LayerIndex.MENU_VIEW); in MenuViewLayer()
[all …]
DDragToInteractAnimationController.java52 private final MenuView mMenuView; field in DragToInteractAnimationController
68 mMenuView = menuView; in DragToInteractAnimationController()
84 mMenuView = menuView; in DragToInteractAnimationController()
180 final float maxInteractSize = mMenuView.getResources().getDimensionPixelSize( in updateResources()
182 mMinInteractSize = mMenuView.getResources().getDimensionPixelSize( in updateResources()
195 mMenuView.getContext(), mMenuView, in createMagnetizedObjectAndAnimator()
229 mMenuView.setAlpha(Math.max(animatedValue, ANIMATING_MAX_ALPHA)); in createMagnetizedObjectAndAnimator()
240 mMenuView.setAlpha(COMPLETELY_OPAQUE); in createMagnetizedObjectAndAnimator()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/
DBubbleBarMenuViewController.java46 private @Nullable BubbleBarMenuView mMenuView; field in BubbleBarMenuViewController
61 return mMenuView != null && mMenuView.getVisibility() == View.VISIBLE; in isMenuVisible()
79 if (mMenuView == null || mScrimView == null) { in showMenu()
83 mMenuView.setVisibility(View.VISIBLE); in showMenu()
86 mMenuView.getChildAt(0).requestAccessibilityFocus(); in showMenu()
103 if (mMenuView == null || mScrimView == null) return; in hideMenu()
106 mMenuView.setVisibility(View.GONE); in hideMenu()
125 if (mMenuView == null) return; in animateTransition()
126 mMenuAnimator = PhysicsAnimator.getInstance(mMenuView); in animateTransition()
149 mMenuView = (BubbleBarMenuView) LayoutInflater.from(mContext).inflate( in setupMenu()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/
DMenuViewTest.java63 private MenuView mMenuView; field in MenuViewTest
89 mMenuView = spy(new MenuView(mSpyContext, stubMenuViewModel, mStubMenuViewAppearance, in setUp()
97 mMenuView.onConfigurationChanged(/* newConfig= */ null); in onConfigurationChanged_updateViewModel()
99 verify(mMenuView).loadLayoutResources(); in onConfigurationChanged_updateViewModel()
104 mMenuView.onConfigurationChanged(/* newConfig= */ null); in insetsOnDarkTheme_menuOnLeft_matchInsets()
106 (InstantInsetLayerDrawable) mMenuView.getBackground(); in insetsOnDarkTheme_menuOnLeft_matchInsets()
115 mMenuView.onDraggingStart(); in onDraggingStart_matchInsets()
117 (InstantInsetLayerDrawable) mMenuView.getBackground(); in onDraggingStart_matchInsets()
130 mMenuView.persistPositionAndUpdateEdge(new Position(percentageX, percentageY)); in onAnimationend_updatePositionForSharedPreference()
142 mMenuView.setTranslationX(draggableBounds.right); in onEdgeChangedIfNeeded_moveToLeftEdge_matchRadii()
[all …]
DMenuItemAccessibilityDelegateTest.java72 private MenuView mMenuView; field in MenuItemAccessibilityDelegateTest
90 mMenuView = spy(new MenuView(mContext, stubMenuViewModel, stubMenuViewAppearance, in setUp()
92 mMenuView.setTranslationY(halfScreenHeight); in setUp()
96 stubMenuViewModel, stubMenuViewAppearance, mMenuView, in setUp()
100 doReturn(mDraggableBounds).when(mMenuView).getMenuDraggableBounds(); in setUp()
102 mMenuAnimationController = spy(new MenuAnimationController(mMenuView, in setUp()
140 assertThat(mMenuView.getTranslationX()).isEqualTo(mDraggableBounds.left); in performMoveTopLeftAction_matchPosition()
141 assertThat(mMenuView.getTranslationY()).isEqualTo(mDraggableBounds.top); in performMoveTopLeftAction_matchPosition()
151 assertThat(mMenuView.getTranslationX()).isEqualTo(mDraggableBounds.right); in performMoveTopRightAction_matchPosition()
152 assertThat(mMenuView.getTranslationY()).isEqualTo(mDraggableBounds.top); in performMoveTopRightAction_matchPosition()
[all …]
DMenuAnimationControllerTest.java68 private MenuView mMenuView; field in MenuAnimationControllerTest
86 mMenuView = spy(new MenuView(mContext, stubMenuViewModel, stubMenuViewAppearance, in setUp()
88 mViewPropertyAnimator = spy(mMenuView.animate()); in setUp()
89 doReturn(mViewPropertyAnimator).when(mMenuView).animate(); in setUp()
92 mMenuView, stubMenuViewAppearance); in setUp()
112 assertThat(mMenuView.getTranslationX()).isEqualTo(50); in moveToPosition_matchPosition()
113 assertThat(mMenuView.getTranslationY()).isEqualTo(60); in moveToPosition_matchPosition()
118 mMenuAnimationController.startShrinkAnimation(() -> mMenuView.setVisibility(View.VISIBLE)); in startShrinkAnimation_verifyAnimationEndAction()
129 assertThat(mMenuView.getAlpha()).isEqualTo(/* completelyOpaque */ 1.0f); in startGrowAnimation_menuCompletelyOpaque()
158 mMenuView.clearAnimation(); in startTuckedAnimationPreview_hasAnimation()
[all …]
DMenuViewLayerTest.java127 private MenuView mMenuView; field in MenuViewLayerTest
165 mMenuView = spy( in setUp()
168 doNothing().when(mMenuView).incrementTexMetric(any()); in setUp()
171 mStubAccessibilityManager, mMenuViewModel, menuViewAppearance, mMenuView, in setUp()
173 mMenuAnimationController = mMenuView.getMenuAnimationController(); in setUp()
201 mMenuView.updateMenuMoveToTucked(/* isMoveToTucked= */ false); in tearDown()
333 assertThat(mMenuView.getTranslationX()).isEqualTo(0); in showingImeInsetsChange_notOverlapOnIme_menuKeepOriginalPosition()
334 assertThat(mMenuView.getTranslationY()).isEqualTo(menuTop); in showingImeInsetsChange_notOverlapOnIme_menuKeepOriginalPosition()
340 final PointF beforePosition = mMenuView.getMenuPosition(); in showingImeInsetsChange_overlapOnIme_menuShownAboveIme()
346 final float menuBottom = mMenuView.getTranslationY() + mMenuView.getMenuHeight(); in showingImeInsetsChange_overlapOnIme_menuShownAboveIme()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DActionBarContextView.java114 mMenuView = (ActionMenuView) mActionMenuPresenter.getMenuView(this); in setSplitToolbar()
115 mMenuView.setBackground(null); in setSplitToolbar()
116 final ViewGroup oldParent = (ViewGroup) mMenuView.getParent(); in setSplitToolbar()
117 if (oldParent != null) oldParent.removeView(mMenuView); in setSplitToolbar()
118 addView(mMenuView, layoutParams); in setSplitToolbar()
128 mMenuView = (ActionMenuView) mActionMenuPresenter.getMenuView(this); in setSplitToolbar()
129 mMenuView.setBackground(mSplitBackground); in setSplitToolbar()
130 final ViewGroup oldParent = (ViewGroup) mMenuView.getParent(); in setSplitToolbar()
131 if (oldParent != null) oldParent.removeView(mMenuView); in setSplitToolbar()
132 mSplitView.addView(mMenuView, layoutParams); in setSplitToolbar()
[all …]
DAbsActionBarView.java49 protected ActionMenuView mMenuView; field in AbsActionBarView
203 if (mSplitView != null && mMenuView != null) { in setupAnimatorToVisibility()
204 mMenuView.setAlpha(0); in setupAnimatorToVisibility()
210 if (mSplitView != null && mMenuView != null) { in setupAnimatorToVisibility()
212 ObjectAnimator splitAnim = ObjectAnimator.ofFloat(mMenuView, View.ALPHA, 1); in setupAnimatorToVisibility()
225 if (mSplitView != null && mMenuView != null) { in setupAnimatorToVisibility()
227 ObjectAnimator splitAnim = ObjectAnimator.ofFloat(mMenuView, View.ALPHA, 0); in setupAnimatorToVisibility()
356 if (mSplitView != null && mMenuView != null) { in onAnimationEnd()
357 mMenuView.setVisibility(mFinalVisibility); in onAnimationEnd()
DActionBarView.java302 if (mMenuView != null) { in setSplitToolbar()
303 final ViewGroup oldParent = (ViewGroup) mMenuView.getParent(); in setSplitToolbar()
305 oldParent.removeView(mMenuView); in setSplitToolbar()
309 mSplitView.addView(mMenuView); in setSplitToolbar()
311 mMenuView.getLayoutParams().width = LayoutParams.MATCH_PARENT; in setSplitToolbar()
313 addView(mMenuView); in setSplitToolbar()
314 mMenuView.getLayoutParams().width = LayoutParams.WRAP_CONTENT; in setSplitToolbar()
316 mMenuView.requestLayout(); in setSplitToolbar()
382 if (mMenuView != null) { in setMenu()
383 final ViewGroup oldParent = (ViewGroup) mMenuView.getParent(); in setMenu()
[all …]
/frameworks/base/core/java/com/android/internal/view/menu/
DListMenuPresenter.java45 ExpandedMenuView mMenuView; field in ListMenuPresenter
99 if (mMenuView == null) { in getMenuView()
100 mMenuView = (ExpandedMenuView) mInflater.inflate( in getMenuView()
105 mMenuView.setAdapter(mAdapter); in getMenuView()
106 mMenuView.setOnItemClickListener(this); in getMenuView()
108 return mMenuView; in getMenuView()
160 if (mMenuView != null) { in setItemIndexOffset()
185 if (mMenuView != null) { in saveHierarchyState()
186 ((View) mMenuView).saveHierarchyState(viewStates); in saveHierarchyState()
194 ((View) mMenuView).restoreHierarchyState(viewStates); in restoreHierarchyState()
[all …]
DBaseMenuPresenter.java44 protected MenuView mMenuView; field in BaseMenuPresenter
71 if (mMenuView == null) { in getMenuView()
72 mMenuView = (MenuView) mSystemInflater.inflate(mMenuLayoutRes, root, false); in getMenuView()
73 mMenuView.initialize(mMenu); in getMenuView()
77 return mMenuView; in getMenuView()
84 final ViewGroup parent = (ViewGroup) mMenuView; in updateMenuView()
131 ((ViewGroup) mMenuView).addView(itemView, childIndex); in addItemView()
DIconMenuPresenter.java82 final IconMenuView parent = (IconMenuView) mMenuView;
106 final IconMenuView menuView = (IconMenuView) mMenuView;
134 return ((IconMenuView) mMenuView).getNumActualItemsShown();
139 if (mMenuView != null) {
140 ((View) mMenuView).saveHierarchyState(viewStates);
148 ((View) mMenuView).restoreHierarchyState(viewStates);
161 if (mMenuView == null) {
/frameworks/base/core/java/android/widget/
DActionMenuPresenter.java107 ((View) mMenuView).getViewTreeObserver().removeOnPreDrawListener(this);
120 ((View) mMenuView).getViewTreeObserver().removeOnPreDrawListener(
224 MenuView oldMenuView = mMenuView; in getMenuView()
256 final ActionMenuView menuView = (ActionMenuView) mMenuView; in bindItemView()
280 final ViewGroup menuView = (ViewGroup) mMenuView; in computeMenuItemAnimationInfo()
369 ((ViewGroup) mMenuView).getOverlay().add(menuItemLayoutInfoPre.view); in runItemAnimations()
383 ((ViewGroup) mMenuView).getOverlay().remove(menuItemLayoutInfoPre.view); in runItemAnimations()
432 ((View) mMenuView).getViewTreeObserver(). in setupItemAnimations()
438 final ViewGroup menuViewParent = (ViewGroup) ((View) mMenuView).getParent(); in updateMenuView()
444 ((View) mMenuView).requestLayout(); in updateMenuView()
[all …]
DToolbar.java138 private ActionMenuView mMenuView; field in Toolbar
529 return getVisibility() == VISIBLE && mMenuView != null && mMenuView.isOverflowReserved(); in canShowOverflowMenu()
539 return mMenuView != null && mMenuView.isOverflowMenuShowing(); in isOverflowMenuShowing()
544 return mMenuView != null && mMenuView.isOverflowMenuShowPending(); in isOverflowMenuShowPending()
553 return mMenuView != null && mMenuView.showOverflowMenu(); in showOverflowMenu()
562 return mMenuView != null && mMenuView.hideOverflowMenu(); in hideOverflowMenu()
567 if (menu == null && mMenuView == null) { in setMenu()
572 final MenuBuilder oldMenu = mMenuView.peekMenu(); in setMenu()
596 mMenuView.setPopupTheme(mPopupTheme); in setMenu()
597 mMenuView.setPresenter(outerPresenter); in setMenu()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationMenuRow.java781 View mMenuView; field in NotificationMenuRow.NotificationMenuItem
801 mMenuView = iv; in NotificationMenuItem()
810 return mMenuView; in getMenuView()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt70174 Landroid/widget/Toolbar;->mMenuView:Landroid/widget/ActionMenuView;
85346 Lcom/android/internal/view/menu/BaseMenuPresenter;->mMenuView:Lcom/android/internal/view/menu/MenuV…