/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
D | IconUtils.java | 42 int icon; 45 icon = R.drawable.ic_doc_apk; 46 add("application/vnd.android.package-archive", icon); 49 icon = R.drawable.ic_doc_audio; 50 add("application/ogg", icon); 51 add("application/x-flac", icon); 54 icon = R.drawable.ic_doc_certificate; 55 add("application/pgp-keys", icon); 56 add("application/pgp-signature", icon); 57 add("application/x-pkcs12", icon); [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
D | CommandParams.java | 36 boolean setIcon(Bitmap icon) { return true; } in setIcon() argument 53 boolean setIcon(Bitmap icon) { in setIcon() argument 54 if (icon != null && mTextMsg != null) { in setIcon() 55 mTextMsg.icon = icon; in setIcon() 76 boolean setIcon(Bitmap icon) { in setIcon() argument 77 if (icon != null && mConfirmMsg != null) { in setIcon() 78 mConfirmMsg.icon = icon; in setIcon() 105 boolean setIcon(Bitmap icon) { in setIcon() argument 106 if (icon != null && mTextMsg != null) { in setIcon() 107 mTextMsg.icon = icon; in setIcon() [all …]
|
D | Item.java | 34 public Bitmap icon; field in Item 40 public Item(int id, String text, Bitmap icon) { in Item() argument 43 this.icon = icon; in Item() 49 icon = in.readParcelable(null); in Item() 61 dest.writeParcelable(icon, flags); in writeToParcel()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | UserIcons.java | 47 public static Bitmap convertToBitmap(Drawable icon) { in convertToBitmap() argument 48 if (icon == null) { in convertToBitmap() 51 Bitmap bitmap = Bitmap.createBitmap(icon.getIntrinsicWidth(), icon.getIntrinsicHeight(), in convertToBitmap() 53 icon.draw(new Canvas(bitmap)); in convertToBitmap() 70 Drawable icon = Resources.getSystem().getDrawable(R.drawable.ic_account_circle).mutate(); in getDefaultUserIcon() local 71 icon.setColorFilter(Resources.getSystem().getColor(colorResId), Mode.SRC_IN); in getDefaultUserIcon() 72 icon.setBounds(0, 0, icon.getIntrinsicWidth(), icon.getIntrinsicHeight()); in getDefaultUserIcon() 73 return icon; in getDefaultUserIcon()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | StatusBarIconView.java | 106 public boolean set(StatusBarIcon icon) { in set() argument 108 && streq(mIcon.iconPackage, icon.iconPackage) in set() 109 && mIcon.iconId == icon.iconId; in set() 111 && mIcon.iconLevel == icon.iconLevel; in set() 113 && mIcon.visible == icon.visible; in set() 115 && mIcon.number == icon.number; in set() 116 mIcon = icon.clone(); in set() 117 setContentDescription(icon.contentDescription); in set() 122 setImageLevel(icon.iconLevel); in set() 126 if (icon.number > 0 && getContext().getResources().getBoolean( in set() [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | LabeledIntent.java | 44 int labelRes, int icon) { in LabeledIntent() argument 49 mIcon = icon; in LabeledIntent() 62 CharSequence nonLocalizedLabel, int icon) { in LabeledIntent() argument 67 mIcon = icon; in LabeledIntent() 78 public LabeledIntent(String sourcePackage, int labelRes, int icon) { in LabeledIntent() argument 82 mIcon = icon; in LabeledIntent() 94 CharSequence nonLocalizedLabel, int icon) { in LabeledIntent() argument 98 mIcon = icon; in LabeledIntent() 154 Drawable icon = pm.getDrawable(mSourcePackage, mIcon, null); in loadIcon() local 155 if (icon != null) { in loadIcon() [all …]
|
D | ResolveInfo.java | 121 public int icon; field in ResolveInfo 203 if (resolvePackageName != null && icon != 0) { in loadIcon() 204 dr = pm.getDrawable(resolvePackageName, icon, null); in loadIcon() 211 if (icon != 0) { in loadIcon() 212 dr = pm.getDrawable(ci.packageName, icon, ai); in loadIcon() 229 if (icon != 0) return icon; in getIconResource() 250 if (labelRes != 0 || nonLocalizedLabel != null || icon != 0) { in dump() 253 + " icon=0x" + Integer.toHexString(icon)); in dump() 282 icon = orig.icon; in ResolveInfo() 342 dest.writeInt(icon); in writeToParcel() [all …]
|
D | PackageItemInfo.java | 68 public int icon; field in PackageItemInfo 108 icon = orig.icon; in PackageItemInfo() 290 if (labelRes != 0 || nonLocalizedLabel != null || icon != 0 || banner != 0) { in dumpFront() 293 + " icon=0x" + Integer.toHexString(icon) in dumpFront() 307 dest.writeInt(icon); in writeToParcel() 320 icon = source.readInt(); in PackageItemInfo()
|
/frameworks/base/libs/input/ |
D | SpriteController.cpp | 136 update.state.surfaceWidth = update.state.icon.bitmap.width(); in doUpdateSprites() 137 update.state.surfaceHeight = update.state.icon.bitmap.height(); in doUpdateSprites() 154 int32_t desiredWidth = update.state.icon.bitmap.width(); in doUpdateSprites() 155 int32_t desiredHeight = update.state.icon.bitmap.height(); in doUpdateSprites() 216 surfaceCanvas.drawBitmap(update.state.icon.bitmap, 0, 0, &paint); in doUpdateSprites() 218 if (outBuffer.width > update.state.icon.bitmap.width()) { in doUpdateSprites() 220 surfaceCanvas.drawRectCoords(update.state.icon.bitmap.width(), 0, in doUpdateSprites() 221 outBuffer.width, update.state.icon.bitmap.height(), paint); in doUpdateSprites() 223 if (outBuffer.height > update.state.icon.bitmap.height()) { in doUpdateSprites() 225 surfaceCanvas.drawRectCoords(0, update.state.icon.bitmap.height(), in doUpdateSprites() [all …]
|
/frameworks/base/core/java/android/view/ |
D | PointerIcon.java | 139 PointerIcon icon = new PointerIcon(style); in getSystemIcon() local 141 icon.mSystemIconResourceId = resourceId; in getSystemIcon() 143 icon.loadResource(context, context.getResources(), resourceId); in getSystemIcon() 145 return icon; in getSystemIcon() 167 PointerIcon icon = new PointerIcon(STYLE_CUSTOM); in createCustomIcon() local 168 icon.mBitmap = bitmap; in createCustomIcon() 169 icon.mHotSpotX = hotSpotX; in createCustomIcon() 170 icon.mHotSpotY = hotSpotY; in createCustomIcon() 171 return icon; in createCustomIcon() 200 PointerIcon icon = new PointerIcon(STYLE_CUSTOM); in loadCustomIcon() local [all …]
|
/frameworks/base/core/java/android/app/ |
D | LauncherActivity.java | 68 public Drawable icon; field in LauncherActivity.ListItem 83 icon = resizer.createIconThumbnail(resolveInfo.loadIcon(pm)); in ListItem() 166 if (item.icon == null) { in bindView() 167 … item.icon = mIconResizer.createIconThumbnail(item.resolveInfo.loadIcon(getPackageManager())); in bindView() 169 text.setCompoundDrawablesWithIntrinsicBounds(item.icon, null, null, null); in bindView() 277 public Drawable createIconThumbnail(Drawable icon) { in createIconThumbnail() argument 281 final int iconWidth = icon.getIntrinsicWidth(); in createIconThumbnail() 282 final int iconHeight = icon.getIntrinsicHeight(); in createIconThumbnail() 284 if (icon instanceof PaintDrawable) { in createIconThumbnail() 285 PaintDrawable painter = (PaintDrawable) icon; in createIconThumbnail() [all …]
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
D | IconUtilities.java | 105 private Bitmap createIconBitmap(Drawable icon) { in createIconBitmap() argument 109 if (icon instanceof PaintDrawable) { in createIconBitmap() 110 PaintDrawable painter = (PaintDrawable) icon; in createIconBitmap() 113 } else if (icon instanceof BitmapDrawable) { in createIconBitmap() 115 BitmapDrawable bitmapDrawable = (BitmapDrawable) icon; in createIconBitmap() 121 int sourceWidth = icon.getIntrinsicWidth(); in createIconBitmap() 122 int sourceHeight = icon.getIntrinsicHeight(); in createIconBitmap() 162 mOldBounds.set(icon.getBounds()); in createIconBitmap() 163 icon.setBounds(left, top, left+width, top+height); in createIconBitmap() 164 icon.draw(canvas); in createIconBitmap() [all …]
|
/frameworks/base/core/java/android/service/notification/ |
D | Condition.java | 49 public final int icon; field in Condition 53 public Condition(Uri id, String summary, String line1, String line2, int icon, in Condition() argument 64 this.icon = icon; in Condition() 89 dest.writeInt(icon); in writeToParcel() 101 .append(",icon=").append(icon) in toString() 132 && other.icon == icon in equals() 139 return Objects.hash(id, summary, line1, line2, icon, state, flags); in hashCode()
|
/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/ |
D | AnimatedVectorDrawableDupPerf.java | 40 protected int[] icon = { field in AnimatedVectorDrawableDupPerf 98 AnimatedVectorDrawable []d = new AnimatedVectorDrawable[icon.length]; in onCreate() 100 for (int i = 0; i < icon.length; i++) { in onCreate() 101 d[i] = create(res,icon[i]); in onCreate() 106 t.setText("avgL=" + df.format(time / (icon.length * 1000000.)) + " ms"); in onCreate() 109 for (int i = 0; i < icon.length; i++) { in onCreate() 112 button.setBackgroundResource(icon[i]); in onCreate() 118 t.setText("avgS=" + df.format(time / (icon.length * 1000000.)) + " ms"); in onCreate()
|
D | VectorDrawablePerformance.java | 37 protected int[] icon = { field in VectorDrawablePerformance 104 VectorDrawable []d = new VectorDrawable[icon.length]; in onCreate() 106 for (int i = 0; i < icon.length; i++) { in onCreate() 107 d[i] = create(res,icon[i]); in onCreate() 112 t.setText("avgL=" + df.format(time / (icon.length * 1000000.)) + " ms"); in onCreate() 115 for (int i = 0; i < icon.length; i++) { in onCreate() 118 button.setBackgroundResource(icon[i]); in onCreate() 124 t.setText("avgS=" + df.format(time / (icon.length * 1000000.)) + " ms"); in onCreate()
|
D | VectorDrawable01.java | 27 int[] icon = { field in VectorDrawable01 56 final Button []bArray = new Button[icon.length]; in onCreate() 58 for (int i = 0; i < icon.length; i++) { in onCreate() 62 button.setBackgroundResource(icon[i]); in onCreate() 65 vd.setAlpha((i + 1) * (0xFF / (icon.length + 1))); in onCreate()
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
D | IconMenuItemView.java | 97 void initialize(CharSequence title, Drawable icon) { in initialize() argument 106 setIcon(icon); in initialize() 177 public void setIcon(Drawable icon) { in setIcon() argument 178 mIcon = icon; in setIcon() 180 if (icon != null) { in setIcon() 183 icon.setBounds(0, 0, icon.getIntrinsicWidth(), icon.getIntrinsicHeight()); in setIcon() 186 setCompoundDrawables(null, icon, null, null); in setIcon()
|
/frameworks/base/docs/html/guide/practices/ui_guidelines/ |
D | icon_design_launcher.jd | 39 <p>A launcher icon is a graphic that represents your application. Launcher icons are used by 41 represent shortcuts into your application (for example, a contact shortcut icon that opens detail 45 href="{@docRoot}guide/practices/ui_guidelines/icon_design.html#icon-sets">Providing Density-Specific 53 <p>A high-resolution version of your application launcher icon is also required by Google Play 60 The launcher icon guidelines pertaining to all versions of Android have been re-written. If you 62 <a href="icon_design_launcher_archive.html">launcher icon guidelines archive</a>. 95 <li>Create an icon that is unique and memorable.</li> 97 <li>Don't try to communicate too much with the icon. A simple icon will have more impact and be 99 <li>Avoid including the application name in the icon. The app name will always be displayed 100 adjacent to the icon.</li> [all …]
|
D | icon_design_launcher_archive.jd | 39 launcher icon guidelines</a> instead. 42 <p>A Launcher icon is a graphic that represents your application on the device's 45 <p>The user opens the Launcher by touching the icon at the bottom of the Home 48 Launcher icon or by means of any hardware navigation controls available, such as 51 <p>As described in <a href="icon_design.html#icon-sets">Providing 64 pixel, high-resolution application icon in the <a 66 This icon will be used in various locations on Google Play and does 67 not replace your launcher icon.</p> 120 representation of the whole (for example, the Music icon features a speaker). 144 embedding text in your icon and instead focus on designing a distinct and [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | RotationLockTile.java | 77 final AnimationIcon icon; in handleUpdateState() local 82 icon = portrait ? mAutoToPortrait : mAutoToLandscape; in handleUpdateState() 85 icon = portrait ? mPortraitToAuto : mLandscapeToAuto; in handleUpdateState() 87 icon.setAllowAnimation(userInitiated); in handleUpdateState() 88 state.icon = icon; in handleUpdateState()
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/model/ |
D | RootInfo.java | 50 public int icon; field in RootInfo 71 icon = 0; in reset() 91 icon = in.readInt(); in read() 110 out.writeInt(icon); in write() 147 root.icon = getCursorInt(cursor, Root.COLUMN_ICON); in fromRootsCursor() 210 return IconUtils.loadPackageIcon(context, authority, icon); in loadIcon() 218 return IconUtils.loadPackageIcon(context, authority, icon); in loadDrawerIcon() 227 return IconUtils.loadPackageIcon(context, authority, icon); in loadGridIcon() 236 return IconUtils.loadPackageIcon(context, authority, icon); in loadToolbarIcon()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | Ticker.java | 63 Drawable icon; field in Ticker.Segment 138 Segment(StatusBarNotification n, Drawable icon, CharSequence text) { in Segment() argument 140 this.icon = icon; in Segment() 191 && n.getNotification().icon == seg.notification.getNotification().icon in addEntry() 199 final Drawable icon = StatusBarIconView.getIcon(mContext, in addEntry() local 200 …new StatusBarIcon(n.getPackageName(), n.getUser(), n.getNotification().icon, n.getNotification().i… in addEntry() 203 final Segment newSegment = new Segment(n, icon, text); in addEntry() 222 mIconSwitcher.setImageDrawable(seg.icon); in addEntry() 279 mIconSwitcher.setImageDrawable(seg.icon);
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/ |
D | SubMenuWrapperICS.java | 60 public SubMenu setHeaderIcon(Drawable icon) { in setHeaderIcon() argument 61 getWrappedObject().setHeaderIcon(icon); in setHeaderIcon() 83 public SubMenu setIcon(Drawable icon) { in setIcon() argument 84 getWrappedObject().setIcon(icon); in setIcon()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | Action.java | 70 public Action(long id, CharSequence label1, CharSequence label2, Drawable icon) { in Action() argument 74 setIcon(icon); in Action() 122 public final void setIcon(Drawable icon) { in setIcon() argument 123 mIcon = icon; in setIcon()
|
/frameworks/base/docs/html/google/ |
D | index.jd | 7 div.cell-icon { 10 div.cell-icon { 14 div.cell-icon img { 47 <div class="cell-icon"> 59 <div class="cell-icon"> 71 <div class="cell-icon"> 82 <div class="cell-icon"> 93 <div class="cell-icon"> 110 <div class="cell-icon"> 122 <div class="cell-icon"> [all …]
|