/cts/tests/tests/widget/src/android/widget/cts/ |
D | SwitchTest.java | 42 import com.android.compatibility.common.util.WidgetTestUtils; 132 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mSwitch, in testAccessThumbDrawable() 140 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mSwitch, in testAccessThumbDrawable() 148 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mSwitch, () -> { in testAccessThumbDrawable() 161 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mSwitch, in testAccessTrackDrawable() 172 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mSwitch, in testAccessTrackDrawable() 181 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mSwitch, in testAccessTrackDrawable() 190 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mSwitch, () -> { in testAccessTrackDrawable() 207 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, container, in testAccessText() 211 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mSwitch, in testAccessText() [all …]
|
D | ListViewTest.java | 75 import com.android.compatibility.common.util.WidgetTestUtils; 181 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mListView, in setAdapter() 187 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mListView, in testAccessDividerHeight() 194 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mListView, in testAccessDividerHeight() 200 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mListView, in testAccessDividerHeight() 220 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mListView, in testAccessAdapter() 226 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mListView, in testAccessAdapter() 332 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mListView, in testAccessFooterView() 335 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mListView, in testAccessFooterView() 340 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mListView, in testAccessFooterView() [all …]
|
D | ToolbarTest.java | 47 import com.android.compatibility.common.util.WidgetTestUtils; 91 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mMainToolbar, in testTitleAndSubtitleContent() 95 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mMainToolbar, in testTitleAndSubtitleContent() 99 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mMainToolbar, in testTitleAndSubtitleContent() 103 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mMainToolbar, in testTitleAndSubtitleContent() 110 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mMainToolbar, in testTitleAndSubtitleAppearance() 112 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mMainToolbar, in testTitleAndSubtitleAppearance() 118 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mMainToolbar, in testTitleAndSubtitleAppearance() 120 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mMainToolbar, in testTitleAndSubtitleAppearance() 123 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mMainToolbar, in testTitleAndSubtitleAppearance() [all …]
|
D | FrameLayoutTest.java | 60 import com.android.compatibility.common.util.WidgetTestUtils; 103 WidgetTestUtils.assertScaledPixels(48, foreground.getIntrinsicHeight(), mActivity); in testSetForegroundGravity() 104 WidgetTestUtils.assertScaledPixels(48, foreground.getIntrinsicWidth(), mActivity); in testSetForegroundGravity() 109 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mFrameLayout, in testSetForegroundGravity() 122 WidgetTestUtils.assertScaledPixels(48, newForeground.getIntrinsicHeight(), mActivity); in testSetForegroundGravity() 123 WidgetTestUtils.assertScaledPixels(48, newForeground.getIntrinsicWidth(), mActivity); in testSetForegroundGravity() 127 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mFrameLayout, () -> { in testSetForegroundGravity() 146 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mFrameLayout, () -> { in testGatherTransparentRegion() 154 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mFrameLayout, in testGatherTransparentRegion() 169 WidgetTestUtils.assertScaledPixels(30, textView.getMeasuredHeight(), mActivity); in testAccessMeasureAllChildren() [all …]
|
D | ImageSwitcherTest.java | 40 import com.android.compatibility.common.util.WidgetTestUtils; 101 WidgetTestUtils.assertEquals(sceneryBitmap.getBitmap(), currViewBitmap.getBitmap()); in testSetImageResource() 109 WidgetTestUtils.assertEquals(testimageBitmap.getBitmap(), currViewBitmap.getBitmap()); in testSetImageResource() 137 Bitmap testImageBitmap = WidgetTestUtils.getUnscaledAndDitheredBitmap( in testSetImageURI() 140 WidgetTestUtils.assertEquals(testImageBitmap, currViewBitmap.getBitmap()); in testSetImageURI() 146 Bitmap sceneryImageBitmap = WidgetTestUtils.getUnscaledAndDitheredBitmap( in testSetImageURI() 151 WidgetTestUtils.assertEquals(sceneryImageBitmap, currViewBitmap.getBitmap()); in testSetImageURI()
|
D | Gallery_LayoutParamsTest.java | 26 import com.android.compatibility.common.util.WidgetTestUtils; 44 WidgetTestUtils.beginDocument(p, "LinearLayout"); in testConstructor()
|
D | LinearLayoutTest.java | 55 import com.android.compatibility.common.util.WidgetTestUtils; 849 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, parent, in testDividersInVerticalLayout() 856 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, parent, in testDividersInVerticalLayout() 862 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, parent, in testDividersInVerticalLayout() 870 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, parent, in testDividersInVerticalLayout() 878 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, parent, in testDividersInVerticalLayout() 885 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, parent, in testDividersInVerticalLayout() 892 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, parent, in testDividersInVerticalLayout() 899 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, parent, in testDividersInVerticalLayout() 906 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, parent, in testDividersInVerticalLayout() [all …]
|
D | AbsoluteLayout_LayoutParamsTest.java | 31 import com.android.compatibility.common.util.WidgetTestUtils; 53 WidgetTestUtils.beginDocument(parser, "LinearLayout"); in getAttributeSet()
|
D | AbsListView_LayoutParamsTest.java | 30 import com.android.compatibility.common.util.WidgetTestUtils; 47 WidgetTestUtils.beginDocument(parser, "ViewGroup_Layout"); in setup()
|
D | SimpleCursorTreeAdapterTest.java | 37 import com.android.compatibility.common.util.WidgetTestUtils; 155 WidgetTestUtils.assertEquals(d.getBitmap(), in testSetViewImage() 182 Bitmap test = WidgetTestUtils.getUnscaledAndDitheredBitmap(mContext.getResources(), in testSetViewImage() 184 WidgetTestUtils.assertEquals(test, actualBitmap); in testSetViewImage()
|
D | MagnifierTest.java | 39 import com.android.compatibility.common.util.WidgetTestUtils; 217 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, quadrant1, () -> { in testWindowContent_modifiesAfterUpdate() 237 WidgetTestUtils.runOnMainAndLayoutSync(mActivityRule, () -> { in prepareFourQuadrantsScenario() 242 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mLayout, null); in prepareFourQuadrantsScenario()
|
D | CheckedTextViewTest.java | 48 import com.android.compatibility.common.util.WidgetTestUtils; 316 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mCheckedTextView, 326 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mCheckedTextView, () -> { 340 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mCheckedTextView, 352 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mCheckedTextView,
|
D | GridViewTest.java | 66 import com.android.compatibility.common.util.WidgetTestUtils; 559 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mGridView, () -> { in testFullyDetachUnusedViewOnScroll() 564 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mGridView, () -> { in testFullyDetachUnusedViewOnScroll() 570 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mGridView, () -> { in testFullyDetachUnusedViewOnScroll() 585 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mGridView, () -> { in testFullyDetachUnusedViewOnReLayout() 590 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mGridView, () -> { in testFullyDetachUnusedViewOnReLayout() 596 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mGridView, () -> { in testFullyDetachUnusedViewOnReLayout() 609 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mGridView, () -> { in testFullyDetachUnusedViewOnScrollForFocus() 618 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mGridView, null); in testFullyDetachUnusedViewOnScrollForFocus() 624 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mGridView, null); in testFullyDetachUnusedViewOnScrollForFocus()
|
D | FrameLayout_LayoutParamsTest.java | 33 import com.android.compatibility.common.util.WidgetTestUtils; 55 WidgetTestUtils.beginDocument(parser, "LinearLayout"); in getAttributeSet()
|
D | PointerIconTest.java | 33 import com.android.compatibility.common.util.WidgetTestUtils; 119 WidgetTestUtils.runOnMainAndLayoutSync( in testTabWidget()
|
D | ImageViewTest.java | 62 import com.android.compatibility.common.util.WidgetTestUtils; 210 WidgetTestUtils.assertEquals(testimageBitmap.getBitmap(), imageViewBitmap.getBitmap()); in testSetImageIcon() 226 WidgetTestUtils.assertEquals(testimageBitmap.getBitmap(), imageViewBitmap.getBitmap()); in testSetImageResource() 249 Bitmap testimageBitmap = WidgetTestUtils.getUnscaledAndDitheredBitmap( in testSetImageURI() 252 WidgetTestUtils.assertEquals(testimageBitmap, imageViewBitmap.getBitmap()); in testSetImageURI() 268 WidgetTestUtils.assertEquals(testimageBitmap.getBitmap(), imageViewBitmap.getBitmap()); in testSetImageDrawable() 285 WidgetTestUtils.assertEquals(bitmap, imageViewBitmap.getBitmap()); in testSetImageBitmap()
|
D | AbsoluteLayoutTest.java | 36 import com.android.compatibility.common.util.WidgetTestUtils; 75 WidgetTestUtils.beginDocument(parser, "LinearLayout"); in getAttributeSet()
|
D | SimpleAdapterTest.java | 50 import com.android.compatibility.common.util.WidgetTestUtils; 329 WidgetTestUtils.assertEquals(d.getBitmap(), in testSetViewImage() 353 WidgetTestUtils.assertEquals(d.getBitmap(), in testSetViewImage() 370 Bitmap testBitmap = WidgetTestUtils.getUnscaledAndDitheredBitmap( in testSetViewImage() 372 WidgetTestUtils.assertEquals(testBitmap, actualBitmap); in testSetViewImage()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | BaseMovementMethodTest.java | 46 import com.android.compatibility.common.util.WidgetTestUtils; 94 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mTextView, null); in testOnGenericMotionEvent_horizontalScroll() 101 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mTextView, null); in testOnGenericMotionEvent_horizontalScroll() 111 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mTextView, in testOnGenericMotionEvent_horizontalScroll() 119 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mTextView, in testOnGenericMotionEvent_horizontalScroll() 125 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mTextView, null); in testOnGenericMotionEvent_horizontalScroll() 132 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mTextView, null); in testOnGenericMotionEvent_horizontalScroll() 156 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mTextView, null); in testOnGenericMotionEvent_verticalScroll() 163 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mTextView, null); in testOnGenericMotionEvent_verticalScroll() 173 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mTextView, in testOnGenericMotionEvent_verticalScroll()
|
/cts/tests/tests/widget/src/android/widget/cts/util/ |
D | TestUtils.java | 39 import com.android.compatibility.common.util.WidgetTestUtils; 435 WidgetTestUtils.assertEquals(getBitmap(context, expectedLeftDrawableId), 441 WidgetTestUtils.assertEquals(getBitmap(context, expectedTopDrawableId), 447 WidgetTestUtils.assertEquals(getBitmap(context, expectedRightDrawableId), 453 WidgetTestUtils.assertEquals(getBitmap(context, expectedBottomDrawableId), 466 WidgetTestUtils.assertEquals(getBitmap(context, expectedStartDrawableId), 472 WidgetTestUtils.assertEquals(getBitmap(context, expectedTopDrawableId), 478 WidgetTestUtils.assertEquals(getBitmap(context, expectedEndDrawableId), 484 WidgetTestUtils.assertEquals(getBitmap(context, expectedBottomDrawableId),
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | MovieTest.java | 34 import com.android.compatibility.common.util.WidgetTestUtils; 149 int scaledHeight = WidgetTestUtils.convertDipToPixels(mContext, mMovie.height()); in testGetMovieProperties() 153 int scaledWidth = WidgetTestUtils.convertDipToPixels(mContext, mMovie.width()); in testGetMovieProperties()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | VectorDrawableScaleTest.java | 31 import com.android.compatibility.common.util.WidgetTestUtils; 64 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, in testVectorDrawableInImageView()
|
/cts/tests/tests/text/src/android/text/style/cts/ |
D | ImageSpanTest.java | 35 import com.android.compatibility.common.util.WidgetTestUtils; 121 WidgetTestUtils.assertEquals(bitmapDrawable.getBitmap(), resultDrawable.getBitmap()); in testGetDrawable()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | ComponentInfoTest.java | 31 import com.android.compatibility.common.util.WidgetTestUtils; 92 WidgetTestUtils.assertEquals(createIconBitmap(d), createIconBitmap(defaultIcon)); in testLoadIcon() 97 WidgetTestUtils.assertEquals(createIconBitmap(d), createIconBitmap(d2)); in testLoadIcon()
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | BaseTransitionTest.java | 39 import com.android.compatibility.common.util.WidgetTestUtils; 133 WidgetTestUtils.runOnMainAndLayoutSync(mActivityRule, scene::enter, false); in enterScene()
|