Home
last modified time | relevance | path

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

12

/cts/tests/tests/text/src/android/text/method/cts/
DScrollingMovementMethodTest.java103 assertNotNull(mTextView.getLayout()); in testOnTouchEventHorizontalMotion()
105 float rightMost = mTextView.getLayout().getLineRight(0) - mTextView.getWidth() in testOnTouchEventHorizontalMotion()
206 assertNotNull(mTextView.getLayout());
208 float bottom = mTextView.getLayout().getHeight() - mTextView.getHeight()
308 assertNotNull(mTextView.getLayout());
384 assertNotNull(mTextView.getLayout());
423 assertNotNull(mTextView.getLayout());
472 assertNotNull(mTextView.getLayout());
517 assertNotNull(mTextView.getLayout());
591 assertNull(mTextView.getLayout());
[all …]
DLinkMovementMethodTest.java275 int y = (mView.getLayout().getLineTop(1) + mView.getLayout().getLineBottom(1)) / 2; in testOnTouchEvent()
472 int x = (mView.getLayout().getLineStart(line) + mView.getLayout().getLineEnd(line)) / 2; in performMotionOnLine()
473 int y = (mView.getLayout().getLineTop(line) + mView.getLayout().getLineBottom(line)) / 2; in performMotionOnLine()
DTouchTest.java68 final Layout layout = tv.getLayout(); in testScrollTo()
DArrowKeyMovementMethodTest.java82 assertNotNull(mTextView.getLayout()); in setUp()
139 assertNotNull(mTextView.getLayout()); in testOnTakeFocus()
140 assertEquals(1, mTextView.getLayout().getLineCount()); in testOnTakeFocus()
1401 assertNull(mTextView.getLayout()); in initTextViewWithNullLayout()
/cts/tests/tests/view/src/android/view/cts/
DLayoutInflaterTest.java267 XmlResourceParser parser = getContext().getResources().getLayout( in testInflate3()
291 parser = getContext().getResources().getLayout( in testInflate3()
296 parser = getContext().getResources().getLayout( in testInflate3()
312 XmlResourceParser parser = getContext().getResources().getLayout( in testInflate4()
336 parser = getContext().getResources().getLayout( in testInflate4()
342 parser = getContext().getResources().getLayout( in testInflate4()
DViewGroup_LayoutParamsTest.java39 XmlResourceParser parser = mContext.getResources().getLayout( in testConstructor()
DViewGroup_MarginLayoutParamsTest.java45 XmlResourceParser p = mContext.getResources().getLayout( in testConstructor()
/cts/tests/tests/widget/src/android/widget/cts/
DGallery_LayoutParamsTest.java36 XmlResourceParser p = mContext.getResources().getLayout(R.layout.gallery_test); in testConstructor()
DLinearLayout_LayoutParamsTest.java34 XmlResourceParser p = mContext.getResources().getLayout(R.layout.linearlayout_layout); in testConstructor()
DTextViewTest.java198 assertNotNull(mTextView.getLayout()); in testGetLayout()
209 assertNull(runnable.getLayout()); in testGetLayout()
210 assertNotNull(mTextView.getLayout()); in testGetLayout()
2314 assertNotNull(mTextView.getLayout()); in testGetFocusedRect()
2320 assertEquals((int) mTextView.getLayout().getPrimaryHorizontal(3), rc.left); in testGetFocusedRect()
2321 assertEquals((int) mTextView.getLayout().getPrimaryHorizontal(13), rc.right); in testGetFocusedRect()
2322 assertEquals(mTextView.getLayout().getLineTop(0), rc.top); in testGetFocusedRect()
2323 assertEquals(mTextView.getLayout().getLineBottom(0), rc.bottom); in testGetFocusedRect()
2335 assertNotNull(mTextView.getLayout()); in testGetFocusedRect()
2336 assertEquals((int) mTextView.getLayout().getPrimaryHorizontal(3) - 2, rc.left); in testGetFocusedRect()
[all …]
DRadioButtonTest.java41 AttributeSet attrs = mContext.getResources().getLayout(R.layout.radiogroup_1); in testConstructor()
DAbsoluteLayout_LayoutParamsTest.java38 XmlPullParser parser = mContext.getResources().getLayout(R.layout.absolute_layout); in getAttributeSet()
DTextViewFadingEdgeTest.java175 float lineMid = (textView.getLayout().getLineLeft(0) + in createTextView()
176 textView.getLayout().getLineRight(0)) / 2; in createTextView()
DTwoLineListItemTest.java49 AttributeSet attrs = mActivity.getResources().getLayout(R.layout.twolinelistitem); in testConstructor()
DAbsoluteLayoutTest.java62 XmlPullParser parser = mActivity.getResources().getLayout(R.layout.absolute_layout); in getAttributeSet()
DFrameLayout_LayoutParamsTest.java40 XmlPullParser parser = mContext.getResources().getLayout(R.layout.framelayout_layout); in getAttributeSet()
DRadioGroup_LayoutParamsTest.java157 XmlPullParser parser = mContext.getResources().getLayout(resId); in getAttributeSet()
DTimePickerTest.java55 mContext.getResources().getLayout(android.widget.cts.R.layout.timepicker); in testConstructors()
DTableRowTest.java135 XmlResourceParser parser = resources.getLayout(R.layout.table_layout_1); in testGenerateLayoutParams()
DSlidingDrawerTest.java66 XmlPullParser parser = mActivity.getResources().getLayout(R.layout.sliding_drawer_layout); in testConstructor()
DFrameLayoutTest.java317 XmlPullParser parser = mActivity.getResources().getLayout(R.layout.framelayout_layout); in getAttributeSet()
/cts/tests/tests/assist/testapp/src/android/voiceinteraction/testapp/
DTextViewActivity.java96 scrollY = mTextView.getLayout().getLineTop(mTextView.getLineCount()) in onReceive()
/cts/tests/tests/assist/src/android/assist/cts/
DTestStartActivity.java150 … 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.java420 mResources.getLayout(-1); in testGetLayout()
426 final XmlResourceParser layout = mResources.getLayout(R.layout.abslistview_layout); in testGetLayout()

12