Home
last modified time | relevance | path

Searched refs:drawable (Results 1 – 25 of 1493) sorted by relevance

12345678910>>...60

/packages/apps/TV/src/com/android/tv/onboarding/
DWelcomeFragment.java63 R.drawable.tv_1a_01,
64 R.drawable.tv_1a_02,
65 R.drawable.tv_1a_03,
66 R.drawable.tv_1a_04,
67 R.drawable.tv_1a_05,
68 R.drawable.tv_1a_06,
69 R.drawable.tv_1a_07,
70 R.drawable.tv_1a_08,
71 R.drawable.tv_1a_09,
72 R.drawable.tv_1a_10,
[all …]
/packages/apps/Car/Cluster/src/android/car/cluster/
DNavStateController.java29 import android.graphics.drawable.Drawable;
213 return mContext.getDrawable(R.drawable.direction_depart); in getManeuverIcon()
215 return mContext.getDrawable(R.drawable.direction_new_name_straight); in getManeuverIcon()
217 return mContext.getDrawable(R.drawable.direction_continue_left); in getManeuverIcon()
219 return mContext.getDrawable(R.drawable.direction_continue_right); in getManeuverIcon()
221 return mContext.getDrawable(R.drawable.direction_turn_slight_left); in getManeuverIcon()
223 return mContext.getDrawable(R.drawable.direction_turn_slight_right); in getManeuverIcon()
225 return mContext.getDrawable(R.drawable.direction_turn_left); in getManeuverIcon()
227 return mContext.getDrawable(R.drawable.direction_turn_right); in getManeuverIcon()
229 return mContext.getDrawable(R.drawable.direction_turn_sharp_left); in getManeuverIcon()
[all …]
/packages/apps/Dialer/java/com/android/dialer/calllogutils/
DCallTypeIconsView.java24 import android.graphics.drawable.BitmapDrawable;
25 import android.graphics.drawable.Drawable;
86 final Drawable drawable = getCallTypeDrawable(callType); in add() local
87 width += drawable.getIntrinsicWidth() + resources.iconMargin; in add()
88 height = Math.max(height, drawable.getIntrinsicWidth()); in add()
205 final Drawable drawable = getCallTypeDrawable(callType); in onDraw() local
206 final int right = left + drawable.getIntrinsicWidth(); in onDraw()
207 drawable.setBounds(left, 0, right, drawable.getIntrinsicHeight()); in onDraw()
208 drawable.draw(canvas); in onDraw()
235 private int addDrawable(Canvas canvas, Drawable drawable, int left) { in addDrawable() argument
[all …]
/packages/apps/Dialer/java/com/android/dialer/util/
DDrawableConverter.java22 import android.graphics.drawable.BitmapDrawable;
23 import android.graphics.drawable.Drawable;
26 import android.support.v4.graphics.drawable.RoundedBitmapDrawable;
27 import android.support.v4.graphics.drawable.RoundedBitmapDrawableFactory;
37 public static Bitmap drawableToBitmap(@Nullable Drawable drawable) { in drawableToBitmap() argument
38 return drawableToBitmap(drawable, 0, 0); in drawableToBitmap()
48 public static Bitmap drawableToBitmap(@Nullable Drawable drawable, int width, int height) { in drawableToBitmap() argument
49 if (drawable == null) { in drawableToBitmap()
54 if (drawable instanceof BitmapDrawable) { in drawableToBitmap()
55 bitmap = ((BitmapDrawable) drawable).getBitmap(); in drawableToBitmap()
[all …]
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DBitmapUtils.java30 import android.graphics.drawable.BitmapDrawable;
31 import android.graphics.drawable.Drawable;
124 public static Drawable maybeFlagDrawable(@NonNull Context context, @NonNull Drawable drawable) { in maybeFlagDrawable() argument
125 if (drawable instanceof BitmapDrawable) { in maybeFlagDrawable()
127 Bitmap bitmap = ((BitmapDrawable) drawable).getBitmap(); in maybeFlagDrawable()
131 drawable = new BitmapDrawable(res, BitmapUtils.createTintedBitmap(bitmap, tint)); in maybeFlagDrawable()
134 return drawable; in maybeFlagDrawable()
138 public static Bitmap fromDrawable(Drawable drawable, @Nullable Size bitmapSize) { in fromDrawable() argument
139 if (drawable instanceof BitmapDrawable) { in fromDrawable()
140 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in fromDrawable()
[all …]
DBackgroundImageView.java21 import android.graphics.drawable.BitmapDrawable;
22 import android.graphics.drawable.Drawable;
84 Drawable drawable = (bitmap != null) ? new BitmapDrawable(bitmap) : null; in setBackgroundImage() local
85 updateBlur(drawable, showAnimation); in setBackgroundImage()
89 public void setBackgroundDrawable(@Nullable Drawable drawable) { in setBackgroundDrawable() argument
90 setBackgroundDrawable(drawable, true); in setBackgroundDrawable()
97 public void setBackgroundDrawable(@Nullable Drawable drawable, boolean showAnimation) { in setBackgroundDrawable() argument
98 updateBlur(drawable, showAnimation); in setBackgroundDrawable()
101 private void updateBlur(@Nullable Drawable drawable, boolean showAnimation) { in updateBlur() argument
102 if (drawable == null) { in updateBlur()
[all …]
/packages/apps/Dialer/java/com/android/dialer/app/contactinfo/
DContactPhotoLoader.java23 import android.graphics.drawable.Drawable;
26 import android.support.v4.graphics.drawable.RoundedBitmapDrawable;
27 import android.support.v4.graphics.drawable.RoundedBitmapDrawableFactory;
54 private static Bitmap drawableToBitmap(Drawable drawable, int width, int height) { in drawableToBitmap() argument
57 drawable.setBounds(0, 0, canvas.getWidth(), canvas.getHeight()); in drawableToBitmap()
58 drawable.draw(canvas); in drawableToBitmap()
71 Drawable drawable = createPhotoIconDrawable(); in getIcon() local
72 if (drawable == null) { in getIcon()
73 drawable = createLetterTileDrawable(); in getIcon()
75 return drawable; in getIcon()
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/notification/
DNotificationFragment.java10 import android.graphics.drawable.Icon;
23 import androidx.core.graphics.drawable.IconCompat;
126 .setSmallIcon(R.drawable.car_ic_mode) in initCarCategoriesButton()
142 .setSmallIcon(R.drawable.car_ic_mode) in initCarCategoriesButton()
155 .setSmallIcon(R.drawable.car_ic_mode) in initCarCategoriesButton()
174 .setSmallIcon(R.drawable.car_ic_mode) in initImportanceHighBotton()
197 .setSmallIcon(R.drawable.car_ic_mode) in initImportanceDefaultButton()
209 .setSmallIcon(R.drawable.car_ic_mode) in initImportanceLowButton()
221 .setSmallIcon(R.drawable.car_ic_mode) in initImportanceMinButton()
234 .setSmallIcon(R.drawable.car_ic_mode) in initOngoingButton()
[all …]
/packages/apps/ThemePicker/src/com/android/customization/widget/
DPageIndicator.java21 import android.graphics.drawable.Animatable2;
22 import android.graphics.drawable.AnimatedVectorDrawable;
23 import android.graphics.drawable.Drawable;
66 public void onAnimationEnd(Drawable drawable) {
67 super.onAnimationEnd(drawable);
68 if (drawable instanceof AnimatedVectorDrawable) {
69 ((AnimatedVectorDrawable) drawable).unregisterAnimationCallback(
106 v.setImageResource(R.drawable.minor_a_b); in setNumPages()
161 v.setImageResource(R.drawable.major_a_b); in setIndex()
208 Drawable drawable = getContext().getDrawable(res);
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/
DConversationDrawables.java20 import android.graphics.drawable.Drawable;
76 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()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/users/
DEditUserInfoController.java25 import android.graphics.drawable.Drawable;
43 import com.android.settingslib.drawable.CircleFramedDrawable;
129 Drawable drawable = null; in createDialog() local
131 drawable = CircleFramedDrawable.getInstance(activity, mSavedPhoto); in createDialog()
133 drawable = currentUserIcon; in createDialog()
134 if (drawable == null) { in createDialog()
135 drawable = Utils.getUserIcon(activity, mUserManager, info); in createDialog()
138 userPhotoView.setImageDrawable(drawable); in createDialog()
139 mEditUserPhotoController = createEditUserPhotoController(fragment, userPhotoView, drawable); in createDialog()
161 Drawable drawable = mEditUserPhotoController.getNewUserPhotoDrawable(); in createDialog()
[all …]
/packages/apps/Settings/src/com/android/settings/users/
DEditUserInfoController.java25 import android.graphics.drawable.Drawable;
43 import com.android.settingslib.drawable.CircleFramedDrawable;
128 Drawable drawable = null; in createDialog() local
130 drawable = CircleFramedDrawable.getInstance(activity, mSavedPhoto); in createDialog()
132 drawable = currentUserIcon; in createDialog()
133 if (drawable == null) { in createDialog()
134 drawable = Utils.getUserIcon(activity, mUserManager, info); in createDialog()
137 userPhotoView.setImageDrawable(drawable); in createDialog()
138 mEditUserPhotoController = createEditUserPhotoController(fragment, userPhotoView, drawable); in createDialog()
160 Drawable drawable = mEditUserPhotoController.getNewUserPhotoDrawable(); in createDialog()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/photoviewer/
DBuglePhotoBitmapLoader.java19 import android.graphics.drawable.Drawable;
74 result.drawable = mImageResource.getDrawable(context.getResources()); in loadInBackground()
91 final Drawable drawable = result != null ? result.drawable : null; in deliverResult() local
94 releaseDrawable(drawable); in deliverResult()
99 mDrawable = drawable; in deliverResult()
117 result.drawable = mDrawable; in onStartLoading()
146 releaseDrawable(result.drawable); in onCanceled()
163 private void releaseDrawable(Drawable drawable) { in releaseDrawable() argument
164 if (drawable != null && drawable instanceof FrameSequenceDrawable in releaseDrawable()
165 && !((FrameSequenceDrawable) drawable).isDestroyed()) { in releaseDrawable()
[all …]
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/
DPieItem.java22 import android.graphics.drawable.Drawable;
33 private Drawable drawable; field in PieItem
52 public PieItem(Drawable drawable, int level) { in PieItem() argument
53 this.drawable = drawable; in PieItem()
80 drawable.setAlpha((int) (255 * alpha)); in setAlpha()
158 return drawable.getIntrinsicWidth(); in getIntrinsicWidth()
162 return drawable.getIntrinsicHeight(); in getIntrinsicHeight()
166 drawable.setBounds(left, top, right, bottom); in setBounds()
170 drawable.draw(canvas); in draw()
175 d.setBounds(drawable.getBounds()); in setImageResource()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/defaultapps/
DDefaultAppUtilsTest.java22 import android.graphics.drawable.Drawable;
39 Drawable drawable = context.getDrawable(R.drawable.test_icon); in setSafeIcon_smallerThanLimit() local
40 int height = drawable.getMinimumHeight(); in setSafeIcon_smallerThanLimit()
41 int width = drawable.getMinimumWidth(); in setSafeIcon_smallerThanLimit()
46 DefaultAppUtils.setSafeIcon(preference, drawable, testMaxDimensions); in setSafeIcon_smallerThanLimit()
55 Drawable drawable = context.getDrawable(R.drawable.test_icon); in setSafeIcon_largerThanLimit() local
56 int height = drawable.getMinimumHeight(); in setSafeIcon_largerThanLimit()
57 int width = drawable.getMinimumWidth(); in setSafeIcon_largerThanLimit()
62 DefaultAppUtils.setSafeIcon(preference, drawable, testMaxDimensions); in setSafeIcon_largerThanLimit()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DPhotoStoreTest.java69 byte[] photo = loadPhotoFromResource(R.drawable.earth_small, PhotoSize.ORIGINAL); in testStoreThumbnailPhoto()
77 runStorageTestForResource(R.drawable.earth_200, 200, 200); in testStore200Photo()
82 runStorageTestForResource(R.drawable.earth_300x200, 256, 170); in testStoreNonSquare300x200Photo()
88 runStorageTestForResourceWithCrop(R.drawable.earth_300x200, 200, 200); in testStoreNonSquare300x200PhotoWithCrop()
94 runStorageTestForResourceWithCrop(R.drawable.earth_600x400, 256, 256); in testStoreNonSquare600x400PhotoWithCrop()
99 runStorageTestForResource(R.drawable.earth_normal, 256, 256); in testStoreMediumPhoto()
104 runStorageTestForResource(R.drawable.earth_large, 256, 256); in testStoreLargePhoto()
109 runStorageTestForResource(R.drawable.earth_huge, 256, 256); in testStoreHugePhoto()
176 byte[] photo = loadPhotoFromResource(R.drawable.earth_normal, PhotoSize.ORIGINAL); in testRemoveEntry()
201 R.drawable.earth_normal, R.drawable.earth_large, R.drawable.earth_huge in testCleanup()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DBaseFiltersManager.java174 rep = new FilterImageBorderRepresentation(R.drawable.filtershow_border_4x5); in addBorders()
177 rep = new FilterImageBorderRepresentation(R.drawable.filtershow_border_brush); in addBorders()
180 rep = new FilterImageBorderRepresentation(R.drawable.filtershow_border_grunge); in addBorders()
183 rep = new FilterImageBorderRepresentation(R.drawable.filtershow_border_sumi_e); in addBorders()
186 rep = new FilterImageBorderRepresentation(R.drawable.filtershow_border_tape); in addBorders()
221 R.drawable.filtershow_fx_0005_punch, in addLooks()
222 R.drawable.filtershow_fx_0000_vintage, in addLooks()
223 R.drawable.filtershow_fx_0004_bw_contrast, in addLooks()
224 R.drawable.filtershow_fx_0002_bleach, in addLooks()
225 R.drawable.filtershow_fx_0001_instant, in addLooks()
[all …]
DImageFilterBorder.java24 import android.graphics.drawable.BitmapDrawable;
25 import android.graphics.drawable.Drawable;
60 Drawable drawable = getDrawable(getParameters().getDrawableResource()); in applyHelper() local
61 drawable.setBounds(bounds); in applyHelper()
62 drawable.draw(canvas); in applyHelper()
84 Drawable drawable = mDrawables.get(rsc); in getDrawable() local
85 if (drawable == null && mResources != null && rsc != 0) { in getDrawable()
86drawable = new BitmapDrawable(mResources, BitmapFactory.decodeResource(mResources, rsc)); in getDrawable()
87 mDrawables.put(rsc, drawable); in getDrawable()
89 return drawable; in getDrawable()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/inputmethod/
DAvailableVirtualKeyboardFragment.java30 import android.graphics.drawable.ColorDrawable;
31 import android.graphics.drawable.Drawable;
120 Drawable drawable = loadDrawable(packageManager, packageName, si.logo, ai); in getInputMethodIcon() local
121 if (drawable != null) { in getInputMethodIcon()
122 return drawable; in getInputMethodIcon()
124 drawable = loadDrawable(packageManager, packageName, si.icon, ai); in getInputMethodIcon()
125 if (drawable != null) { in getInputMethodIcon()
126 return drawable; in getInputMethodIcon()
130 drawable = loadDrawable(packageManager, packageName, ai.logo, ai); in getInputMethodIcon()
131 if (drawable != null) { in getInputMethodIcon()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/inputmethod/
DAvailableVirtualKeyboardFragment.java31 import android.graphics.drawable.ColorDrawable;
32 import android.graphics.drawable.Drawable;
121 Drawable drawable = loadDrawable(packageManager, packageName, si.logo, ai); in getInputMethodIcon() local
122 if (drawable != null) { in getInputMethodIcon()
123 return drawable; in getInputMethodIcon()
125 drawable = loadDrawable(packageManager, packageName, si.icon, ai); in getInputMethodIcon()
126 if (drawable != null) { in getInputMethodIcon()
127 return drawable; in getInputMethodIcon()
131 drawable = loadDrawable(packageManager, packageName, ai.logo, ai); in getInputMethodIcon()
132 if (drawable != null) { in getInputMethodIcon()
[all …]
/packages/apps/Contacts/src/com/android/contacts/widget/
DQuickContactImageView.java4 import android.graphics.drawable.BitmapDrawable;
5 import android.graphics.drawable.Drawable;
61 public void setImageDrawable(Drawable drawable) { in setImageDrawable() argument
65 if (drawable == null || drawable instanceof BitmapDrawable) { in setImageDrawable()
66 bitmapDrawable = (BitmapDrawable) drawable; in setImageDrawable()
67 } else if (drawable instanceof LetterTileDrawable) { in setImageDrawable()
70 R.drawable.person_white_540dp); in setImageDrawable()
73 R.drawable.generic_business_white_540dp); in setImageDrawable()
79 mOriginalDrawable = drawable; in setImageDrawable()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DCachingIconLoader.java25 import android.graphics.drawable.Drawable;
76 NowOrLater<Drawable> drawable = mWrapped.getIcon(drawableId); in getIcon()
77 newEntry.set(drawable); in getIcon()
79 return drawable; in getIcon()
94 private synchronized void storeInIconCache(String resourceUri, Entry drawable) {
95 if (drawable != null) {
96 mIconCache.put(resourceUri, drawable);
109 public synchronized void set(NowOrLater<Drawable> drawable) {
112 mDrawable = drawable;
129 NowOrLater<Drawable> drawable = mDrawable;
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/views/
DFloatingIconView.java40 import android.graphics.drawable.AdaptiveIconDrawable;
41 import android.graphics.drawable.ColorDrawable;
42 import android.graphics.drawable.Drawable;
399 Drawable drawable = null; in getIconResult() local
407 drawable = ((ImageView) originalView).getDrawable(); in getIconResult()
409 drawable = ((DeepShortcutView) originalView).getIconView().getBackground(); in getIconResult()
411 drawable = originalView.getBackground(); in getIconResult()
418 drawable = getFullDrawable(l, info, width, height, false, sTmpObjArray); in getIconResult()
419 if (drawable instanceof AdaptiveIconDrawable) { in getIconResult()
424 drawable = btvIcon; in getIconResult()
[all …]
/packages/apps/Car/Hvac/src/com/android/car/hvac/ui/
DFanSpeedBarSegment.java21 import android.graphics.drawable.GradientDrawable;
42 GradientDrawable drawable = (GradientDrawable) getDrawable();
43 drawable.setCornerRadius(size / 2);
44 drawable.setSize(size, size);
92 GradientDrawable drawable = (GradientDrawable) getDrawable(); in setTurnedOn() local
94 drawable.setCornerRadius(0); in setTurnedOn()
96 drawable.setSize(-1, -1); in setTurnedOn()
98 drawable.setCornerRadius(mDotSize / 2); in setTurnedOn()
99 drawable.setSize(mDotSize, mDotSize); in setTurnedOn()
101 setImageDrawable(drawable); in setTurnedOn()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/
DIconView.java20 import android.graphics.drawable.Drawable;
89 final Drawable drawable = mDrawable; in drawableStateChanged() local
90 if (drawable != null && drawable.isStateful() in drawableStateChanged()
91 && drawable.setState(getDrawableState())) { in drawableStateChanged()
92 invalidateDrawable(drawable); in drawableStateChanged()
97 public void invalidateDrawable(@NonNull Drawable drawable) { in invalidateDrawable() argument
98 super.invalidateDrawable(drawable); in invalidateDrawable()
99 if (drawable instanceof FastBitmapDrawable && mScaleListeners != null) { in invalidateDrawable()
101 listener.onScaleUpdate(((FastBitmapDrawable) drawable).getScale()); in invalidateDrawable()

12345678910>>...60