Home
last modified time | relevance | path

Searched refs:getDrawable (Results 1 – 25 of 601) sorted by relevance

12345678910>>...25

/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/
DNavStateController.java252 return mContext.getDrawable(R.drawable.direction_depart); in getManeuverIcon()
254 return mContext.getDrawable(R.drawable.direction_new_name_straight); in getManeuverIcon()
256 return mContext.getDrawable(R.drawable.direction_continue_left); in getManeuverIcon()
258 return mContext.getDrawable(R.drawable.direction_continue_right); in getManeuverIcon()
260 return mContext.getDrawable(R.drawable.direction_turn_slight_left); in getManeuverIcon()
262 return mContext.getDrawable(R.drawable.direction_turn_slight_right); in getManeuverIcon()
264 return mContext.getDrawable(R.drawable.direction_turn_left); in getManeuverIcon()
266 return mContext.getDrawable(R.drawable.direction_turn_right); in getManeuverIcon()
268 return mContext.getDrawable(R.drawable.direction_turn_sharp_left); in getManeuverIcon()
270 return mContext.getDrawable(R.drawable.direction_turn_sharp_right); in getManeuverIcon()
[all …]
DLaneView.java222 return mContext.getDrawable(R.drawable.direction_continue); in getLaneIcon()
224 return mContext.getDrawable(R.drawable.direction_turn_slight_left); in getLaneIcon()
226 return mContext.getDrawable(R.drawable.direction_turn_slight_right); in getLaneIcon()
228 return mContext.getDrawable(R.drawable.direction_turn_left); in getLaneIcon()
230 return mContext.getDrawable(R.drawable.direction_turn_right); in getLaneIcon()
232 return mContext.getDrawable(R.drawable.direction_turn_sharp_left); in getLaneIcon()
234 return mContext.getDrawable(R.drawable.direction_turn_sharp_right); in getLaneIcon()
236 return mContext.getDrawable(R.drawable.direction_uturn_left); in getLaneIcon()
238 return mContext.getDrawable(R.drawable.direction_uturn_right); in getLaneIcon()
/packages/apps/Car/Cluster/ClusterOsDouble/src/com/android/car/cluster/view/
DNavStateController.java250 return mContext.getDrawable(R.drawable.direction_depart); in getManeuverIcon()
252 return mContext.getDrawable(R.drawable.direction_new_name_straight); in getManeuverIcon()
254 return mContext.getDrawable(R.drawable.direction_continue_left); in getManeuverIcon()
256 return mContext.getDrawable(R.drawable.direction_continue_right); in getManeuverIcon()
258 return mContext.getDrawable(R.drawable.direction_turn_slight_left); in getManeuverIcon()
260 return mContext.getDrawable(R.drawable.direction_turn_slight_right); in getManeuverIcon()
262 return mContext.getDrawable(R.drawable.direction_turn_left); in getManeuverIcon()
264 return mContext.getDrawable(R.drawable.direction_turn_right); in getManeuverIcon()
266 return mContext.getDrawable(R.drawable.direction_turn_sharp_left); in getManeuverIcon()
268 return mContext.getDrawable(R.drawable.direction_turn_sharp_right); in getManeuverIcon()
[all …]
DLaneView.java223 return mContext.getDrawable(R.drawable.direction_continue); in getLaneIcon()
225 return mContext.getDrawable(R.drawable.direction_turn_slight_left); in getLaneIcon()
227 return mContext.getDrawable(R.drawable.direction_turn_slight_right); in getLaneIcon()
229 return mContext.getDrawable(R.drawable.direction_turn_left); in getLaneIcon()
231 return mContext.getDrawable(R.drawable.direction_turn_right); in getLaneIcon()
233 return mContext.getDrawable(R.drawable.direction_turn_sharp_left); in getLaneIcon()
235 return mContext.getDrawable(R.drawable.direction_turn_sharp_right); in getLaneIcon()
237 return mContext.getDrawable(R.drawable.direction_uturn_left); in getLaneIcon()
239 return mContext.getDrawable(R.drawable.direction_uturn_right); in getLaneIcon()
/packages/apps/Messaging/src/com/android/messaging/ui/
DConversationDrawables.java76 mIncomingBubbleDrawable = resources.getDrawable(R.drawable.msg_bubble_incoming); in updateDrawables()
78 resources.getDrawable(R.drawable.message_bubble_incoming_no_arrow); in updateDrawables()
79 mIncomingErrorBubbleDrawable = resources.getDrawable(R.drawable.msg_bubble_error); in updateDrawables()
80 mOutgoingBubbleDrawable = resources.getDrawable(R.drawable.msg_bubble_outgoing); in updateDrawables()
82 resources.getDrawable(R.drawable.message_bubble_outgoing_no_arrow); in updateDrawables()
83 mAudioPlayButtonDrawable = resources.getDrawable(R.drawable.ic_audio_play); in updateDrawables()
84 mAudioPauseButtonDrawable = resources.getDrawable(R.drawable.ic_audio_pause); in updateDrawables()
86 resources.getDrawable(R.drawable.audio_progress_bar_background_incoming); in updateDrawables()
88 resources.getDrawable(R.drawable.audio_progress_bar_background_outgoing); in updateDrawables()
90 resources.getDrawable(R.drawable.audio_progress_bar_progress); in updateDrawables()
[all …]
/packages/apps/Contacts/src/com/android/contacts/editor/
DEditorUiUtils.java163 return ResourcesCompat.getDrawable(context.getResources(), in getMimeTypeDrawable()
166 return ResourcesCompat.getDrawable(context.getResources(), in getMimeTypeDrawable()
169 return ResourcesCompat.getDrawable(context.getResources(), in getMimeTypeDrawable()
172 return ResourcesCompat.getDrawable(context.getResources(), in getMimeTypeDrawable()
175 return ResourcesCompat.getDrawable(context.getResources(), in getMimeTypeDrawable()
178 return ResourcesCompat.getDrawable(context.getResources(), in getMimeTypeDrawable()
181 return ResourcesCompat.getDrawable(context.getResources(), in getMimeTypeDrawable()
184 return ResourcesCompat.getDrawable(context.getResources(), in getMimeTypeDrawable()
187 return ResourcesCompat.getDrawable(context.getResources(), in getMimeTypeDrawable()
190 return ResourcesCompat.getDrawable(context.getResources(), in getMimeTypeDrawable()
[all …]
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/view/
DPreviewActionGroup.kt116 AppCompatResources.getDrawable(context, R.drawable.wallpaper_control_button_info) in updateBackgroundColor()
118 AppCompatResources.getDrawable(context, R.drawable.wallpaper_control_button_download) in updateBackgroundColor()
120 AppCompatResources.getDrawable( in updateBackgroundColor()
125 AppCompatResources.getDrawable(context, R.drawable.wallpaper_control_button_delete) in updateBackgroundColor()
127 AppCompatResources.getDrawable(context, R.drawable.wallpaper_control_button_edit) in updateBackgroundColor()
129 AppCompatResources.getDrawable(context, R.drawable.wallpaper_control_button_customize) in updateBackgroundColor()
131 AppCompatResources.getDrawable(context, R.drawable.wallpaper_control_button_effect) in updateBackgroundColor()
133 AppCompatResources.getDrawable(context, R.drawable.wallpaper_control_button_share) in updateBackgroundColor()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/
DWallpaperControlButtonGroup.java69 buttonGroupContainer.setDividerDrawable(context.getDrawable( in WallpaperControlButtonGroup()
74 context.getDrawable( in WallpaperControlButtonGroup()
161 mDeleteButton.setForeground(AppCompatResources.getDrawable(context, in updateBackgroundColor()
164 AppCompatResources.getDrawable(context, R.drawable.wallpaper_control_button_edit)); in updateBackgroundColor()
165 mCustomizeButton.setForeground(AppCompatResources.getDrawable(context, in updateBackgroundColor()
167 mEffectsButton.setForeground(AppCompatResources.getDrawable(context, in updateBackgroundColor()
169 mShareButton.setForeground(AppCompatResources.getDrawable(context, in updateBackgroundColor()
172 AppCompatResources.getDrawable(context, R.drawable.wallpaper_control_button_info)); in updateBackgroundColor()
DWallpaperThumbnailView.java50 if (getDrawable() == null) { in recomputeImageMatrix()
58 final int drawableWidth = getDrawable().getIntrinsicWidth(); in recomputeImageMatrix()
59 final int drawableHeight = getDrawable().getIntrinsicHeight(); in recomputeImageMatrix()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/systembar/
DCarSystemBarButtonTest.java91 assertThat(icon.getDrawable()).isNotNull(); in onCreate_iconIsVisible()
99 R.id.car_nav_button_icon_image)).getDrawable(); in onSelected_selectedIconDefined_togglesIcon()
104 R.id.car_nav_button_icon_image)).getDrawable(); in onSelected_selectedIconDefined_togglesIcon()
117 R.id.car_nav_button_icon_image)).getDrawable(); in onSelected_selectedIconUndefined_displaysSameIcon()
123 R.id.car_nav_button_icon_image)).getDrawable(); in onSelected_selectedIconUndefined_displaysSameIcon()
204 Drawable appIcon = getContext().getDrawable(R.drawable.ic_android); in onUnselected_withAppIcon_showsAppIcon()
211 R.id.car_nav_button_icon_image)).getDrawable(); in onUnselected_withAppIcon_showsAppIcon()
220 roleBasedButton.setAppIcon(getContext().getDrawable(R.drawable.ic_android)); in onUnselected_withAppIcon_applyUnselectedAlpha()
230 Drawable appIcon = getContext().getDrawable(R.drawable.ic_android); in onSelected_withAppIcon_showsAppIcon()
237 R.id.car_nav_button_icon_image)).getDrawable(); in onSelected_withAppIcon_showsAppIcon()
[all …]
/packages/apps/Dialer/java/com/android/dialer/calllogutils/
DCallTypeIconsView.java291 Drawable drawable = largeIcons ? r.getDrawable(iconId) : getScaledBitmap(context, iconId); in Resources()
297 drawable = largeIcons ? r.getDrawable(iconId) : getScaledBitmap(context, iconId); in Resources()
304 drawable = largeIcons ? r.getDrawable(iconId) : getScaledBitmap(context, iconId); in Resources()
310 drawable = largeIcons ? r.getDrawable(iconId) : getScaledBitmap(context, iconId); in Resources()
315 drawable = largeIcons ? r.getDrawable(iconId) : getScaledBitmap(context, iconId); in Resources()
320 drawable = largeIcons ? r.getDrawable(iconId) : getScaledBitmap(context, iconId); in Resources()
325 drawable = largeIcons ? r.getDrawable(iconId) : getScaledBitmap(context, iconId); in Resources()
330 drawable = largeIcons ? r.getDrawable(iconId) : getScaledBitmap(context, iconId); in Resources()
335 drawable = largeIcons ? r.getDrawable(iconId) : getScaledBitmap(context, iconId); in Resources()
340 drawable = largeIcons ? r.getDrawable(iconId, null) : getScaledBitmap(context, iconId); in Resources()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DCenterAlignedDynamicDrawableSpan.java60 return getDrawable().getBounds().right; in getSize()
74 Drawable drawable = getDrawable(); in draw()
91 public Drawable getDrawable() { in getDrawable() method in CenterAlignedDynamicDrawableSpan
92 Drawable drawable = mContext.getDrawable(mResourceId); in getDrawable()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/overlay/
DOverlayableTest.java75 mTargetContext.getResources().getDrawable( in testDrawable_icEject_isVectorDrawable()
82 mTargetContext.getResources().getDrawable( in testDrawable_icRootDownload_isVectorDrawable()
89 mTargetContext.getResources().getDrawable( in testDrawable_icSdStorage_isVectorDrawable()
96 mTargetContext.getResources().getDrawable( in testDrawable_icRootListSelector_isDrawable()
/packages/apps/TV/tests/robotests/src/com/android/tv/ui/
DChannelBannerViewTest.java77 assertThat(shadowOf(mChannelSignalStrengthView.getDrawable()).getCreatedFromResId()) in updateChannelSignalStrengthView_20()
85 assertThat(shadowOf(mChannelSignalStrengthView.getDrawable()).getCreatedFromResId()) in updateChannelSignalStrengthView_40()
93 assertThat(shadowOf(mChannelSignalStrengthView.getDrawable()).getCreatedFromResId()) in updateChannelSignalStrengthView_60()
101 assertThat(shadowOf(mChannelSignalStrengthView.getDrawable()).getCreatedFromResId()) in updateChannelSignalStrengthView_80()
109 assertThat(shadowOf(mChannelSignalStrengthView.getDrawable()).getCreatedFromResId()) in updateChannelSignalStrengthView_100()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DMessage.java175 mEnv.getContext().getDrawable(R.drawable.ic_dialog_alert)); in update()
178 mEnv.getContext().getDrawable(R.drawable.ic_dialog_info)); in update()
198 mEnv.getContext().getDrawable(R.drawable.ic_dialog_info)); in updateToAuthenticationExceptionHeader()
211 mEnv.getContext().getDrawable(R.drawable.ic_dialog_info)); in updateBlockFromTreeMessage()
321 mEnv.getContext().getDrawable(R.drawable.share_off)); in updateToCrossProfileNoPermissionErrorMessage()
438 mEnv.getContext().getDrawable(R.drawable.hourglass)); in updateToInflatedErrorMessage()
443 null, mEnv.getContext().getDrawable(R.drawable.empty)); in updateToCantDisplayContentMessage()
456 update(null, message, null, mEnv.getContext().getDrawable(R.drawable.empty)); in updateToInflatedEmptyMessage()
479 return mEnv.getContext().getDrawable(R.drawable.work_off); in getWorkProfileOffIcon()
487 return dpm.getResources().getDrawable( in getUpdatableWorkProfileIcon()
[all …]
/packages/apps/Car/Notification/src/com/android/car/notification/template/
DCarNotificationActionsView.java128 mActionButtonBackground = mContext.getDrawable(R.drawable.action_button_background); in CarNotificationActionsView()
129 mCallButtonBackground = mContext.getDrawable(R.drawable.call_action_button_background); in CarNotificationActionsView()
133 mDeclineButtonBackground = mContext.getDrawable(R.drawable.call_action_button_background); in CarNotificationActionsView()
139 mUnmuteButtonBackground = mContext.getDrawable(R.drawable.call_action_button_background); in CarNotificationActionsView()
147 mPlayButtonDrawable = mContext.getDrawable(R.drawable.ic_play_arrow); in CarNotificationActionsView()
148 mReplyButtonDrawable = mContext.getDrawable(R.drawable.ic_reply); in CarNotificationActionsView()
149 mMuteButtonDrawable = mContext.getDrawable(R.drawable.ic_mute); in CarNotificationActionsView()
150 mUnmuteButtonDrawable = mContext.getDrawable(R.drawable.ic_unmute); in CarNotificationActionsView()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DPackageIconLoader.kt83 val icon: Drawable? = ContextCompat.getDrawable(mPackageContext!!, resourceId) in getIcon()
90 drawable = Now(getDrawable(uri)) in getIcon()
121 private fun getDrawable(uri: Uri): Drawable? { in getDrawable() method
128 ContextCompat.getDrawable(mPackageContext!!, r.id) in getDrawable()
229 getDrawable(mUri)
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/utils/
DAttributeResolver.kt25 fun getDrawable(context: Context, @AttrRes attribute: Int): Drawable? { in getDrawable() method
26 return AppCompatResources.getDrawable(context, getResource(context, attribute)) in getDrawable()
37 return AppCompatResources.getDrawable(context, resourceId) in getNullableDrawable()
/packages/apps/Camera2/src/com/android/camera/ui/
DBottomBar.java107 context.getResources().getDrawable(drawableId).getConstantState(); in BottomBar()
135 Drawable d = layerDrawable.getDrawable(0); in setCancelBackgroundColor()
415 Drawable d = shutterBackground.getDrawable(0); in setupShutterBackgroundForModeIndex()
493 Drawable iconDrawable = getResources().getDrawable(resId); in setShutterButtonIcon()
510 mShutterButton.getDrawable(), in animateToVideoStop()
511 getResources().getDrawable(resId)); in animateToVideoStop()
526 mShutterButton.getDrawable(), in animateToFullSize()
527 getResources().getDrawable(resId)); in animateToFullSize()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/
DSafetyStatusPreference.java176 AnimatedVectorDrawable animation = (AnimatedVectorDrawable) statusImage.getDrawable(); in startScanningAnimation()
194 Drawable statusDrawable = statusImage.getDrawable(); in continueScanningAnimation()
202 AnimatedVectorDrawable scanningAnim = (AnimatedVectorDrawable) statusImage.getDrawable(); in continueScanningAnimation()
219 Drawable statusDrawable = statusImage.getDrawable(); in endScanningAnimation()
242 (AnimatedVectorDrawable) statusImage.getDrawable(); in endScanningAnimation()
281 (AnimatedVectorDrawable) statusCardView.getStatusImageView().getDrawable(); in startIconChangeAnimation()
331 Drawable statusDrawable = statusCardView.getStatusImageView().getDrawable(); in setSettledStatus()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DIconUtilsTest.java86 when(packageManager.getDrawable(anyString(), eq(icon), any(ApplicationInfo.class))) in testLoadPackageIcon()
92 verify(packageManager).getDrawable(any(), eq(icon), any()); in testLoadPackageIcon()
110 when(packageManager.getDrawable(any(), eq(icon), any())).thenReturn(drawable); in testLoadPackageIcon_maybeShowBadge()
115 verify(packageManager).getDrawable(any(), eq(icon), any()); in testLoadPackageIcon_maybeShowBadge()
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitLauncher/src/com/android/car/portraitlauncher/panel/
DGripBarView.java95 Drawable background = getResources().getDrawable(R.drawable.grip_bar_background, theme); in refresh()
105 Drawable roundBackground = getResources().getDrawable(R.drawable.ic_round_bg, theme); in refresh()
109 Drawable backArrowIcon = getResources().getDrawable(R.drawable.ic_arrow_back_32, theme); in refresh()
112 Drawable fullscreenIcon = getResources().getDrawable(R.drawable.ic_fullscreen_32, theme); in refresh()
/packages/apps/Contacts/src/com/android/contacts/widget/
DQuickContactImageView.java69 bitmapDrawable = (BitmapDrawable) getResources().getDrawable( in setImageDrawable()
72 bitmapDrawable = (BitmapDrawable) getResources().getDrawable( in setImageDrawable()
86 public Drawable getDrawable() { in getDrawable() method in QuickContactImageView
/packages/apps/Launcher3/tests/src/com/android/launcher3/allapps/
DPrivateSpaceHeaderViewTest.java133 Bitmap unlockButton = getBitmap(mContext.getDrawable(R.drawable.ic_lock)); in privateProfileDisabled_psHeaderContainsLockedView()
148 assertTrue(getBitmap(lockIcon.getDrawable()).sameAs(unlockButton)); in privateProfileDisabled_psHeaderContainsLockedView()
166 Bitmap lockImage = getBitmap(mContext.getDrawable(R.drawable.ic_lock)); in privateProfileEnabled_psHeaderContainsUnlockedView()
167 Bitmap settingsImage = getBitmap(mContext.getDrawable(R.drawable.ic_ps_settings)); in privateProfileEnabled_psHeaderContainsUnlockedView()
187 assertTrue(getBitmap(settingsButton.getDrawable()).sameAs(settingsImage)); in privateProfileEnabled_psHeaderContainsUnlockedView()
191 assertTrue(getBitmap(lockIcon.getDrawable()).sameAs(lockImage)); in privateProfileEnabled_psHeaderContainsUnlockedView()
209 Bitmap lockImage = getBitmap(mContext.getDrawable(R.drawable.ic_lock)); in privateProfileEnabledAndNoSettingsIntent_psHeaderContainsUnlockedView()
231 assertTrue(getBitmap(lockIcon.getDrawable()).sameAs(lockImage)); in privateProfileEnabledAndNoSettingsIntent_psHeaderContainsUnlockedView()
248 Bitmap transitionImage = getBitmap(mContext.getDrawable(R.drawable.bg_ps_transition_image)); in privateProfileTransitioning_psHeaderContainsTransitionView()
265 assertTrue(getBitmap(imageView.getDrawable()).sameAs(transitionImage)); in privateProfileTransitioning_psHeaderContainsTransitionView()
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
DRecordedProgramDetailsFragment.java104 res.getDrawable(R.drawable.lb_ic_play))); in onCreateActionsAdapter()
111 res.getDrawable(R.drawable.lb_ic_replay))); in onCreateActionsAdapter()
119 res.getDrawable(R.drawable.lb_ic_play))); in onCreateActionsAdapter()
127 res.getDrawable(R.drawable.ic_delete_32dp))); in onCreateActionsAdapter()

12345678910>>...25