Home
last modified time | relevance | path

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

12345678910>>...70

/frameworks/base/tests/graphics/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/util/drawable/
DDrawableSize.kt1 package com.android.systemui.util.drawable
6 import android.graphics.drawable.Animatable
7 import android.graphics.drawable.Animatable2
8 import android.graphics.drawable.AnimatedImageDrawable
9 import android.graphics.drawable.AnimatedRotateDrawable
10 import android.graphics.drawable.AnimatedStateListDrawable
11 import android.graphics.drawable.AnimatedVectorDrawable
12 import android.graphics.drawable.BitmapDrawable
13 import android.graphics.drawable.Drawable
43 drawable: Drawable, in downscaleToSize()
[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()
105 R.drawable.ic_device_thermostat_off,
107 R.drawable.ic_device_thermostat,
109 R.drawable.ic_device_thermostat,
111 R.drawable.ic_device_thermostat,
113 R.drawable.ic_device_thermostat_off,
114 DeviceTypes.TYPE_THERMOSTAT to R.drawable.ic_device_thermostat,
115 DeviceTypes.TYPE_LIGHT to R.drawable.ic_device_light,
116 DeviceTypes.TYPE_CAMERA to R.drawable.ic_device_camera,
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DDrawableDump.kt25 import android.graphics.drawable.Drawable in <lambda>()
26 import android.graphics.drawable.DrawableWrapper in <lambda>()
27 import android.graphics.drawable.GradientDrawable in <lambda>()
28 import android.graphics.drawable.LayerDrawable in <lambda>()
29 import android.graphics.drawable.RippleDrawable in <lambda>()
32 fun dumpToString(drawable: Drawable?): String = in <lambda>()
33 if (Compile.IS_DEBUG) StringBuilder().appendDrawable(drawable).toString() in <lambda>()
34 else drawable.toString() in <lambda>()
36 fun getSolidColor(drawable: Drawable?): String = in <lambda>()
37 if (Compile.IS_DEBUG) hexColorString(getSolidColors(drawable)?.defaultColor) in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/connectivity/
DWifiIcons.java36 R.drawable.ic_wifi_0, in getIconsBasedOnFlag()
37 R.drawable.ic_wifi_1, in getIconsBasedOnFlag()
38 R.drawable.ic_wifi_2, in getIconsBasedOnFlag()
39 R.drawable.ic_wifi_3, in getIconsBasedOnFlag()
40 R.drawable.ic_wifi_4 in getIconsBasedOnFlag()
44 com.android.internal.R.drawable.ic_wifi_signal_0, in getIconsBasedOnFlag()
45 com.android.internal.R.drawable.ic_wifi_signal_1, in getIconsBasedOnFlag()
46 com.android.internal.R.drawable.ic_wifi_signal_2, in getIconsBasedOnFlag()
47 com.android.internal.R.drawable.ic_wifi_signal_3, in getIconsBasedOnFlag()
48 com.android.internal.R.drawable.ic_wifi_signal_4 in getIconsBasedOnFlag()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DDeviceIconUtilTest.java55 .isEqualTo(R.drawable.ic_headphone); in getIconResIdFromMediaRouteType_usbDevice_isHeadphone()
58 .isEqualTo(R.drawable.ic_headphone); in getIconResIdFromMediaRouteType_usbDevice_isHeadphone()
65 .isEqualTo(R.drawable.ic_headphone); in getIconResIdFromMediaRouteType_usbHeadset_isHeadphone()
68 .isEqualTo(R.drawable.ic_headphone); in getIconResIdFromMediaRouteType_usbHeadset_isHeadphone()
75 .isEqualTo(R.drawable.ic_headphone); in getIconResIdFromMediaRouteType_usbAccessory_isHeadphone()
82 .isEqualTo(R.drawable.ic_usb); in getIconResIdFromMediaRouteType_tv_usbAccessory_isUsb()
89 .isEqualTo(R.drawable.ic_dock_device); in getIconResIdFromMediaRouteType_dock_isDock()
92 .isEqualTo(R.drawable.ic_dock_device); in getIconResIdFromMediaRouteType_dock_isDock()
99 .isEqualTo(R.drawable.ic_external_display); in getIconResIdFromMediaRouteType_hdmi()
106 .isEqualTo(R.drawable.ic_tv); in getIconResIdFromMediaRouteType_tv_hdmi_isTv()
[all …]
/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/ui/graphics/painter/
DDrawablePainter.kt19 import android.graphics.drawable.Animatable in <lambda>()
20 import android.graphics.drawable.ColorDrawable in <lambda>()
21 import android.graphics.drawable.Drawable in <lambda>()
58 public class DrawablePainter(public val drawable: Drawable) : Painter(), RememberObserver { constant in com.android.compose.ui.graphics.painter.DrawablePainter
60 private var drawableIntrinsicSize by mutableStateOf(drawable.intrinsicSize)
68 drawableIntrinsicSize = drawable.intrinsicSize in <lambda>()
82 if (drawable.intrinsicWidth >= 0 && drawable.intrinsicHeight >= 0) {
84 drawable.setBounds(0, 0, drawable.intrinsicWidth, drawable.intrinsicHeight)
89 drawable.callback = callback in onRemembered()
90 drawable.setVisible(true, true) in onRemembered()
[all …]
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/framework/compose/
DDrawablePainter.kt19 import android.graphics.drawable.Animatable in <lambda>()
20 import android.graphics.drawable.BitmapDrawable in <lambda>()
21 import android.graphics.drawable.ColorDrawable in <lambda>()
22 import android.graphics.drawable.Drawable in <lambda>()
66 val drawable: Drawable constant in com.android.settingslib.spa.framework.compose.DrawablePainter
69 private var drawableIntrinsicSize by mutableStateOf(drawable.intrinsicSize)
77 drawableIntrinsicSize = drawable.intrinsicSize in <lambda>()
91 if (drawable.intrinsicWidth >= 0 && drawable.intrinsicHeight >= 0) {
93 drawable.setBounds(0, 0, drawable.intrinsicWidth, drawable.intrinsicHeight)
98 drawable.callback = callback in onRemembered()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DCachingIconViewTest.java23 import android.graphics.drawable.BitmapDrawable;
24 import android.graphics.drawable.Drawable;
25 import android.graphics.drawable.Icon;
26 import android.graphics.drawable.InsetDrawable;
55 Drawable drawable = view.getDrawable(); in invalidIcon_skipsLoadSuccessfully() local
56 assertThat(drawable).isNull(); in invalidIcon_skipsLoadSuccessfully()
63 view.setImageIcon(Icon.createWithResource(mContext, R.drawable.custom_drawable)); in customDrawable_setImageIcon_skipsResizeSuccessfully()
64 Drawable drawable = view.getDrawable(); in customDrawable_setImageIcon_skipsResizeSuccessfully() local
65 assertThat(drawable).isInstanceOf(InsetDrawable.class); in customDrawable_setImageIcon_skipsResizeSuccessfully()
72 view.setImageIconAsync(Icon.createWithResource(mContext, R.drawable.custom_drawable)).run(); in customDrawable_setImageIconAsync_skipsResizeSuccessfully()
[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/base/packages/SystemUI/tests/src/com/android/systemui/util/drawable/
DDrawableSizeTest.kt1 package com.android.systemui.util.drawable
5 import android.graphics.drawable.BitmapDrawable
6 import android.graphics.drawable.ShapeDrawable
28 val drawable = ShapeDrawable() in testDownscaleToSize_drawableZeroSize_unchanged() constant
29 val result = DrawableSize.downscaleToSize(resources, drawable, 100, 100) in testDownscaleToSize_drawableZeroSize_unchanged()
30 assertThat(result).isSameInstanceAs(drawable) in testDownscaleToSize_drawableZeroSize_unchanged()
35 val drawable = in testDownscaleToSize_drawableSmallerThanRequirement_unchanged() constant
40 val result = DrawableSize.downscaleToSize(resources, drawable, 300, 300) in testDownscaleToSize_drawableSmallerThanRequirement_unchanged()
41 assertThat(result).isSameInstanceAs(drawable) in testDownscaleToSize_drawableSmallerThanRequirement_unchanged()
48 val drawable = in testDownscaleToSize_drawableLargerThanRequirementWithDensity_resized() constant
[all …]
DLoopedAnimatable2DrawableWrapperTest.kt17 package com.android.systemui.util.drawable
19 import android.graphics.drawable.Animatable2
20 import android.graphics.drawable.Drawable
42 @Mock private lateinit var drawable: AnimatedDrawable variable in com.android.systemui.util.drawable.LoopedAnimatable2DrawableWrapperTest
51 underTest = LoopedAnimatable2DrawableWrapper.fromDrawable(drawable) in setup()
58 verify(drawable).registerAnimationCallback(any()) in startAddsTheCallback()
68 verify(drawable).registerAnimationCallback(any()) in multipleStartAddsTheCallbackOnce()
77 verify(drawable).unregisterAnimationCallback(any()) in stopRemovesTheCallback()
86 verify(drawable).clearAnimationCallbacks() in callbackSurvivesClearAnimationCallbacks()
88 verify(drawable, times(2)).registerAnimationCallback(capture(callbackCaptor)) in callbackSurvivesClearAnimationCallbacks()
[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 …]
/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/packages/SettingsLib/src/com/android/settingslib/mobile/
DTelephonyIcons.java30 public static final int FLIGHT_MODE_ICON = R.drawable.stat_sys_airplane_mode;
32 public static final int ICON_LTE = R.drawable.ic_lte_mobiledata;
33 public static final int ICON_LTE_PLUS = R.drawable.ic_lte_plus_mobiledata;
34 public static final int ICON_G = R.drawable.ic_g_mobiledata;
35 public static final int ICON_E = R.drawable.ic_e_mobiledata;
36 public static final int ICON_H = R.drawable.ic_h_mobiledata;
37 public static final int ICON_H_PLUS = R.drawable.ic_h_plus_mobiledata;
38 public static final int ICON_3G = R.drawable.ic_3g_mobiledata;
39 public static final int ICON_4G = R.drawable.ic_4g_mobiledata;
40 public static final int ICON_4G_PLUS = R.drawable.ic_4g_plus_mobiledata;
[all …]
/frameworks/base/libs/hwui/jni/
DAnimatedImageDrawable.cpp116 sk_sp<AnimatedImageDrawable> drawable( in AnimatedImageDrawable_nCreate() local
118 return reinterpret_cast<jlong>(drawable.release()); in AnimatedImageDrawable_nCreate()
121 static void AnimatedImageDrawable_destruct(AnimatedImageDrawable* drawable) { in AnimatedImageDrawable_destruct() argument
122 SkSafeUnref(drawable); in AnimatedImageDrawable_destruct()
134 auto* drawable = reinterpret_cast<AnimatedImageDrawable*>(nativePtr); in AnimatedImageDrawable_nDraw() local
136 return (jlong) canvas->drawAnimatedImage(drawable); in AnimatedImageDrawable_nDraw()
141 auto* drawable = reinterpret_cast<AnimatedImageDrawable*>(nativePtr); in AnimatedImageDrawable_nSetAlpha() local
142 drawable->setStagingAlpha(alpha); in AnimatedImageDrawable_nSetAlpha()
146 auto* drawable = reinterpret_cast<AnimatedImageDrawable*>(nativePtr); in AnimatedImageDrawable_nGetAlpha() local
147 return drawable->getStagingAlpha(); in AnimatedImageDrawable_nGetAlpha()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ui/
DTransitioningIconDrawable.kt23 import android.graphics.drawable.Drawable
31 private var drawable: Drawable? = null variable in com.android.systemui.screenshot.ui.TransitioningIconDrawable
48 if (Objects.equals(drawable, incomingDrawable) && !transitionAnimator.isRunning) { in setIcon()
55 if (drawable == null) { in setIcon()
57 drawable = incomingDrawable in setIcon()
78 drawable?.let { in draw()
97 private fun drawScaledDrawable(drawable: Drawable, canvas: Canvas, scale: Float) { in drawScaledDrawable()
98 drawable.bounds = getBounds() in drawScaledDrawable()
103 (drawable.intrinsicWidth / 2).toFloat(), in drawScaledDrawable()
104 (drawable.intrinsicHeight / 2).toFloat() in drawScaledDrawable()
[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/IllustrationPreference/src/com/android/settingslib/widget/
DIllustrationPreference.java22 import android.graphics.drawable.Animatable;
23 import android.graphics.drawable.Animatable2;
24 import android.graphics.drawable.AnimationDrawable;
25 import android.graphics.drawable.Drawable;
40 import androidx.vectordrawable.graphics.drawable.Animatable2Compat;
87 public void onAnimationEnd(Drawable drawable) {
88 ((Animatable) drawable).start();
95 public void onAnimationEnd(Drawable drawable) {
96 ((Animatable) drawable).start();
342 final Drawable drawable = illustrationView.getDrawable();
[all …]

12345678910>>...70