Home
last modified time | relevance | path

Searched refs:WidgetTestUtils (Results 1 – 25 of 51) sorted by relevance

123

/cts/tests/tests/widget/src/android/widget/cts/
DSwitchTest.java42 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 …]
DListViewTest.java75 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 …]
DToolbarTest.java47 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 …]
DFrameLayoutTest.java60 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 …]
DImageSwitcherTest.java40 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()
DGallery_LayoutParamsTest.java26 import com.android.compatibility.common.util.WidgetTestUtils;
44 WidgetTestUtils.beginDocument(p, "LinearLayout"); in testConstructor()
DLinearLayoutTest.java55 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 …]
DAbsoluteLayout_LayoutParamsTest.java31 import com.android.compatibility.common.util.WidgetTestUtils;
53 WidgetTestUtils.beginDocument(parser, "LinearLayout"); in getAttributeSet()
DAbsListView_LayoutParamsTest.java30 import com.android.compatibility.common.util.WidgetTestUtils;
47 WidgetTestUtils.beginDocument(parser, "ViewGroup_Layout"); in setup()
DSimpleCursorTreeAdapterTest.java37 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()
DMagnifierTest.java39 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()
DCheckedTextViewTest.java48 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,
DGridViewTest.java66 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()
DFrameLayout_LayoutParamsTest.java33 import com.android.compatibility.common.util.WidgetTestUtils;
55 WidgetTestUtils.beginDocument(parser, "LinearLayout"); in getAttributeSet()
DPointerIconTest.java33 import com.android.compatibility.common.util.WidgetTestUtils;
119 WidgetTestUtils.runOnMainAndLayoutSync( in testTabWidget()
DImageViewTest.java62 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()
DAbsoluteLayoutTest.java36 import com.android.compatibility.common.util.WidgetTestUtils;
75 WidgetTestUtils.beginDocument(parser, "LinearLayout"); in getAttributeSet()
DSimpleAdapterTest.java50 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/
DBaseMovementMethodTest.java46 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/
DTestUtils.java39 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/
DMovieTest.java34 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/
DVectorDrawableScaleTest.java31 import com.android.compatibility.common.util.WidgetTestUtils;
64 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, in testVectorDrawableInImageView()
/cts/tests/tests/text/src/android/text/style/cts/
DImageSpanTest.java35 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/
DComponentInfoTest.java31 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/
DBaseTransitionTest.java39 import com.android.compatibility.common.util.WidgetTestUtils;
133 WidgetTestUtils.runOnMainAndLayoutSync(mActivityRule, scene::enter, false); in enterScene()

123