Home
last modified time | relevance | path

Searched refs:getLayout (Results 1 – 25 of 36) sorted by relevance

12

/cts/tests/tests/text/src/android/text/method/cts/
DScrollingMovementMethodTest.java117 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 …]
DLinkMovementMethodTest.java297 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()
DBaseMovementMethodTest.java112 () -> mTextView.scrollTo((int) mTextView.getLayout().getLineWidth(0), 0)); in testOnGenericMotionEvent_horizontalScroll()
174 () -> mTextView.scrollTo(0, mTextView.getLayout().getHeight())); in testOnGenericMotionEvent_verticalScroll()
DTouchTest.java82 final Layout layout = mTextView.getLayout(); in testScrollTo()
DArrowKeyMovementMethodTest.java101 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/
DTwoLineListItemTest.java60 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()
DTextViewTest.java280 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 …]
DGallery_LayoutParamsTest.java43 XmlResourceParser p = context.getResources().getLayout(R.layout.gallery_test); in testConstructor()
DTextViewFadingEdgeTest.java183 float lineMid = (textView.getLayout().getLineLeft(0) + in createTextView()
184 textView.getLayout().getLineRight(0)) / 2; in createTextView()
DAbsoluteLayout_LayoutParamsTest.java52 XmlPullParser parser = mContext.getResources().getLayout(R.layout.absolute_layout); in getAttributeSet()
DLinearLayout_LayoutParamsTest.java45 XmlResourceParser p = context.getResources().getLayout(R.layout.linearlayout_layout2); in testConstructor()
DFrameLayout_LayoutParamsTest.java54 XmlPullParser parser = mContext.getResources().getLayout(R.layout.framelayout_layout); in getAttributeSet()
DAbsoluteLayoutTest.java74 XmlPullParser parser = mActivity.getResources().getLayout(R.layout.absolute_layout); in getAttributeSet()
DRadioGroup_LayoutParamsTest.java160 XmlPullParser parser = mContext.getResources().getLayout(resId); in getAttributeSet()
DTimePickerTest.java78 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()
DTableRowTest.java152 XmlResourceParser parser = resources.getLayout(R.layout.table_layout_1); in testGenerateLayoutParamsFromAttributeSet()
DSlidingDrawerTest.java84 XmlPullParser parser = mActivity.getResources().getLayout(R.layout.sliding_drawer_layout); in testConstructor()
DRelativeLayoutTest.java257 XmlResourceParser parser = mActivity.getResources().getLayout(R.layout.relative_layout); in testGenerateLayoutParams1()
/cts/tests/tests/view/src/android/view/cts/
DLayoutInflaterTest.java272 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()
DViewGroup_LayoutParamsTest.java51 XmlResourceParser parser = mContext.getResources().getLayout( in testConstructor()
DViewGroup_MarginLayoutParamsTest.java54 XmlResourceParser p = mContext.getResources().getLayout( in testConstructor()
/cts/tests/tests/assist/testapp/src/android/assist/testapp/
DTextViewActivity.java92 scrollY = mTextView.getLayout().getLineTop(mTextView.getLineCount()) in onReceive()
/cts/tests/tests/assist/src/android/assist/cts/
DTestStartActivity.java143 … scrollY = mTextView.getLayout().getLineTop(mTextView.getLineCount()) - mTextView.getHeight(); in scrollText()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestListAdapter.java382 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/
DResourcesTest.java475 mResources.getLayout(-1); in testGetLayout()
481 final XmlResourceParser layout = mResources.getLayout(R.layout.abslistview_layout); in testGetLayout()

12