Home
last modified time | relevance | path

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

12

/cts/tests/tests/widget/src/android/widget/cts/
DTextViewHandwritingGestureTest.java207 mEditText.getLayout().getLineTop(0), in performSelectGesture_character()
209 mEditText.getLayout().getLineBottom(0)); in performSelectGesture_character()
224 mEditText.getLayout().getLineTop(0), in previewSelectGesture_character()
226 mEditText.getLayout().getLineBottom(0)); in previewSelectGesture_character()
243 mEditText.getLayout().getLineTop(0), in performSelectGesture_word()
245 mEditText.getLayout().getLineBottom(0)); in performSelectGesture_word()
262 mEditText.getLayout().getLineTop(0), in previewSelectGesture_word()
264 mEditText.getLayout().getLineBottom(0)); in previewSelectGesture_word()
283 mEditText.getLayout().getLineTop(0), in performSelectGesture_betweenWords_shouldFallback()
285 mEditText.getLayout().getLineBottom(0)); in performSelectGesture_betweenWords_shouldFallback()
[all …]
DTextViewHighlightTest.java147 textView.getLayout().getSelectionPath(4, 8, expectPath); in drawRect()
179 textView.getLayout().getSelectionPath(4, 8, expectPath); in drawRectMultiple()
184 textView.getLayout().getSelectionPath(1, 3, expectPath); in drawRectMultiple()
215 textView.getLayout().getSelectionPath(1, 3, expectPath); in drawRectCollapsed()
244 textView.getLayout().getSelectionPath(4, 8, expectPath); in drawRect_EditText()
276 textView.getLayout().getSelectionPath(4, 8, expectPath); in drawRectMultiple_EditText()
281 textView.getLayout().getSelectionPath(1, 3, expectPath); in drawRectMultiple_EditText()
313 textView.getLayout().getSelectionPath(1, 3, expectPath); in drawRect_afterTextChange()
DTextViewSearchResultHighlightTest.java186 textView.getLayout().getSelectionPath(4, 8, expectPath); in drawRect()
217 textView.getLayout().getSelectionPath(4, 8, expectPath); in drawWithHighlight()
222 textView.getLayout().getSelectionPath(1, 3, expectPath); in drawWithHighlight()
248 textView.getLayout().getSelectionPath(4, 8, expectPath); in drawWithFocused()
253 textView.getLayout().getSelectionPath(1, 3, expectPath); in drawWithFocused()
DTwoLineListItemTest.java70 AttributeSet attrs = mActivity.getResources().getLayout(R.layout.twolinelistitem); in testConstructor()
89 AttributeSet attrs = mActivity.getResources().getLayout(R.layout.twolinelistitem); in testConstructorWithNullContext2()
95 AttributeSet attrs = mActivity.getResources().getLayout(R.layout.twolinelistitem); in testConstructorWithNullContext3()
DGallery_LayoutParamsTest.java44 XmlResourceParser p = context.getResources().getLayout(R.layout.gallery_test); in testConstructor()
DTextViewTest.java325 assertNotNull(mTextView.getLayout()); in testGetLayout()
336 assertNull(runnable.getLayout()); in testGetLayout()
337 assertNotNull(mTextView.getLayout()); in testGetLayout()
2941 assertNotNull(mTextView.getLayout()); in testGetFocusedRect()
2947 assertEquals((int) mTextView.getLayout().getPrimaryHorizontal(3), rc.left); in testGetFocusedRect()
2948 assertEquals((int) mTextView.getLayout().getPrimaryHorizontal(13), rc.right); in testGetFocusedRect()
2949 assertEquals(mTextView.getLayout().getLineTop(0), rc.top); in testGetFocusedRect()
2950 assertEquals(mTextView.getLayout().getLineBottom(0), rc.bottom); in testGetFocusedRect()
2960 assertNotNull(mTextView.getLayout()); in testGetFocusedRect()
2961 assertEquals((int) mTextView.getLayout().getPrimaryHorizontal(3) - 2, rc.left); in testGetFocusedRect()
[all …]
DAbsoluteLayout_LayoutParamsTest.java53 XmlPullParser parser = mContext.getResources().getLayout(R.layout.absolute_layout); in getAttributeSet()
DTextViewFadingEdgeTest.java191 float lineMid = (textView.getLayout().getLineLeft(0) + in createTextView()
192 textView.getLayout().getLineRight(0)) / 2; in createTextView()
DLinearLayout_LayoutParamsTest.java46 XmlResourceParser p = context.getResources().getLayout(R.layout.linearlayout_layout2); in testConstructor()
DFrameLayout_LayoutParamsTest.java55 XmlPullParser parser = mContext.getResources().getLayout(R.layout.framelayout_layout); in getAttributeSet()
DAbsoluteLayoutTest.java83 XmlPullParser parser = mActivity.getResources().getLayout(R.layout.absolute_layout); in getAttributeSet()
DEditTextTest.java535 int x = (int) textView.getLayout().getPrimaryHorizontal(offset) + 1; in getScreenCoords()
536 int line = textView.getLayout().getLineForOffset(offset); in getScreenCoords()
537 int yTop = textView.getLayout().getLineTop(line); in getScreenCoords()
538 int yBottom = textView.getLayout().getLineBottom(line); in getScreenCoords()
DRadioGroup_LayoutParamsTest.java161 XmlPullParser parser = mContext.getResources().getLayout(resId); in getAttributeSet()
DTimePickerTest.java98 AttributeSet attrs = mActivity.getResources().getLayout(R.layout.timepicker); in testConstructors()
121 AttributeSet attrs = mActivity.getResources().getLayout(R.layout.timepicker); in testConstructorNullContext2()
127 AttributeSet attrs = mActivity.getResources().getLayout(R.layout.timepicker); in testConstructorNullContext3()
DTableRowTest.java162 XmlResourceParser parser = resources.getLayout(R.layout.table_layout_1); in testGenerateLayoutParamsFromAttributeSet()
/cts/tests/tests/text/src/android/text/cts/
DLayoutClusterCountTest.kt56 fun getLayout( in getLayout() method in android.text.cts.LayoutClusterCountTest
82 getLayout(text, paint, width, rtl).getLineLetterSpacingUnitCount(0, false) in assertLetterSpacingUnit()
86 getLayout(text, paint, width, rtl).getLineLetterSpacingUnitCount(0, true) in assertLetterSpacingUnit()
140 val layout = getLayout(sampleText, mPaint, (desired / 3).toInt()) in testClusterCount_Multiline()
181 val expectedClusters = getLayout(ss).getLineLetterSpacingUnitCount(0, false) in testClusterCount_MultiStyle()
184 assertEquals(expectedClusters, getLayout(ss).getLineLetterSpacingUnitCount(0, false)) in testClusterCount_MultiStyle()
187 assertEquals(expectedClusters, getLayout(ss).getLineLetterSpacingUnitCount(0, false)) in testClusterCount_MultiStyle()
190 assertEquals(expectedClusters, getLayout(ss).getLineLetterSpacingUnitCount(0, false)) in testClusterCount_MultiStyle()
DFontResourceTest.java75 return textView.getLayout().getWidth(); in measureText()
/cts/tests/tests/text/src/android/text/method/cts/
DLinkMovementMethodTest.java315 float x = (mView.getLayout().getLineLeft(0) + mView.getLayout().getLineRight(0)) / 2f; in testOnTouchEvent_outsideLineBounds()
325 x = mView.getLayout().getLineLeft(0) - 1f; in testOnTouchEvent_outsideLineBounds()
326 y = (mView.getLayout().getLineTop(0) + mView.getLayout().getLineBottom(0)) / 2f; in testOnTouchEvent_outsideLineBounds()
335 x = mView.getLayout().getLineRight(0) + 1f; in testOnTouchEvent_outsideLineBounds()
336 y = (mView.getLayout().getLineTop(0) + mView.getLayout().getLineBottom(0)) / 2f; in testOnTouchEvent_outsideLineBounds()
345 x = (mView.getLayout().getLineLeft(0) + mView.getLayout().getLineRight(0)) / 2f; in testOnTouchEvent_outsideLineBounds()
346 y = mView.getLayout().getHeight() + 1f; in testOnTouchEvent_outsideLineBounds()
355 int y = (mView.getLayout().getLineTop(1) + mView.getLayout().getLineBottom(1)) / 2; in testOnTouchEvent_nullViewParam()
364 int y = (mView.getLayout().getLineTop(1) + mView.getLayout().getLineBottom(1)) / 2; in testOnTouchEvent_nullSpannableParam()
551 float x = (mView.getLayout().getLineLeft(line) + mView.getLayout().getLineRight(line)) / 2f; in performMotionOnLine()
[all …]
DScrollingMovementMethodTest.java130 final float tmpRightMost = mTextView.getLayout().getLineRight(0) - mTextView.getWidth() in testOnTouchEventHorizontalMotion()
145 assertNotNull(mTextView.getLayout()); in testOnTouchEventHorizontalMotion()
146 final float rightMost = mTextView.getLayout().getLineRight(0) - mTextView.getWidth() in testOnTouchEventHorizontalMotion()
237 assertNotNull(mTextView.getLayout());
239 final float bottom = mTextView.getLayout().getHeight() - mTextView.getHeight()
340 assertNotNull(mTextView.getLayout());
404 assertNotNull(mTextView.getLayout()); in testOnKeyDownVerticalMovement()
426 assertNotNull(mTextView.getLayout()); in testOnKeyDownHorizontalMovement()
452 assertNotNull(mTextView.getLayout()); in testOnKeyDownExceptions()
486 assertNotNull(mTextView.getLayout()); in testVerticalMovement()
[all …]
DBaseMovementMethodTest.java123 () -> mTextView.scrollTo((int) mTextView.getLayout().getLineWidth(0), 0)); in testOnGenericMotionEvent_horizontalScroll()
185 () -> mTextView.scrollTo(0, mTextView.getLayout().getHeight())); in testOnGenericMotionEvent_verticalScroll()
DTouchTest.java99 final Layout layout = mTextView.getLayout(); in testScrollTo()
/cts/tests/tests/view/src/android/view/cts/
DLayoutInflaterTest.java280 XmlResourceParser parser = mContext.getResources().getLayout(R.layout.inflater_layout); in testInflateParser()
298 parser = mContext.getResources().getLayout(R.layout.inflater_layout); in testInflateParser()
302 parser = mContext.getResources().getLayout(R.layout.inflater_layout); in testInflateParser()
320 XmlResourceParser parser = mContext.getResources().getLayout(R.layout.inflater_layout); in testInflateParserAttachToRoot()
338 parser = mContext.getResources().getLayout(R.layout.inflater_layout); in testInflateParserAttachToRoot()
343 parser = mContext.getResources().getLayout(R.layout.inflater_layout); in testInflateParserAttachToRoot()
DViewGroup_LayoutParamsTest.java54 XmlResourceParser parser = 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()

12