Home
last modified time | relevance | path

Searched refs:mImageView (Results 1 – 24 of 24) sorted by relevance

/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/statusicon/
DStatusIconControllerTest.java52 private ImageView mImageView; field in StatusIconControllerTest
63 mTestStatusIconController.registerIconView(mImageView); in registerAnImageView_viewNotRegistered_viewIsRegistered()
65 assertThat(mTestStatusIconController.isViewRegistered(mImageView)).isTrue(); in registerAnImageView_viewNotRegistered_viewIsRegistered()
70 mTestStatusIconController.registerIconView(mImageView); in registerAnImageView_viewAlreadyRegistered_viewRegisteredAndDoesNotThrowError()
71 mTestStatusIconController.registerIconView(mImageView); in registerAnImageView_viewAlreadyRegistered_viewRegisteredAndDoesNotThrowError()
73 assertThat(mTestStatusIconController.isViewRegistered(mImageView)).isTrue(); in registerAnImageView_viewAlreadyRegistered_viewRegisteredAndDoesNotThrowError()
78 mTestStatusIconController.registerIconView(mImageView); in unregisterAnImageView_viewAlreadyRegistered_viewIsUnregistered()
79 mTestStatusIconController.unregisterIconView(mImageView); in unregisterAnImageView_viewAlreadyRegistered_viewIsUnregistered()
81 assertThat(mTestStatusIconController.isViewRegistered(mImageView)).isFalse(); in unregisterAnImageView_viewAlreadyRegistered_viewIsUnregistered()
86 mTestStatusIconController.unregisterIconView(mImageView); in unregisterAnImageView_viewNotRegistered_viewIsUnregisteredAndDoesNotThrowError()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DColorPreferenceTest.java59 private ImageView mImageView; field in ColorPreferenceTest
69 mImageView = spy(new ImageView(mContext)); in init()
118 doReturn(mImageView).when(mViewHolder).findViewById(R.id.color_preview); in onBindViewHolder_enabled_transparent_matchBackgroundResource()
127 verify(mImageView).setBackgroundResource(R.drawable.transparency_tileable); in onBindViewHolder_enabled_transparent_matchBackgroundResource()
132 doReturn(mImageView).when(mViewHolder).findViewById(R.id.color_preview); in onBindViewHolder_enabled_titlesExist_matchDescription()
141 verify(mImageView).setContentDescription(COLOR_WHITE); in onBindViewHolder_enabled_titlesExist_matchDescription()
146 doReturn(mImageView).when(mViewHolder).findViewById(R.id.color_preview); in onBindViewHolder_disabled_matchAlpha()
154 verify(mImageView).setAlpha(0.2f); in onBindViewHolder_disabled_matchAlpha()
160 doReturn(mImageView).when(mRootView).findViewById(R.id.color_swatch); in onBindListItem_transparent_matchBackgroundResource()
167 verify(mImageView).setBackgroundResource(R.drawable.transparency_tileable); in onBindListItem_transparent_matchBackgroundResource()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/ringtone/
DRingtoneViewHolder.kt41 private val mImageView: ImageView = constant
52 mImageView.alpha = if (opaque) 1f else .63f in onBindItemView()
53 mImageView.clearColorFilter() in onBindItemView()
58 mImageView.setImageResource(R.drawable.ic_ringtone_not_found) in onBindItemView()
61 mImageView.setColorFilter(colorAccent, PorterDuff.Mode.SRC_ATOP) in onBindItemView()
63 mImageView.setImageResource(R.drawable.placeholder_album_artwork) in onBindItemView()
66 mImageView.setImageResource(R.drawable.ic_ringtone_silent) in onBindItemView()
68 mImageView.setImageResource(R.drawable.ic_ringtone_active) in onBindItemView()
70 mImageView.setImageResource(R.drawable.ic_ringtone) in onBindItemView()
72 AnimatorUtils.startDrawableAnimation(mImageView) in onBindItemView()
/packages/apps/Car/Notification/src/com/android/car/notification/template/
DCarNotificationActionButton.java36 private final ImageView mImageView; field in CarNotificationActionButton
61 mImageView = findViewById(R.id.car_action_button_icon); in CarNotificationActionButton()
123 mImageView.setVisibility(View.GONE); in setImageDrawable()
127 mImageView.setImageDrawable(drawable); in setImageDrawable()
129 mImageView.setVisibility(View.GONE); in setImageDrawable()
131 mImageView.setVisibility(View.VISIBLE); in setImageDrawable()
139 return mImageView.getDrawable(); in getDrawable()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DAvatarViewMixinTest.java70 private ImageView mImageView; field in AvatarViewMixinTest
78 mImageView = new ImageView(mContext); in setUp()
85 final AvatarViewMixin avatarViewMixin = new AvatarViewMixin(mActivity, mImageView); in hasAccount_useDefaultAccountData_returnFalse()
92 final AvatarViewMixin avatarViewMixin = new AvatarViewMixin(mActivity, mImageView); in hasAccount_useShadowAccountData_returnTrue()
98 final AvatarViewMixin mockAvatar = spy(new AvatarViewMixin(mActivity, mImageView)); in onStart_useMockAvatarViewMixin_shouldBeExecuted()
108 final AvatarViewMixin avatarViewMixin = new AvatarViewMixin(mActivity, mImageView); in onStart_noAccount_mAccountNameShouldBeNull()
118 final AvatarViewMixin avatarViewMixin = new AvatarViewMixin(mActivity, mImageView); in queryProviderAuthority_useShadowPackagteManager_returnNull()
125 final AvatarViewMixin avatarViewMixin = new AvatarViewMixin(mActivity, mImageView); in queryProviderAuthority_useNewShadowPackagteManager_returnAuthority()
172 final AvatarViewMixin avatarViewMixin = new AvatarViewMixin(activity, mImageView); in onClickAvatar_withEmptyUri_startActivityShouldNotBeExecuted()
174 mImageView.performClick(); in onClickAvatar_withEmptyUri_startActivityShouldNotBeExecuted()
/packages/apps/Gallery/src/com/android/camera/
DCropImage.java81 private CropImageView mImageView; field in CropImage
98 mImageView = (CropImageView) findViewById(R.id.image); in onCreate()
178 mImageView.setImageBitmapResetBase(mBitmap, true); in startFaceDetection()
192 mImageView.setImageBitmapResetBase(b, true); in startFaceDetection()
196 if (mImageView.getScale() == 1F) { in startFaceDetection()
197 mImageView.center(true, true); in startFaceDetection()
250 mImageView.clear(); in onSaveClicked()
270 mImageView.clear(); in onSaveClicked()
294 mImageView.setImageBitmapResetBase(croppedImage, true); in onSaveClicked()
295 mImageView.center(true, true); in onSaveClicked()
[all …]
DViewImage.java129 private ImageViewTouch mImageView; field in ViewImage
239 ImageViewTouch imageView = mImageView;
285 mImageView.zoomIn();
287 mImageView.zoomOut();
333 ImageViewTouch imageView = mImageView;
358 ImageViewTouch imageView = mImageView; in onDoubleTap()
362 mImageView.zoomTo(1f); in onDoubleTap()
364 mImageView.zoomToPoint(3f, e.getX(), e.getY()); in onDoubleTap()
412 mImageView.clear(); in onCreateOptionsMenu()
446 mImageView.clear();
[all …]
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
DRecordingCardView.java49 private final ImageView mImageView; field in RecordingCardView
95 mImageView = (ImageView) findViewById(R.id.image); in RecordingCardView()
252 mImageView.setScaleType(ImageView.ScaleType.CENTER_INSIDE); in setImageUri()
254 mImageView.setScaleType(ImageView.ScaleType.CENTER_CROP); in setImageUri()
258 mImageView.setImageDrawable(mDefaultImage); in setImageUri()
272 mImageView.setImageDrawable(image); in setImage()
286 return mImageView; in getImageView()
301 view.mImageView.setImageDrawable(view.mDefaultImage); in onBitmapLoaded()
303 view.mImageView.setImageDrawable(new BitmapDrawable(view.getResources(), bitmap)); in onBitmapLoaded()
312 mImageView.setImageDrawable(mDefaultImage); in reset()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DGalleryGridItemView.java59 private AsyncImageView mImageView; field in GalleryGridItemView
82 mImageView = (AsyncImageView) findViewById(R.id.thumbnail); in onFinishInflate()
157 mImageView.setVisibility(GONE); in updateImageView()
173 mImageView.setVisibility(GONE); in updateImageView()
178 mImageView.setScaleType(ImageView.ScaleType.CENTER_CROP); in updateImageView()
181 mImageView.setImageResourceId(mData.getImageRequestDescriptor()); in updateImageView()
182 mImageView.setVisibility(VISIBLE); in updateImageView()
199 mImageView.setContentDescription(contentDescription); in updateImageView()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/shortcuts/
DShortcutOptionPreferenceTest.java44 private ImageView mImageView; field in ShortcutOptionPreferenceTest
52 mImageView = (ImageView) mViewHolder.findViewById(R.id.image); in setUp()
59 assertThat(mImageView.getVisibility()).isEqualTo(View.GONE); in bindViewHolder_imageResNotSet_shouldHideImageView()
69 assertThat(mImageView.getVisibility()).isEqualTo(View.VISIBLE); in bindViewHolder_imageResIdSet_shouldShowImageView()
79 assertThat(mImageView.getVisibility()).isEqualTo(View.VISIBLE); in bindViewHolder_imageRawResIdSet_shouldShowImageView()
/packages/apps/TV/src/com/android/tv/menu/
DChannelCardView.java47 private ImageView mImageView; field in ChannelCardView
73 mImageView = (ImageView) findViewById(R.id.image); in onFinishInflate()
74 mImageView.setBackgroundResource(R.color.channel_card); in onFinishInflate()
172 mImageView.setImageResource(R.drawable.ic_recent_thumbnail_default);
173 mImageView.setForeground(null);
179 mImageView.setImageBitmap(posterArt);
180 mImageView.setForeground(getContext().getDrawable(R.drawable.card_image_gradient));
DAppLinkCardView.java57 private ImageView mImageView; field in AppLinkCardView
246 mImageView.setImageDrawable(mDefaultDrawable); in onBind()
247 mImageView.setForeground(null); in onBind()
300 mImageView.setImageBitmap(bitmap);
301 mImageView.setForeground(getContext().getDrawable(R.drawable.card_image_gradient));
312 mImageView = (ImageView) findViewById(R.id.image);
392 mImageView.setImageDrawable(mDefaultDrawable);
393 mImageView.setBackgroundResource(R.color.channel_card);
400 mImageView.setImageDrawable(banner);
401 mImageView.setForeground(getContext().getDrawable(R.drawable.card_image_gradient));
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/statusbar/
DUserNameViewControllerTest.java68 private ImageView mImageView; field in UserNameViewControllerTest
99 mImageView = new ImageView(getContext()); in setUp()
100 spyOn(mImageView); in setUp()
103 doReturn(mImageView).when(mView).findViewById(eq(R.id.user_icon)); in setUp()
124 verify(mUserNameViewController.mUserIconViews).add(eq(mImageView)); in addUserNameViewToController_withTextAndImageView_updatesViews()
126 verify(mImageView).setImageDrawable(eq(mDrawable)); in addUserNameViewToController_withTextAndImageView_updatesViews()
149 verify(mUserNameViewController.mUserIconViews).remove(eq(mImageView)); in removeUserNameViewToController_textViewAndImageViewAdded_removeViews()
/packages/apps/EmergencyInfo/src/com/android/emergency/preferences/
DEditUserPhotoController.java91 private final ImageView mImageView; field in EditUserPhotoController
104 mImageView = view; in EditUserPhotoController()
109 mImageView.setOnClickListener(new OnClickListener() { in EditUserPhotoController()
165 final Context context = mImageView.getContext(); in showUpdatePhotoPopup()
194 listPopupWindow.setAnchorView(mImageView); in showUpdatePhotoPopup()
199 final int width = Math.max(mImageView.getWidth(), context.getResources() in showUpdatePhotoPopup()
218 return mImageView.getContext().getPackageManager().queryIntentActivities( in canTakePhoto()
226 return mImageView.getContext().getPackageManager().queryIntentActivities( in canChoosePhoto()
364 .getInstance(mImageView.getContext(), mNewUserPhotoBitmap); in onPhotoCropped()
365 mImageView.setImageDrawable(mNewUserPhotoDrawable); in onPhotoCropped()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ui/
DPreviewVideoHolder.java43 private final ImageView mImageView; field in PreviewVideoHolder
58 mImageView = itemView.findViewById(R.id.preview_video_image); in PreviewVideoHolder()
76 mImageLoader.loadImageFromVideoForPreview(item, mImageView); in bind()
80 return mImageView; in getThumbnailView()
DPreviewImageHolder.java34 private final ImageView mImageView; field in PreviewImageHolder
40 mImageView = itemView.findViewById(R.id.preview_imageView); in PreviewImageHolder()
47 mImageLoader.loadImagePreview(item, mImageView); in bind()
/packages/apps/Contacts/src/com/android/contacts/list/
DContactsUnavailableFragment.java48 private ImageView mImageView; field in ContactsUnavailableFragment
62 mImageView = (ImageView) mView.findViewById(R.id.empty_image); in onCreateView()
64 (LinearLayout.LayoutParams) mImageView.getLayoutParams(); in onCreateView()
73 mImageView.setLayoutParams(layoutParams); in onCreateView()
125 mImageView.setVisibility(View.GONE); in updateViewsForBusyStatus()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ui/
DMtpFullscreenView.java35 private MtpImageView mImageView; field in MtpFullscreenView
55 mImageView = (MtpImageView) findViewById(R.id.ingest_fullsize_image); in onFinishInflate()
82 return mImageView; in getImageView()
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/settings/viewadatpors/
DAppsListViewAdapter.java96 private final ImageView mImageView; field in AppsListViewAdapter.AppsViewHolder
102 mImageView = itemView.findViewById(R.id.app_icon); in AppsViewHolder()
128 mImageView.setImageDrawable(appIcon); in prepareAppImageView()
/packages/apps/Settings/src/com/android/settings/notification/modes/
DZenModeIconPickerListPreferenceController.java87 private final ImageView mImageView; field in ZenModeIconPickerListPreferenceController.IconHolder
91 mImageView = itemView.findViewById(R.id.icon_image_view); in IconHolder()
95 mImageView.setImageDrawable( in bindIcon()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DCategorySelectorFragment.java355 private ImageView mImageView; field in CategorySelectorFragment.CategoryHolder
363 mImageView = itemView.findViewById(R.id.image); in CategoryHolder()
438 thumbnail.loadDrawable(getActivity(), mImageView, in drawThumbnailAndOverlayIcon() local
447 mImageView.setBackgroundColor( in drawThumbnailAndOverlayIcon()
453 .into(mImageView); in drawThumbnailAndOverlayIcon()
650 Category mCategory, ImageView mImageView) { in drawThumbnailAndOverlayIcon() argument
662 thumbnail.loadDrawable(getActivity(), mImageView, in drawThumbnailAndOverlayIcon() local
668 mImageView.setBackgroundColor( in drawThumbnailAndOverlayIcon()
674 .into(mImageView); in drawThumbnailAndOverlayIcon()
/packages/services/DeviceAsWebcam/src/com/android/DeviceAsWebcam/view/
DCameraPickerDialog.kt293 private val mImageView: ImageView = mView.findViewById(R.id.image_view)!! in <lambda>() constant in com.android.DeviceAsWebcam.view.CameraPickerDialog.CameraPickerListAdapter.CameraPickerViewHolder
312 mImageView.setImageResource(item.drawable) in <lambda>()
317 mImageView.setImageResource(item.drawable) in <lambda>()
/packages/apps/TV/src/com/android/tv/guide/
DProgramTableAdapter.java314 private final ImageView mImageView; field in ProgramTableAdapter.ProgramRowViewHolder
373 mImageView = (ImageView) mDetailView.findViewById(R.id.image); in ProgramRowViewHolder()
707 mImageView.setVisibility(View.GONE);
796 mImageView.setImageBitmap(posterArt);
797 mImageView.setVisibility(posterArt == null ? View.GONE : View.VISIBLE);
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DAdvancedBluetoothDetailsHeaderControllerTest.java84 private ImageView mImageView; field in AdvancedBluetoothDetailsHeaderControllerTest
375 mController.updateIcon(mImageView, ICON_URI); in updateIcon_existInCache_setImageBitmap()
377 verify(mImageView).setImageBitmap(mBitmap); in updateIcon_existInCache_setImageBitmap()