HomeSort by relevance Sort by last modified time
    Searched defs:drawable (Results 201 - 225 of 909) sorted by null

1 2 3 4 5 6 7 891011>>

  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
ImageFilterBorder.java 24 import android.graphics.drawable.BitmapDrawable;
25 import android.graphics.drawable.Drawable;
35 private HashMap<Integer, Drawable> mDrawables = new HashMap<Integer, Drawable>();
60 Drawable drawable = getDrawable(getParameters().getDrawableResource()); local
61 drawable.setBounds(bounds);
62 drawable.draw(canvas);
83 public Drawable getDrawable(int rsc)
84 Drawable drawable = mDrawables.get(rsc); local
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/history/
HistoryManager.java 19 import android.graphics.drawable.Drawable;
98 Drawable drawable = item.getIcon(); local
99 if (drawable != null) {
100 drawable.setAlpha(enabled ? 255 : 80);
  /packages/apps/Gallery2/src/com/android/photos/data/
PhotoSetLoader.java 23 import android.graphics.drawable.Drawable;
84 public Drawable drawableForItem(Cursor item, Drawable recycle) {
85 DataUriThumbnailDrawable drawable = null; local
87 drawable = new DataUriThumbnailDrawable();
89 drawable = (DataUriThumbnailDrawable) recycle;
91 drawable.setImage(item.getString(INDEX_DATA),
93 return drawable;
  /packages/apps/Launcher3/src/com/android/launcher3/graphics/
DrawableFactory.java 27 import android.graphics.drawable.BitmapDrawable;
28 import android.graphics.drawable.Drawable;
69 FastBitmapDrawable drawable = new FastBitmapDrawable(info); local
70 drawable.setIsDisabled(info.isDisabled());
71 return drawable;
92 Drawable icon = context.getDrawable(R.drawable.adaptive_icon_drawable_wrapper);
113 * Returns a drawable that can be used as a badge for the user or null.
116 public Drawable getBadgeForUser(UserHandle user, Context context)
138 Drawable drawable = context.getPackageManager().getUserBadgedDrawableForDensity( local
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/ui/photoviewer/
BuglePhotoBitmapLoader.java 19 import android.graphics.drawable.Drawable;
41 // The drawable that is currently "in use" and being presented to the user. This drawable
43 private Drawable mDrawable;
74 result.drawable = mImageResource.getDrawable(context.getResources());
91 final Drawable drawable = result != null ? result.drawable : null; local
94 releaseDrawable(drawable);
    [all...]
BuglePhotoViewFragment.java 19 import android.graphics.drawable.Drawable;
77 final Drawable drawable = getDrawable(); local
78 if (drawable != null && drawable instanceof FrameSequenceDrawable) {
79 ((FrameSequenceDrawable) drawable).stop();
84 final Drawable drawable = getDrawable(); local
85 if (drawable != null && drawable instanceof FrameSequenceDrawable)
    [all...]
  /packages/apps/Settings/src/com/android/settings/users/
EditUserInfoController.java 27 import android.graphics.drawable.Drawable;
41 import com.android.settingslib.drawable.CircleFramedDrawable;
61 public void onPhotoChanged(Drawable photo);
111 public Dialog createDialog(final Fragment fragment, final Drawable currentUserIcon,
128 Drawable drawable = null; local
130 drawable = CircleFramedDrawable.getInstance(activity, mSavedPhoto);
132 drawable = currentUserIcon;
133 if (drawable == null)
    [all...]
  /packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/
SecondaryUserControllerTest.java 28 import android.graphics.drawable.Drawable;
38 import com.android.settingslib.drawable.UserIconDrawable;
198 final SparseArray<Drawable> icons = new SparseArray<>();
199 final UserIconDrawable drawable = mock(UserIconDrawable.class); local
200 when(drawable.mutate()).thenReturn(drawable);
203 icons.put(mPrimaryUser.id, drawable);
211 assertThat(preference.getIcon()).isEqualTo(drawable);
216 final SparseArray<Drawable> icons = new SparseArray<>()
217 final UserIconDrawable drawable = mock(UserIconDrawable.class); local
    [all...]
  /packages/apps/TV/src/com/android/tv/menu/
PlaybackProgressBar.java 23 import android.graphics.drawable.Drawable;
24 import android.graphics.drawable.LayerDrawable;
32 private final Drawable mPrimaryDrawable;
33 private final Drawable mSecondaryDrawable;
139 private boolean setProgressBound(Drawable drawable, long start, long end) {
140 Rect oldBounds = drawable.getBounds();
143 drawable.setBounds(0, 0, 0, 0);
153 drawable.setBounds(left, 0, right, height)
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/drawable/
DrawableDescriptors.java 16 package com.android.ide.eclipse.adt.internal.editors.drawable;
37 * Descriptors for /res/drawable files
97 /* For some reason, android.graphics.drawable.AnimatedRotateDrawable is marked with @hide
113 SDK_URL_BASE + "drawable-resource.html#Bitmap", //$NON-NLS-1$
118 "An XML file that defines a drawable that clips another Drawable based on "
119 + "this Drawable's current level value.",
120 SDK_URL_BASE + "drawable-resource.html#Clip", //$NON-NLS-1$
131 "An XML file that defines a drawable that insets another drawable by a
    [all...]
DrawableEditorDelegate.java 17 package com.android.ide.eclipse.adt.internal.editors.drawable;
36 * Editor for /res/drawable XML files.
47 if (ResourceFolderType.DRAWABLE == type) {
60 EDITORS_NAMESPACE + ".drawable.DrawableEditor"; //$NON-NLS-1$
  /frameworks/base/packages/SystemUI/src/com/android/systemui/pip/tv/
PipControlsView.java 229 // TODO: Check if the action drawable has changed before we reload it
257 mPlayPauseButtonView.setImageResource(R.drawable.ic_pause_white);
260 mPlayPauseButtonView.setImageResource(R.drawable.ic_play_arrow_white);
  /frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/
QueueFragment.java 241 ContextCompat.getDrawable(getActivity(), R.drawable.ic_play_arrow_white_24dp));
244 ContextCompat.getDrawable(getActivity(), R.drawable.ic_pause_white_24dp));
  /frameworks/support/transition/src/main/java/androidx/transition/
ViewOverlayApi14.java 24 import android.graphics.drawable.Drawable;
88 public void add(@NonNull Drawable drawable) {
89 mOverlayViewGroup.add(drawable);
98 public void remove(@NonNull Drawable drawable) {
99 mOverlayViewGroup.remove(drawable);
112 * ViewGroupOverlay. These drawable and view objects are
150 ArrayList<Drawable> mDrawables = null
    [all...]
  /packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
LetterTileDrawable.java 29 import android.graphics.drawable.Drawable;
33 * A drawable that encapsulates all the functionality needed to display a letter tile to
36 public class LetterTileDrawable extends Drawable {
42 private static Drawable sDefaultPersonAvatar;
43 private static Drawable sDefaultBusinessAvatar;
44 private static Drawable sDefaultVoicemailAvatar;
95 sDefaultPersonAvatar = res.getDrawable(R.drawable.ic_person, null /* theme */);
96 sDefaultBusinessAvatar = res.getDrawable(R.drawable.ic_person, null /* theme */);
97 sDefaultVoicemailAvatar = res.getDrawable(R.drawable.ic_person, null /* theme */)
169 final Drawable drawable = getDrawablepForContactType(mContactType); local
    [all...]
  /packages/apps/Dialer/java/com/android/dialer/calllogutils/
CallTypeIconsView.java 25 import android.graphics.drawable.BitmapDrawable;
26 import android.graphics.drawable.Drawable;
84 final Drawable drawable = getCallTypeDrawable(callType); local
85 width += drawable.getIntrinsicWidth() + resources.iconMargin;
86 height = Math.max(height, drawable.getIntrinsicWidth());
157 private Drawable getCallTypeDrawable(int callType) {
194 final Drawable drawable = getCallTypeDrawable(callType) local
273 Drawable drawable = largeIcons ? r.getDrawable(iconId) : getScaledBitmap(context, iconId); local
    [all...]
  /packages/apps/Dialer/java/com/android/dialer/contactphoto/
ContactPhotoManager.java 23 import android.graphics.drawable.Drawable;
367 * Used to indicate that a drawable that represents a contact without any contact details should
372 * Used to indicate that a drawable that represents a business without a business photo should
378 * Used to indicate that a circular drawable that represents a contact without any contact
384 * Used to indicate that a circular drawable that represents a business without a business photo
476 public static Drawable getDefaultImageForContact(
478 final LetterTileDrawable drawable = new LetterTileDrawable(resources); local
489 drawable.setCanonicalDialerLetterTileDetails(
492 drawable.setCanonicalDialerLetterTileDetails
507 final Drawable drawable = getDefaultImageForContact(view.getResources(), defaultImageRequest); local
    [all...]
  /packages/experimental/SlicesApp/src/com/android/experimental/slicesapp/
SlicesProvider.java 26 import android.graphics.drawable.Icon;
91 Icon.createWithResource(getContext(), R.drawable.mady),
145 .addIcon(Icon.createWithResource(getContext(), R.drawable.ic_add),
150 .addIcon(Icon.createWithResource(getContext(), R.drawable.ic_remove),
155 .addIcon(Icon.createWithResource(getContext(), R.drawable.ic_add),
165 .addIcon(Icon.createWithResource(getContext(), R.drawable.weather_1),
170 .addIcon(Icon.createWithResource(getContext(), R.drawable.weather_2),
175 .addIcon(Icon.createWithResource(getContext(), R.drawable.weather_3),
180 .addIcon(Icon.createWithResource(getContext(), R.drawable.weather_4),
185 .addIcon(Icon.createWithResource(getContext(), R.drawable.weather_2)
    [all...]
  /frameworks/support/graphics/drawable/animated/src/main/java/androidx/vectordrawable/graphics/drawable/
AnimatedVectorDrawableCompat.java 15 package androidx.vectordrawable.graphics.drawable;
31 import android.graphics.drawable.Animatable;
32 import android.graphics.drawable.AnimatedVectorDrawable;
33 import android.graphics.drawable.Drawable;
46 import androidx.core.graphics.drawable.DrawableCompat;
60 * {@link VectorDrawableCompat} to create an animated drawable.
129 * You can always create a AnimatedVectorDrawableCompat object and use it as a Drawable by the Java
163 // Use an array to keep track of multiple call back associated with one drawable.
192 public Drawable mutate()
213 final AnimatedVectorDrawableCompat drawable = new AnimatedVectorDrawableCompat(context); local
253 final AnimatedVectorDrawableCompat drawable = new AnimatedVectorDrawableCompat(context); local
    [all...]
  /frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
AppCompatDrawableManager.java 33 import android.graphics.drawable.Drawable;
34 import android.graphics.drawable.Drawable.ConstantState;
35 import android.graphics.drawable.LayerDrawable;
53 import androidx.core.graphics.drawable.DrawableCompat;
54 import androidx.vectordrawable.graphics.drawable.AnimatedVectorDrawableCompat;
55 import androidx.vectordrawable.graphics.drawable.VectorDrawableCompat;
70 Drawable createFromXmlInner(@NonNull Context context, @NonNull XmlPullParser parser,
79 private static final String PLATFORM_VD_CLAZZ = "android.graphics.drawable.VectorDrawable"
193 Drawable drawable = loadDrawableFromDelegates(context, resId); local
431 Drawable drawable = loadDrawableFromDelegates(context, resId); local
    [all...]
  /cts/tests/tests/widget/src/android/widget/cts/
CompoundButtonTest.java 42 import android.graphics.drawable.ColorDrawable;
43 import android.graphics.drawable.Drawable;
198 Drawable drawable = mActivity.getDrawable(R.drawable.statelistdrawable); local
199 compoundButton.setButtonDrawable(drawable);
200 drawable.setState(null);
201 assertNull(drawable.getState());
204 assertNotNull(drawable.getState())
280 Drawable drawable; local
345 Drawable drawable = mActivity.getDrawable(R.drawable.scenery); local
    [all...]
  /developers/build/prebuilts/gradle/Notifications/Application/src/main/java/com/example/android/support/wearable/notifications/
NotificationPresets.java 82 context.getResources(), R.drawable.example_large_icon));
210 R.drawable.example_big_picture));
324 R.drawable.ic_result_open, null, NotificationUtil.getExamplePendingIntent(
327 R.drawable.ic_result_open, null, NotificationUtil.getExamplePendingIntent(
359 .setContentIcon(R.drawable.content_icon_small)
367 .setContentIcon(R.drawable.content_icon_large))
374 .setContentIcon(R.drawable.content_icon_large)
382 .setContentIcon(R.drawable.content_icon_small)
494 R.drawable.qr_code))
  /developers/samples/android/wearable/wear/Notifications/Application/src/main/java/com/example/android/support/wearable/notifications/
NotificationPresets.java 82 context.getResources(), R.drawable.example_large_icon));
210 R.drawable.example_big_picture));
324 R.drawable.ic_result_open, null, NotificationUtil.getExamplePendingIntent(
327 R.drawable.ic_result_open, null, NotificationUtil.getExamplePendingIntent(
359 .setContentIcon(R.drawable.content_icon_small)
367 .setContentIcon(R.drawable.content_icon_large))
374 .setContentIcon(R.drawable.content_icon_large)
382 .setContentIcon(R.drawable.content_icon_small)
494 R.drawable.qr_code))
  /development/samples/browseable/Notifications/Application/src/com.example.android.support.wearable.notifications/
NotificationPresets.java 82 context.getResources(), R.drawable.example_large_icon));
210 R.drawable.example_big_picture));
324 R.drawable.ic_result_open, null, NotificationUtil.getExamplePendingIntent(
327 R.drawable.ic_result_open, null, NotificationUtil.getExamplePendingIntent(
359 .setContentIcon(R.drawable.content_icon_small)
367 .setContentIcon(R.drawable.content_icon_large))
374 .setContentIcon(R.drawable.content_icon_large)
382 .setContentIcon(R.drawable.content_icon_small)
494 R.drawable.qr_code))
  /frameworks/base/core/java/android/transition/
ChangeBounds.java 32 import android.graphics.drawable.BitmapDrawable;
33 import android.graphics.drawable.Drawable;
67 private static final Property<Drawable, PointF> DRAWABLE_ORIGIN_PROPERTY =
68 new Property<Drawable, PointF>(PointF.class, "boundsOrigin") {
72 public void set(Drawable object, PointF value) {
79 public PointF get(Drawable object) {
448 final BitmapDrawable drawable = new BitmapDrawable(bitmap); local
449 drawable.setBounds(startX, startY, startX + width, startY + height);
452 sceneRoot.getOverlay().add(drawable);
    [all...]

Completed in 1983 milliseconds

1 2 3 4 5 6 7 891011>>