Lines Matching defs:icon
25 * A special subclass of Intent that can have a custom label/icon
36 * and icon resources for it.
39 * @param sourcePackage The package in which the label and icon live.
41 * @param icon Resource containing the icon, or 0 if none.
44 int labelRes, int icon) {
49 mIcon = icon;
54 * label and icon resource for it.
57 * @param sourcePackage The package in which the label and icon live.
59 * @param icon Resource containing the icon, or 0 if none.
62 CharSequence nonLocalizedLabel, int icon) {
67 mIcon = icon;
72 * and icon resources for it.
74 * @param sourcePackage The package in which the label and icon live.
76 * @param icon Resource containing the icon, or 0 if none.
78 public LabeledIntent(String sourcePackage, int labelRes, int icon) {
82 mIcon = icon;
87 * label and icon resource for it.
89 * @param sourcePackage The package in which the label and icon live.
91 * @param icon Resource containing the icon, or 0 if none.
94 CharSequence nonLocalizedLabel, int icon) {
98 mIcon = icon;
102 * Return the name of the package holding label and icon resources.
123 * Return any resource identifier that has been given for the label icon.
148 * Retrieve the icon associated with this object. If the object does
149 * not have a icon, null will be returned, in which case you will probably
150 * want to load the icon from the underlying resolved info for the Intent.
154 Drawable icon = pm.getDrawable(mSourcePackage, mIcon, null);
155 if (icon != null) {
156 return icon;