Home
last modified time | relevance | path

Searched refs:Icon (Results 1 – 25 of 59) sorted by relevance

123

/frameworks/base/graphics/java/android/graphics/drawable/
DIcon.java58 public final class Icon implements Parcelable { class
420 private Icon(int mType) { in Icon() method in Icon
430 public static Icon createFromStream(InputStream stream) throws IOException { in createFromStream()
462 public static Icon createWithResource(Context context, @DrawableRes int resId) { in createWithResource()
466 final Icon rep = new Icon(TYPE_RESOURCE); in createWithResource()
476 public static Icon createWithResource(Resources res, @DrawableRes int resId) { in createWithResource()
480 final Icon rep = new Icon(TYPE_RESOURCE); in createWithResource()
491 public static Icon createWithResource(String resPackage, @DrawableRes int resId) { in createWithResource()
495 final Icon rep = new Icon(TYPE_RESOURCE); in createWithResource()
505 public static Icon createWithBitmap(Bitmap bits) { in createWithBitmap()
[all …]
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/drawable/
DIconTest.java55 final Icon im1 = Icon.createWithBitmap(bm1); in testWithBitmap()
56 final Icon im2 = Icon.createWithBitmap(bm2); in testWithBitmap()
57 final Icon im3 = Icon.createWithBitmap(bm3); in testWithBitmap()
115 final Icon im1 = Icon.createWithResource(getContext(), R.drawable.landscape); in testWithBitmapResource()
142 final Icon im1 = Icon.createWithFilePath(file1.toString()); in testWithFile()
166 final Icon im1 = Icon.createWithFilePath(file1.toString()); in testAsync()
171 im1.loadDrawableAsync(mContext, new Icon.OnDrawableLoadedListener() { in testAsync()
218 ArrayList<Icon> imgs = new ArrayList<>(); in testParcel()
219 final Icon file1 = Icon.createWithFilePath(originalfile.getAbsolutePath()); in testParcel()
221 final Icon bit1 = Icon.createWithBitmap(originalbits); in testParcel()
[all …]
/frameworks/base/core/java/com/android/internal/statusbar/
DStatusBarIcon.java19 import android.graphics.drawable.Icon;
28 public Icon icon;
34 public StatusBarIcon(UserHandle user, String resPackage, Icon icon, int iconLevel, int number, in StatusBarIcon()
36 if (icon.getType() == Icon.TYPE_RESOURCE in StatusBarIcon()
41 icon = Icon.createWithResource(resPackage, icon.getResId()); in StatusBarIcon()
54 this(user, iconPackage, Icon.createWithResource(iconPackage, iconId), in StatusBarIcon()
84 this.icon = (Icon) in.readParcelable(null); in readFromParcel()
/frameworks/base/core/java/android/service/chooser/
DChooserTarget.java24 import android.graphics.drawable.Icon;
56 private Icon mIcon;
103 public ChooserTarget(CharSequence title, Icon icon, float score, in ChooserTarget()
119 mIcon = Icon.CREATOR.createFromParcel(in); in ChooserTarget()
144 public Icon getIcon() { in getIcon()
/frameworks/base/telecomm/java/android/telecom/
DStatusHints.java23 import android.graphics.drawable.Icon;
36 private final Icon mIcon;
45 this(label, iconResId == 0 ? null : Icon.createWithResource(packageName.getPackageName(), in StatusHints()
49 public StatusHints(CharSequence label, Icon icon, Bundle extras) { in StatusHints()
99 public Icon getIcon() { in getIcon()
DPhoneAccount.java29 import android.graphics.drawable.Icon;
162 private final Icon mIcon;
177 private Icon mIcon;
245 public Builder setIcon(Icon icon) { in setIcon()
344 Icon icon, in PhoneAccount()
462 public Icon getIcon() { in getIcon()
593 mIcon = Icon.CREATOR.createFromParcel(in); in PhoneAccount()
/frameworks/base/docs/html/guide/practices/ui_guidelines/
Dindex.jd24 <dt><a href="{@docRoot}guide/practices/ui_guidelines/icon_design.html">Icon
26 href="{@docRoot}shareables/icon_templates-v4.0.zip">Android Icon Templates Pack
29 icons in menus, dialogs, tabs, the status bar, and lists. The Icon Guidelines
32 The Icon Templates Pack is an archive of Photoshop and Illustrator templates and
Dicon_design.jd1 page.title=Icon Design Guidelines
21 <li><a href="#templatespack">Using the Icon Templates Pack</a></li>
22 <li><a href="#icon-sets">Providing Density-Specific Icon Sets</a></li>
40 <li><a href="{@docRoot}shareables/icon_templates-v4.0.zip">Android Icon
42 <li><a href="{@docRoot}shareables/icon_templates-v2.3.zip">Android Icon
44 <li><a href="{@docRoot}shareables/icon_templates-v2.0.zip">Android Icon
107 the Android Icon Templates Pack.</p>
113 <h2 id="templatespack">Using the Android Icon Templates Pack</h2>
115 <p>The Android Icon Templates Pack is a collection of template designs,
126 <p>You can obtain the latest Icon Templates Pack archive using the link below:
[all …]
Dicon_design_menu.jd3 parent.title=Icon Design Guidelines
51 Icon Sets</a> and <a href="{@docRoot}guide/practices/screens_support.html">Supporting Multiple
62 href="{@docRoot}guide/practices/ui_guidelines/icon_design.html#templatespack">Icon
70 href="icon_design_action_bar.html">Action Bar Icon Design Guidelines</a> for recommendations on
126 <li>Icon: 48 x 48 px</li>
127 <li>Square Icon: 44 x 44 px</li>
142 <li>Icon: 32 x 32 px</li>
143 <li>Square Icon: 30 x 30 px</li>
159 <li>Icon: 24 x 24 px</li>
160 <li>Square Icon: 22 x 22 px</li>
[all …]
Dicon_design_dialog.jd3 parent.title=Icon Design Guidelines
44 Density-Specific Icon Sets</a>, you should create separate icon sets for low-,
78 Dialog Icon Size
100 href="{@docRoot}guide/practices/ui_guidelines/icon_design.html#templatespack">Icon
131 Icon size is 32x32.</p>
Dicon_design_list.jd3 parent.title=Icon Design Guidelines
46 Density-Specific Icon Sets</a>, you should create separate icon sets for low-,
80 List View Icon Size
102 href="{@docRoot}guide/practices/ui_guidelines/icon_design.html#templatespack">Icon
131 icons. Icon size is 32x32.</p>
Dicon_design_launcher_archive.jd3 parent.title=Icon Design Guidelines
52 Density-Specific Icon Sets</a>, you should create separate icons for low-,
181 <li>Icon: 60 x 60 px</li>
182 <li>Square Icon: 56 x 56 px</li>
197 <li>Icon: 40 x 40 px</li>
198 <li>Square Icon: 38 x 38 px</li>
214 <li>Icon: 30 x 30 px</li>
215 <li>Square Icon: 28 x 28 px</li>
268 <a href="{@docRoot}guide/practices/ui_guidelines/icon_design.html#templatespack">Icon Templates Pac…
405 href="{@docRoot}guide/practices/ui_guidelines/icon_design.html#templatespack">Icon
[all …]
Dicon_design_tab.jd3 parent.title=Icon Design Guidelines
48 Density-Specific Icon Sets</a>, you should create separate icon sets for low-,
58 href="{@docRoot}guide/practices/ui_guidelines/icon_design.html#templatespack">Icon
172 <li>Icon: 42 x 42 px</li>
187 <li>Icon: 28 x 28 px</li>
203 <li>Icon: 22 x 22 px</li>
339 icons. Icon size is 32x32.</p>
351 selected state. Icon size is 32x32.</p>
Dicon_design_action_bar.jd3 parent.title=Icon Design Guidelines
47 Icon Sets</a> and <a href="{@docRoot}guide/practices/screens_support.html">Supporting Multiple
58 href="{@docRoot}guide/practices/ui_guidelines/icon_design.html#templatespack">Icon
101 Action Bar Icon Size
Dicon_design_status_bar.jd3 parent.title=Icon Design Guidelines
57 Icon Sets</a> and <a href="{@docRoot}guide/practices/screens_support.html">Supporting Multiple
65 href="{@docRoot}guide/practices/ui_guidelines/icon_design.html#templatespack">Icon
160 Status Bar Icon Size<br><small>(Android 3.0 and Later)</small>
282 <li>Icon: 24w x 24h px (preferred, width may vary)</li>
297 <li>Icon: 16w x 16w px (preferred, width may vary)</li>
313 <li>Icon: 12w x 12h px (preferred, width may vary)</li>
417 in the Icon Templates Pack.</li>
429 icons. Icon size is 25x25.</p>
/frameworks/base/core/java/com/android/internal/util/
DNotificationColorUtil.java27 import android.graphics.drawable.Icon;
133 public boolean isGrayscaleIcon(Context context, Icon icon) { in isGrayscaleIcon()
138 case Icon.TYPE_BITMAP: in isGrayscaleIcon()
140 case Icon.TYPE_RESOURCE: in isGrayscaleIcon()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSTile.java344 public static abstract class Icon { class in QSTile
349 return Icon.class.hashCode(); in hashCode()
353 public static class ResourceIcon extends Icon {
354 private static final SparseArray<Icon> ICONS = new SparseArray<Icon>();
362 public static Icon get(int resId) { in get()
363 Icon icon = ICONS.get(resId); in get()
432 public Icon icon;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DStatusBarIconView.java26 import android.graphics.drawable.Icon;
111 public boolean equalIcons(Icon a, Icon b) { in equalIcons()
115 case Icon.TYPE_RESOURCE: in equalIcons()
117 case Icon.TYPE_URI: in equalIcons()
/frameworks/base/core/java/android/app/
DNotification.java33 import android.graphics.drawable.Icon;
894 private Icon mSmallIcon;
895 private Icon mLargeIcon;
908 private Icon mIcon;
932 mIcon = Icon.CREATOR.createFromParcel(in); in Action()
933 if (mIcon.getType() == Icon.TYPE_RESOURCE) { in Action()
950 this(Icon.createWithResource("", icon), title, intent, new Bundle(), null); in Action()
953 private Action(Icon icon, CharSequence title, PendingIntent intent, Bundle extras, in Action()
965 public Icon getIcon() { in getIcon()
968 mIcon = Icon.createWithResource("", icon); in getIcon()
[all …]
/frameworks/base/core/java/android/widget/
DRemoteViews.java38 import android.graphics.drawable.Icon;
1157 this.value = Icon.CREATOR.createFromParcel(in); in ReflectionAction()
1238 ((Icon)this.value).writeToParcel(out, flags); in writeToParcel()
1279 return Icon.class; in getParameterType()
1423 Icon i1, Icon i2, Icon i3, Icon i4) { in TextViewDrawableAction()
1439 i1 = Icon.CREATOR.createFromParcel(parcel); in TextViewDrawableAction()
1442 i2 = Icon.CREATOR.createFromParcel(parcel); in TextViewDrawableAction()
1445 i3 = Icon.CREATOR.createFromParcel(parcel); in TextViewDrawableAction()
1448 i4 = Icon.CREATOR.createFromParcel(parcel); in TextViewDrawableAction()
1527 Icon i1, i2, i3, i4;
[all …]
/frameworks/base/core/java/android/service/notification/
DNotificationListenerService.java32 import android.graphics.drawable.Icon;
663 Icon smallIcon = n.getSmallIcon(); in createLegacyIconExtras()
664 Icon largeIcon = n.getLargeIcon(); in createLegacyIconExtras()
665 if (smallIcon != null && smallIcon.getType() == Icon.TYPE_RESOURCE) { in createLegacyIconExtras()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationRecord.java23 import android.graphics.drawable.Icon;
119 final Icon icon = notification.getSmallIcon(); in dump()
121 if (icon != null && icon.getType() == Icon.TYPE_RESOURCE) { in dump()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DDemoStatusIcons.java19 import android.graphics.drawable.Icon;
139 icon.icon = Icon.createWithResource(icon.icon.getResPackage(), iconId); in updateSlot()
/frameworks/base/media/java/android/media/tv/
DTvInputInfo.java32 import android.graphics.drawable.Icon;
132 private Icon mIcon;
207 HdmiDeviceInfo hdmiDeviceInfo, String parentId, int labelRes, Icon icon) in createTvInputInfo()
255 TvInputHardwareInfo hardwareInfo, int labelRes, Icon icon) in createTvInputInfo()
265 Icon icon, Uri iconUri, boolean isConnectedToHdmiSwitch) in createTvInputInfo()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DIntentTile.java169 private static class BytesIcon extends Icon {
193 private class PackageDrawableIcon extends Icon {

123