/cts/tests/tests/text/src/android/text/method/cts/ |
D | ScrollingMovementMethodTest.java | 117 assertNotNull(mTextView.getLayout()); in testOnTouchEventHorizontalMotion() 119 final float rightMost = mTextView.getLayout().getLineRight(0) - mTextView.getWidth() in testOnTouchEventHorizontalMotion() 211 assertNotNull(mTextView.getLayout()); 213 final float bottom = mTextView.getLayout().getHeight() - mTextView.getHeight() 304 assertNotNull(mTextView.getLayout()); 368 assertNotNull(mTextView.getLayout()); in testOnKeyDownVerticalMovement() 390 assertNotNull(mTextView.getLayout()); in testOnKeyDownHorizontalMovement() 416 assertNotNull(mTextView.getLayout()); in testOnKeyDownExceptions() 450 assertNotNull(mTextView.getLayout()); in testVerticalMovement() 523 assertNull(mTextView.getLayout()); in testMovementWithNullLayout() [all …]
|
D | LinkMovementMethodTest.java | 297 int y = (mView.getLayout().getLineTop(1) + mView.getLayout().getLineBottom(1)) / 2; in testOnTouchEvent_nullViewParam() 306 int y = (mView.getLayout().getLineTop(1) + mView.getLayout().getLineBottom(1)) / 2; in testOnTouchEvent_nullSpannableParam() 488 int x = (mView.getLayout().getLineStart(line) + mView.getLayout().getLineEnd(line)) / 2; in performMotionOnLine() 489 int y = (mView.getLayout().getLineTop(line) + mView.getLayout().getLineBottom(line)) / 2; in performMotionOnLine()
|
D | BaseMovementMethodTest.java | 112 () -> mTextView.scrollTo((int) mTextView.getLayout().getLineWidth(0), 0)); in testOnGenericMotionEvent_horizontalScroll() 174 () -> mTextView.scrollTo(0, mTextView.getLayout().getHeight())); in testOnGenericMotionEvent_verticalScroll()
|
D | TouchTest.java | 82 final Layout layout = mTextView.getLayout(); in testScrollTo()
|
D | ArrowKeyMovementMethodTest.java | 101 PollingCheck.waitFor(() -> mTextView.isFocused() && (mTextView.getLayout() != null)); in setup() 153 assertNotNull(mTextView.getLayout()); in testOnTakeFocus() 154 assertEquals(1, mTextView.getLayout().getLineCount()); in testOnTakeFocus() 1431 assertNull(mTextView.getLayout()); in initTextViewWithNullLayout()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TwoLineListItemTest.java | 60 AttributeSet attrs = mActivity.getResources().getLayout(R.layout.twolinelistitem); in testConstructor() 79 AttributeSet attrs = mActivity.getResources().getLayout(R.layout.twolinelistitem); in testConstructorWithNullContext2() 85 AttributeSet attrs = mActivity.getResources().getLayout(R.layout.twolinelistitem); in testConstructorWithNullContext3()
|
D | TextViewTest.java | 280 assertNotNull(mTextView.getLayout()); in testGetLayout() 291 assertNull(runnable.getLayout()); in testGetLayout() 292 assertNotNull(mTextView.getLayout()); in testGetLayout() 2636 assertNotNull(mTextView.getLayout()); in testGetFocusedRect() 2642 assertEquals((int) mTextView.getLayout().getPrimaryHorizontal(3), rc.left); in testGetFocusedRect() 2643 assertEquals((int) mTextView.getLayout().getPrimaryHorizontal(13), rc.right); in testGetFocusedRect() 2644 assertEquals(mTextView.getLayout().getLineTop(0), rc.top); in testGetFocusedRect() 2645 assertEquals(mTextView.getLayout().getLineBottom(0), rc.bottom); in testGetFocusedRect() 2655 assertNotNull(mTextView.getLayout()); in testGetFocusedRect() 2656 assertEquals((int) mTextView.getLayout().getPrimaryHorizontal(3) - 2, rc.left); in testGetFocusedRect() [all …]
|
D | Gallery_LayoutParamsTest.java | 43 XmlResourceParser p = context.getResources().getLayout(R.layout.gallery_test); in testConstructor()
|
D | TextViewFadingEdgeTest.java | 183 float lineMid = (textView.getLayout().getLineLeft(0) + in createTextView() 184 textView.getLayout().getLineRight(0)) / 2; in createTextView()
|
D | AbsoluteLayout_LayoutParamsTest.java | 52 XmlPullParser parser = mContext.getResources().getLayout(R.layout.absolute_layout); in getAttributeSet()
|
D | LinearLayout_LayoutParamsTest.java | 45 XmlResourceParser p = context.getResources().getLayout(R.layout.linearlayout_layout2); in testConstructor()
|
D | FrameLayout_LayoutParamsTest.java | 54 XmlPullParser parser = mContext.getResources().getLayout(R.layout.framelayout_layout); in getAttributeSet()
|
D | AbsoluteLayoutTest.java | 74 XmlPullParser parser = mActivity.getResources().getLayout(R.layout.absolute_layout); in getAttributeSet()
|
D | RadioGroup_LayoutParamsTest.java | 160 XmlPullParser parser = mContext.getResources().getLayout(resId); in getAttributeSet()
|
D | TimePickerTest.java | 78 AttributeSet attrs = mActivity.getResources().getLayout(R.layout.timepicker); in testConstructors() 101 AttributeSet attrs = mActivity.getResources().getLayout(R.layout.timepicker); in testConstructorNullContext2() 107 AttributeSet attrs = mActivity.getResources().getLayout(R.layout.timepicker); in testConstructorNullContext3()
|
D | TableRowTest.java | 152 XmlResourceParser parser = resources.getLayout(R.layout.table_layout_1); in testGenerateLayoutParamsFromAttributeSet()
|
D | SlidingDrawerTest.java | 84 XmlPullParser parser = mActivity.getResources().getLayout(R.layout.sliding_drawer_layout); in testConstructor()
|
D | RelativeLayoutTest.java | 257 XmlResourceParser parser = mActivity.getResources().getLayout(R.layout.relative_layout); in testGenerateLayoutParams1()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | LayoutInflaterTest.java | 272 XmlResourceParser parser = mContext.getResources().getLayout(R.layout.inflater_layout); in testInflateParser() 290 parser = mContext.getResources().getLayout(R.layout.inflater_layout); in testInflateParser() 294 parser = mContext.getResources().getLayout(R.layout.inflater_layout); in testInflateParser() 312 XmlResourceParser parser = mContext.getResources().getLayout(R.layout.inflater_layout); in testInflateParserAttachToRoot() 330 parser = mContext.getResources().getLayout(R.layout.inflater_layout); in testInflateParserAttachToRoot() 335 parser = mContext.getResources().getLayout(R.layout.inflater_layout); in testInflateParserAttachToRoot()
|
D | ViewGroup_LayoutParamsTest.java | 51 XmlResourceParser parser = mContext.getResources().getLayout( in testConstructor()
|
D | ViewGroup_MarginLayoutParamsTest.java | 54 XmlResourceParser p = mContext.getResources().getLayout( in testConstructor()
|
/cts/tests/tests/assist/testapp/src/android/assist/testapp/ |
D | TextViewActivity.java | 92 scrollY = mTextView.getLayout().getLineTop(mTextView.getLineCount()) in onReceive()
|
/cts/tests/tests/assist/src/android/assist/cts/ |
D | TestStartActivity.java | 143 … scrollY = mTextView.getLayout().getLineTop(mTextView.getLineCount()) - mTextView.getHeight(); in scrollText()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | TestListAdapter.java | 382 int layout = getLayout(position); in getView() 424 private int getLayout(int position) { in getLayout() method in TestListAdapter
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | ResourcesTest.java | 475 mResources.getLayout(-1); in testGetLayout() 481 final XmlResourceParser layout = mResources.getLayout(R.layout.abslistview_layout); in testGetLayout()
|