/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/ |
D | VectorDrawablePerformance.java | 18 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 …]
|
D | VectorDrawableDupPerf.java | 21 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 …]
|
D | VectorCheckbox.java | 17 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 …]
|
D | BitmapDrawableDupe.java | 18 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 …]
|
D | VectorDrawable01.java | 17 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 …]
|
D | AnimatedVectorDrawableDupPerf.java | 18 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 …]
|
D | AnimatedVectorDrawableTest.java | 18 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 …]
|
D | AnimatedStateVectorDrawableTest.java | 18 import android.graphics.drawable.AnimatedVectorDrawable; 32 R.drawable.state_animation_vector_drawable01, 33 R.drawable.state_animation_vector_drawable01_false, 34 R.drawable.state_animation_vector_drawable02, 35 R.drawable.state_animation_vector_drawable02_false, 36 R.drawable.state_animation_vector_drawable03, 37 R.drawable.state_animation_vector_drawable03_false, 38 R.drawable.state_animation_drawable04, 39 R.drawable.state_animation_drawable04_false,
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/ |
D | RenderInfo.kt | 23 import android.graphics.drawable.Drawable 60 .getDrawable(R.drawable.ic_device_unknown_on, null) in lookup() 102 R.drawable.ic_device_thermostat_off, 104 R.drawable.ic_device_thermostat, 106 R.drawable.ic_device_thermostat, 108 R.drawable.ic_device_thermostat, 110 R.drawable.ic_device_thermostat_off, 111 DeviceTypes.TYPE_THERMOSTAT to R.drawable.ic_device_thermostat, 112 DeviceTypes.TYPE_LIGHT to R.drawable.ic_device_light, 113 DeviceTypes.TYPE_CAMERA to R.drawable.ic_device_camera, [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/graph/ |
D | BluetoothDeviceLayerDrawableTest.java | 22 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/ |
D | GlifPatternDrawableTest.java | 53 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 …]
|
D | DrawableLayoutDirectionHelperTest.java | 27 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/core/java/android/text/style/ |
D | ImageSpan.java | 26 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/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | WifiIcons.java | 24 com.android.internal.R.drawable.ic_wifi_signal_0, 25 com.android.internal.R.drawable.ic_wifi_signal_1, 26 com.android.internal.R.drawable.ic_wifi_signal_2, 27 com.android.internal.R.drawable.ic_wifi_signal_3, 28 com.android.internal.R.drawable.ic_wifi_signal_4 32 R.drawable.ic_qs_wifi_0, 33 R.drawable.ic_qs_wifi_1, 34 R.drawable.ic_qs_wifi_2, 35 R.drawable.ic_qs_wifi_3, 36 R.drawable.ic_qs_wifi_4 [all …]
|
/frameworks/base/libs/hwui/jni/ |
D | AnimatedImageDrawable.cpp | 107 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/com/android/internal/util/ |
D | MimeIconUtils.java | 23 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/ |
D | IconCache.java | 20 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/ |
D | BiDiTestGalleryImages.java | 30 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/ |
D | ImageListViewScrollActivity.java | 39 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/base/core/java/android/view/ |
D | ViewOverlay.java | 24 import android.graphics.drawable.Drawable; 76 public void add(@NonNull Drawable drawable) { in add() argument 77 mOverlayViewGroup.add(drawable); in add() 88 public void remove(@NonNull Drawable drawable) { in remove() argument 89 mOverlayViewGroup.remove(drawable); in remove() 149 public void add(@NonNull Drawable drawable) { in add() argument 150 if (drawable == null) { in add() 156 if (!mDrawables.contains(drawable)) { in add() 158 mDrawables.add(drawable); in add() 159 invalidate(drawable.getBounds()); in add() [all …]
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/ |
D | DrawableLayoutDirectionHelper.java | 21 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/tests/StatusBar/src/com/android/statusbartest/ |
D | NotificationTestList.java | 34 import android.graphics.drawable.BitmapDrawable; 35 import android.graphics.drawable.Icon; 65 R.drawable.notification0, 66 R.drawable.notification1, 67 R.drawable.notification2, 68 R.drawable.notification3, 69 R.drawable.notification4, 70 R.drawable.notification5, 71 R.drawable.notification6, 72 R.drawable.notification7, [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
D | AuthBiometricFaceView.java | 20 import android.graphics.drawable.Animatable2; 21 import android.graphics.drawable.AnimatedVectorDrawable; 22 import android.graphics.drawable.Drawable; 54 showStaticDrawable(R.drawable.face_dialog_pulse_dark_to_light); in IconController() 78 animateIcon(R.drawable.face_dialog_pulse_dark_to_light, true); in startPulsing() 82 int iconRes = mLastPulseLightToDark ? R.drawable.face_dialog_pulse_dark_to_light in pulseInNextDirection() 83 : R.drawable.face_dialog_pulse_light_to_dark; in pulseInNextDirection() 89 public void onAnimationEnd(Drawable drawable) { in onAnimationEnd() argument 90 super.onAnimationEnd(drawable); in onAnimationEnd() 101 showStaticDrawable(R.drawable.face_dialog_pulse_dark_to_light); in updateState() [all …]
|
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/ |
D | DpiTestActivity.java | 26 import android.graphics.drawable.BitmapDrawable; 27 import android.graphics.drawable.Drawable; 86 addBitmapDrawable(layout, R.drawable.logo120dpi, true); in onCreate() 87 addBitmapDrawable(layout, R.drawable.logo160dpi, true); in onCreate() 88 addBitmapDrawable(layout, R.drawable.logo240dpi, true); in onCreate() 93 addBitmapDrawable(layout, R.drawable.logo120dpi, false); in onCreate() 94 addBitmapDrawable(layout, R.drawable.logo160dpi, false); in onCreate() 95 addBitmapDrawable(layout, R.drawable.logo240dpi, false); in onCreate() 100 addResourceDrawable(layout, R.drawable.logo120dpi); in onCreate() 101 addResourceDrawable(layout, R.drawable.logo160dpi); in onCreate() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/ |
D | InfoMediaDevice.java | 25 import android.graphics.drawable.Drawable; 62 final Drawable drawable = getIconWithoutBackground(); in getIcon() local 63 setColorFilter(drawable); in getIcon() 64 return BluetoothUtils.buildAdvancedDrawable(mContext, drawable); in getIcon() 77 resId = R.drawable.ic_media_group_device; in getDrawableResId() 80 resId = R.drawable.ic_media_display_device; in getDrawableResId() 84 resId = R.drawable.ic_media_speaker_device; in getDrawableResId() 95 resId = R.drawable.ic_media_group_device; in getDrawableResIdByFeature() 97 resId = R.drawable.ic_media_display_device; in getDrawableResIdByFeature() 99 resId = R.drawable.ic_media_speaker_device; in getDrawableResIdByFeature()
|