/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | AnimatedVectorDrawableParameterizedTest.java | 125 final ImageView[] imageView = new ImageView[1]; in testAnimationOnLayer() local 128 imageView[0] = (ImageView) mActivity.findViewById(R.id.imageview); in testAnimationOnLayer() 130 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, imageView[0], in testAnimationOnLayer() 132 imageView[0].setImageDrawable( in testAnimationOnLayer() 134 imageView[0].setLayerType(mLayerType, null); in testAnimationOnLayer() 136 (AnimatedVectorDrawable) imageView[0].getDrawable(); in testAnimationOnLayer() 141 waitWhilePumpingFrames(5, imageView[0], 200); in testAnimationOnLayer() 146 imageView[0].getGlobalVisibleRect(srcRect); in testAnimationOnLayer() 182 AnimatedVectorDrawable avd = (AnimatedVectorDrawable) imageView[0].getDrawable(); in testAnimationOnLayer() 217 ImageView imageView = (ImageView) mActivity.findViewById(R.id.avd_view); in testSingleFrameAnimation() local [all …]
|
D | AnimatedVectorDrawableTest.java | 250 ImageView imageView = (ImageView) mActivity.findViewById(mImageViewId); in testAddCallbackBeforeStart() local 251 AnimatedVectorDrawable d1 = (AnimatedVectorDrawable) imageView.getDrawable(); in testAddCallbackBeforeStart() 268 ImageView imageView = (ImageView) mActivity.findViewById(mImageViewId); in testAddCallbackAfterTrigger() local 269 AnimatedVectorDrawable d1 = (AnimatedVectorDrawable) imageView.getDrawable(); in testAddCallbackAfterTrigger() 290 ImageView imageView = (ImageView) mActivity.findViewById(mImageViewId); in testAddCallbackAfterStart() local 291 AnimatedVectorDrawable d1 = (AnimatedVectorDrawable) imageView.getDrawable(); in testAddCallbackAfterStart() 310 ImageView imageView = (ImageView) mActivity.findViewById(mImageViewId); in testRemoveCallback() local 311 AnimatedVectorDrawable d1 = (AnimatedVectorDrawable) imageView.getDrawable(); in testRemoveCallback() 331 ImageView imageView = (ImageView) mActivity.findViewById(mImageViewId); in testClearCallback() local 332 AnimatedVectorDrawable d1 = (AnimatedVectorDrawable) imageView.getDrawable(); in testClearCallback()
|
D | AnimationDrawableTest.java | 84 ImageView imageView = (ImageView) activity.findViewById(R.id.imageview); in setup() 85 imageView.setBackgroundResource(R.drawable.animationdrawable); in setup() 86 mAnimationDrawable = (AnimationDrawable) imageView.getBackground(); in setup()
|
D | AnimatedImageDrawableTest.java | 225 ImageView imageView = (ImageView) mActivity.findViewById(IMAGE_ID); in setContentView() local 226 imageView.setImageDrawable(drawable); in setContentView()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | VectorDrawableScaleTest.java | 49 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/ |
D | View_DefaultFocusHighlightTest.java | 119 final ImageView imageView = in testIsDefaultFocusHighlightNeeded() local 152 imageView.setImageDrawable(drawables[k]); in testIsDefaultFocusHighlightNeeded() 156 imageView.setDefaultFocusHighlightEnabled(true); in testIsDefaultFocusHighlightNeeded() 157 isNeeded = imageView.isDefaultFocusHighlightNeeded(drawables[i], drawables[j]); in testIsDefaultFocusHighlightNeeded() 161 imageView.setDefaultFocusHighlightEnabled(false); in testIsDefaultFocusHighlightNeeded() 162 isNeeded = imageView.isDefaultFocusHighlightNeeded(drawables[i], drawables[j]); in testIsDefaultFocusHighlightNeeded()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ImageViewTest.java | 454 MockImageView imageView = spy(new MockImageView(mActivity)); in testDrawableStateChanged() local 456 imageView.setImageDrawable(selectorDrawable); in testDrawableStateChanged() 459 verify(imageView, never()).drawableStateChanged(); in testDrawableStateChanged() 462 imageView.setSelected(true); in testDrawableStateChanged() 464 verify(imageView, times(1)).drawableStateChanged(); in testDrawableStateChanged() 466 assertArrayEquals(imageView.getDrawableState(), selectorDrawable.getState()); in testDrawableStateChanged() 530 ImageView imageView = new ImageView(InstrumentationRegistry.getTargetContext()); in testSetColorFilterPreservesDrawableProperties() local 537 imageView.setImageDrawable(mockDrawable); in testSetColorFilterPreservesDrawableProperties() 539 imageView.setColorFilter(Color.RED); in testSetColorFilterPreservesDrawableProperties() 546 ImageView imageView = new ImageView(InstrumentationRegistry.getTargetContext()); in testSetColorFilterPreservesDrawablePropertiesTintBlendMode() local [all …]
|
D | ToastTest.java | 175 final ImageView imageView = new ImageView(mContext); in testAccessView() local 177 imageView.setImageDrawable(drawable); in testAccessView() 179 runOnMainAndDrawSync(imageView, () -> { in testAccessView() 180 mToast.setView(imageView); in testAccessView() 183 assertSame(imageView, mToast.getView()); in testAccessView() 184 assertShowAndHide(imageView); in testAccessView()
|
D | GridViewTest.java | 801 ImageView imageView; in getView() local 803 imageView = new ImageView(mContext); in getView() 805 imageView.setLayoutParams(new GridView.LayoutParams(layoutSize, layoutSize)); in getView() 806 imageView.setAdjustViewBounds(false); in getView() 807 imageView.setScaleType(ImageView.ScaleType.CENTER); in getView() 808 imageView.setPadding(0, 0, 0, 0); in getView() 810 imageView = (ImageView) convertView; in getView() 813 imageView.setImageResource(mThumbIds[position]); in getView() 815 return imageView; in getView()
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | ChangeImageTransformTest.java | 275 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()
|
D | FadeTest.java | 149 ImageView imageView = (ImageView) view; in testFadeOutTransition() 150 BitmapDrawable bitmapDrawable = (BitmapDrawable) imageView.getDrawable(); in testFadeOutTransition()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | ByodPresentMediaDialog.java | 139 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/mtp/ |
D | MtpHostTestActivity.java | 428 final ImageView imageView = (ImageView) view.findViewById(R.id.status); 431 imageView.setImageResource(R.drawable.fs_good); 434 imageView.setImageResource(R.drawable.fs_error); 437 imageView.setImageResource(R.drawable.fs_indeterminate);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | RVCVRecordActivity.java | 230 ImageView imageView = (ImageView) findViewById(R.id.cam_overlay); in switchAxis() local 235 imageView.setImageResource(prompts[axis-1]); in switchAxis() 237 imageView.setRotation(90); in switchAxis() 243 imageView.setImageDrawable(null); in switchAxis()
|
/cts/tests/tests/graphics/jni/ |
D | VulkanPreTransformTestHelpers.cpp | 382 for (auto& imageView : mImageViews) { in ~Renderer() local 383 vkDestroyImageView(mDeviceInfo->device(), imageView, nullptr); in ~Renderer()
|
D | VulkanTestHelpers.cpp | 1029 .imageView = view, in renderImageAndReadback()
|