/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()
|
D | GoneParentFocusedChild.java | 37 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/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/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 | 69 mLayout.setActiveController(mExpandedController); in setUp() 71 Resources res = mLayout.getResources(); in setUp() 103 mLayout.addView(newView, 0); in testOnChildAdded() 115 mLayout.removeView(mViews.get(0)); in testOnChildRemoved() 116 mLayout.removeView(mViews.get(3)); in testOnChildRemoved() 151 mLayout.removeView(draggedBubble); in testBubbleDismissed() 155 assertEquals(-1, mLayout.indexOfChild(draggedBubble)); in testBubbleDismissed() 243 for (int i = 0; i < mLayout.getChildCount(); i++) { in testStackedAtPosition() 245 mLayout.getChildAt(i).getTranslationX(), 2f); in testStackedAtPosition() 246 assertEquals(y, mLayout.getChildAt(i).getTranslationY(), 2f); in testStackedAtPosition() [all …]
|
D | StackAnimationControllerTest.java | 57 mLayout.setActiveController(mStackController); in setUp() 59 mStackOffset = mLayout.getResources().getDimensionPixelSize(R.dimen.bubble_stack_offset); in setUp() 169 mLayout.addView( in testChildAdded() 193 assertEquals(0, mLayout.getTransientViewCount()); in testChildRemoved() 195 final View firstView = mLayout.getChildAt(0); in testChildRemoved() 196 mLayout.removeView(firstView); in testChildRemoved() 199 assertEquals(1, mLayout.getTransientViewCount()); in testChildRemoved() 200 assertEquals(-1, mLayout.indexOfChild(firstView)); in testChildRemoved() 206 assertEquals(0, mLayout.getTransientViewCount()); in testChildRemoved() 209 assertEquals(0, mLayout.getChildAt(0).getTranslationX(), .1f); 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/packages/SystemUI/src/com/android/systemui/recents/ |
D | ScreenPinningRequest.java | 160 private ViewGroup mLayout; field in ScreenPinningRequest.RequestWindowView 182 mLayout.setAlpha(0f); in onAttachedToWindow() 184 mLayout.setTranslationX(-OFFSET_DP * density); in onAttachedToWindow() 186 mLayout.setTranslationX(OFFSET_DP * density); in onAttachedToWindow() 188 mLayout.setTranslationY(OFFSET_DP * density); in onAttachedToWindow() 190 mLayout.animate() in onAttachedToWindow() 222 mLayout = (ViewGroup) View.inflate(getContext(), in inflateView() 228 mLayout.setClickable(true); in inflateView() 230 mLayout.setLayoutDirection(View.LAYOUT_DIRECTION_LTR); in inflateView() 232 mLayout.findViewById(R.id.screen_pinning_text_area) in inflateView() [all …]
|
D | RecentsOnboarding.java | 108 private final View mLayout; field in RecentsOnboarding 250 if (view == mLayout) { 263 if (view == mLayout) { 289 mLayout = LayoutInflater.from(mContext).inflate(R.layout.recents_onboarding, null); in RecentsOnboarding() 290 mTextView = mLayout.findViewById(R.id.onboarding_text); in RecentsOnboarding() 291 mDismissView = mLayout.findViewById(R.id.dismiss); in RecentsOnboarding() 292 mArrowView = mLayout.findViewById(R.id.arrow); in RecentsOnboarding() 300 mLayout.addOnAttachStateChangeListener(mOnAttachStateChangeListener); in RecentsOnboarding() 396 mLayout.setTag(stringRes); in show() 401 mLayout.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE); in show() [all …]
|
/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/bubbles/animation/ |
D | StackAnimationController.java | 193 if (mLayout == null || !isStackPositionSet()) { in isStackOnLeftSide() 198 float screenCenter = mLayout.getWidth() / 2; in isStackOnLeftSide() 230 final boolean stackOnLeftSide = x - mBubbleIconBitmapSize / 2 < mLayout.getWidth() / 2; in flingStackThenSpringToEdge() 244 if (mLayout == null || mLayout.getChildCount() == 0) { in flingStackThenSpringToEdge() 291 final boolean onLeft = mLayout.isFirstChildXLeftOfCenter(stackPos.x); 439 final WindowInsets insets = mLayout.getRootWindowInsets(); 450 mLayout.getWidth() 467 mLayout.getHeight() 545 velX, mLayout.getWidth() / 2f - mBubbleIconBitmapSize / 2f); 582 if (mLayout.getChildCount() == 0) { [all …]
|
D | ExpandedAnimationController.java | 147 if (mLayout != null) { in updateOrientation() 148 Resources res = mLayout.getContext().getResources(); in updateOrientation() 186 final View bubble = mLayout.getChildAt(index); in startOrUpdatePathAnimation() 202 mLayout.isFirstChildXLeftOfCenter(mCollapsePoint.x) ? -1 : 1; in startOrUpdatePathAnimation() 221 (expanding && !mLayout.isFirstChildXLeftOfCenter(bubble.getTranslationX())) in startOrUpdatePathAnimation() 222 || (!expanding && mLayout.isFirstChildXLeftOfCenter(mCollapsePoint.x)); in startOrUpdatePathAnimation() 225 : ((mLayout.getChildCount() - index) * 10); in startOrUpdatePathAnimation() 239 mLayout.cancelAnimationsOnView(bubble); in prepareForBubbleDrag() 252 if (mLayout.arePropertiesAnimatingOnView( in dragBubbleOut() 304 .translationX(mLayout.getWidth() / 2f - mBubbleSizePx / 2f) [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/biometrics/ |
D | BiometricDialogView.java | 91 protected final ViewGroup mLayout; field in BiometricDialogView 128 mLayout.animate() 177 mLayout = (ViewGroup) factory.inflate(R.layout.biometric_dialog, this, false); in BiometricDialogView() 178 addView(mLayout); in BiometricDialogView() 180 mLayout.setOnKeyListener(new View.OnKeyListener() { in BiometricDialogView() 199 final View space = mLayout.findViewById(R.id.space); in BiometricDialogView() 200 final View leftSpace = mLayout.findViewById(R.id.left_space); in BiometricDialogView() 201 final View rightSpace = mLayout.findViewById(R.id.right_space); in BiometricDialogView() 203 mDialog = mLayout.findViewById(R.id.dialog); in BiometricDialogView() 204 mTitleText = mLayout.findViewById(R.id.title); in BiometricDialogView() [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()
|