Home
last modified time | relevance | path

Searched refs:Drawable (Results 1 – 25 of 963) sorted by relevance

12345678910>>...39

/packages/apps/Messaging/src/com/android/messaging/ui/
DConversationDrawables.java20 import android.graphics.drawable.Drawable;
35 private Drawable mIncomingBubbleDrawable;
36 private Drawable mOutgoingBubbleDrawable;
37 private Drawable mIncomingErrorBubbleDrawable;
38 private Drawable mIncomingBubbleNoArrowDrawable;
39 private Drawable mOutgoingBubbleNoArrowDrawable;
40 private Drawable mAudioPlayButtonDrawable;
41 private Drawable mAudioPauseButtonDrawable;
42 private Drawable mIncomingAudioProgressBackgroundDrawable;
43 private Drawable mOutgoingAudioProgressBackgroundDrawable;
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DCachingIconLoader.kt18 import android.graphics.drawable.Drawable
28 override fun getIcon(drawableId: String?): NowOrLater<Drawable?>? { in getIcon()
31 return Now<Drawable>(null) in getIcon()
34 var drawableState: NowOrLater<Drawable.ConstantState?>? in getIcon()
43 return object : NowOrLaterWrapper<Drawable.ConstantState?, Drawable?>(drawableState!!) { in getIcon()
45 override operator fun get(value: Drawable.ConstantState?): Drawable? { in getIcon()
50 val drawable: NowOrLater<Drawable?>? = mWrapped.getIcon(drawableId) in getIcon()
61 private fun queryCache(drawableId: String?): NowOrLater<Drawable.ConstantState?>? { in queryCache()
76 private class Entry : CachedLater<Drawable.ConstantState?>(), Consumer<Drawable?> {
77 private var mDrawable: NowOrLater<Drawable?>? = null
[all …]
DPackageIconLoader.kt23 import android.graphics.drawable.Drawable
70 override fun getIcon(drawableId: String?): NowOrLater<Drawable?>? { in getIcon()
73 return Now<Drawable>(null) in getIcon()
76 return Now<Drawable>(null) in getIcon()
78 var drawable: NowOrLater<Drawable?>? in getIcon()
83 val icon: Drawable? = ContextCompat.getDrawable(mPackageContext!!, resourceId) in getIcon()
121 private fun getDrawable(uri: Uri): Drawable? { in getDrawable()
138 Drawable.createFromStream(stream, null) in getDrawable()
200 private inner class IconLaterTask(iconUri: Uri) : CachedLater<Drawable?>(), NamedTask {
210 val icon: Drawable? = icon in run()
[all …]
/packages/modules/Permission/PermissionController/src/android/support/wearable/view/
DWearableDialogHelper.java22 import android.graphics.drawable.Drawable;
38 private Drawable mPositiveIcon;
41 private Drawable mNeutralIcon;
44 private Drawable mNegativeIcon;
67 public Drawable getPositiveIcon() { in getPositiveIcon()
72 public Drawable getNegativeIcon() { in getNegativeIcon()
77 public Drawable getNeutralIcon() { in getNeutralIcon()
89 public WearableDialogHelper setPositiveIcon(@Nullable Drawable icon) { in setPositiveIcon()
103 public WearableDialogHelper setNegativeIcon(@Nullable Drawable icon) { in setNegativeIcon()
117 public WearableDialogHelper setNeutralIcon(@Nullable Drawable icon) { in setNeutralIcon()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
DTextViewCompatUtils.java19 import android.graphics.drawable.Drawable;
29 Drawable.class, Drawable.class, Drawable.class, Drawable.class);
36 final Drawable start, final Drawable top, final Drawable end, final Drawable bottom) { in setCompoundDrawablesRelativeWithIntrinsicBounds()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DDrawableResourceDecoder.java18 import android.graphics.drawable.Drawable;
37 public class DrawableResourceDecoder implements ResourceDecoder<Drawable, Drawable> {
40 public boolean handles(Drawable source, Options options) throws IOException { in handles()
46 public Resource<Drawable> decode(Drawable source, int width, int height, Options options) in decode()
48 return new DrawableResource<Drawable>(source) { in decode()
50 public Class<Drawable> getResourceClass() { in decode()
51 return Drawable.class; in decode()
DLiveWallpaperThumbAssetLoader.java18 import android.graphics.drawable.Drawable;
34 ModelLoader<LiveWallpaperThumbAsset, Drawable> {
43 public LoadData<Drawable> buildLoadData(LiveWallpaperThumbAsset liveWallpaperThumbAsset, in buildLoadData()
53 implements ModelLoaderFactory<LiveWallpaperThumbAsset, Drawable> {
58 public ModelLoader<LiveWallpaperThumbAsset, Drawable> build( in build()
72 private static class LiveWallpaperThumbFetcher implements DataFetcher<Drawable> {
81 public void loadData(Priority priority, DataCallback<? super Drawable> callback) { in loadData()
101 public Class<Drawable> getDataClass() { in getDataClass()
102 return Drawable.class; in getDataClass()
DWallpaperModelLoader.java18 import android.graphics.drawable.Drawable;
34 public class WallpaperModelLoader implements ModelLoader<WallpaperModel, Drawable> {
43 public LoadData<Drawable> buildLoadData(WallpaperModel wallpaperModel, int width, int height, in buildLoadData()
53 implements ModelLoaderFactory<WallpaperModel, Drawable> {
58 public ModelLoader<WallpaperModel, Drawable> build(MultiModelLoaderFactory multiFactory) { in build()
71 private static class WallpaperFetcher implements DataFetcher<Drawable> {
84 public void loadData(Priority priority, DataCallback<? super Drawable> callback) { in loadData()
104 public Class<Drawable> getDataClass() { in getDataClass()
105 return Drawable.class; in getDataClass()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DIconUtils.java22 import android.graphics.drawable.Drawable;
28 public static Drawable loadPackageIcon(Context context, UserId userId, String authority, in loadPackageIcon()
32 Drawable packageIcon = null; in loadPackageIcon()
51 public static Drawable loadMimeIcon( in loadMimeIcon()
62 public static Drawable loadMimeIcon(Context context, String mimeType) { in loadMimeIcon()
67 public static Drawable applyTintColor(Context context, int drawableId, int tintColorId) { in applyTintColor()
68 final Drawable icon = context.getDrawable(drawableId); in applyTintColor()
72 public static Drawable applyTintColor(Context context, Drawable icon, int tintColorId) { in applyTintColor()
78 public static Drawable applyTintAttr(Context context, int drawableId, int tintAttrId) { in applyTintAttr()
/packages/apps/ThemePicker/src/com/android/customization/widget/
DDynamicAdaptiveIconDrawable.java22 import android.graphics.drawable.Drawable;
40 public class DynamicAdaptiveIconDrawable extends Drawable implements Drawable.Callback {
117 private ChildDrawable createChildDrawable(Drawable drawable) { in createChildDrawable()
137 public DynamicAdaptiveIconDrawable(Drawable backgroundDrawable, in DynamicAdaptiveIconDrawable()
138 Drawable foregroundDrawable, Path iconMask) { in DynamicAdaptiveIconDrawable()
189 public Drawable getForeground() { in getForeground()
200 public Drawable getBackground() { in getBackground()
237 final Drawable d = r.mDrawable; in updateLayerBoundsInternal()
281 final Drawable dr = mLayerState.mChildren[i].mDrawable; in draw()
332 final Drawable d = layer.mDrawable; in applyTheme()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DCompanionAppWidgetPreferenceTest.java25 import android.graphics.drawable.Drawable;
52 private Drawable mWidgetIconOne;
53 private Drawable mWidgetIconTwo;
54 private Drawable mAppIconOne;
55 private Drawable mAppIconTwo;
69 mWidgetIconOne = mock(Drawable.class); in setUp()
70 mAppIconOne = mock(Drawable.class); in setUp()
72 mWidgetIconTwo = mock(Drawable.class); in setUp()
73 mAppIconTwo = mock(Drawable.class); in setUp()
77 private void setUpPreferenceContainer(Drawable widgetIcon, Drawable appIcon, in setUpPreferenceContainer()
/packages/apps/Car/Launcher/app/src/com/android/car/carlauncher/homescreen/ui/
DCardContent.java19 import android.graphics.drawable.Drawable;
48 private Drawable mBackground;
49 private Drawable mForeground;
51 public CardBackgroundImage(Drawable foreground, Drawable background) { in CardBackgroundImage()
59 public Drawable getBackground() { in getBackground()
66 public Drawable getForeground() { in getForeground()
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
DUserIconLoader.java21 import android.graphics.drawable.Drawable;
32 public class UserIconLoader extends AsyncLoaderCompat<SparseArray<Drawable>> {
39 SparseArray<Drawable> getUserIcons(); in getUserIcons()
46 void handleUserIcons(SparseArray<Drawable> fetchedIcons); in handleUserIcons()
55 public SparseArray<Drawable> loadInBackground() { in loadInBackground()
60 protected void onDiscardResult(SparseArray<Drawable> result) {} in onDiscardResult()
66 public static SparseArray<Drawable> loadUserIconsWithContext(Context context) { in loadUserIconsWithContext()
67 SparseArray<Drawable> value = new SparseArray<>(); in loadUserIconsWithContext()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userswitcher/
DUserIconProvider.java25 import android.graphics.drawable.Drawable;
58 public Drawable getRoundedUserIcon(UserInfo userInfo, Context context) { in getRoundedUserIcon()
77 public Drawable getDrawableWithBadge(Context context, UserInfo userInfo) { in getDrawableWithBadge()
88 public Drawable getDrawableWithBadge(Context context, Drawable drawable) { in getDrawableWithBadge()
92 private static Drawable addBadge(Context context, Drawable drawable, @UserIdInt int userId) { in addBadge()
110 Drawable badgedIcon = userAvatarView.getUserIconDrawable(); in addBadge()
116 public Drawable getRoundedGuestDefaultIcon(Context context) { in getRoundedGuestDefaultIcon()
/packages/apps/Dialer/java/com/android/dialer/calllogutils/
DCallTypeIconsView.java25 import android.graphics.drawable.Drawable;
86 final Drawable drawable = getCallTypeDrawable(callType); in add()
168 private Drawable getCallTypeDrawable(int callType) { in getCallTypeDrawable()
205 final Drawable drawable = getCallTypeDrawable(callType); in onDraw()
235 private int addDrawable(Canvas canvas, Drawable drawable, int left) { in addDrawable()
245 public final Drawable incoming;
248 public final Drawable outgoing;
251 public final Drawable missed;
254 public final Drawable voicemail;
257 public final Drawable blocked;
[all …]
/packages/apps/Car/SystemUI/src/com/android/systemui/car/volume/
DCarVolumeItem.java20 import android.graphics.drawable.Drawable;
33 private Drawable mPrimaryIcon;
34 private Drawable mPrimaryMuteIcon;
35 private Drawable mSupplementalIcon;
73 public void setPrimaryIcon(Drawable drawable) { in setPrimaryIcon()
78 public void setPrimaryMuteIcon(Drawable drawable) { in setPrimaryMuteIcon()
83 public void setSupplementalIcon(Drawable drawable, boolean showSupplementalIconDivider) { in setSupplementalIcon()
154 Drawable primaryIconDrawable = mPrimaryIcon.getDrawable(); in setIconDrawableColor()
159 Drawable supplementalIconDrawable = mSupplementalIcon.getDrawable(); in setIconDrawableColor()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/
DImportancePreferenceTest.java30 import android.graphics.drawable.Drawable;
71 Drawable unselected = mock(Drawable.class); in onBindViewHolder_nonConfigurable()
72 Drawable selected = mock(Drawable.class); in onBindViewHolder_nonConfigurable()
103 Drawable unselected = mock(Drawable.class); in onBindViewHolder_selectButtonAndText()
104 Drawable selected = mock(Drawable.class); in onBindViewHolder_selectButtonAndText()
126 Drawable unselected = mock(Drawable.class); in onClick_changesUICallsListener()
127 Drawable selected = mock(Drawable.class); in onClick_changesUICallsListener()
/packages/apps/Car/systemlibs/car-qc-lib/src/com/android/car/qc/view/
DQCViewUtils.java21 import android.graphics.drawable.Drawable;
38 public static Drawable getToggleIcon(@NonNull Context context, @Nullable Icon icon, in getToggleIcon()
40 Drawable defaultToggleBackground = context.getDrawable(R.drawable.qc_toggle_background); in getToggleIcon()
41 Drawable unavailableToggleBackground = context.getDrawable( in getToggleIcon()
46 Drawable background = available in getToggleIcon()
53 Drawable iconDrawable = icon.loadDrawable(context); in getToggleIcon()
67 Drawable[] layers = {background, iconDrawable}; in getToggleIcon()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/icons/
DBaseLoadIconTask.java20 import android.graphics.drawable.Drawable;
28 abstract class BaseLoadIconTask extends AsyncTask<Void, Void, Drawable> {
31 private final Consumer<Drawable> mCallback;
36 Consumer<Drawable> callback) { in BaseLoadIconTask()
42 protected final Drawable loadIconPlaceholder() { in loadIconPlaceholder()
47 protected final void onPostExecute(Drawable d) { in onPostExecute()
/packages/modules/Permission/PermissionController/iconloaderlib/src/com/android/launcher3/icons/
DBaseIconFactory.java22 import android.graphics.drawable.Drawable;
60 private Drawable mWrapperIcon;
163 Drawable d = new FixedSizeBitmapDrawable(icon); in createShapedIconBitmap()
173 public BitmapInfo createBadgedIconBitmap(Drawable icon, UserHandle user, in createBadgedIconBitmap()
178 public BitmapInfo createBadgedIconBitmap(Drawable icon, UserHandle user, in createBadgedIconBitmap()
183 public BitmapInfo createBadgedIconBitmap(Drawable icon, UserHandle user, in createBadgedIconBitmap()
188 public BitmapInfo createBadgedIconBitmap(Drawable icon, UserHandle user, in createBadgedIconBitmap()
195 public Bitmap createScaledBitmapWithoutShadow(Drawable icon, int iconAppTargetSdk) { in createScaledBitmapWithoutShadow()
212 public BitmapInfo createBadgedIconBitmap(@NonNull Drawable icon, UserHandle user, in createBadgedIconBitmap()
230 Drawable badged = mPm.getUserBadgedIcon(drawable, user); in createBadgedIconBitmap()
[all …]
/packages/apps/Settings/src/com/android/settings/notification/modes/
DIconUtil.java22 import android.graphics.drawable.Drawable;
35 static Drawable applyTint(@NonNull Context context, @NonNull Drawable icon) { in applyTint()
46 static Drawable makeIconCircle(@NonNull Context context, @NonNull Drawable icon) { in makeIconCircle()
53 LayerDrawable layerDrawable = new LayerDrawable(new Drawable[] { background, icon }); in makeIconCircle()
66 static Drawable makeIconCircle(@NonNull Context context, @DrawableRes int iconResId) { in makeIconCircle()
DIconLoader.java28 import android.graphics.drawable.Drawable;
52 private static final Drawable MISSING = new ColorDrawable();
57 private final LruCache<String, Drawable> mCache;
79 ListenableFuture<Drawable> getIcon(Context context, @NonNull AutomaticZenRule rule) { in getIcon()
91 private ListenableFuture</* @Nullable */ Drawable> loadIcon(Context context, String pkg, in loadIcon()
95 Drawable cachedValue = mCache.get(cacheKey); in loadIcon()
106 Drawable appDrawable = AppCompatResources.getDrawable(appContext, iconResId); in loadIcon()
122 private static Drawable getFallbackIcon(Context context, int ruleType) {
148 private static Drawable getMonochromeIconIfPresent(Drawable icon) {
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DFloatingWidgetBackgroundView.java22 import android.graphics.drawable.Drawable;
50 private Drawable mOriginalForeground;
52 private Drawable mOriginalBackground;
81 mOriginalForeground = (Drawable) backgroundView.getTag( in init()
87 Drawable clipPlaceholder = in init()
97 mOriginalBackground = (Drawable) backgroundView.getTag( in init()
103 Drawable clipPlaceholder = in init()
157 private static float getMaxRadius(@Nullable Drawable drawable) { in getMaxRadius()
167 private static boolean isSupportedDrawable(Drawable drawable) { in isSupportedDrawable()
187 private Drawable mDrawable;
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/elements/
DDrawablePainter.kt21 import android.graphics.drawable.Drawable in <lambda>()
53 class DrawablePainter(val drawable: Drawable) : Painter(), RememberObserver {
57 private val callback: Drawable.Callback by lazy { in <lambda>()
58 object : Drawable.Callback { in <lambda>()
59 override fun invalidateDrawable(d: Drawable) { in <lambda>()
66 override fun scheduleDrawable(d: Drawable, what: Runnable, time: Long) { in <lambda>()
70 override fun unscheduleDrawable(d: Drawable, what: Runnable) { in <lambda>()
145 fun rememberDrawablePainter(drawable: Drawable?): Painter = in rememberDrawablePainter()
156 private val Drawable.intrinsicSize: Size constant
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/defaultapps/
DDefaultAppUtilsTest.java22 import android.graphics.drawable.Drawable;
38 Drawable drawable = context.getDrawable(R.drawable.test_icon_2); in setSafeIcon_smallerThanLimit()
44 Drawable icon = DefaultAppUtils.getSafeIcon(drawable, testMaxDimensions); in setSafeIcon_smallerThanLimit()
53 Drawable drawable = context.getDrawable(R.drawable.test_icon_2); in setSafeIcon_largerThanLimit()
59 Drawable icon = DefaultAppUtils.getSafeIcon(drawable, testMaxDimensions); in setSafeIcon_largerThanLimit()
68 Drawable drawable = context.getDrawable(R.drawable.test_icon); in setSafeIcon_noChangeForVectorDrawable()
74 Drawable icon = DefaultAppUtils.getSafeIcon(drawable, testMaxDimensions); in setSafeIcon_noChangeForVectorDrawable()

12345678910>>...39