Home
last modified time | relevance | path

Searched refs:drawableId (Results 1 – 10 of 10) sorted by relevance

/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DCachingIconLoader.java55 public NowOrLater<Drawable> getIcon(String drawableId) { in getIcon() argument
56 if (DBG) Log.d(TAG, "getIcon(" + drawableId + ")"); in getIcon()
57 if (TextUtils.isEmpty(drawableId) || "0".equals(drawableId)) { in getIcon()
63 drawableState = queryCache(drawableId); in getIcon()
66 storeInIconCache(drawableId, newEntry); in getIcon()
76 NowOrLater<Drawable> drawable = mWrapped.getIcon(drawableId); in getIcon()
78 storeInIconCache(drawableId, newEntry); in getIcon() argument
82 public Uri getIconUri(String drawableId) {
83 return mWrapped.getIconUri(drawableId);
86 private synchronized NowOrLater<Drawable.ConstantState> queryCache(String drawableId) {
[all …]
DPackageIconLoader.java92 public NowOrLater<Drawable> getIcon(final String drawableId) { in getIcon() argument
93 if (DBG) Log.d(TAG, "getIcon(" + drawableId + ")"); in getIcon()
94 if (TextUtils.isEmpty(drawableId) || "0".equals(drawableId)) { in getIcon()
103 int resourceId = Integer.parseInt(drawableId); in getIcon()
109 Uri uri = Uri.parse(drawableId); in getIcon()
118 Log.w(TAG, "Icon resource not found: " + drawableId); in getIcon()
124 public Uri getIconUri(String drawableId) { in getIconUri() argument
125 if (TextUtils.isEmpty(drawableId) || "0".equals(drawableId)) { in getIconUri()
130 int resourceId = Integer.parseInt(drawableId); in getIconUri()
133 return Uri.parse(drawableId); in getIconUri()
DAbstractSource.java71 public NowOrLater<Drawable> getIcon(String drawableId) { in getIcon() argument
72 return getIconLoader().getIcon(drawableId); in getIcon()
75 public Uri getIconUri(String drawableId) { in getIconUri() argument
76 return getIconLoader().getIconUri(drawableId); in getIconUri()
DIconLoader.java49 NowOrLater<Drawable> getIcon(String drawableId); in getIcon() argument
54 Uri getIconUri(String drawableId); in getIconUri() argument
DSource.java79 NowOrLater<Drawable> getIcon(String drawableId); in getIcon() argument
86 Uri getIconUri(String drawableId); in getIconUri() argument
DShortcutRepositoryImplLog.java622 private String getIconUriString(Source source, String drawableId) { in getIconUriString() argument
624 if (TextUtils.isEmpty(drawableId) || "0".equals(drawableId)) { in getIconUriString()
628 if (drawableId.startsWith(ContentResolver.SCHEME_ANDROID_RESOURCE) in getIconUriString()
629 || drawableId.startsWith(ContentResolver.SCHEME_CONTENT) in getIconUriString()
630 || drawableId.startsWith(ContentResolver.SCHEME_FILE)) { in getIconUriString()
631 return drawableId; in getIconUriString()
633 Uri uri = source.getIconUri(drawableId); in getIconUriString()
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DMockIconLoader.java40 public NowOrLater<Drawable> getIcon(String drawableId) { in getIcon() argument
41 if (TextUtils.isEmpty(drawableId) || "0".equals(drawableId)) { in getIcon()
49 public Uri getIconUri(String drawableId) { in getIconUri() argument
50 if (TextUtils.isEmpty(drawableId) || "0".equals(drawableId)) { in getIconUri()
DMockSource.java100 public NowOrLater<Drawable> getIcon(String drawableId) { in getIcon() argument
104 public Uri getIconUri(String drawableId) { in getIconUri() argument
/packages/apps/VideoEditor/src/com/android/videoeditor/util/
DImageUtils.java302 private static void drawCenterOverlay(Context context, Canvas canvas, int drawableId, in drawCenterOverlay() argument
306 final Drawable background = context.getResources().getDrawable(drawableId); in drawCenterOverlay()
345 private static void drawBottomOverlay(Context context, Canvas canvas, int drawableId, in drawBottomOverlay() argument
349 final Drawable background = context.getResources().getDrawable(drawableId); in drawBottomOverlay()
422 private static void drawOverlayPreview(Context context, Canvas canvas, int drawableId, in drawOverlayPreview() argument
427 final Drawable background = context.getResources().getDrawable(drawableId); in drawOverlayPreview()
/packages/apps/Email/src/com/android/email/widget/
DEmailWidget.java418 int drawableId = R.drawable.conversation_read_selector; in getViewAt() local
420 drawableId = R.drawable.conversation_unread_selector; in getViewAt()
422 views.setInt(R.id.widget_message, "setBackgroundResource", drawableId); in getViewAt()