Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimatedVectorDrawableParameterizedTest.java132 final ImageView[] imageView = new ImageView[1]; in testAnimationOnLayer() local
135 imageView[0] = (ImageView) mActivity.findViewById(R.id.imageview); in testAnimationOnLayer()
137 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, imageView[0], in testAnimationOnLayer()
139 imageView[0].setImageDrawable( in testAnimationOnLayer()
141 imageView[0].setLayerType(mLayerType, null); in testAnimationOnLayer()
143 (AnimatedVectorDrawable) imageView[0].getDrawable(); in testAnimationOnLayer()
148 waitWhilePumpingFrames(5, imageView[0], 200); in testAnimationOnLayer()
153 imageView[0].getGlobalVisibleRect(srcRect); in testAnimationOnLayer()
189 AnimatedVectorDrawable avd = (AnimatedVectorDrawable) imageView[0].getDrawable(); in testAnimationOnLayer()
224 ImageView imageView = (ImageView) mActivity.findViewById(R.id.avd_view); in testSingleFrameAnimation() local
[all …]
DAnimatedVectorDrawableTest.java259 ImageView imageView = (ImageView) mActivity.findViewById(mImageViewId); in testAddCallbackBeforeStart() local
260 AnimatedVectorDrawable d1 = (AnimatedVectorDrawable) imageView.getDrawable(); in testAddCallbackBeforeStart()
277 ImageView imageView = (ImageView) mActivity.findViewById(mImageViewId); in testAddCallbackAfterTrigger() local
278 AnimatedVectorDrawable d1 = (AnimatedVectorDrawable) imageView.getDrawable(); in testAddCallbackAfterTrigger()
299 ImageView imageView = (ImageView) mActivity.findViewById(mImageViewId); in testAddCallbackAfterStart() local
300 AnimatedVectorDrawable d1 = (AnimatedVectorDrawable) imageView.getDrawable(); in testAddCallbackAfterStart()
319 ImageView imageView = (ImageView) mActivity.findViewById(mImageViewId); in testRemoveCallback() local
320 AnimatedVectorDrawable d1 = (AnimatedVectorDrawable) imageView.getDrawable(); in testRemoveCallback()
340 ImageView imageView = (ImageView) mActivity.findViewById(mImageViewId); in testClearCallback() local
341 AnimatedVectorDrawable d1 = (AnimatedVectorDrawable) imageView.getDrawable(); in testClearCallback()
DAnimationDrawableTest.java92 ImageView imageView = (ImageView) activity.findViewById(R.id.imageview); in setup()
93 imageView.setBackgroundResource(R.drawable.animationdrawable); in setup()
94 mAnimationDrawable = (AnimationDrawable) imageView.getBackground(); in setup()
/cts/tests/tests/widget/src/android/widget/cts/
DImageViewTest.java172 ImageView imageView = new ImageView(mActivity); in testConstructorImportantForAutofill() local
173 assertEquals(View.IMPORTANT_FOR_AUTOFILL_NO, imageView.getImportantForAutofill()); in testConstructorImportantForAutofill()
174 assertFalse(imageView.isImportantForAutofill()); in testConstructorImportantForAutofill()
176 imageView = new ImageView(mActivity, null); in testConstructorImportantForAutofill()
177 assertEquals(View.IMPORTANT_FOR_AUTOFILL_NO, imageView.getImportantForAutofill()); in testConstructorImportantForAutofill()
178 assertFalse(imageView.isImportantForAutofill()); in testConstructorImportantForAutofill()
180 imageView = mActivity.findViewById(R.id.imageview_important_auto); in testConstructorImportantForAutofill()
181 assertEquals(View.IMPORTANT_FOR_AUTOFILL_NO, imageView.getImportantForAutofill()); in testConstructorImportantForAutofill()
182 assertFalse(imageView.isImportantForAutofill()); in testConstructorImportantForAutofill()
184 imageView = mActivity.findViewById(R.id.imageview_important_no); in testConstructorImportantForAutofill()
[all …]
DGridViewTest.java811 ImageView imageView; in getView() local
813 imageView = new ImageView(mContext); in getView()
815 imageView.setLayoutParams(new GridView.LayoutParams(layoutSize, layoutSize)); in getView()
816 imageView.setAdjustViewBounds(false); in getView()
817 imageView.setScaleType(ImageView.ScaleType.CENTER); in getView()
818 imageView.setPadding(0, 0, 0, 0); in getView()
820 imageView = (ImageView) convertView; in getView()
823 imageView.setImageResource(mThumbIds[position]); in getView()
825 return imageView; in getView()
DToastTest.java423 final ImageView imageView = new ImageView(mContext); in testAccessView_whenCustomToast() local
425 imageView.setImageDrawable(drawable); in testAccessView_whenCustomToast()
427 runOnMainAndDrawSync(imageView, () -> { in testAccessView_whenCustomToast()
428 mToast.setView(imageView); in testAccessView_whenCustomToast()
431 assertSame(imageView, mToast.getView()); in testAccessView_whenCustomToast()
432 assertCustomToastShownAndHidden(imageView); in testAccessView_whenCustomToast()
DRemoteViewsTest.java1509 ImageView imageView = mResult.findViewById(R.id.remoteView_image); in testSetBlendMode() local
1513 assertEquals(BlendMode.PLUS, imageView.getImageTintBlendMode()); in testSetBlendMode()
1517 assertEquals(BlendMode.SRC_IN, imageView.getImageTintBlendMode()); in testSetBlendMode()
1521 assertNull(imageView.getImageTintBlendMode()); in testSetBlendMode()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DVectorDrawableScaleTest.java49 ImageView imageView = (ImageView) view.findViewById(R.id.imageview1); in setupImageViews() local
50 imageView.setImageResource(R.drawable.vector_icon_create); in setupImageViews()
51 imageView = (ImageView) view.findViewById(R.id.imageview2); in setupImageViews()
52 imageView.setImageResource(R.drawable.vector_icon_create); in setupImageViews()
/cts/tests/tests/view/src/android/view/cts/
DView_DefaultFocusHighlightTest.java130 final ImageView imageView = in testIsDefaultFocusHighlightNeeded() local
163 imageView.setImageDrawable(drawables[k]); in testIsDefaultFocusHighlightNeeded()
167 imageView.setDefaultFocusHighlightEnabled(true); in testIsDefaultFocusHighlightNeeded()
168 isNeeded = imageView.isDefaultFocusHighlightNeeded(drawables[i], drawables[j]); in testIsDefaultFocusHighlightNeeded()
172 imageView.setDefaultFocusHighlightEnabled(false); in testIsDefaultFocusHighlightNeeded()
173 isNeeded = imageView.isDefaultFocusHighlightNeeded(drawables[i], drawables[j]); in testIsDefaultFocusHighlightNeeded()
/cts/tests/tests/transition/src/android/transition/cts/
DChangeImageTransformTest.java275 final ImageView imageView = enterImageViewScene(startScale, customImage, applyPadding); in transformImage() local
276 final List<Matrix> matrices = watchImageMatrix(imageView); in transformImage()
279 imageView.invalidate(); in transformImage()
288 imageView.getLayoutParams().height /= 2; in transformImage()
289 imageView.requestLayout(); in transformImage()
291 imageView.setScaleType(endScale); in transformImage()
292 imageView.invalidate(); in transformImage()
DFadeTest.java149 ImageView imageView = (ImageView) view; in testFadeOutTransition()
150 BitmapDrawable bitmapDrawable = (BitmapDrawable) imageView.getDrawable(); in testFadeOutTransition()
/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/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/ime/
DCtsBaseInputMethod.java99 final ImageView imageView = new ImageView(this); in createInputViewInternal() local
101 imageView.setImageBitmap(bitmap); in createInputViewInternal()
102 layout.addView(imageView, new FrameLayout.LayoutParams( in createInputViewInternal()
/cts/tests/tests/widget29/src/android/widget/cts29/
DToastTest.java205 final ImageView imageView = new ImageView(mContext); in testAccessView() local
207 imageView.setImageDrawable(drawable); in testAccessView()
209 runOnMainAndDrawSync(imageView, () -> { in testAccessView()
210 mToast.setView(imageView); in testAccessView()
213 assertSame(imageView, mToast.getView()); in testAccessView()
214 assertShowAndHide(imageView); in testAccessView()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/mtp/
DMtpHostTestActivity.java432 final ImageView imageView = (ImageView) view.findViewById(R.id.status);
435 imageView.setImageResource(R.drawable.fs_good);
438 imageView.setImageResource(R.drawable.fs_error);
441 imageView.setImageResource(R.drawable.fs_indeterminate);
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVRecordActivity.java229 ImageView imageView = (ImageView) findViewById(R.id.cam_overlay); in switchAxis() local
234 imageView.setImageResource(prompts[axis-1]); in switchAxis()
236 imageView.setRotation(90); in switchAxis()
242 imageView.setImageDrawable(null); in switchAxis()
/cts/tests/tests/graphics/jni/
DVulkanPreTransformTestHelpers.cpp384 for (auto& imageView : mImageViews) { in ~Renderer() local
385 vkDestroyImageView(mDeviceInfo->device(), imageView, nullptr); in ~Renderer()
DVulkanTestHelpers.cpp1027 .imageView = view, in renderImageAndReadback()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DMockIme.java989 final ImageView imageView = new ImageView(getContext()); in KeyboardLayoutView() local
991 imageView.setImageBitmap(bitmap); in KeyboardLayoutView()
992 secondaryLayout.addView(imageView, in KeyboardLayoutView()