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.java118 assertNotNull(mTextView.getLayout()); in testOnTouchEventHorizontalMotion()
120 final float rightMost = mTextView.getLayout().getLineRight(0) - mTextView.getWidth() in testOnTouchEventHorizontalMotion()
212 assertNotNull(mTextView.getLayout());
214 final float bottom = mTextView.getLayout().getHeight() - mTextView.getHeight()
315 assertNotNull(mTextView.getLayout());
379 assertNotNull(mTextView.getLayout()); in testOnKeyDownVerticalMovement()
401 assertNotNull(mTextView.getLayout()); in testOnKeyDownHorizontalMovement()
427 assertNotNull(mTextView.getLayout()); in testOnKeyDownExceptions()
461 assertNotNull(mTextView.getLayout()); in testVerticalMovement()
534 assertNull(mTextView.getLayout()); in testMovementWithNullLayout()
[all …]
DLinkMovementMethodTest.java298 int y = (mView.getLayout().getLineTop(1) + mView.getLayout().getLineBottom(1)) / 2; in testOnTouchEvent_nullViewParam()
307 int y = (mView.getLayout().getLineTop(1) + mView.getLayout().getLineBottom(1)) / 2; in testOnTouchEvent_nullSpannableParam()
489 int x = (mView.getLayout().getLineStart(line) + mView.getLayout().getLineEnd(line)) / 2; in performMotionOnLine()
490 int y = (mView.getLayout().getLineTop(line) + mView.getLayout().getLineBottom(line)) / 2; in performMotionOnLine()
DBaseMovementMethodTest.java113 () -> mTextView.scrollTo((int) mTextView.getLayout().getLineWidth(0), 0)); in testOnGenericMotionEvent_horizontalScroll()
175 () -> mTextView.scrollTo(0, mTextView.getLayout().getHeight())); in testOnGenericMotionEvent_verticalScroll()
DTouchTest.java88 final Layout layout = mTextView.getLayout(); in testScrollTo()
DArrowKeyMovementMethodTest.java102 PollingCheck.waitFor(() -> mTextView.isFocused() && (mTextView.getLayout() != null)); in setup()
154 assertNotNull(mTextView.getLayout()); in testOnTakeFocus()
155 assertEquals(1, mTextView.getLayout().getLineCount()); in testOnTakeFocus()
1432 assertNull(mTextView.getLayout()); in initTextViewWithNullLayout()
/cts/tests/tests/widget/src/android/widget/cts/
DTwoLineListItemTest.java61 AttributeSet attrs = mActivity.getResources().getLayout(R.layout.twolinelistitem); in testConstructor()
80 AttributeSet attrs = mActivity.getResources().getLayout(R.layout.twolinelistitem); in testConstructorWithNullContext2()
86 AttributeSet attrs = mActivity.getResources().getLayout(R.layout.twolinelistitem); in testConstructorWithNullContext3()
DTextViewTest.java289 assertNotNull(mTextView.getLayout()); in testGetLayout()
300 assertNull(runnable.getLayout()); in testGetLayout()
301 assertNotNull(mTextView.getLayout()); in testGetLayout()
2736 assertNotNull(mTextView.getLayout()); in testGetFocusedRect()
2742 assertEquals((int) mTextView.getLayout().getPrimaryHorizontal(3), rc.left); in testGetFocusedRect()
2743 assertEquals((int) mTextView.getLayout().getPrimaryHorizontal(13), rc.right); in testGetFocusedRect()
2744 assertEquals(mTextView.getLayout().getLineTop(0), rc.top); in testGetFocusedRect()
2745 assertEquals(mTextView.getLayout().getLineBottom(0), rc.bottom); in testGetFocusedRect()
2755 assertNotNull(mTextView.getLayout()); in testGetFocusedRect()
2756 assertEquals((int) mTextView.getLayout().getPrimaryHorizontal(3) - 2, rc.left); in testGetFocusedRect()
[all …]
DGallery_LayoutParamsTest.java44 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.java53 XmlPullParser parser = mContext.getResources().getLayout(R.layout.absolute_layout); in getAttributeSet()
DLinearLayout_LayoutParamsTest.java46 XmlResourceParser p = context.getResources().getLayout(R.layout.linearlayout_layout2); in testConstructor()
DAbsoluteLayoutTest.java75 XmlPullParser parser = mActivity.getResources().getLayout(R.layout.absolute_layout); in getAttributeSet()
DFrameLayout_LayoutParamsTest.java55 XmlPullParser parser = mContext.getResources().getLayout(R.layout.framelayout_layout); in getAttributeSet()
DRadioGroup_LayoutParamsTest.java161 XmlPullParser parser = mContext.getResources().getLayout(resId); in getAttributeSet()
DTimePickerTest.java84 AttributeSet attrs = mActivity.getResources().getLayout(R.layout.timepicker); in testConstructors()
107 AttributeSet attrs = mActivity.getResources().getLayout(R.layout.timepicker); in testConstructorNullContext2()
113 AttributeSet attrs = mActivity.getResources().getLayout(R.layout.timepicker); in testConstructorNullContext3()
DSlidingDrawerTest.java85 XmlPullParser parser = mActivity.getResources().getLayout(R.layout.sliding_drawer_layout); in testConstructor()
DTableRowTest.java153 XmlResourceParser parser = resources.getLayout(R.layout.table_layout_1); in testGenerateLayoutParamsFromAttributeSet()
/cts/tests/tests/view/src/android/view/cts/
DLayoutInflaterTest.java278 XmlResourceParser parser = mContext.getResources().getLayout(R.layout.inflater_layout); in testInflateParser()
296 parser = mContext.getResources().getLayout(R.layout.inflater_layout); in testInflateParser()
300 parser = mContext.getResources().getLayout(R.layout.inflater_layout); in testInflateParser()
318 XmlResourceParser parser = mContext.getResources().getLayout(R.layout.inflater_layout); in testInflateParserAttachToRoot()
336 parser = mContext.getResources().getLayout(R.layout.inflater_layout); in testInflateParserAttachToRoot()
341 parser = mContext.getResources().getLayout(R.layout.inflater_layout); in testInflateParserAttachToRoot()
DViewGroup_LayoutParamsTest.java52 XmlResourceParser parser = mContext.getResources().getLayout( in testConstructor()
DViewGroup_MarginLayoutParamsTest.java55 XmlResourceParser p = mContext.getResources().getLayout( in testConstructor()
/cts/tests/tests/assist/testapp/src/android/assist/testapp/
DTextViewActivity.java55 scrollY = mTextView.getLayout().getLineTop(mTextView.getLineCount()) in onReceivedEventFromCaller()
/cts/tests/tests/assist/src/android/assist/cts/
DTestStartActivity.java116 … scrollY = mTextView.getLayout().getLineTop(mTextView.getLineCount()) - mTextView.getHeight(); in scrollText()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestListAdapter.java433 int layout = getLayout(position); in getView()
475 private int getLayout(int position) { in getLayout() method in TestListAdapter
/cts/tests/tests/content/src/android/content/res/cts/
DResourcesTest.java516 mResources.getLayout(-1); in testGetLayout()
522 final XmlResourceParser layout = mResources.getLayout(R.layout.abslistview_layout); in testGetLayout()
983 XmlPullParser content_layout_parser = mResources.getLayout(R.layout.context_layout); in testGetAttributeSetSourceResId()
DTypedArrayTest.java93 getContext().getResources().getLayout(R.layout.source_style_layout); in testSourceResourceIdFromLayout()

12