Home
last modified time | relevance | path

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

/cts/tests/tests/widget/src/android/widget/cts/
DImageViewTest.java137 ImageView imageView = new ImageView(mActivity); in testInvalidateDrawable() local
138 imageView.invalidateDrawable(null); in testInvalidateDrawable()
142 ImageView imageView = new ImageView(mActivity); in testSetAdjustViewBounds() local
143 imageView.setScaleType(ScaleType.FIT_XY); in testSetAdjustViewBounds()
145 imageView.setAdjustViewBounds(false); in testSetAdjustViewBounds()
146 assertEquals(ScaleType.FIT_XY, imageView.getScaleType()); in testSetAdjustViewBounds()
148 imageView.setAdjustViewBounds(true); in testSetAdjustViewBounds()
149 assertEquals(ScaleType.FIT_CENTER, imageView.getScaleType()); in testSetAdjustViewBounds()
153 ImageView imageView = new ImageView(mActivity); in testSetMaxWidth() local
154 imageView.setMaxWidth(120); in testSetMaxWidth()
[all …]
DGridViewTest.java756 ImageView imageView;
758 imageView = new ImageView(mContext);
760 imageView.setLayoutParams(new GridView.LayoutParams(layoutSize, layoutSize));
761 imageView.setAdjustViewBounds(false);
762 imageView.setScaleType(ImageView.ScaleType.CENTER);
763 imageView.setPadding(0, 0, 0, 0);
765 imageView = (ImageView) convertView;
768 imageView.setImageResource(mThumbIds[position]);
770 return imageView;
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()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DByodPresentMediaDialog.java119 ImageView imageView = (ImageView) dialog.findViewById(R.id.imageView); in onCreateDialog() local
120 imageView.setVisibility(View.VISIBLE); in onCreateDialog()
121 imageView.setImageURI(uri); in onCreateDialog()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
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/sensors/
DRVCVRecordActivity.java193 ImageView imageView = (ImageView) findViewById(R.id.cam_overlay); in switchAxis() local
198 imageView.setImageResource(prompts[axis-1]); in switchAxis()
203 imageView.setImageDrawable(null); in switchAxis()