Home
last modified time | relevance | path

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

12345678910>>...49

/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/
DVectorDrawablePerformance.java18 import android.graphics.drawable.VectorDrawable;
38 R.drawable.vector_icon_filltype_nonzero,
39 R.drawable.vector_icon_filltype_evenodd,
40 R.drawable.vector_icon_gradient_1,
41 R.drawable.vector_icon_gradient_2,
42 R.drawable.vector_icon_gradient_3,
43 R.drawable.vector_icon_gradient_1_clamp,
44 R.drawable.vector_icon_gradient_2_repeat,
45 R.drawable.vector_icon_gradient_3_mirror,
46 R.drawable.vector_icon_state_list_simple,
[all …]
DVectorDrawableDupPerf.java21 R.drawable.vector_drawable04,
22 R.drawable.vector_drawable04,
23 R.drawable.vector_drawable04,
24 R.drawable.vector_drawable04,
25 R.drawable.vector_drawable04,
26 R.drawable.vector_drawable04,
27 R.drawable.vector_drawable04,
28 R.drawable.vector_drawable04,
29 R.drawable.vector_drawable04,
30 R.drawable.vector_drawable04,
[all …]
DVectorCheckbox.java17 import android.graphics.drawable.VectorDrawable;
29 R.drawable.vector_drawable01,
30 R.drawable.vector_drawable02,
31 R.drawable.vector_drawable03,
32 R.drawable.vector_drawable04,
33 R.drawable.vector_drawable05,
34 R.drawable.vector_drawable06,
35 R.drawable.vector_drawable07,
36 R.drawable.vector_drawable08,
37 R.drawable.vector_drawable09,
[all …]
DBitmapDrawableDupe.java18 import android.graphics.drawable.BitmapDrawable;
31 R.drawable.bitmap_drawable01,
32 R.drawable.bitmap_drawable01,
33 R.drawable.bitmap_drawable01,
34 R.drawable.bitmap_drawable01,
35 R.drawable.bitmap_drawable01,
36 R.drawable.bitmap_drawable01,
37 R.drawable.bitmap_drawable01,
38 R.drawable.bitmap_drawable01,
39 R.drawable.bitmap_drawable01,
[all …]
DVectorDrawable01.java17 import android.graphics.drawable.VectorDrawable;
33 R.drawable.vector_drawable01,
34 R.drawable.vector_drawable02,
35 R.drawable.vector_drawable03,
36 R.drawable.vector_drawable04,
37 R.drawable.vector_drawable05,
38 R.drawable.vector_drawable06,
39 R.drawable.vector_drawable07,
40 R.drawable.vector_drawable08,
41 R.drawable.vector_drawable09,
[all …]
DAnimatedVectorDrawableDupPerf.java18 import android.graphics.drawable.AnimatedVectorDrawable;
19 import android.graphics.drawable.VectorDrawable;
41 R.drawable.animation_vector_linear_progress_bar,
42 R.drawable.animation_vector_linear_progress_bar,
43 R.drawable.animation_vector_linear_progress_bar,
44 R.drawable.animation_vector_linear_progress_bar,
45 R.drawable.animation_vector_linear_progress_bar,
46 R.drawable.animation_vector_linear_progress_bar,
47 R.drawable.animation_vector_linear_progress_bar,
48 R.drawable.animation_vector_linear_progress_bar,
[all …]
DAnimatedVectorDrawableTest.java18 import android.graphics.drawable.Animatable2;
19 import android.graphics.drawable.AnimatedVectorDrawable;
20 import android.graphics.drawable.Drawable;
33 R.drawable.btn_radio_on_to_off_bundle,
34 R.drawable.ic_rotate_2_portrait_v2_animation,
35 R.drawable.ic_signal_airplane_v2_animation,
36 R.drawable.ic_hourglass_animation,
37 R.drawable.animation_vector_linear_progress_bar,
38 R.drawable.animation_vector_drawable_grouping_1,
39 R.drawable.animation_vector_progress_bar,
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DRenderInfo.kt23 import android.graphics.drawable.Drawable
60 .getDrawable(R.drawable.ic_device_unknown_on, null) in lookup()
104 R.drawable.ic_device_thermostat_off,
106 R.drawable.ic_device_thermostat,
108 R.drawable.ic_device_thermostat,
110 R.drawable.ic_device_thermostat,
112 R.drawable.ic_device_thermostat_off,
113 DeviceTypes.TYPE_THERMOSTAT to R.drawable.ic_device_thermostat,
114 DeviceTypes.TYPE_LIGHT to R.drawable.ic_device_light,
115 DeviceTypes.TYPE_CAMERA to R.drawable.ic_device_camera,
[all …]
/frameworks/base/packages/SettingsLib/IllustrationPreference/src/com/android/settingslib/widget/
DIllustrationPreference.java21 import android.graphics.drawable.Animatable;
22 import android.graphics.drawable.Animatable2;
23 import android.graphics.drawable.AnimationDrawable;
24 import android.graphics.drawable.Drawable;
37 import androidx.vectordrawable.graphics.drawable.Animatable2Compat;
63 public void onAnimationEnd(Drawable drawable) {
64 ((Animatable) drawable).start();
71 public void onAnimationEnd(Drawable drawable) {
72 ((Animatable) drawable).start();
219 final Drawable drawable = illustrationView.getDrawable();
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/graph/
DBluetoothDeviceLayerDrawableTest.java22 import android.graphics.drawable.VectorDrawable;
34 private static final int RES_ID = com.android.internal.R.drawable.ic_phone;
49 BluetoothDeviceLayerDrawable drawable = BluetoothDeviceLayerDrawable.createLayerDrawable( in testCreateLayerDrawable_configCorrect() local
52 assertThat(drawable.getDrawable(0)).isInstanceOf(VectorDrawable.class); in testCreateLayerDrawable_configCorrect()
53 assertThat(drawable.getDrawable(1)).isInstanceOf( in testCreateLayerDrawable_configCorrect()
55 assertThat(drawable.getLayerInsetStart(1)).isEqualTo( in testCreateLayerDrawable_configCorrect()
56 drawable.getDrawable(0).getIntrinsicWidth()); in testCreateLayerDrawable_configCorrect()
57 assertThat(drawable.getLayerInsetTop(1)).isEqualTo(0); in testCreateLayerDrawable_configCorrect()
62 BluetoothDeviceLayerDrawable drawable = BluetoothDeviceLayerDrawable.createLayerDrawable( in testCreateLayerDrawable_withIconScale_configCorrect() local
65 assertThat(drawable.getDrawable(0)).isInstanceOf(VectorDrawable.class); in testCreateLayerDrawable_withIconScale_configCorrect()
[all …]
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
DGlifPatternDrawableTest.java53 final GlifPatternDrawable drawable = new GlifPatternDrawable(Color.RED); in testDraw() local
54 drawable.setBounds(0, 0, 1366, 768); in testDraw()
55 drawable.draw(canvas); in testDraw()
70 final GlifPatternDrawable drawable = new GlifPatternDrawable(Color.RED); in testDrawTwice() local
71 drawable.setBounds(0, 0, 1366, 768); in testDrawTwice()
72 drawable.draw(canvas); in testDrawTwice()
78 drawable.draw(canvas); in testDrawTwice()
92 final GlifPatternDrawable drawable = new GlifPatternDrawable(Color.RED); in testScaleToCanvasSquare() local
93 drawable.setBounds(0, 0, 683, 384); // half each side of the view box in testScaleToCanvasSquare()
94 drawable.scaleCanvasToBounds(canvas, mockBitmapCache, drawable.getBounds()); in testScaleToCanvasSquare()
[all …]
DDrawableLayoutDirectionHelperTest.java27 import android.graphics.drawable.ColorDrawable;
28 import android.graphics.drawable.Drawable;
29 import android.graphics.drawable.InsetDrawable;
46 final Drawable drawable = new ColorDrawable(Color.RED); in testCreateRelativeInsetDrawableLtr() local
50 drawable, in testCreateRelativeInsetDrawableLtr()
59 drawable, in testCreateRelativeInsetDrawableLtr()
69 final Drawable drawable = new ColorDrawable(Color.RED); in testCreateRelativeInsetDrawableRtl() local
73 drawable, in testCreateRelativeInsetDrawableRtl()
82 drawable, in testCreateRelativeInsetDrawableRtl()
92 final Drawable drawable = new ColorDrawable(Color.RED); in testCreateRelativeInsetDrawableViewRtl() local
[all …]
/frameworks/base/libs/hwui/jni/
DAnimatedImageDrawable.cpp107 sk_sp<AnimatedImageDrawable> drawable(new AnimatedImageDrawable(std::move(animatedImg), in AnimatedImageDrawable_nCreate() local
109 return reinterpret_cast<jlong>(drawable.release()); in AnimatedImageDrawable_nCreate()
112 static void AnimatedImageDrawable_destruct(AnimatedImageDrawable* drawable) { in AnimatedImageDrawable_destruct() argument
113 SkSafeUnref(drawable); in AnimatedImageDrawable_destruct()
125 auto* drawable = reinterpret_cast<AnimatedImageDrawable*>(nativePtr); in AnimatedImageDrawable_nDraw() local
127 return (jlong) canvas->drawAnimatedImage(drawable); in AnimatedImageDrawable_nDraw()
132 auto* drawable = reinterpret_cast<AnimatedImageDrawable*>(nativePtr); in AnimatedImageDrawable_nSetAlpha() local
133 drawable->setStagingAlpha(alpha); in AnimatedImageDrawable_nSetAlpha()
137 auto* drawable = reinterpret_cast<AnimatedImageDrawable*>(nativePtr); in AnimatedImageDrawable_nGetAlpha() local
138 return drawable->getStagingAlpha(); in AnimatedImageDrawable_nGetAlpha()
[all …]
/frameworks/base/core/java/android/text/style/
DImageSpan.java26 import android.graphics.drawable.BitmapDrawable;
27 import android.graphics.drawable.Drawable;
127 public ImageSpan(@NonNull Drawable drawable) { in ImageSpan() argument
128 this(drawable, ALIGN_BOTTOM); in ImageSpan()
138 public ImageSpan(@NonNull Drawable drawable, int verticalAlignment) { in ImageSpan() argument
140 mDrawable = drawable; in ImageSpan()
150 public ImageSpan(@NonNull Drawable drawable, @NonNull String source) { in ImageSpan() argument
151 this(drawable, source, ALIGN_BOTTOM); in ImageSpan()
162 public ImageSpan(@NonNull Drawable drawable, @NonNull String source, int verticalAlignment) { in ImageSpan() argument
164 mDrawable = drawable; in ImageSpan()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DEmphasizedNotificationButton.java23 import android.graphics.drawable.Drawable;
24 import android.graphics.drawable.DrawableWrapper;
25 import android.graphics.drawable.GradientDrawable;
26 import android.graphics.drawable.Icon;
27 import android.graphics.drawable.RippleDrawable;
85 final Drawable drawable = icon == null ? null : icon.loadDrawable(mContext); in setImageIcon() local
86 setImageDrawable(drawable); in setImageIcon()
94 final Drawable drawable = icon == null ? null : icon.loadDrawable(mContext); in setImageIconAsync() local
95 return () -> setImageDrawable(drawable); in setImageIconAsync()
98 private void setImageDrawable(Drawable drawable) { in setImageDrawable() argument
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DWifiIcons.java26 com.android.internal.R.drawable.ic_wifi_signal_0,
27 com.android.internal.R.drawable.ic_wifi_signal_1,
28 com.android.internal.R.drawable.ic_wifi_signal_2,
29 com.android.internal.R.drawable.ic_wifi_signal_3,
30 com.android.internal.R.drawable.ic_wifi_signal_4
34 R.drawable.ic_no_internet_wifi_signal_0,
35 R.drawable.ic_no_internet_wifi_signal_1,
36 R.drawable.ic_no_internet_wifi_signal_2,
37 R.drawable.ic_no_internet_wifi_signal_3,
38 R.drawable.ic_no_internet_wifi_signal_4
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/mobile/
DTelephonyIcons.java31 public static final int FLIGHT_MODE_ICON = R.drawable.stat_sys_airplane_mode;
33 public static final int ICON_LTE = R.drawable.ic_lte_mobiledata;
34 public static final int ICON_LTE_PLUS = R.drawable.ic_lte_plus_mobiledata;
35 public static final int ICON_G = R.drawable.ic_g_mobiledata;
36 public static final int ICON_E = R.drawable.ic_e_mobiledata;
37 public static final int ICON_H = R.drawable.ic_h_mobiledata;
38 public static final int ICON_H_PLUS = R.drawable.ic_h_plus_mobiledata;
39 public static final int ICON_3G = R.drawable.ic_3g_mobiledata;
40 public static final int ICON_4G = R.drawable.ic_4g_mobiledata;
41 public static final int ICON_4G_PLUS = R.drawable.ic_4g_plus_mobiledata;
[all …]
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/
DGhostedViewLaunchAnimatorController.kt8 import android.graphics.drawable.Drawable
9 import android.graphics.drawable.GradientDrawable
10 import android.graphics.drawable.InsetDrawable
11 import android.graphics.drawable.LayerDrawable
90 val drawable = getBackground() ?: return 0f in getCurrentTopCornerRadius() constant
91 val gradient = findGradientDrawable(drawable) ?: return 0f in getCurrentTopCornerRadius()
99 val drawable = getBackground() ?: return 0f in getCurrentBottomCornerRadius() constant
100 val gradient = findGradientDrawable(drawable) ?: return 0f in getCurrentBottomCornerRadius()
131 val drawable = getBackground() in onLaunchAnimationStart() constant
132 startBackgroundAlpha = drawable?.alpha ?: 0xFF in onLaunchAnimationStart()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DMimeIconUtils.java23 import android.graphics.drawable.Icon;
59 return buildTypeInfo(mimeType, R.drawable.ic_doc_folder, in buildTypeInfo()
63 return buildTypeInfo(mimeType, R.drawable.ic_doc_apk, in buildTypeInfo()
76 return buildTypeInfo(mimeType, R.drawable.ic_doc_certificate, in buildTypeInfo()
107 return buildTypeInfo(mimeType, R.drawable.ic_doc_codes, in buildTypeInfo()
128 return buildTypeInfo(mimeType, R.drawable.ic_doc_compressed, in buildTypeInfo()
133 return buildTypeInfo(mimeType, R.drawable.ic_doc_contact, in buildTypeInfo()
138 return buildTypeInfo(mimeType, R.drawable.ic_doc_event, in buildTypeInfo()
145 return buildTypeInfo(mimeType, R.drawable.ic_doc_font, in buildTypeInfo()
155 return buildTypeInfo(mimeType, R.drawable.ic_doc_image, in buildTypeInfo()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DIconCache.java20 import android.graphics.drawable.Drawable;
21 import android.graphics.drawable.Icon;
43 Drawable drawable = mMap.get(icon); in getIcon() local
44 if (drawable == null) { in getIcon()
45 drawable = icon.loadDrawable(mContext); in getIcon()
46 updateIcon(icon, drawable); in getIcon()
48 return drawable; in getIcon()
51 public void updateIcon(Icon icon, Drawable drawable) { in updateIcon() argument
52 mMap.put(icon, drawable); in updateIcon()
/frameworks/base/tests/BiDiTests/src/com/android/bidi/
DBiDiTestGalleryImages.java30 R.drawable.alphabet_a,
31 R.drawable.alphabet_b,
32 R.drawable.alphabet_c,
33 R.drawable.alphabet_d,
34 R.drawable.alphabet_e,
35 R.drawable.alphabet_f,
36 R.drawable.alphabet_g,
37 R.drawable.alphabet_h,
38 R.drawable.alphabet_i,
39 R.drawable.alphabet_j,
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/
DImageListViewScrollActivity.java39 R.drawable.img1,
40 R.drawable.img2,
41 R.drawable.img3,
42 R.drawable.img4,
43 R.drawable.img1,
44 R.drawable.img2,
45 R.drawable.img3,
46 R.drawable.img4,
47 R.drawable.img1,
48 R.drawable.img2,
[all …]
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/
DDrawableLayoutDirectionHelper.java21 import android.graphics.drawable.Drawable;
22 import android.graphics.drawable.InsetDrawable;
35 Drawable drawable, int insetStart, int insetTop, int insetEnd, int insetBottom, View view) { in createRelativeInsetDrawable() argument
40 drawable, insetStart, insetTop, insetEnd, insetBottom, isRtl); in createRelativeInsetDrawable()
49 Drawable drawable, in createRelativeInsetDrawable() argument
61 drawable, insetStart, insetTop, insetEnd, insetBottom, isRtl); in createRelativeInsetDrawable()
71 Drawable drawable, in createRelativeInsetDrawable() argument
78 drawable, in createRelativeInsetDrawable()
87 Drawable drawable, in createRelativeInsetDrawable() argument
94 return new InsetDrawable(drawable, insetEnd, insetTop, insetStart, insetBottom); in createRelativeInsetDrawable()
[all …]
/frameworks/base/core/java/android/view/
DViewOverlay.java24 import android.graphics.drawable.Drawable;
77 public void add(@NonNull Drawable drawable) { in add() argument
78 mOverlayViewGroup.add(drawable); in add()
89 public void remove(@NonNull Drawable drawable) { in remove() argument
90 mOverlayViewGroup.remove(drawable); in remove()
150 public void add(@NonNull Drawable drawable) { in add() argument
151 if (drawable == null) { in add()
157 if (!mDrawables.contains(drawable)) { in add()
159 mDrawables.add(drawable); in add()
160 invalidate(drawable.getBounds()); in add()
[all …]
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DNotificationTestList.java33 import android.graphics.drawable.BitmapDrawable;
34 import android.graphics.drawable.Icon;
60 R.drawable.notification0,
61 R.drawable.notification1,
62 R.drawable.notification2,
63 R.drawable.notification3,
64 R.drawable.notification4,
65 R.drawable.notification5,
66 R.drawable.notification6,
67 R.drawable.notification7,
[all …]

12345678910>>...49