Home
last modified time | relevance | path

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

12345678910>>...63

/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.java33 import android.graphics.drawable.Drawable;
233 return mContext.getDrawable(R.drawable.direction_depart); in getManeuverIcon()
235 return mContext.getDrawable(R.drawable.direction_new_name_straight); in getManeuverIcon()
237 return mContext.getDrawable(R.drawable.direction_continue_left); in getManeuverIcon()
239 return mContext.getDrawable(R.drawable.direction_continue_right); in getManeuverIcon()
241 return mContext.getDrawable(R.drawable.direction_turn_slight_left); in getManeuverIcon()
243 return mContext.getDrawable(R.drawable.direction_turn_slight_right); in getManeuverIcon()
245 return mContext.getDrawable(R.drawable.direction_turn_left); in getManeuverIcon()
247 return mContext.getDrawable(R.drawable.direction_turn_right); in getManeuverIcon()
249 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.java27 import android.graphics.drawable.BitmapDrawable;
28 import android.graphics.drawable.Drawable;
125 public static Drawable maybeFlagDrawable(@NonNull Context context, @NonNull Drawable drawable) { in maybeFlagDrawable() argument
126 if (drawable instanceof BitmapDrawable) { in maybeFlagDrawable()
128 Bitmap bitmap = ((BitmapDrawable) drawable).getBitmap(); in maybeFlagDrawable()
132 drawable = new BitmapDrawable(res, BitmapUtils.createTintedBitmap(bitmap, tint)); in maybeFlagDrawable()
135 return drawable; in maybeFlagDrawable()
139 public static Bitmap fromDrawable(Drawable drawable, @Nullable Size bitmapSize) { in fromDrawable() argument
140 if (drawable instanceof BitmapDrawable) { in fromDrawable()
141 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in fromDrawable()
[all …]
DBackgroundImageView.java21 import android.graphics.drawable.BitmapDrawable;
22 import android.graphics.drawable.Drawable;
90 Drawable drawable = (bitmap != null) ? new BitmapDrawable(bitmap) : null; in setBackgroundImage() local
91 updateBlur(drawable, showAnimation); in setBackgroundImage()
95 public void setBackgroundDrawable(@Nullable Drawable drawable) { in setBackgroundDrawable() argument
96 setBackgroundDrawable(drawable, true); in setBackgroundDrawable()
103 public void setBackgroundDrawable(@Nullable Drawable drawable, boolean showAnimation) { in setBackgroundDrawable() argument
104 updateBlur(drawable, showAnimation); in setBackgroundDrawable()
107 private void updateBlur(@Nullable Drawable drawable, boolean showAnimation) { in updateBlur() argument
108 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;
130 .setSmallIcon(R.drawable.car_ic_mode) in initCarCategoriesButton()
146 .setSmallIcon(R.drawable.car_ic_mode) in initCarCategoriesButton()
159 .setSmallIcon(R.drawable.car_ic_mode) in initCarCategoriesButton()
178 .setSmallIcon(R.drawable.car_ic_mode) in initImportanceHighBotton()
201 .setSmallIcon(R.drawable.car_ic_mode) in initImportanceDefaultButton()
213 .setSmallIcon(R.drawable.car_ic_mode) in initImportanceLowButton()
225 .setSmallIcon(R.drawable.car_ic_mode) in initImportanceMinButton()
238 .setSmallIcon(R.drawable.car_ic_mode) in initOngoingButton()
[all …]
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/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/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;
37 Drawable drawable = context.getDrawable(R.drawable.test_icon); in setSafeIcon_smallerThanLimit() local
38 int height = drawable.getMinimumHeight(); in setSafeIcon_smallerThanLimit()
39 int width = drawable.getMinimumWidth(); in setSafeIcon_smallerThanLimit()
43 Drawable icon = DefaultAppUtils.getSafeIcon(drawable, testMaxDimensions); in setSafeIcon_smallerThanLimit()
52 Drawable drawable = context.getDrawable(R.drawable.test_icon); in setSafeIcon_largerThanLimit() local
53 int height = drawable.getMinimumHeight(); in setSafeIcon_largerThanLimit()
54 int width = drawable.getMinimumWidth(); in setSafeIcon_largerThanLimit()
58 Drawable icon = DefaultAppUtils.getSafeIcon(drawable, testMaxDimensions); in setSafeIcon_largerThanLimit()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/
DTransitionAnimationHelper.java26 import android.graphics.drawable.AnimatedVectorDrawable;
55 R.drawable.separate_work_and_personal_animation),
57 R.drawable.pause_work_apps_animation),
59 R.drawable.not_private_animation)
66 R.drawable.connect_on_the_go_animation),
68 R.drawable.not_private_animation,
78 R.drawable.separate_work_and_personal_animation),
80 R.drawable.personal_apps_separate_hidden_from_work_animation,
85 R.drawable.it_admin_control_device_block_apps_animation)
200 image.setImageResource(transition.drawable);
[all …]
/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/Settings/src/com/android/settings/homepage/contextualcards/slices/
DBluetoothDevicesSlice.java25 import android.graphics.drawable.Drawable;
31 import androidx.core.graphics.drawable.IconCompat;
216 final Drawable drawable = pair.first; in getBluetoothDeviceIcon() local
219 if (drawable == null) { in getBluetoothDeviceIcon()
221 com.android.internal.R.drawable.ic_settings_bluetooth); in getBluetoothDeviceIcon()
224 return Utils.createIconWithDrawable(drawable); in getBluetoothDeviceIcon()
228 final Drawable drawable = mContext.getDrawable(R.drawable.ic_bluetooth_disabled); in getBluetoothOffHeader() local
231 drawable.setTint(tint); in getBluetoothOffHeader()
232 final IconCompat icon = Utils.createIconWithDrawable(drawable); in getBluetoothOffHeader()
249 final Drawable drawable = mContext.getDrawable( in getBluetoothOnHeader() local
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/views/
DFloatingIconView.java33 import android.graphics.drawable.AdaptiveIconDrawable;
34 import android.graphics.drawable.Drawable;
276 Drawable drawable = null; in getIconResult() local
285 drawable = ((ImageView) originalView).getDrawable(); in getIconResult()
287 drawable = ((DeepShortcutView) originalView).getIconView().getBackground(); in getIconResult()
289 drawable = originalView.getBackground(); in getIconResult()
295 drawable = getFullDrawable(l, info, width, height, sTmpObjArray); in getIconResult()
296 if (drawable instanceof AdaptiveIconDrawable) { in getIconResult()
301 drawable = btvIcon; in getIconResult()
306 drawable = btvIcon; in getIconResult()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/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/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/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/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/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()

12345678910>>...63