Home
last modified time | relevance | path

Searched refs:imageView (Results 1 – 9 of 9) sorted by relevance

/cts/tests/tests/widget/src/android/widget/cts/
DImageViewTest.java148 ImageView imageView = new ImageView(mActivity); in testInvalidateDrawable() local
149 imageView.invalidateDrawable(null); in testInvalidateDrawable()
153 ImageView imageView = new ImageView(mActivity); in testSetAdjustViewBounds() local
154 imageView.setScaleType(ScaleType.FIT_XY); in testSetAdjustViewBounds()
156 imageView.setAdjustViewBounds(false); in testSetAdjustViewBounds()
157 assertFalse(imageView.getAdjustViewBounds()); in testSetAdjustViewBounds()
158 assertEquals(ScaleType.FIT_XY, imageView.getScaleType()); in testSetAdjustViewBounds()
160 imageView.setAdjustViewBounds(true); in testSetAdjustViewBounds()
161 assertTrue(imageView.getAdjustViewBounds()); in testSetAdjustViewBounds()
162 assertEquals(ScaleType.FIT_CENTER, imageView.getScaleType()); in testSetAdjustViewBounds()
[all …]
DToastTest.java181 final ImageView imageView = new ImageView(mActivity); in testAccessView() local
183 imageView.setImageDrawable(drawable); in testAccessView()
187 mToast.setView(imageView); in testAccessView()
192 assertSame(imageView, mToast.getView()); in testAccessView()
193 assertShowAndHide(imageView); in testAccessView()
DGridViewTest.java833 ImageView imageView; in getView() local
835 imageView = new ImageView(mContext); in getView()
837 imageView.setLayoutParams(new GridView.LayoutParams(layoutSize, layoutSize)); in getView()
838 imageView.setAdjustViewBounds(false); in getView()
839 imageView.setScaleType(ImageView.ScaleType.CENTER); in getView()
840 imageView.setPadding(0, 0, 0, 0); in getView()
842 imageView = (ImageView) convertView; in getView()
845 imageView.setImageResource(mThumbIds[position]); in getView()
847 return imageView; in getView()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimatedVectorDrawableTest.java292 ImageView imageView = (ImageView) mActivity.findViewById(mImageViewId); in testAddCallbackBeforeStart()
293 AnimatedVectorDrawable d1 = (AnimatedVectorDrawable) imageView.getDrawable(); in testAddCallbackBeforeStart()
312 ImageView imageView = (ImageView) mActivity.findViewById(mImageViewId); in testAddCallbackAfterTrigger()
313 AnimatedVectorDrawable d1 = (AnimatedVectorDrawable) imageView.getDrawable(); in testAddCallbackAfterTrigger()
335 ImageView imageView = (ImageView) mActivity.findViewById(mImageViewId); in testAddCallbackAfterStart()
336 AnimatedVectorDrawable d1 = (AnimatedVectorDrawable) imageView.getDrawable(); in testAddCallbackAfterStart()
356 ImageView imageView = (ImageView) mActivity.findViewById(mImageViewId); in testRemoveCallback()
357 AnimatedVectorDrawable d1 = (AnimatedVectorDrawable) imageView.getDrawable(); in testRemoveCallback()
378 ImageView imageView = (ImageView) mActivity.findViewById(mImageViewId); in testClearCallback()
379 AnimatedVectorDrawable d1 = (AnimatedVectorDrawable) imageView.getDrawable(); in testClearCallback()
DAnimationDrawableTest.java64 ImageView imageView = (ImageView) activity.findViewById(R.id.imageview); in setUp()
65 imageView.setBackgroundResource(R.drawable.animationdrawable); in setUp()
66 mAnimationDrawable = (AnimationDrawable) imageView.getBackground(); in setUp()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DByodPresentMediaDialog.java139 ImageView imageView = (ImageView) dialog.findViewById(R.id.imageView); in onCreateDialog() local
140 imageView.setVisibility(View.VISIBLE); in onCreateDialog()
169 imageView.setImageBitmap(scaled); in onCreateDialog()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/
DMtpHostTestActivity.java407 final ImageView imageView = (ImageView) view.findViewById(R.id.status);
410 imageView.setImageResource(R.drawable.fs_good);
413 imageView.setImageResource(R.drawable.fs_error);
416 imageView.setImageResource(R.drawable.fs_indeterminate);
/cts/tests/tests/transition/src/android/transition/cts/
DChangeImageTransformTest.java211 final ImageView imageView = enterImageViewScene(startScale); in transformImage() local
216 imageView.setScaleType(endScale); in transformImage()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVRecordActivity.java194 ImageView imageView = (ImageView) findViewById(R.id.cam_overlay); in switchAxis() local
199 imageView.setImageResource(prompts[axis-1]); in switchAxis()
204 imageView.setImageDrawable(null); in switchAxis()