/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/globalactions/ |
D | GlobalActionsLayoutTest.java | 50 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/ |
D | HorizontalFocusSearchTest.java | 41 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 …]
|
D | VerticalFocusSearchTest.java | 38 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 …]
|
D | AdjacentVerticalRectLists.java | 39 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()
|
D | VerticalFocusSearch.java | 34 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 …]
|
D | HorizontalFocusSearch.java | 29 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()
|
/frameworks/base/core/java/android/widget/ |
D | AccessibilityIterators.java | 36 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 …]
|
D | ResourceCursorAdapter.java | 33 private int mLayout; field in ResourceCursorAdapter 56 mLayout = mDropDownLayout = layout; in ResourceCursorAdapter() 79 mLayout = mDropDownLayout = layout; in ResourceCursorAdapter() 97 mLayout = mDropDownLayout = layout; in ResourceCursorAdapter() 135 return mInflater.inflate(mLayout, parent, false); in newView() 149 mLayout = layout; in setViewResource()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/ |
D | ActionBarOverlayLayoutTest.java | 66 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/CarSystemUI/src/com/android/systemui/car/window/ |
D | OverlayViewController.java | 30 private View mLayout; field in OverlayViewController 34 mLayout = null; in OverlayViewController() 62 mLayout = viewStub.inflate(); in inflate() 77 return mLayout != null; in isInflated() 81 if (mLayout == null) { in show() 95 mLayout.setVisibility(View.VISIBLE); in showInternal() 99 if (mLayout == null) { in hide() 113 mLayout.setVisibility(View.GONE); in hideInternal() 120 return mLayout; in getLayout()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bubbles/animation/ |
D | PhysicsAnimationLayoutTest.java | 82 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 …]
|
D | ExpandedAnimationControllerTest.java | 70 mLayout.setActiveController(mExpandedController); in setUp() 72 Resources res = mLayout.getResources(); in setUp() 104 mLayout.addView(newView, 0); in testOnChildAdded() 116 mLayout.removeView(mViews.get(0)); in testOnChildRemoved() 117 mLayout.removeView(mViews.get(3)); in testOnChildRemoved() 132 for (int i = 0; i < mLayout.getChildCount(); i++) { in testStackedAtPosition() 134 mLayout.getChildAt(i).getTranslationX(), 2f); in testStackedAtPosition() 135 assertEquals(y, mLayout.getChildAt(i).getTranslationY(), 2f); in testStackedAtPosition() 136 assertEquals(1f, mLayout.getChildAt(i).getAlpha(), .01f); in testStackedAtPosition() 143 for (int i = 0; i < mLayout.getChildCount(); i++) { in testBubblesInCorrectExpandedPositions() [all …]
|
D | StackAnimationControllerTest.java | 68 return mLayout.getChildCount(); in setUp() 71 mLayout.setActiveController(mStackController); in setUp() 73 mStackOffset = mLayout.getResources().getDimensionPixelSize(R.dimen.bubble_stack_offset); in setUp() 183 mLayout.addView( in testChildAdded() 207 assertEquals(0, mLayout.getTransientViewCount()); in testChildRemoved() 209 final View firstView = mLayout.getChildAt(0); in testChildRemoved() 210 mLayout.removeView(firstView); in testChildRemoved() 213 assertEquals(1, mLayout.getTransientViewCount()); in testChildRemoved() 214 assertEquals(-1, mLayout.indexOfChild(firstView)); in testChildRemoved() 220 assertEquals(0, mLayout.getTransientViewCount()); in testChildRemoved() [all …]
|
D | PhysicsAnimationLayoutTestCase.java | 54 TestablePhysicsAnimationLayout mLayout; field in PhysicsAnimationLayoutTestCase 77 mLayout = new TestablePhysicsAnimationLayout(mContext); in setUp() 78 mLayout.setLeft(0); in setUp() 79 mLayout.setRight(mWidth); in setUp() 80 mLayout.setTop(0); in setUp() 81 mLayout.setBottom(mHeight); in setUp() 103 mLayout.addView(newView, 0); in addOneMoreThanBubbleLimitBubbles() 119 mLayout.setTestEndActionForProperty(animLatch::countDown, property); in waitForPropertyAnimations() 198 mLayout.mEndActionForProperty.put(property, () -> { in setTestEndActionForProperty()
|
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/ |
D | ElementLayoutActivity.java | 37 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/packages/SystemUI/src/com/android/systemui/recents/ |
D | ScreenPinningRequest.java | 171 private ViewGroup mLayout; field in ScreenPinningRequest.RequestWindowView 195 mLayout.setAlpha(0f); in onAttachedToWindow() 197 mLayout.setTranslationX(-OFFSET_DP * density); in onAttachedToWindow() 199 mLayout.setTranslationX(OFFSET_DP * density); in onAttachedToWindow() 201 mLayout.setTranslationY(OFFSET_DP * density); in onAttachedToWindow() 203 mLayout.animate() in onAttachedToWindow() 235 mLayout = (ViewGroup) View.inflate(getContext(), in inflateView() 241 mLayout.setClickable(true); in inflateView() 243 mLayout.setLayoutDirection(View.LAYOUT_DIRECTION_LTR); in inflateView() 245 mLayout.findViewById(R.id.screen_pinning_text_area) in inflateView() [all …]
|
D | RecentsOnboarding.java | 108 private final View mLayout; field in RecentsOnboarding 254 if (view == mLayout) { 268 if (view == mLayout) { 294 mLayout = LayoutInflater.from(mContext).inflate(R.layout.recents_onboarding, null); in RecentsOnboarding() 295 mTextView = mLayout.findViewById(R.id.onboarding_text); in RecentsOnboarding() 296 mDismissView = mLayout.findViewById(R.id.dismiss); in RecentsOnboarding() 297 mArrowView = mLayout.findViewById(R.id.arrow); in RecentsOnboarding() 305 mLayout.addOnAttachStateChangeListener(mOnAttachStateChangeListener); in RecentsOnboarding() 402 mLayout.setTag(stringRes); in show() 407 mLayout.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE); in show() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | Merge.java | 29 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()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/animation/ |
D | ExpandedAnimationController.java | 206 if (mLayout == null) { in updateResources() 209 Resources res = mLayout.getContext().getResources(); in updateResources() 259 final View bubble = mLayout.getChildAt(index); in startOrUpdatePathAnimation() 275 mLayout.isFirstChildXLeftOfCenter(mCollapsePoint.x) ? -1 : 1; in startOrUpdatePathAnimation() 294 (expanding && !mLayout.isFirstChildXLeftOfCenter(bubble.getTranslationX())) in startOrUpdatePathAnimation() 295 || (!expanding && mLayout.isFirstChildXLeftOfCenter(mCollapsePoint.x)); in startOrUpdatePathAnimation() 298 : ((mLayout.getChildCount() - index) * 10); in startOrUpdatePathAnimation() 302 || (!firstBubbleLeads && index == mLayout.getChildCount() - 1); in startOrUpdatePathAnimation() 329 mLayout.cancelAnimationsOnView(bubble); in prepareForBubbleDrag() 333 mLayout.getContext(), bubble, in prepareForBubbleDrag() [all …]
|
D | StackAnimationController.java | 237 if (mLayout.getChildCount() > 0) { 301 if (mLayout == null || !isStackPositionSet()) { in isStackOnLeftSide() 306 float screenCenter = mLayout.getWidth() / 2; in isStackOnLeftSide() 349 final boolean stackOnLeftSide = x - mBubbleBitmapSize / 2 < mLayout.getWidth() / 2; in flingStackThenSpringToEdge() 363 if (mLayout == null || mLayout.getChildCount() == 0) { in flingStackThenSpringToEdge() 367 final ContentResolver contentResolver = mLayout.getContext().getContentResolver(); in flingStackThenSpringToEdge() 427 final boolean onLeft = mLayout.isFirstChildXLeftOfCenter(stackPos.x); 597 final WindowInsets insets = mLayout.getRootWindowInsets(); 608 mLayout.getWidth() 625 mLayout.getHeight() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | SimpleCursorAdapterTest.java | 44 int mLayout; field in SimpleCursorAdapterTest 60 mLayout = com.android.internal.R.layout.simple_list_item_2; in setUp() 93 SimpleCursorAdapter ca = new SimpleCursorAdapter(mContext, mLayout, mCursor2x2, mFrom, mTo); in testCreateLive() 104 SimpleCursorAdapter ca = new SimpleCursorAdapter(mContext, mLayout, null, mFrom, mTo); in testCreateNull() 115 SimpleCursorAdapter ca = new SimpleCursorAdapter(mContext, mLayout, mCursor2x2, mFrom, mTo); in testChangeCursorLive() 134 SimpleCursorAdapter ca = new SimpleCursorAdapter(mContext, mLayout, mCursor2x2, mFrom, mTo); in testChangeCursorNull() 153 TestSimpleCursorAdapter ca = new TestSimpleCursorAdapter(mContext, mLayout, mCursor2x2, in testChangeCursorColumns() 179 SimpleCursorAdapter ca = new SimpleCursorAdapter(mContext, mLayout, null, null, null); in testNullConstructor() 189 … TestSimpleCursorAdapter ca = new TestSimpleCursorAdapter(mContext, mLayout, null, null, null); in testChangeNullToMapped() 212 TestSimpleCursorAdapter ca = new TestSimpleCursorAdapter(mContext, mLayout, mCursor2x2, in testChangeMapping()
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/template/ |
D | TemplateLayoutMixinTest.java | 37 private TestTemplateLayout mLayout; field in TemplateLayoutMixinTest 41 mLayout = new TestTemplateLayout(InstrumentationRegistry.getContext()); in setUp() 46 final TestMixin mixin = mLayout.getMixin(TestMixin.class); in testGetMixin() 57 assertNull("TestMixinSubclass should be null", mLayout.getMixin(TestMixinSubclass.class)); in testGetMixin()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | RecyclerView.java | 334 @VisibleForTesting LayoutManager mLayout; field in RecyclerView 523 mLayout.removeAndRecycleView(viewHolder.itemView, mRecycler); 825 mLayout.onItemsAdded(RecyclerView.this, op.positionStart, op.itemCount); in initAdapterManager() 828 mLayout.onItemsRemoved(RecyclerView.this, op.positionStart, op.itemCount); in initAdapterManager() 831 mLayout.onItemsUpdated(RecyclerView.this, op.positionStart, op.itemCount, in initAdapterManager() 835 mLayout.onItemsMoved(RecyclerView.this, op.positionStart, op.itemCount, 1); in initAdapterManager() 987 if (mLayout != null) { in removeAndRecycleViews() 988 mLayout.removeAndRecycleAllViews(mRecycler); in removeAndRecycleViews() 989 mLayout.removeAndRecycleScrapInt(mRecycler); in removeAndRecycleViews() 1020 if (mLayout != null) { in setAdapterInternal() [all …]
|
/frameworks/base/core/java/android/transition/ |
D | Scene.java | 41 private View mLayout; // alternative to layoutId field in Scene 126 mLayout = layout; in Scene() 135 mLayout = layout; in Scene() 177 if (mLayoutId > 0 || mLayout != null) { in enter() 184 mSceneRoot.addView(mLayout); in enter()
|
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/ |
D | LLEditTextThenButton.java | 31 private LinearLayout mLayout; field in LLEditTextThenButton 39 mLayout = findViewById(R.id.layout); in onCreate() 45 return mLayout; in getLayout()
|