Home
last modified time | relevance | path

Searched refs:icon (Results 1 – 25 of 222) sorted by relevance

123456789

/frameworks/base/telephony/java/com/android/internal/telephony/cat/
DCommandParams.java36 boolean setIcon(Bitmap icon) { return true; } in setIcon() argument
47 boolean setIcon(Bitmap icon) { in setIcon() argument
48 if (icon != null && textMsg != null) { in setIcon()
49 textMsg.icon = icon; in setIcon()
69 boolean setIcon(Bitmap icon) { in setIcon() argument
70 if (icon != null && confirmMsg != null) { in setIcon()
71 confirmMsg.icon = icon; in setIcon()
89 boolean setIcon(Bitmap icon) { in setIcon() argument
90 if (icon != null && textMsg != null) { in setIcon()
91 textMsg.icon = icon; in setIcon()
[all …]
DItem.java34 public Bitmap icon; field in Item
39 this.icon = null; in Item()
45 icon = in.readParcelable(null); in Item()
55 dest.writeParcelable(icon, flags); in writeToParcel()
DInput.java30 public Bitmap icon; field in Input
44 icon = null; in Input()
59 icon = in.readParcelable(null); in Input()
78 dest.writeParcelable(icon, 0); in writeToParcel()
DTextMessage.java26 public Bitmap icon = null; field in TextMessage
39 icon = in.readParcelable(null); in TextMessage()
54 dest.writeParcelable(icon, 0); in writeToParcel()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DStatusBarIconView.java94 public boolean set(StatusBarIcon icon) { in set() argument
96 && streq(mIcon.iconPackage, icon.iconPackage) in set()
97 && mIcon.iconId == icon.iconId; in set()
99 && mIcon.iconLevel == icon.iconLevel; in set()
101 && mIcon.visible == icon.visible; in set()
103 && mIcon.number == icon.number; in set()
104 mIcon = icon.clone(); in set()
105 setContentDescription(icon.contentDescription); in set()
107 Drawable drawable = getIcon(icon); in set()
115 setImageLevel(icon.iconLevel); in set()
[all …]
DCommandQueue.java78 public void addIcon(String slot, int index, int viewIndex, StatusBarIcon icon); in addIcon() argument
80 StatusBarIcon old, StatusBarIcon icon); in updateIcon() argument
100 public void setIcon(int index, StatusBarIcon icon) { in setIcon() argument
104 mHandler.obtainMessage(what, OP_SET_ICON, 0, icon.clone()).sendToTarget(); in setIcon()
208 StatusBarIcon icon = (StatusBarIcon)msg.obj; in handleMessage() local
211 mList.setIcon(index, icon); in handleMessage()
212 mCallbacks.addIcon(mList.getSlot(index), index, viewIndex, icon); in handleMessage() local
214 mList.setIcon(index, icon); in handleMessage()
216 old, icon); in handleMessage() local
DNotificationData.java36 public StatusBarIconView icon; field in NotificationData.Entry
45 this.icon = ic; in Entry()
90 View expanded, StatusBarIconView icon) { in add() argument
97 entry.icon = icon; in add()
/frameworks/base/core/java/android/content/pm/
DLabeledIntent.java44 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 …]
DPackageItemInfo.java67 public int icon; field in PackageItemInfo
94 icon = orig.icon; in PackageItemInfo()
139 if (icon != 0) { in loadIcon()
140 Drawable dr = pm.getDrawable(packageName, icon, getApplicationInfo()); in loadIcon()
227 if (labelRes != 0 || nonLocalizedLabel != null || icon != 0) { in dumpFront()
230 + " icon=0x" + Integer.toHexString(icon)); in dumpFront()
243 dest.writeInt(icon); in writeToParcel()
254 icon = source.readInt(); in PackageItemInfo()
DResolveInfo.java108 public int icon; field in ResolveInfo
172 if (resolvePackageName != null && icon != 0) { in loadIcon()
173 dr = pm.getDrawable(resolvePackageName, icon, null); in loadIcon()
180 if (icon != 0) { in loadIcon()
181 dr = pm.getDrawable(ci.packageName, icon, ai); in loadIcon()
197 if (icon != 0) return icon; in getIconResource()
216 if (labelRes != 0 || nonLocalizedLabel != null || icon != 0) { in dump()
219 + " icon=0x" + Integer.toHexString(icon)); in dump()
267 dest.writeInt(icon); in writeToParcel()
307 icon = source.readInt(); in ResolveInfo()
/frameworks/base/services/input/
DSpriteController.cpp134 update.state.surfaceWidth = update.state.icon.bitmap.width(); in doUpdateSprites()
135 update.state.surfaceHeight = update.state.icon.bitmap.height(); in doUpdateSprites()
152 int32_t desiredWidth = update.state.icon.bitmap.width(); in doUpdateSprites()
153 int32_t desiredHeight = update.state.icon.bitmap.height(); in doUpdateSprites()
216 surfaceCanvas.drawBitmap(update.state.icon.bitmap, 0, 0, &paint); in doUpdateSprites()
218 if (surfaceInfo.w > uint32_t(update.state.icon.bitmap.width())) { in doUpdateSprites()
220 surfaceCanvas.drawRectCoords(update.state.icon.bitmap.width(), 0, in doUpdateSprites()
221 surfaceInfo.w, update.state.icon.bitmap.height(), paint); in doUpdateSprites()
223 if (surfaceInfo.h > uint32_t(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/
DPointerIcon.java139 PointerIcon icon = new PointerIcon(style); in getSystemIcon() local
141 icon.mSystemIconResourceId = resourceId; in getSystemIcon()
143 icon.loadResource(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/
DLauncherActivity.java68 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 …]
DNotification.java91 public int icon; field in Notification
322 public Notification(Context context, int icon, CharSequence tickerText, long when, in Notification() argument
326 this.icon = icon; in Notification()
345 public Notification(int icon, CharSequence tickerText, long when) in Notification() argument
347 this.icon = icon; in Notification()
360 icon = parcel.readInt(); in Notification()
403 that.icon = this.icon; in clone()
456 parcel.writeInt(icon); in writeToParcel()
559 if (this.icon != 0) { in setLatestEventInfo()
560 contentView.setImageViewResource(R.id.icon, this.icon); in setLatestEventInfo()
[all …]
/frameworks/base/policy/src/com/android/internal/policy/impl/
DIconUtilities.java108 private Bitmap createIconBitmap(Drawable icon) { in createIconBitmap() argument
112 if (icon instanceof PaintDrawable) { in createIconBitmap()
113 PaintDrawable painter = (PaintDrawable) icon; in createIconBitmap()
116 } else if (icon instanceof BitmapDrawable) { in createIconBitmap()
118 BitmapDrawable bitmapDrawable = (BitmapDrawable) icon; in createIconBitmap()
124 int sourceWidth = icon.getIntrinsicWidth(); in createIconBitmap()
125 int sourceHeight = icon.getIntrinsicHeight(); in createIconBitmap()
165 mOldBounds.set(icon.getBounds()); in createIconBitmap()
166 icon.setBounds(left, top, left+width, top+height); in createIconBitmap()
167 icon.draw(canvas); in createIconBitmap()
[all …]
DKeyguardStatusViewManager.java111 final int icon; field in KeyguardStatusViewManager.TransientTextManager.Data
115 icon = i; in Data()
128 void post(final CharSequence message, final int icon, long duration) { in post() argument
133 mTextView.setCompoundDrawablesWithIntrinsicBounds(icon, 0, 0, 0); in post()
134 final Data data = new Data(message, icon); in post()
144 lastIcon = oldData.icon; in post()
337 MutableInt icon = new MutableInt(0); in updateStatus1() local
338 CharSequence string = getPriorityTextMessage(icon); in updateStatus1()
340 mStatus1View.setCompoundDrawablesWithIntrinsicBounds(icon.value, 0, 0, 0); in updateStatus1()
351 private CharSequence getAltTextMessage(MutableInt icon) { in getAltTextMessage() argument
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tablet/
DShirtPocket.java143 Bitmap icon = mClipping.getIcon(); in stash() local
145 if (icon != null) { in stash()
146 setImageBitmap(icon); in stash()
164 final Bitmap icon = clip.getIcon(); in onTouchEvent() local
166 if (icon != null) { in onTouchEvent()
169 shadowSize.set(icon.getWidth(), icon.getHeight()); in onTouchEvent()
173 canvas.drawBitmap(icon, 0, 0, new Paint()); in onTouchEvent()
/frameworks/base/core/java/com/android/internal/view/menu/
DIconMenuItemView.java94 void initialize(CharSequence title, Drawable icon) { in initialize() argument
103 setIcon(icon); in initialize()
174 public void setIcon(Drawable icon) { in setIcon() argument
175 mIcon = icon; in setIcon()
177 if (icon != null) { in setIcon()
180 icon.setBounds(0, 0, icon.getIntrinsicWidth(), icon.getIntrinsicHeight()); in setIcon()
183 setCompoundDrawables(null, icon, null, null); in setIcon()
DSubMenuBuilder.java85 public SubMenu setIcon(Drawable icon) { in setIcon() argument
86 mItem.setIcon(icon); in setIcon()
95 public SubMenu setHeaderIcon(Drawable icon) { in setHeaderIcon() argument
96 return (SubMenu) super.setHeaderIconInt(icon); in setHeaderIcon()
/frameworks/base/docs/html/guide/practices/ui_guidelines/
Dicon_design_launcher.jd29 <p>A launcher icon is a graphic that represents your application. Launcher icons are used by
31 represent shortcuts into your application (for example, a contact shortcut icon that opens detail
35 href="{@docRoot}guide/practices/ui_guidelines/icon_design.html#icon-sets">Providing Density-Specific
43 <p>A high-resolution version of your application launcher icon is also required by Android Market
50 The launcher icon guidelines pertaining to all versions of Android have been re-written. If you
52 <a href="icon_design_launcher_archive.html">launcher icon guidelines archive</a>.
85 <li>Create an icon that is unique and memorable.</li>
87 <li>Don't try to communicate too much with the icon. A simple icon will have more impact and be
89 <li>Avoid including the application name in the icon. The app name will always be displayed
90 adjacent to the icon.</li>
[all …]
Dicon_design_launcher_archive.jd38 launcher icon guidelines</a> instead.
41 <p>A Launcher icon is a graphic that represents your application on the device's
44 <p>The user opens the Launcher by touching the icon at the bottom of the Home
47 Launcher icon or by means of any hardware navigation controls available, such as
50 <p>As described in <a href="icon_design.html#icon-sets">Providing
63 pixel, high-resolution application icon in the <a
65 This icon will be used in various locations in Android Market and does
66 not replace your launcher icon.</p>
119 representation of the whole (for example, the Music icon features a speaker).
143 embedding text in your icon and instead focus on designing a distinct and
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DTicker.java58 Drawable icon; field in Ticker.Segment
133 Segment(StatusBarNotification n, Drawable icon, CharSequence text) { in Segment() argument
135 this.icon = icon; in Segment()
186 && n.notification.icon == seg.notification.notification.icon in addEntry()
194 final Drawable icon = StatusBarIconView.getIcon(mContext, in addEntry() local
195 new StatusBarIcon(n.pkg, n.notification.icon, n.notification.iconLevel, 0, in addEntry()
197 final Segment newSegment = new Segment(n, icon, n.notification.tickerText); in addEntry()
216 mIconSwitcher.setImageDrawable(seg.icon); in addEntry()
259 mIconSwitcher.setImageDrawable(seg.icon);
/frameworks/base/services/java/com/android/server/am/
DLaunchWarningWindow.java45 ImageView icon = (ImageView)findViewById(R.id.replace_app_icon); in LaunchWarningWindow() local
46 icon.setImageDrawable(next.info.applicationInfo.loadIcon(context.getPackageManager())); in LaunchWarningWindow()
50 icon = (ImageView)findViewById(R.id.original_app_icon); in LaunchWarningWindow()
51 icon.setImageDrawable(cur.info.applicationInfo.loadIcon(context.getPackageManager())); in LaunchWarningWindow()
/frameworks/base/core/java/android/accounts/
DChooseAccountActivity.java98 Drawable icon = null; in getDrawableForType() local
103 icon = authContext.getResources().getDrawable(desc.iconId); in getDrawableForType()
116 return icon; in getDrawableForType()
151 ImageView icon; field in ChooseAccountActivity.ViewHolder
174 holder.icon = (ImageView) convertView.findViewById(R.id.account_row_icon); in getView()
181 holder.icon.setImageDrawable(mInfos[position].drawable); in getView()
/frameworks/base/core/java/android/webkit/
DWebIconDatabase.java67 IconResult(String url, Bitmap icon, IconListener l) { in IconResult() argument
69 mIcon = icon; in IconResult()
174 Bitmap icon = nativeIconForPageUrl(url); in requestIconAndSendResult() local
175 if (icon != null) { in requestIconAndSendResult()
177 new IconResult(url, icon, listener))); in requestIconAndSendResult()
192 public void onReceivedIcon(String url, Bitmap icon); in onReceivedIcon() argument

123456789