Home
last modified time | relevance | path

Searched refs:mLayout (Results 1 – 25 of 58) sorted by relevance

123

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/globalactions/
DGlobalActionsLayoutTest.java50 private TestLayout mLayout; field in GlobalActionsLayoutTest
148 mLayout = spy(new TestLayout(mContext, null)); in setUp()
150 mLayout.setAdapter(mAdapter); in setUp()
155 mLayout.setAdapter(null); in testOnUpdateList_noAdapter()
156 mLayout.updateList(); in testOnUpdateList_noAdapter()
163 mLayout.updateList(); in testOnUpdateList_noItems()
165 assertEquals(0, mLayout.mSeparatedViews.size()); in testOnUpdateList_noItems()
166 assertEquals(0, mLayout.mListViews.size()); in testOnUpdateList_noItems()
168 assertEquals(false, mLayout.mSeparatedViewVisible); in testOnUpdateList_noItems()
184 mLayout.updateList(); in testOnUpdateList_oneSeparatedOneList()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/focus/
DHorizontalFocusSearchTest.java41 private LinearLayout mLayout; field in HorizontalFocusSearchTest
58 mLayout = getActivity().getLayout(); in setUp()
66 assertNotNull(mLayout); in testPreconditions()
75 mFocusFinder.findNextFocus(mLayout, mLeftTall, View.FOCUS_UP)); in testSearchFromLeftButton()
77 mFocusFinder.findNextFocus(mLayout, mLeftTall, View.FOCUS_DOWN)); in testSearchFromLeftButton()
79 mFocusFinder.findNextFocus(mLayout, mLeftTall, View.FOCUS_LEFT)); in testSearchFromLeftButton()
83 mFocusFinder.findNextFocus(mLayout, mLeftTall, View.FOCUS_RIGHT)); in testSearchFromLeftButton()
88 mFocusFinder.findNextFocus(mLayout, mMidShort1Top, View.FOCUS_UP)); in TODO_testSearchFromMiddleLeftButton()
91 mFocusFinder.findNextFocus(mLayout, mMidShort1Top, View.FOCUS_DOWN)); in TODO_testSearchFromMiddleLeftButton()
94 mFocusFinder.findNextFocus(mLayout, mMidShort1Top, View.FOCUS_LEFT)); in TODO_testSearchFromMiddleLeftButton()
[all …]
DVerticalFocusSearchTest.java38 private LinearLayout mLayout; field in VerticalFocusSearchTest
71 mLayout = getActivity().getLayout(); in setUp()
81 assertNotNull(mLayout); in testPreconditions()
90 mFocusFinder.findNextFocus(mLayout, mTopWide, View.FOCUS_UP)); in testSearchFromTopButton()
93 mFocusFinder.findNextFocus(mLayout, mTopWide, View.FOCUS_LEFT)); in testSearchFromTopButton()
96 mFocusFinder.findNextFocus(mLayout, mTopWide, View.FOCUS_RIGHT)); in testSearchFromTopButton()
101 .findNextFocus(mLayout, mTopWide, View.FOCUS_DOWN)); in testSearchFromTopButton()
106 mFocusFinder.findNextFocus(mLayout, mMidSkinny1Left, View.FOCUS_LEFT)); in testSearchFromMidLeft()
110 mFocusFinder.findNextFocus(mLayout, mMidSkinny1Left, View.FOCUS_RIGHT)); in testSearchFromMidLeft()
114 mFocusFinder.findNextFocus(mLayout, mMidSkinny1Left, View.FOCUS_UP)); in testSearchFromMidLeft()
[all …]
DAdjacentVerticalRectLists.java39 private LinearLayout mLayout; field in AdjacentVerticalRectLists
46 return mLayout; in getLayout()
65 mLayout = new LinearLayout(this); in onCreate()
66 mLayout.setOrientation(LinearLayout.HORIZONTAL); in onCreate()
67 mLayout.setLayoutParams(new ViewGroup.LayoutParams( in onCreate()
77 mLayout.addView(mLeftColumn); in onCreate()
82 mLayout.addView(mMiddleColumn); in onCreate()
87 mLayout.addView(mRightColumn); in onCreate()
89 setContentView(mLayout); in onCreate()
DVerticalFocusSearch.java34 private LinearLayout mLayout; field in VerticalFocusSearch
44 return mLayout; in getLayout()
67 mLayout = new LinearLayout(this); in onCreate()
68 mLayout.setOrientation(LinearLayout.VERTICAL); in onCreate()
69 mLayout.setHorizontalGravity(Gravity.START); in onCreate()
70 mLayout.setLayoutParams(new ViewGroup.LayoutParams( in onCreate()
75 mLayout.addView(mTopWide); in onCreate()
77 mMidSkinny1Left = addSkinny(mLayout, "mid skinny 1(L)", false); in onCreate()
79 mMidSkinny2Right = addSkinny(mLayout, "mid skinny 2(R)", true); in onCreate()
82 mLayout.addView(mBottomWide); in onCreate()
[all …]
DHorizontalFocusSearch.java29 private LinearLayout mLayout; field in HorizontalFocusSearch
38 return mLayout; in getLayout()
61 mLayout = new LinearLayout(this); in onCreate()
62 mLayout.setOrientation(LinearLayout.HORIZONTAL); in onCreate()
63 mLayout.setLayoutParams(new ViewGroup.LayoutParams( in onCreate()
68 mLayout.addView(mLeftTall); in onCreate()
70 mMidShort1Top = addShort(mLayout, "mid(1) top", false); in onCreate()
71 mMidShort2Bottom = addShort(mLayout, "mid(2) bottom", true); in onCreate()
74 mLayout.addView(mRightTall); in onCreate()
76 setContentView(mLayout); in onCreate()
DGoneParentFocusedChild.java37 private LinearLayout mLayout; field in GoneParentFocusedChild
44 return mLayout; in getLayout()
58 mLayout = new LinearLayout(this); in onCreate()
59 mLayout.setOrientation(LinearLayout.HORIZONTAL); in onCreate()
60 mLayout.setLayoutParams(new ViewGroup.LayoutParams( in onCreate()
78 setContentView(mLayout); in onCreate()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/compatui/
DRestartDialogLayoutTest.java57 private RestartDialogLayout mLayout; field in RestartDialogLayoutTest
67 mLayout = (RestartDialogLayout) in setUp()
70 mDismissButton = mLayout.findViewById(R.id.letterbox_restart_dialog_dismiss_button); in setUp()
71 mRestartButton = mLayout.findViewById(R.id.letterbox_restart_dialog_restart_button); in setUp()
72 mDialogContainer = mLayout.findViewById(R.id.letterbox_restart_dialog_container); in setUp()
73 mDontRepeatCheckBox = mLayout.findViewById(R.id.letterbox_restart_dialog_checkbox); in setUp()
74 mLayout.setDismissOnClickListener(mDismissCallback); in setUp()
75 mLayout.setRestartOnClickListener(mRestartCallback); in setUp()
80 assertEquals(mLayout.getDialogContainerView(), in testOnFinishInflate()
81 mLayout.findViewById(R.id.letterbox_restart_dialog_container)); in testOnFinishInflate()
[all …]
DLetterboxEduDialogLayoutTest.java53 private LetterboxEduDialogLayout mLayout; field in LetterboxEduDialogLayoutTest
61 mLayout = (LetterboxEduDialogLayout) LayoutInflater.from(mContext) in setUp()
63 mDismissButton = mLayout.findViewById(R.id.letterbox_education_dialog_dismiss_button); in setUp()
64 mDialogContainer = mLayout.findViewById(R.id.letterbox_education_dialog_container); in setUp()
65 mLayout.setDismissOnClickListener(mDismissCallback); in setUp()
70 assertEquals(mLayout.getDialogContainerView(), in testOnFinishInflate()
71 mLayout.findViewById(R.id.letterbox_education_dialog_container)); in testOnFinishInflate()
72 assertEquals(mLayout.getDialogTitle(), in testOnFinishInflate()
73 mLayout.findViewById(R.id.letterbox_education_dialog_title)); in testOnFinishInflate()
74 assertEquals(mLayout.getBackgroundDimDrawable(), mLayout.getBackground()); in testOnFinishInflate()
[all …]
DCompatUIWindowManagerTest.java85 @Mock private CompatUILayout mLayout; field in CompatUIWindowManagerTest
101 doReturn(mLayout).when(mWindowManager).inflateLayout(); in setUp()
118 verify(mLayout).setRestartButtonVisibility(/* show= */ true); in testCreateSizeCompatButton()
119 verify(mLayout, never()).setSizeCompatHintVisibility(/* show= */ true); in testCreateSizeCompatButton()
123 clearInvocations(mLayout); in testCreateSizeCompatButton()
129 assertNotNull(mLayout); in testCreateSizeCompatButton()
130 verify(mLayout).setRestartButtonVisibility(/* show= */ true); in testCreateSizeCompatButton()
131 verify(mLayout).setSizeCompatHintVisibility(/* show= */ true); in testCreateSizeCompatButton()
156 verify(mLayout).setCameraControlVisibility(/* show= */ true); in testCreateCameraCompatControl()
157 verify(mLayout, never()).setCameraCompatHintVisibility(/* show= */ true); in testCreateCameraCompatControl()
[all …]
DCompatUILayoutTest.java80 private CompatUILayout mLayout; field in CompatUILayoutTest
91 mLayout = (CompatUILayout) in setUp()
93 mLayout.inject(mWindowManager); in setUp()
96 spyOn(mLayout); in setUp()
98 doReturn(mLayout).when(mWindowManager).inflateLayout(); in setUp()
103 final ImageButton button = mLayout.findViewById(R.id.size_compat_restart_button); in testOnClickForRestartButton()
121 final ImageButton button = mLayout.findViewById(R.id.size_compat_restart_button); in testOnLongClickForRestartButton()
131 final LinearLayout sizeCompatHint = mLayout.findViewById(R.id.size_compat_hint); in testOnClickForSizeCompatHint()
134 verify(mLayout).setSizeCompatHintVisibility(/* show= */ false); in testOnClickForSizeCompatHint()
142 mLayout.findViewById(R.id.camera_compat_treatment_button); in testUpdateCameraTreatmentButton_treatmentAppliedByDefault()
[all …]
DReachabilityEduLayoutTest.java53 private ReachabilityEduLayout mLayout; field in ReachabilityEduLayoutTest
68 mLayout = (ReachabilityEduLayout) LayoutInflater.from(mContext) in setUp()
70 mMoveLeftButton = mLayout.findViewById(R.id.reachability_move_left_button); in setUp()
71 mMoveRightButton = mLayout.findViewById(R.id.reachability_move_right_button); in setUp()
72 mMoveUpButton = mLayout.findViewById(R.id.reachability_move_up_button); in setUp()
73 mMoveDownButton = mLayout.findViewById(R.id.reachability_move_down_button); in setUp()
86 mLayout.handleVisibility(/* horizontalEnabled */ false, /* verticalEnabled */ in handleVisibility_educationNotEnabled_buttonsAreHidden()
98 mLayout.handleVisibility(/* horizontalEnabled */ true, /* verticalEnabled */ in handleVisibility_horizontalEducationEnableduiConfigurationIsUpdated()
110 mLayout.handleVisibility(/* horizontalEnabled */ false, /* verticalEnabled */ in handleVisibility_verticalEducationEnabled_uiConfigurationIsUpdated()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/compatui/
DCompatUIWindowManager.java76 CompatUILayout mLayout; field in CompatUIWindowManager
100 return mLayout; in getLayout()
105 mLayout = null; in removeLayout()
115 mLayout = inflateLayout(); in createLayout()
116 mLayout.inject(this); in createLayout()
124 return mLayout; in createLayout()
173 mLayout.updateCameraTreatmentButton(mCameraCompatControlState); in onCameraTreatmentButtonClicked()
184 mLayout.setCameraControlVisibility(/* show= */ false); in onCameraDismissButtonClicked()
189 if (mLayout == null) { in onRestartButtonLongClicked()
192 mLayout.setSizeCompatHintVisibility(/* show= */ true); in onRestartButtonLongClicked()
[all …]
DRestartDialogWindowManager.java80 RestartDialogLayout mLayout; field in RestartDialogWindowManager
121 return mLayout; in getLayout()
126 mLayout = null; in removeLayout()
132 return mRequestRestartDialog && !isTaskbarEduShowing() && (mLayout != null in eligibleToShowLayout()
138 mLayout = inflateLayout(); in createLayout()
144 return mLayout; in createLayout()
164 if (mLayout == null) { in updateDialogMargins()
167 final View dialogContainer = mLayout.getDialogContainerView(); in updateDialogMargins()
186 if (mLayout == null) { in startEnterAnimation()
190 mAnimationController.startEnterAnimation(mLayout, /* endCallback= */ in startEnterAnimation()
[all …]
DLetterboxEduWindowManager.java75 LetterboxEduDialogLayout mLayout; field in LetterboxEduWindowManager
126 return mLayout; in getLayout()
131 mLayout = null; in removeLayout()
142 return mEligibleForLetterboxEducation && !isTaskbarEduShowing() && (mLayout != null in eligibleToShowLayout()
149 mLayout = inflateLayout(); in createLayout()
155 return mLayout; in createLayout()
159 if (mLayout == null) { in updateDialogMargins()
162 final View dialogContainer = mLayout.getDialogContainerView(); in updateDialogMargins()
179 if (mLayout == null) { in startEnterAnimation()
183 mAnimationController.startEnterAnimation(mLayout, /* endCallback= */ in startEnterAnimation()
[all …]
DReachabilityEduWindowManager.java86 ReachabilityEduLayout mLayout; field in ReachabilityEduWindowManager
110 return mLayout; in getLayout()
115 mLayout = null; in removeLayout()
126 mLayout = inflateLayout(); in createLayout()
127 mLayout.inject(this); in createLayout()
131 return mLayout; in createLayout()
180 if (mLayout == null) { in onParentBoundsChanged()
185 mLayout.setLayoutParams(windowLayoutParams); in onParentBoundsChanged()
215 if (mLayout == null) { in updateSurfacePosition()
226 if (mLayout == null) { in updateVisibilityOfViews()
[all …]
/frameworks/base/core/java/android/widget/
DAccessibilityIterators.java36 protected Layout mLayout; field in AccessibilityIterators.LineTextSegmentIterator
47 mLayout = layout; in initialize()
61 nextLine = mLayout.getLineForOffset(0); in following()
63 final int currentLine = mLayout.getLineForOffset(offset); in following()
70 if (nextLine >= mLayout.getLineCount()) { in following()
89 previousLine = mLayout.getLineForOffset(mText.length()); in preceding()
91 final int currentLine = mLayout.getLineForOffset(offset); in preceding()
107 final int paragraphDirection = mLayout.getParagraphDirection(lineNumber); in getLineEdgeIndex()
109 return mLayout.getLineStart(lineNumber); in getLineEdgeIndex()
111 return mLayout.getLineEnd(lineNumber) - 1; in getLineEdgeIndex()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DActionBarOverlayLayoutTest.java66 private TestActionBarOverlayLayout mLayout; field in ActionBarOverlayLayoutTest
77 mLayout = new TestActionBarOverlayLayout(mContext); in setUp()
78 mLayout.makeOptionalFitsSystemWindows(); in setUp()
82 mLayout.addView(mContent); in setUp()
90 mLayout.addView(mActionBarTop); in setUp()
91 mLayout.setActionBarHeight(20); in setUp()
100 mLayout.setStable(true); in topInset_consumedCutout_stable()
101 mLayout.dispatchApplyWindowInsets(insetsWith(TOP_INSET_5, CONSUMED_CUTOUT)); in topInset_consumedCutout_stable()
105 mLayout.measure(EXACTLY_1000, EXACTLY_1000); in topInset_consumedCutout_stable()
113 mLayout.dispatchApplyWindowInsets(insetsWith(TOP_INSET_5, CONSUMED_CUTOUT)); in topInset_consumedCutout_notStable()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dreams/complication/
DComplicationLayoutEngineTest.java52 ConstraintLayout mLayout; field in ComplicationLayoutEngineTest
96 verify(mLayout).addView(eq(viewInfo.view)); in verifyChange()
121 mLayout); in testSingleLayout()
124 new ComplicationLayoutEngine(mLayout, 0, mTouchSession, 0, 0); in testSingleLayout()
149 mLayout); in testSnapToGuide()
152 new ComplicationLayoutEngine(mLayout, 0, mTouchSession, 0, 0); in testSnapToGuide()
169 new ComplicationLayoutEngine(mLayout, 0, mTouchSession, 0, 0); in testDirectionLayout()
180 mLayout); in testDirectionLayout()
195 mLayout); in testDirectionLayout()
218 new ComplicationLayoutEngine(mLayout, 0, mTouchSession, 0, 0); in testPositionLayout()
[all …]
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/
DElementLayoutActivity.java37 private FlowLayout mLayout; field in ElementLayoutActivity
49 mLayout = (FlowLayout)findViewById(R.id.root_flow_layout); in onCreate()
50 mLayout.setBackgroundColor(BACKGROUND_COLOR); in onCreate()
53 mLayout.addView(mIndicator); in onCreate()
59 mLayout.getViewTreeObserver().addOnPreDrawListener(this); in onCreate()
84 setContentView(mLayout); in onCreate()
98 mLayout.addView(textView); in createTextView()
104 mLayout.addView(button); in createRadioButton()
110 mLayout.addView(button); in createToggleButton()
116 mLayout.addView(button); in createSwitch()
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/animation/
DPhysicsAnimationLayoutTest.java82 mLayout.setActiveController(mTestableController); in testHierarchyChanges()
92 mLayout.removeView(mViews.get(1)); in testHierarchyChanges()
93 mLayout.removeView(mViews.get(2)); in testHierarchyChanges()
101 mLayout.addView(newBubble, 0); in testHierarchyChanges()
108 mLayout.setActiveController(mTestableController); in testUpdateValueNotChained()
115 assertEquals(0, mLayout.getChildAt(0).getTranslationX(), .1f); in testUpdateValueNotChained()
116 assertEquals(0, mLayout.getChildAt(1).getTranslationX(), .1f); in testUpdateValueNotChained()
128 assertEquals(100, mLayout.getChildAt(0).getTranslationX(), .1f); in testUpdateValueNotChained()
129 assertEquals(0, mLayout.getChildAt(1).getTranslationX(), .1f); in testUpdateValueNotChained()
141 mLayout.setActiveController(mTestableController); in testSetEndActions()
[all …]
DExpandedAnimationControllerTest.java83 mLayout.setActiveController(mExpandedController); in setUp()
85 Resources res = mLayout.getResources(); in setUp()
91 mStackViewState.numberOfBubbles = mLayout.getChildCount(); in getStackViewState()
122 mLayout.addView(newView, 0); in testOnChildAdded()
134 mLayout.removeView(mViews.get(0)); in testOnChildRemoved()
135 mLayout.removeView(mViews.get(3)); in testOnChildRemoved()
156 for (int i = 0; i < mLayout.getChildCount(); i++) { in testStackedAtPosition()
158 mLayout.getChildAt(i).getTranslationX(), 2f); in testStackedAtPosition()
159 assertEquals(y, mLayout.getChildAt(i).getTranslationY(), 2f); in testStackedAtPosition()
160 assertEquals(1f, mLayout.getChildAt(i).getAlpha(), .01f); in testStackedAtPosition()
[all …]
DStackAnimationControllerTest.java70 return mLayout.getChildCount(); in setUp()
73 mLayout.setActiveController(mStackController); in setUp()
75 mStackOffset = mLayout.getResources().getDimensionPixelSize(R.dimen.bubble_stack_offset); in setUp()
185 mLayout.addView( in testChildAdded()
209 assertEquals(0, mLayout.getTransientViewCount()); in testChildRemoved()
211 final View firstView = mLayout.getChildAt(0); in testChildRemoved()
212 mLayout.removeView(firstView); in testChildRemoved()
215 assertEquals(1, mLayout.getTransientViewCount()); in testChildRemoved()
216 assertEquals(-1, mLayout.indexOfChild(firstView)); in testChildRemoved()
222 assertEquals(0, mLayout.getTransientViewCount()); in testChildRemoved()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
DScreenPinningRequest.java192 private ViewGroup mLayout; field in ScreenPinningRequest.RequestWindowView
214 mLayout.setAlpha(0f); in onAttachedToWindow()
216 mLayout.setTranslationX(-OFFSET_DP * density); in onAttachedToWindow()
218 mLayout.setTranslationX(OFFSET_DP * density); in onAttachedToWindow()
220 mLayout.setTranslationY(OFFSET_DP * density); in onAttachedToWindow()
222 mLayout.animate() in onAttachedToWindow()
254 mLayout = (ViewGroup) View.inflate(getContext(), in inflateView()
260 mLayout.setClickable(true); in inflateView()
262 mLayout.setLayoutDirection(View.LAYOUT_DIRECTION_LTR); in inflateView()
264 mLayout.findViewById(R.id.screen_pinning_text_area) in inflateView()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DMerge.java29 private LinearLayout mLayout; field in Merge
35 mLayout = new LinearLayout(this); in onCreate()
36 mLayout.setOrientation(LinearLayout.VERTICAL); in onCreate()
37 LayoutInflater.from(this).inflate(R.layout.merge_tag, mLayout); in onCreate()
39 setContentView(mLayout); in onCreate()
43 return mLayout; in getLayout()

123