Home
last modified time | relevance | path

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

12345678910>>...42

/packages/apps/TV/src/com/android/tv/onboarding/
DWelcomeFragment.java59 R.drawable.tv_1a_01,
60 R.drawable.tv_1a_02,
61 R.drawable.tv_1a_03,
62 R.drawable.tv_1a_04,
63 R.drawable.tv_1a_05,
64 R.drawable.tv_1a_06,
65 R.drawable.tv_1a_07,
66 R.drawable.tv_1a_08,
67 R.drawable.tv_1a_09,
68 R.drawable.tv_1a_10,
[all …]
/packages/apps/Settings/src/com/android/settings/search/
DSearchIndexableResources.java130 addIndex(WifiSettings.class, NO_DATA_RES_ID, R.drawable.ic_settings_wireless); in addIndex()
131 addIndex(NetworkDashboardFragment.class, NO_DATA_RES_ID, R.drawable.ic_settings_wireless); in addIndex()
132 addIndex(ConfigureWifiSettings.class, NO_DATA_RES_ID, R.drawable.ic_settings_wireless); in addIndex()
134 R.drawable.ic_settings_wireless); in addIndex()
135 addIndex(BluetoothSettings.class, NO_DATA_RES_ID, R.drawable.ic_settings_bluetooth); in addIndex()
136 addIndex(SimSettings.class, NO_DATA_RES_ID, R.drawable.ic_sim_sd); in addIndex()
137 addIndex(DataUsageSummary.class, NO_DATA_RES_ID, R.drawable.ic_settings_data_usage); in addIndex()
138 addIndex(DataUsageMeteredSettings.class, NO_DATA_RES_ID, R.drawable.ic_settings_data_usage); in addIndex()
139 addIndex(ScreenZoomSettings.class, NO_DATA_RES_ID, R.drawable.ic_settings_display); in addIndex()
140 addIndex(DisplaySettings.class, NO_DATA_RES_ID, R.drawable.ic_settings_display, in addIndex()
[all …]
/packages/apps/Dialer/java/com/android/dialer/calllogutils/
DCallTypeIconsView.java25 import android.graphics.drawable.BitmapDrawable;
26 import android.graphics.drawable.Drawable;
82 final Drawable drawable = getCallTypeDrawable(callType); in add() local
83 mWidth += drawable.getIntrinsicWidth() + sResources.iconMargin; in add()
84 mHeight = Math.max(mHeight, drawable.getIntrinsicWidth()); in add()
173 final Drawable drawable = getCallTypeDrawable(callType); in onDraw() local
174 final int right = left + drawable.getIntrinsicWidth(); in onDraw()
175 drawable.setBounds(left, 0, right, drawable.getIntrinsicHeight()); in onDraw()
176 drawable.draw(canvas); in onDraw()
195 private int addDrawable(Canvas canvas, Drawable drawable, int left) { in addDrawable() argument
[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/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/apps/Dialer/java/com/android/dialer/app/list/
DDialerPhoneNumberListAdapter.java22 import android.graphics.drawable.Drawable;
171 final Drawable drawable; in assignShortcutToView() local
181 drawable = ContextCompat.getDrawable(getContext(), R.drawable.quantum_ic_call_vd_theme_24); in assignShortcutToView()
185 drawable = in assignShortcutToView()
186 ContextCompat.getDrawable(getContext(), R.drawable.quantum_ic_person_add_vd_theme_24); in assignShortcutToView()
187 drawable.setAutoMirrored(true); in assignShortcutToView()
191 drawable = in assignShortcutToView()
192 ContextCompat.getDrawable(getContext(), R.drawable.quantum_ic_person_add_vd_theme_24); in assignShortcutToView()
196 drawable = in assignShortcutToView()
197 ContextCompat.getDrawable(getContext(), R.drawable.quantum_ic_message_vd_theme_24); in assignShortcutToView()
[all …]
/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/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/
DTutorialJAJP.java38 import android.graphics.drawable.Drawable;
226 setSpan(spannable, "\u25cb", R.drawable.tutorial_12key_key); in TutorialJAJP()
228 R.drawable.dialog_bubble, x, 0, in TutorialJAJP()
235 setSpan(spannable, "\u25cb", R.drawable.tutorial_12key_toggle); in TutorialJAJP()
237 R.drawable.dialog_bubble, x, 0, in TutorialJAJP()
243 setSpan(spannable, "\u2192", R.drawable.tutorial_12key_right); in TutorialJAJP()
246 R.drawable.dialog_bubble, x, 0, in TutorialJAJP()
252 setSpan(spannable, "\u25cb", R.drawable.tutorial_12key_toggle); in TutorialJAJP()
255 R.drawable.dialog_bubble, x, 0, in TutorialJAJP()
261 setSpan(spannable, "\u25a0", R.drawable.tutorial_12key_space_jp); in TutorialJAJP()
[all …]
/packages/experimental/NotificationShowcase/src/com/android/example/notificationshowcase/
DNotificationService.java32 import android.graphics.drawable.BitmapDrawable;
33 import android.graphics.drawable.Drawable;
141 .setLargeIcon(getBitmap(context, R.drawable.bucket)) in makeSmsNotification()
143 .addAction(R.drawable.ic_media_next, context.getString(R.string.sms_reply), ai) in makeSmsNotification()
144 .setSmallIcon(R.drawable.stat_notify_talk_text) in makeSmsNotification()
181 .setSmallIcon(R.drawable.ic_menu_upload) in makeUploadNotification()
219 .setLargeIcon(getBitmap(this, R.drawable.matias_hed)) in onHandleIntent()
220 .setSmallIcon(R.drawable.stat_sys_phone_call) in onHandleIntent()
224 .addAction(R.drawable.ic_dial_action_call, getString(R.string.call_answer), ans) in onHandleIntent()
225 .addAction(R.drawable.ic_end_call, getString(R.string.call_ignore), ign) in onHandleIntent()
[all …]
/packages/apps/Car/Dialer/src/com/android/car/dialer/
DCallTypeIconsView.java21 import android.graphics.drawable.Drawable;
66 final Drawable drawable = getCallTypeDrawable(callType); in add() local
67 mWidth += drawable.getIntrinsicWidth() + mResources.iconMargin; in add()
68 mHeight = Math.max(mHeight, drawable.getIntrinsicHeight()); in add()
108 final Drawable drawable = getCallTypeDrawable(callType); in onDraw() local
109 final int right = left + drawable.getIntrinsicWidth(); in onDraw()
110 drawable.setBounds(left, 0, right, drawable.getIntrinsicHeight()); in onDraw()
111 drawable.draw(canvas); in onDraw()
125 incoming = r.getDrawable(R.drawable.ic_call_received); in Resources()
126 outgoing = r.getDrawable(R.drawable.ic_call_made); in Resources()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DBaseFiltersManager.java187 rep = new FilterImageBorderRepresentation(R.drawable.filtershow_border_4x5); in addBorders()
190 rep = new FilterImageBorderRepresentation(R.drawable.filtershow_border_brush); in addBorders()
193 rep = new FilterImageBorderRepresentation(R.drawable.filtershow_border_grunge); in addBorders()
196 rep = new FilterImageBorderRepresentation(R.drawable.filtershow_border_sumi_e); in addBorders()
199 rep = new FilterImageBorderRepresentation(R.drawable.filtershow_border_tape); in addBorders()
234 R.drawable.filtershow_fx_0005_punch, in addLooks()
235 R.drawable.filtershow_fx_0000_vintage, in addLooks()
236 R.drawable.filtershow_fx_0004_bw_contrast, in addLooks()
237 R.drawable.filtershow_fx_0002_bleach, in addLooks()
238 R.drawable.filtershow_fx_0001_instant, in addLooks()
[all …]
DImageFilterBorder.java24 import android.graphics.drawable.BitmapDrawable;
25 import android.graphics.drawable.Drawable;
60 Drawable drawable = getDrawable(getParameters().getDrawableResource()); in applyHelper() local
61 drawable.setBounds(bounds); in applyHelper()
62 drawable.draw(canvas); in applyHelper()
84 Drawable drawable = mDrawables.get(rsc); in getDrawable() local
85 if (drawable == null && mResources != null && rsc != 0) { in getDrawable()
86drawable = new BitmapDrawable(mResources, BitmapFactory.decodeResource(mResources, rsc)); in getDrawable()
87 mDrawables.put(rsc, drawable); in getDrawable()
89 return drawable; in getDrawable()
/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/TvSettings/Settings/src/com/android/tv/settings/inputmethod/
DAvailableVirtualKeyboardFragment.java30 import android.graphics.drawable.ColorDrawable;
31 import android.graphics.drawable.Drawable;
116 Drawable drawable = loadDrawable(packageManager, packageName, si.logo, ai); in getInputMethodIcon() local
117 if (drawable != null) { in getInputMethodIcon()
118 return drawable; in getInputMethodIcon()
120 drawable = loadDrawable(packageManager, packageName, si.icon, ai); in getInputMethodIcon()
121 if (drawable != null) { in getInputMethodIcon()
122 return drawable; in getInputMethodIcon()
126 drawable = loadDrawable(packageManager, packageName, ai.logo, ai); in getInputMethodIcon()
127 if (drawable != null) { in getInputMethodIcon()
[all …]
/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/Settings/src/com/android/settings/inputmethod/
DAvailableVirtualKeyboardFragment.java30 import android.graphics.drawable.ColorDrawable;
31 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/Settings/src/com/android/settings/widget/
DSettingsAppWidgetProvider.java82 R.drawable.appwidget_settings_ind_off_l_holo,
83 R.drawable.appwidget_settings_ind_off_c_holo,
84 R.drawable.appwidget_settings_ind_off_r_holo
88 R.drawable.appwidget_settings_ind_mid_l_holo,
89 R.drawable.appwidget_settings_ind_mid_c_holo,
90 R.drawable.appwidget_settings_ind_mid_r_holo
94 R.drawable.appwidget_settings_ind_on_l_holo,
95 R.drawable.appwidget_settings_ind_on_c_holo,
96 R.drawable.appwidget_settings_ind_on_r_holo
360 return on ? R.drawable.ic_appwidget_settings_wifi_on_holo in getButtonImageId()
[all …]
/packages/apps/Settings/src/com/android/settings/users/
DEditUserInfoController.java27 import android.graphics.drawable.Drawable;
41 import com.android.settingslib.drawable.CircleFramedDrawable;
128 Drawable drawable = null; in createDialog() local
130 drawable = CircleFramedDrawable.getInstance(activity, mSavedPhoto); in createDialog()
132 drawable = currentUserIcon; in createDialog()
133 if (drawable == null) { in createDialog()
134 drawable = Utils.getUserIcon(activity, mUserManager, info); in createDialog()
137 userPhotoView.setImageDrawable(drawable); in createDialog()
139 mSavedPhoto, drawable, mWaitingForActivityResult); in createDialog()
161 Drawable drawable = mEditUserPhotoController.getNewUserPhotoDrawable(); in createDialog()
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DCachingIconLoader.java25 import android.graphics.drawable.Drawable;
76 NowOrLater<Drawable> drawable = mWrapped.getIcon(drawableId); in getIcon()
77 newEntry.set(drawable); in getIcon()
79 return drawable; in getIcon()
94 private synchronized void storeInIconCache(String resourceUri, Entry drawable) {
95 if (drawable != null) {
96 mIconCache.put(resourceUri, drawable);
109 public synchronized void set(NowOrLater<Drawable> drawable) {
112 mDrawable = drawable;
129 NowOrLater<Drawable> drawable = mDrawable;
[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/TvSettings/Settings/src/com/android/tv/settings/widget/
DFrameLayoutWithShadows.java25 import android.graphics.drawable.Drawable;
26 import android.graphics.drawable.ShapeDrawable;
27 import android.graphics.drawable.shapes.RectShape;
111 public void setDrawableBottom(Drawable drawable) { in setDrawableBottom() argument
112 mDrawableBottom = drawable; in setDrawableBottom()
244 Drawable drawable = ((ImageView) view).getDrawable(); in layoutShadows() local
245 if (drawable != null) { in layoutShadows()
247 rect.set(drawable.getBounds()); in layoutShadows()
332 ShapeDrawable drawable = new ShapeDrawable(); in setShadowViewUnderline() local
333 drawable.setShape(new RectShape()); in setShadowViewUnderline()
[all …]
/packages/apps/Dialer/java/com/android/incallui/speakerbuttonlogic/
DSpeakerButtonInfo.java56 ? R.drawable.quantum_ic_bluetooth_audio_white_36 in SpeakerButtonInfo()
57 : R.drawable.quantum_ic_bluetooth_audio_white_24; in SpeakerButtonInfo()
63 ? R.drawable.quantum_ic_volume_up_white_36 in SpeakerButtonInfo()
64 : R.drawable.quantum_ic_volume_up_white_24; in SpeakerButtonInfo()
70 ? R.drawable.quantum_ic_headset_white_36 in SpeakerButtonInfo()
71 : R.drawable.quantum_ic_headset_white_24; in SpeakerButtonInfo()
76 ? R.drawable.quantum_ic_phone_in_talk_white_36 in SpeakerButtonInfo()
77 : R.drawable.quantum_ic_phone_in_talk_white_24; in SpeakerButtonInfo()
86 ? R.drawable.quantum_ic_volume_up_white_36 in SpeakerButtonInfo()
87 : R.drawable.quantum_ic_volume_up_white_24; in SpeakerButtonInfo()
/packages/apps/Contacts/src/com/android/contacts/editor/
DEditorUiUtils.java28 import android.graphics.drawable.Drawable;
160 R.drawable.quantum_ic_person_vd_theme_24, null); in getMimeTypeDrawable()
163 R.drawable.quantum_ic_place_vd_theme_24, null); in getMimeTypeDrawable()
166 R.drawable.quantum_ic_dialer_sip_vd_theme_24, null); in getMimeTypeDrawable()
169 R.drawable.quantum_ic_phone_vd_theme_24, null); in getMimeTypeDrawable()
172 R.drawable.quantum_ic_message_vd_theme_24, null); in getMimeTypeDrawable()
175 R.drawable.quantum_ic_event_vd_theme_24, null); in getMimeTypeDrawable()
178 R.drawable.quantum_ic_email_vd_theme_24, null); in getMimeTypeDrawable()
181 R.drawable.quantum_ic_public_vd_theme_24, null); in getMimeTypeDrawable()
184 R.drawable.quantum_ic_camera_alt_vd_theme_24, null); in getMimeTypeDrawable()
[all …]
/packages/apps/Car/Hvac/src/com/android/car/hvac/ui/
DFanSpeedBarSegment.java21 import android.graphics.drawable.GradientDrawable;
42 GradientDrawable drawable = (GradientDrawable) getDrawable();
43 drawable.setCornerRadius(size / 2);
44 drawable.setSize(size, size);
92 GradientDrawable drawable = (GradientDrawable) getDrawable(); in setTurnedOn() local
94 drawable.setCornerRadius(0); in setTurnedOn()
96 drawable.setSize(-1, -1); in setTurnedOn()
98 drawable.setCornerRadius(mDotSize / 2); in setTurnedOn()
99 drawable.setSize(mDotSize, mDotSize); in setTurnedOn()
101 setImageDrawable(drawable); in setTurnedOn()
/packages/apps/TV/src/com/android/tv/menu/
DMenuAction.java20 import android.graphics.drawable.Drawable;
35 R.drawable.ic_tvoption_cc);
38 R.drawable.ic_tvoption_aspect);
41 R.drawable.ic_tvoption_pip);
44 R.drawable.ic_tvoption_multi_track);
47 TvOptionsManager.OPTION_MORE_CHANNELS, R.drawable.ic_store);
50 TvOptionsManager.OPTION_DEVELOPER, R.drawable.ic_developer_mode_tv_white_48dp);
53 R.drawable.ic_settings);
89 public MenuAction(String actionName, int type, Drawable drawable) { in MenuAction() argument
93 mDrawable = drawable; in MenuAction()

12345678910>>...42