Home
last modified time | relevance | path

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

12345678910>>...62

/packages/apps/TV/src/com/android/tv/onboarding/
DWelcomeFragment.java63 R.drawable.tv_1a_01,
64 R.drawable.tv_1a_02,
65 R.drawable.tv_1a_03,
66 R.drawable.tv_1a_04,
67 R.drawable.tv_1a_05,
68 R.drawable.tv_1a_06,
69 R.drawable.tv_1a_07,
70 R.drawable.tv_1a_08,
71 R.drawable.tv_1a_09,
72 R.drawable.tv_1a_10,
[all …]
/packages/apps/Dialer/java/com/android/dialer/calllogutils/
DCallTypeIconsView.java24 import android.graphics.drawable.BitmapDrawable;
25 import android.graphics.drawable.Drawable;
86 final Drawable drawable = getCallTypeDrawable(callType); in add() local
87 width += drawable.getIntrinsicWidth() + resources.iconMargin; in add()
88 height = Math.max(height, drawable.getIntrinsicWidth()); in add()
205 final Drawable drawable = getCallTypeDrawable(callType); in onDraw() local
206 final int right = left + drawable.getIntrinsicWidth(); in onDraw()
207 drawable.setBounds(left, 0, right, drawable.getIntrinsicHeight()); in onDraw()
208 drawable.draw(canvas); in onDraw()
235 private int addDrawable(Canvas canvas, Drawable drawable, int left) { in addDrawable() argument
[all …]
/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/
DNavStateController.java33 import android.graphics.drawable.Drawable;
252 return mContext.getDrawable(R.drawable.direction_depart); in getManeuverIcon()
254 return mContext.getDrawable(R.drawable.direction_new_name_straight); in getManeuverIcon()
256 return mContext.getDrawable(R.drawable.direction_continue_left); in getManeuverIcon()
258 return mContext.getDrawable(R.drawable.direction_continue_right); in getManeuverIcon()
260 return mContext.getDrawable(R.drawable.direction_turn_slight_left); in getManeuverIcon()
262 return mContext.getDrawable(R.drawable.direction_turn_slight_right); in getManeuverIcon()
264 return mContext.getDrawable(R.drawable.direction_turn_left); in getManeuverIcon()
266 return mContext.getDrawable(R.drawable.direction_turn_right); in getManeuverIcon()
268 return mContext.getDrawable(R.drawable.direction_turn_sharp_left); in getManeuverIcon()
[all …]
/packages/apps/Car/Cluster/ClusterOsDouble/src/com/android/car/cluster/view/
DNavStateController.java32 import android.graphics.drawable.Drawable;
250 return mContext.getDrawable(R.drawable.direction_depart); in getManeuverIcon()
252 return mContext.getDrawable(R.drawable.direction_new_name_straight); in getManeuverIcon()
254 return mContext.getDrawable(R.drawable.direction_continue_left); in getManeuverIcon()
256 return mContext.getDrawable(R.drawable.direction_continue_right); in getManeuverIcon()
258 return mContext.getDrawable(R.drawable.direction_turn_slight_left); in getManeuverIcon()
260 return mContext.getDrawable(R.drawable.direction_turn_slight_right); in getManeuverIcon()
262 return mContext.getDrawable(R.drawable.direction_turn_left); in getManeuverIcon()
264 return mContext.getDrawable(R.drawable.direction_turn_right); in getManeuverIcon()
266 return mContext.getDrawable(R.drawable.direction_turn_sharp_left); in getManeuverIcon()
[all …]
/packages/apps/Dialer/java/com/android/dialer/util/
DDrawableConverter.java22 import android.graphics.drawable.BitmapDrawable;
23 import android.graphics.drawable.Drawable;
26 import android.support.v4.graphics.drawable.RoundedBitmapDrawable;
27 import android.support.v4.graphics.drawable.RoundedBitmapDrawableFactory;
37 public static Bitmap drawableToBitmap(@Nullable Drawable drawable) { in drawableToBitmap() argument
38 return drawableToBitmap(drawable, 0, 0); in drawableToBitmap()
48 public static Bitmap drawableToBitmap(@Nullable Drawable drawable, int width, int height) { in drawableToBitmap() argument
49 if (drawable == null) { in drawableToBitmap()
54 if (drawable instanceof BitmapDrawable) { in drawableToBitmap()
55 bitmap = ((BitmapDrawable) drawable).getBitmap(); in drawableToBitmap()
[all …]
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DBitmapUtils.java27 import android.graphics.drawable.BitmapDrawable;
28 import android.graphics.drawable.Drawable;
125 public static Drawable maybeFlagDrawable(@NonNull Context context, @NonNull Drawable drawable) { in maybeFlagDrawable() argument
126 if (drawable instanceof BitmapDrawable) { in maybeFlagDrawable()
128 Bitmap bitmap = ((BitmapDrawable) drawable).getBitmap(); in maybeFlagDrawable()
132 drawable = new BitmapDrawable(res, BitmapUtils.createTintedBitmap(bitmap, tint)); in maybeFlagDrawable()
135 return drawable; in maybeFlagDrawable()
139 public static Bitmap fromDrawable(Drawable drawable, @Nullable Size bitmapSize) { in fromDrawable() argument
140 if (drawable instanceof BitmapDrawable) { in fromDrawable()
141 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in fromDrawable()
[all …]
DBackgroundImageView.java21 import android.graphics.drawable.BitmapDrawable;
22 import android.graphics.drawable.Drawable;
90 Drawable drawable = (bitmap != null) ? new BitmapDrawable(bitmap) : null; in setBackgroundImage() local
91 updateBlur(drawable, showAnimation); in setBackgroundImage()
95 public void setBackgroundDrawable(@Nullable Drawable drawable) { in setBackgroundDrawable() argument
96 setBackgroundDrawable(drawable, true); in setBackgroundDrawable()
103 public void setBackgroundDrawable(@Nullable Drawable drawable, boolean showAnimation) { in setBackgroundDrawable() argument
104 updateBlur(drawable, showAnimation); in setBackgroundDrawable()
107 private void updateBlur(@Nullable Drawable drawable, boolean showAnimation) { in updateBlur() argument
108 if (drawable == null) { in updateBlur()
[all …]
/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() local
39 int height = drawable.getMinimumHeight(); in setSafeIcon_smallerThanLimit()
40 int width = drawable.getMinimumWidth(); 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() local
54 int height = drawable.getMinimumHeight(); in setSafeIcon_largerThanLimit()
55 int width = drawable.getMinimumWidth(); 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() local
[all …]
/packages/apps/Dialer/java/com/android/dialer/app/contactinfo/
DContactPhotoLoader.java23 import android.graphics.drawable.Drawable;
26 import android.support.v4.graphics.drawable.RoundedBitmapDrawable;
27 import android.support.v4.graphics.drawable.RoundedBitmapDrawableFactory;
54 private static Bitmap drawableToBitmap(Drawable drawable, int width, int height) { in drawableToBitmap() argument
57 drawable.setBounds(0, 0, canvas.getWidth(), canvas.getHeight()); in drawableToBitmap()
58 drawable.draw(canvas); in drawableToBitmap()
71 Drawable drawable = createPhotoIconDrawable(); in getIcon() local
72 if (drawable == null) { in getIcon()
73 drawable = createLetterTileDrawable(); in getIcon()
75 return drawable; in getIcon()
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/notification/
DNotificationFragment.java10 import android.graphics.drawable.Icon;
23 import androidx.core.graphics.drawable.IconCompat;
131 .setSmallIcon(R.drawable.car_ic_mode) in initCarCategoriesButton()
147 .setSmallIcon(R.drawable.car_ic_mode) in initCarCategoriesButton()
160 .setSmallIcon(R.drawable.car_ic_mode) in initCarCategoriesButton()
180 .setSmallIcon(R.drawable.car_ic_mode) in initImportanceHighBotton()
203 .setSmallIcon(R.drawable.car_ic_mode) in initImportanceDefaultButton()
215 .setSmallIcon(R.drawable.car_ic_mode) in initImportanceLowButton()
227 .setSmallIcon(R.drawable.car_ic_mode) in initImportanceMinButton()
240 .setSmallIcon(R.drawable.car_ic_mode) in initOngoingButton()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DAccessoriesFragment.java183 return willBeProcessed ? R.drawable.ic_bluetooth_raw : R.drawable.ic_bluetooth; in getImageIdForDevice()
189 return willBeProcessed ? R.drawable.ic_headset_mic_raw : R.drawable.ic_headset_mic; in getImageIdForDevice()
194 return willBeProcessed ? R.drawable.ic_headset_raw : R.drawable.ic_headset; in getImageIdForDevice()
196 return willBeProcessed ? R.drawable.ic_mouse_raw : R.drawable.ic_mouse; in getImageIdForDevice()
198 return R.drawable.ic_a2dp_raw; in getImageIdForDevice()
200 return willBeProcessed ? R.drawable.ic_games_raw : R.drawable.ic_games; in getImageIdForDevice()
202 return willBeProcessed ? R.drawable.ic_games_raw : R.drawable.ic_games; in getImageIdForDevice()
204 return willBeProcessed ? R.drawable.ic_games_raw : R.drawable.ic_games; in getImageIdForDevice()
206 return willBeProcessed ? R.drawable.ic_keyboard_raw : R.drawable.ic_keyboard; in getImageIdForDevice()
210 return willBeProcessed ? R.drawable.ic_bluetooth_raw : R.drawable.ic_bluetooth; in getImageIdForDevice()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/
DPageIndicator.java21 import android.graphics.drawable.Animatable2;
22 import android.graphics.drawable.AnimatedVectorDrawable;
23 import android.graphics.drawable.Drawable;
66 public void onAnimationEnd(Drawable drawable) {
67 super.onAnimationEnd(drawable);
68 if (drawable instanceof AnimatedVectorDrawable) {
69 ((AnimatedVectorDrawable) drawable).unregisterAnimationCallback(
106 v.setImageResource(R.drawable.minor_a_b); in setNumPages()
161 v.setImageResource(R.drawable.major_a_b); in setIndex()
208 Drawable drawable = getContext().getDrawable(res);
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DAccessPointPreference.java8 import android.graphics.drawable.Drawable;
9 import android.graphics.drawable.StateListDrawable;
133 Drawable drawable = getIcon(); in onBindViewHolder() local
134 if (drawable != null) { in onBindViewHolder()
135 drawable.setLevel(mLevel); in onBindViewHolder()
168 Drawable drawable = mIconInjector.getIcon(level); in updateIcon() local
169 if (!mForSavedNetworks && drawable != null) { in updateIcon()
170 drawable.setTintList(getColorAttr(context, android.R.attr.colorControlNormal)); in updateIcon()
171 setIcon(drawable); in updateIcon()
193 Drawable drawable = mFrictionSld.getCurrent(); in bindFrictionImage() local
[all …]
DCenterAlignedDynamicDrawableSpan.java22 import android.graphics.drawable.Drawable;
74 Drawable drawable = getDrawable(); in draw() local
81 int transY = bottom - drawable.getBounds().bottom; in draw()
83 transY += (drawable.getIntrinsicHeight() - fontHeight) / 2; in draw()
86 drawable.draw(canvas); in draw()
92 Drawable drawable = mContext.getDrawable(mResourceId); in getDrawable() local
93 drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight()); in getDrawable()
94 return drawable; in getDrawable()
/packages/apps/Messaging/src/com/android/messaging/ui/
DConversationDrawables.java20 import android.graphics.drawable.Drawable;
76 mIncomingBubbleDrawable = resources.getDrawable(R.drawable.msg_bubble_incoming); in updateDrawables()
78 resources.getDrawable(R.drawable.message_bubble_incoming_no_arrow); in updateDrawables()
79 mIncomingErrorBubbleDrawable = resources.getDrawable(R.drawable.msg_bubble_error); in updateDrawables()
80 mOutgoingBubbleDrawable = resources.getDrawable(R.drawable.msg_bubble_outgoing); in updateDrawables()
82 resources.getDrawable(R.drawable.message_bubble_outgoing_no_arrow); in updateDrawables()
83 mAudioPlayButtonDrawable = resources.getDrawable(R.drawable.ic_audio_play); in updateDrawables()
84 mAudioPauseButtonDrawable = resources.getDrawable(R.drawable.ic_audio_pause); in updateDrawables()
86 resources.getDrawable(R.drawable.audio_progress_bar_background_incoming); in updateDrawables()
88 resources.getDrawable(R.drawable.audio_progress_bar_background_outgoing); in updateDrawables()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DFloatingWidgetBackgroundView.java21 import android.graphics.drawable.ColorDrawable;
22 import android.graphics.drawable.Drawable;
23 import android.graphics.drawable.GradientDrawable;
135 private static float getMaxRadius(Drawable drawable) { in getMaxRadius() argument
136 if (!(drawable instanceof GradientDrawable)) return 0; in getMaxRadius()
137 float[] cornerRadii = ((GradientDrawable) drawable).getCornerRadii(); in getMaxRadius()
138 float cornerRadius = ((GradientDrawable) drawable).getCornerRadius(); in getMaxRadius()
145 private static boolean isSupportedDrawable(Drawable drawable) { in isSupportedDrawable() argument
146 return drawable instanceof ColorDrawable || (drawable instanceof GradientDrawable in isSupportedDrawable()
147 && ((GradientDrawable) drawable).getShape() == GradientDrawable.RECTANGLE); in isSupportedDrawable()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/views/
DFloatingIconView.java30 import android.graphics.drawable.AdaptiveIconDrawable;
31 import android.graphics.drawable.Drawable;
255 Drawable drawable; in getIconResult() local
262 drawable = ((ImageView) originalView).getDrawable(); in getIconResult()
264 drawable = ((DeepShortcutView) originalView).getIconView().getBackground(); in getIconResult()
266 drawable = originalView.getBackground(); in getIconResult()
270 drawable = btvIcon; in getIconResult()
275 drawable = getFullDrawable(l, info, width, height, sTmpObjArray); in getIconResult()
276 if (drawable instanceof AdaptiveIconDrawable) { in getIconResult()
281 drawable = btvIcon; in getIconResult()
[all …]
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/
DPieItem.java22 import android.graphics.drawable.Drawable;
33 private Drawable drawable; field in PieItem
52 public PieItem(Drawable drawable, int level) { in PieItem() argument
53 this.drawable = drawable; in PieItem()
80 drawable.setAlpha((int) (255 * alpha)); in setAlpha()
158 return drawable.getIntrinsicWidth(); in getIntrinsicWidth()
162 return drawable.getIntrinsicHeight(); in getIntrinsicHeight()
166 drawable.setBounds(left, top, right, bottom); in setBounds()
170 drawable.draw(canvas); in draw()
175 d.setBounds(drawable.getBounds()); in setImageResource()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/photoviewer/
DBuglePhotoBitmapLoader.java19 import android.graphics.drawable.Drawable;
74 result.drawable = mImageResource.getDrawable(context.getResources()); in loadInBackground()
91 final Drawable drawable = result != null ? result.drawable : null; in deliverResult() local
94 releaseDrawable(drawable); in deliverResult()
99 mDrawable = drawable; in deliverResult()
117 result.drawable = mDrawable; in onStartLoading()
146 releaseDrawable(result.drawable); in onCanceled()
163 private void releaseDrawable(Drawable drawable) { in releaseDrawable() argument
164 if (drawable != null && drawable instanceof FrameSequenceDrawable in releaseDrawable()
165 && !((FrameSequenceDrawable) drawable).isDestroyed()) { in releaseDrawable()
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/
DTransitionScreenWrapper.java29 public final @RawRes int drawable; field in TransitionScreenWrapper
38 TransitionScreenWrapper(@StringRes int header, @RawRes int drawable) { in TransitionScreenWrapper() argument
39 this(header, /* description= */ 0, drawable, /* shouldLoop */ true); in TransitionScreenWrapper()
43 @RawRes int drawable, boolean shouldLoop) { in TransitionScreenWrapper() argument
44 this(header, /* description= */ description, drawable, 0, 0, 0, shouldLoop, 0, 0, 0); in TransitionScreenWrapper()
47 private TransitionScreenWrapper(int header, int description, int drawable, int subHeaderTitle, in TransitionScreenWrapper() argument
52 this.drawable = drawable; in TransitionScreenWrapper()
72 if (isItemProvided && drawable != 0) { in validateFields()
103 public Builder setAnimation(int drawable) { in setAnimation() argument
104 mDrawable = drawable; in setAnimation()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DPhotoStoreTest.java69 byte[] photo = loadPhotoFromResource(R.drawable.earth_small, PhotoSize.ORIGINAL); in testStoreThumbnailPhoto()
77 runStorageTestForResource(R.drawable.earth_200, 200, 200); in testStore200Photo()
82 runStorageTestForResource(R.drawable.earth_300x200, 256, 170); in testStoreNonSquare300x200Photo()
88 runStorageTestForResourceWithCrop(R.drawable.earth_300x200, 200, 200); in testStoreNonSquare300x200PhotoWithCrop()
94 runStorageTestForResourceWithCrop(R.drawable.earth_600x400, 256, 256); in testStoreNonSquare600x400PhotoWithCrop()
99 runStorageTestForResource(R.drawable.earth_normal, 256, 256); in testStoreMediumPhoto()
104 runStorageTestForResource(R.drawable.earth_large, 256, 256); in testStoreLargePhoto()
109 runStorageTestForResource(R.drawable.earth_huge, 256, 256); in testStoreHugePhoto()
176 byte[] photo = loadPhotoFromResource(R.drawable.earth_normal, PhotoSize.ORIGINAL); in testRemoveEntry()
201 R.drawable.earth_normal, R.drawable.earth_large, R.drawable.earth_huge in testCleanup()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/inputmethod/
DAvailableVirtualKeyboardFragment.java31 import android.graphics.drawable.ColorDrawable;
32 import android.graphics.drawable.Drawable;
120 Drawable drawable = loadDrawable(packageManager, packageName, si.logo, ai); in getInputMethodIcon() local
121 if (drawable != null) { in getInputMethodIcon()
122 return drawable; in getInputMethodIcon()
124 drawable = loadDrawable(packageManager, packageName, si.icon, ai); in getInputMethodIcon()
125 if (drawable != null) { in getInputMethodIcon()
126 return drawable; in getInputMethodIcon()
130 drawable = loadDrawable(packageManager, packageName, ai.logo, ai); in getInputMethodIcon()
131 if (drawable != null) { in getInputMethodIcon()
[all …]
/packages/apps/Contacts/src/com/android/contacts/widget/
DQuickContactImageView.java4 import android.graphics.drawable.BitmapDrawable;
5 import android.graphics.drawable.Drawable;
61 public void setImageDrawable(Drawable drawable) { in setImageDrawable() argument
65 if (drawable == null || drawable instanceof BitmapDrawable) { in setImageDrawable()
66 bitmapDrawable = (BitmapDrawable) drawable; in setImageDrawable()
67 } else if (drawable instanceof LetterTileDrawable) { in setImageDrawable()
70 R.drawable.person_white_540dp); in setImageDrawable()
73 R.drawable.generic_business_white_540dp); in setImageDrawable()
79 mOriginalDrawable = drawable; in setImageDrawable()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DBluetoothDevicesSlice.java25 import android.graphics.drawable.Drawable;
31 import androidx.core.graphics.drawable.IconCompat;
216 final Drawable drawable = pair.first; in getBluetoothDeviceIcon() local
219 if (drawable == null) { in getBluetoothDeviceIcon()
221 com.android.internal.R.drawable.ic_settings_bluetooth); in getBluetoothDeviceIcon()
224 return Utils.createIconWithDrawable(drawable); in getBluetoothDeviceIcon()
228 final Drawable drawable = mContext.getDrawable(R.drawable.ic_bluetooth_disabled); in getBluetoothOffHeader() local
231 drawable.setTint(tint); in getBluetoothOffHeader()
232 final IconCompat icon = Utils.createIconWithDrawable(drawable); in getBluetoothOffHeader()
250 final Drawable drawable = mContext.getDrawable( in getBluetoothOnHeader() local
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DBaseFiltersManager.java174 rep = new FilterImageBorderRepresentation(R.drawable.filtershow_border_4x5); in addBorders()
177 rep = new FilterImageBorderRepresentation(R.drawable.filtershow_border_brush); in addBorders()
180 rep = new FilterImageBorderRepresentation(R.drawable.filtershow_border_grunge); in addBorders()
183 rep = new FilterImageBorderRepresentation(R.drawable.filtershow_border_sumi_e); in addBorders()
186 rep = new FilterImageBorderRepresentation(R.drawable.filtershow_border_tape); in addBorders()
221 R.drawable.filtershow_fx_0005_punch, in addLooks()
222 R.drawable.filtershow_fx_0000_vintage, in addLooks()
223 R.drawable.filtershow_fx_0004_bw_contrast, in addLooks()
224 R.drawable.filtershow_fx_0002_bleach, in addLooks()
225 R.drawable.filtershow_fx_0001_instant, in addLooks()
[all …]

12345678910>>...62