Home
last modified time | relevance | path

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

/cts/tests/tests/widget/src/android/widget/cts/
DSwitchTest.java24 import android.cts.util.WidgetTestUtils;
42 WidgetTestUtils.beginDocument(parser, "Switch"); in testConstructor()
53 WidgetTestUtils.beginDocument(parser, "Switch"); in testAccessThumbTint()
68 WidgetTestUtils.beginDocument(parser, "Switch"); in testAccessTrackTint()
DImageSwitcherTest.java26 import android.cts.util.WidgetTestUtils;
72 WidgetTestUtils.assertEquals(sceneryBitmap.getBitmap(), currViewBitmap.getBitmap()); in testSetImageResource()
80 WidgetTestUtils.assertEquals(testimageBitmap.getBitmap(), currViewBitmap.getBitmap()); in testSetImageResource()
108 Bitmap testImageBitmap = WidgetTestUtils.getUnscaledAndDitheredBitmap( in testSetImageURI()
111 WidgetTestUtils.assertEquals(testImageBitmap, currViewBitmap.getBitmap()); in testSetImageURI()
117 Bitmap sceneryImageBitmap = WidgetTestUtils.getUnscaledAndDitheredBitmap( in testSetImageURI()
122 WidgetTestUtils.assertEquals(sceneryImageBitmap, currViewBitmap.getBitmap()); in testSetImageURI()
DGallery_LayoutParamsTest.java25 import android.cts.util.WidgetTestUtils;
37 WidgetTestUtils.beginDocument(p, "LinearLayout"); in testConstructor()
DAbsoluteLayout_LayoutParamsTest.java25 import android.cts.util.WidgetTestUtils;
39 WidgetTestUtils.beginDocument(parser, "LinearLayout"); in getAttributeSet()
DFrameLayout_LayoutParamsTest.java25 import android.cts.util.WidgetTestUtils;
40 WidgetTestUtils.beginDocument(parser, "LinearLayout"); in getAttributeSet()
DAbsListView_LayoutParamsTest.java24 import android.cts.util.WidgetTestUtils;
39 WidgetTestUtils.beginDocument(parser, "ViewGroup_Layout"); in setUp()
DSimpleCursorTreeAdapterTest.java23 import android.cts.util.WidgetTestUtils;
142 WidgetTestUtils.assertEquals(d.getBitmap(), in testSetViewImage()
169 Bitmap test = WidgetTestUtils.getUnscaledAndDitheredBitmap(mContext.getResources(), in testSetViewImage()
171 WidgetTestUtils.assertEquals(test, actualBitmap); in testSetViewImage()
DRemoteViewsTest.java30 import android.cts.util.WidgetTestUtils;
165 WidgetTestUtils.assertEquals(dBlack.getBitmap(), in testSetIcon()
178 WidgetTestUtils.assertEquals(dBlue.getBitmap(), in testSetImageViewIcon()
191 WidgetTestUtils.assertEquals(d.getBitmap(), in testSetImageViewResource()
218 Bitmap expectedBitmap = WidgetTestUtils.getUnscaledAndDitheredBitmap( in testSetImageViewUri()
220 WidgetTestUtils.assertEquals(expectedBitmap, imageViewBitmap); in testSetImageViewUri()
317 WidgetTestUtils.assertEquals(d.getBitmap(), in testReapply()
395 WidgetTestUtils.assertEquals(bitmap, ((BitmapDrawable) image.getDrawable()).getBitmap()); in testSetImageViewBitmap()
415 WidgetTestUtils.assertEquals(bitmap, ((BitmapDrawable) image.getDrawable()).getBitmap()); in testSetBitmap()
516 Bitmap expectedBitmap = WidgetTestUtils.getUnscaledAndDitheredBitmap( in testSetUri()
[all …]
DImageViewTest.java32 import android.cts.util.WidgetTestUtils;
190 WidgetTestUtils.assertEquals(testimageBitmap.getBitmap(), imageViewBitmap.getBitmap()); in testSetImageIcon()
206 WidgetTestUtils.assertEquals(testimageBitmap.getBitmap(), imageViewBitmap.getBitmap()); in testSetImageResource()
230 Bitmap testimageBitmap = WidgetTestUtils.getUnscaledAndDitheredBitmap( in testSetImageURI()
233 WidgetTestUtils.assertEquals(testimageBitmap, imageViewBitmap.getBitmap()); in testSetImageURI()
250 WidgetTestUtils.assertEquals(testimageBitmap.getBitmap(), imageViewBitmap.getBitmap()); in testSetImageDrawable()
268 WidgetTestUtils.assertEquals(bitmap, imageViewBitmap.getBitmap()); in testSetImageBitmap()
DSimpleAdapterTest.java24 import android.cts.util.WidgetTestUtils;
295 WidgetTestUtils.assertEquals(d.getBitmap(), in testSetViewImage()
320 WidgetTestUtils.assertEquals(d.getBitmap(), in testSetViewImage()
337 … Bitmap testBitmap = WidgetTestUtils.getUnscaledAndDitheredBitmap(mContext.getResources(), in testSetViewImage()
339 WidgetTestUtils.assertEquals(testBitmap, actualBitmap); in testSetViewImage()
DAbsoluteLayoutTest.java27 import android.cts.util.WidgetTestUtils;
63 WidgetTestUtils.beginDocument(parser, "LinearLayout"); in getAttributeSet()
DTextViewTest.java30 import android.cts.util.WidgetTestUtils;
2507 WidgetTestUtils.assertEquals(getBitmap(R.drawable.start),
2510 WidgetTestUtils.assertEquals(getBitmap(R.drawable.pass),
2513 WidgetTestUtils.assertEquals(getBitmap(R.drawable.failed),
4205 WidgetTestUtils.assertEquals(getBitmap(R.drawable.icon_blue), in testDrawableResolution()
4207 WidgetTestUtils.assertEquals(getBitmap(R.drawable.icon_red), in testDrawableResolution()
4209 WidgetTestUtils.assertEquals(getBitmap(R.drawable.icon_green), in testDrawableResolution()
4211 WidgetTestUtils.assertEquals(getBitmap(R.drawable.icon_yellow), in testDrawableResolution()
4218 WidgetTestUtils.assertEquals(getBitmap(R.drawable.icon_blue), in testDrawableResolution()
4220 WidgetTestUtils.assertEquals(getBitmap(R.drawable.icon_red), in testDrawableResolution()
[all …]
DTabHostTest.java25 import android.cts.util.WidgetTestUtils;
204 WidgetTestUtils.assertScaledPixels(1, tabHost.getTabWidget().getPaddingLeft(), in testGetTabWidget()
206 WidgetTestUtils.assertScaledPixels(1, tabHost.getTabWidget().getPaddingRight(), in testGetTabWidget()
208 WidgetTestUtils.assertScaledPixels(4, tabHost.getTabWidget().getPaddingTop(), in testGetTabWidget()
DSimpleCursorAdapterTest.java23 import android.cts.util.WidgetTestUtils;
195 WidgetTestUtils.assertEquals(d.getBitmap(), in testSetViewImage()
224 … Bitmap testBitmap = WidgetTestUtils.getUnscaledAndDitheredBitmap(mContext.getResources(), in testSetViewImage()
226 WidgetTestUtils.assertEquals(testBitmap, actualBitmap); in testSetViewImage()
DFrameLayoutTest.java20 import android.cts.util.WidgetTestUtils;
202 WidgetTestUtils.assertScaledPixels(expected, actual, getActivity()); in compareScaledPixels()
316 WidgetTestUtils.beginDocument(parser, "LinearLayout"); in getAttributeSet()
DGalleryTest.java29 import android.cts.util.WidgetTestUtils;
172 WidgetTestUtils.beginDocument(parser, "LinearLayout"); in testGenerateLayoutParams()
DHorizontalScrollViewTest.java27 import android.cts.util.WidgetTestUtils;
518 final int velocityX = WidgetTestUtils.convertDipToPixels(getActivity(), 2000);
DAbsListViewTest.java28 import android.cts.util.WidgetTestUtils;
94 WidgetTestUtils.beginDocument(parser, "LinearLayout"); in setUp()
/cts/tests/tests/graphics/src/android/graphics/cts/
DMovieTest.java27 import android.cts.util.WidgetTestUtils;
146 int scaledHeight = WidgetTestUtils.convertDipToPixels(getActivity(), mMovie.height()); in testGetMovieProperties()
150 int scaledWidth = WidgetTestUtils.convertDipToPixels(getActivity(), mMovie.width()); in testGetMovieProperties()
DBitmapTest.java22 import android.cts.util.WidgetTestUtils;
111 WidgetTestUtils.assertEquals(mBitmap, bitmap); in testCopy()
/cts/tests/tests/text/src/android/text/style/cts/
DImageSpanTest.java23 import android.cts.util.WidgetTestUtils;
96 WidgetTestUtils.assertEquals(bitmapDrawable.getBitmap(), resultDrawable.getBitmap()); in testGetDrawable()
/cts/tests/tests/content/src/android/content/pm/cts/
DComponentInfoTest.java23 import android.cts.util.WidgetTestUtils;
82 WidgetTestUtils.assertEquals(((BitmapDrawable) d).getBitmap(), in testLoadIcon()
88 WidgetTestUtils.assertEquals(((BitmapDrawable) d).getBitmap(), in testLoadIcon()
/cts/tests/tests/text/src/android/text/method/cts/
DScrollingMovementMethodTest.java21 import android.cts.util.WidgetTestUtils;
97 int width = WidgetTestUtils.convertDipToPixels(getActivity(), LITTLE_SPACE); in testOnTouchEventHorizontalMotion()
302 int width = WidgetTestUtils.convertDipToPixels(getActivity(), LITTLE_SPACE);
417 int width = WidgetTestUtils.convertDipToPixels(getActivity(), LITTLE_SPACE);
683 int height = WidgetTestUtils.convertDipToPixels(getActivity(), LITTLE_SPACE);
741 int width = WidgetTestUtils.convertDipToPixels(getActivity(), LITTLE_SPACE); in testHorizontalMovement()
/cts/libs/deviceutil/src/android/cts/util/
DWidgetTestUtils.java34 public class WidgetTestUtils { class
/cts/tests/tests/view/src/android/view/cts/
DMenuInflaterTest.java23 import android.cts.util.WidgetTestUtils;
227 WidgetTestUtils.assertEquals(expected, b.getBitmap()); in assertIconUsingDrawableRes()