/cts/tests/tests/widget/src/android/widget/cts/ |
D | TextViewHandwritingGestureTest.java | 207 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 …]
|
D | TextViewHighlightTest.java | 147 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()
|
D | TextViewSearchResultHighlightTest.java | 186 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()
|
D | TwoLineListItemTest.java | 70 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()
|
D | Gallery_LayoutParamsTest.java | 44 XmlResourceParser p = context.getResources().getLayout(R.layout.gallery_test); in testConstructor()
|
D | TextViewTest.java | 325 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 …]
|
D | AbsoluteLayout_LayoutParamsTest.java | 53 XmlPullParser parser = mContext.getResources().getLayout(R.layout.absolute_layout); in getAttributeSet()
|
D | TextViewFadingEdgeTest.java | 191 float lineMid = (textView.getLayout().getLineLeft(0) + in createTextView() 192 textView.getLayout().getLineRight(0)) / 2; in createTextView()
|
D | LinearLayout_LayoutParamsTest.java | 46 XmlResourceParser p = context.getResources().getLayout(R.layout.linearlayout_layout2); in testConstructor()
|
D | FrameLayout_LayoutParamsTest.java | 55 XmlPullParser parser = mContext.getResources().getLayout(R.layout.framelayout_layout); in getAttributeSet()
|
D | AbsoluteLayoutTest.java | 83 XmlPullParser parser = mActivity.getResources().getLayout(R.layout.absolute_layout); in getAttributeSet()
|
D | EditTextTest.java | 535 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()
|
D | RadioGroup_LayoutParamsTest.java | 161 XmlPullParser parser = mContext.getResources().getLayout(resId); in getAttributeSet()
|
D | TimePickerTest.java | 98 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()
|
D | TableRowTest.java | 162 XmlResourceParser parser = resources.getLayout(R.layout.table_layout_1); in testGenerateLayoutParamsFromAttributeSet()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | LayoutClusterCountTest.kt | 56 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()
|
D | FontResourceTest.java | 75 return textView.getLayout().getWidth(); in measureText()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | LinkMovementMethodTest.java | 315 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 …]
|
D | ScrollingMovementMethodTest.java | 130 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 …]
|
D | BaseMovementMethodTest.java | 123 () -> mTextView.scrollTo((int) mTextView.getLayout().getLineWidth(0), 0)); in testOnGenericMotionEvent_horizontalScroll() 185 () -> mTextView.scrollTo(0, mTextView.getLayout().getHeight())); in testOnGenericMotionEvent_verticalScroll()
|
D | TouchTest.java | 99 final Layout layout = mTextView.getLayout(); in testScrollTo()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | LayoutInflaterTest.java | 280 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()
|
D | ViewGroup_LayoutParamsTest.java | 54 XmlResourceParser parser = mContext.getResources().getLayout( in testConstructor()
|
/cts/tests/tests/assist/testapp/src/android/assist/testapp/ |
D | TextViewActivity.java | 55 scrollY = mTextView.getLayout().getLineTop(mTextView.getLineCount()) in onReceivedEventFromCaller()
|
/cts/tests/tests/assist/src/android/assist/cts/ |
D | TestStartActivity.java | 116 … scrollY = mTextView.getLayout().getLineTop(mTextView.getLineCount()) - mTextView.getHeight(); in scrollText()
|