Home
last modified time | relevance | path

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

12345678910>>...21

/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DIconUtils.java41 int icon;
44 icon = R.drawable.ic_doc_apk;
45 add("application/vnd.android.package-archive", icon);
48 icon = R.drawable.ic_doc_audio;
49 add("application/ogg", icon);
50 add("application/x-flac", icon);
53 icon = R.drawable.ic_doc_certificate;
54 add("application/pgp-keys", icon);
55 add("application/pgp-signature", icon);
56 add("application/x-pkcs12", icon);
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DCommandParams.java36 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()
81 boolean setIcon(Bitmap icon) { in setIcon() argument
82 if (icon != null && mConfirmMsg != null) { in setIcon()
83 mConfirmMsg.icon = icon; in setIcon()
115 boolean setIcon(Bitmap icon) { in setIcon() argument
116 if (icon != null && mTextMsg != null) { in setIcon()
117 mTextMsg.icon = icon; in setIcon()
[all …]
DItem.java34 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/
DUserIcons.java47 public static Bitmap convertToBitmap(Drawable icon) { in convertToBitmap() argument
48 if (icon == null) { in convertToBitmap()
51 final int width = icon.getIntrinsicWidth(); in convertToBitmap()
52 final int height = icon.getIntrinsicHeight(); in convertToBitmap()
55 icon.setBounds(0, 0, width, height); in convertToBitmap()
56 icon.draw(canvas); in convertToBitmap()
73 … Drawable icon = Resources.getSystem().getDrawable(R.drawable.ic_account_circle, null).mutate(); in getDefaultUserIcon() local
74 icon.setColorFilter(Resources.getSystem().getColor(colorResId, null), Mode.SRC_IN); in getDefaultUserIcon()
75 icon.setBounds(0, 0, icon.getIntrinsicWidth(), icon.getIntrinsicHeight()); in getDefaultUserIcon()
76 return icon; in getDefaultUserIcon()
/frameworks/base/core/java/com/android/internal/statusbar/
DStatusBarIcon.java28 public Icon icon; field in StatusBarIcon
34 public StatusBarIcon(UserHandle user, String resPackage, Icon icon, int iconLevel, int number, in StatusBarIcon() argument
36 if (icon.getType() == Icon.TYPE_RESOURCE in StatusBarIcon()
37 && TextUtils.isEmpty(icon.getResPackage())) { in StatusBarIcon()
41 icon = Icon.createWithResource(resPackage, icon.getResId()); in StatusBarIcon()
45 this.icon = icon; in StatusBarIcon()
60 return "StatusBarIcon(icon=" + icon in toString()
70 StatusBarIcon that = new StatusBarIcon(this.user, this.pkg, this.icon, in clone()
84 this.icon = (Icon) in.readParcelable(null); in readFromParcel()
94 out.writeParcelable(this.icon, 0); in writeToParcel()
/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 …]
DLauncherActivityInfo.java110 Drawable icon = getDrawableForDensity(iconRes, density); in getIcon() local
112 if (icon == null) { in getIcon()
113 icon = mResolveInfo.loadIcon(mPm); in getIcon()
115 return icon; in getIcon()
129 Drawable icon = getDrawableForDensity(iconRes, density); in getOriginalIcon() local
131 if (icon == null) { in getOriginalIcon()
132 icon = mResolveInfo.loadIcon(mPm); in getOriginalIcon()
134 return icon; in getOriginalIcon()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DStatusBarIconView.java126 public boolean set(StatusBarIcon icon) { in set() argument
127 final boolean iconEquals = mIcon != null && equalIcons(mIcon.icon, icon.icon); in set()
129 && mIcon.iconLevel == icon.iconLevel; in set()
131 && mIcon.visible == icon.visible; in set()
133 && mIcon.number == icon.number; in set()
134 mIcon = icon.clone(); in set()
135 setContentDescription(icon.contentDescription); in set()
140 setImageLevel(icon.iconLevel); in set()
144 if (icon.number > 0 && getContext().getResources().getBoolean( in set()
158 setVisibility(icon.visible && !mBlocked ? VISIBLE : GONE); in set()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DNetworkController.java47 void setEthernetIndicators(IconState icon); in setEthernetIndicators() argument
49 void setIsAirplaneMode(IconState icon); in setIsAirplaneMode() argument
56 public final int icon; field in NetworkController.IconState
59 public IconState(boolean visible, int icon, String contentDescription) { in IconState() argument
61 this.icon = icon; in IconState()
65 public IconState(boolean visible, int icon, int contentDescription, in IconState() argument
67 this(visible, icon, context.getString(contentDescription)); in IconState()
/frameworks/base/libs/input/
DSpriteController.cpp140 update.state.surfaceWidth = update.state.icon.bitmap.width(); in doUpdateSprites()
141 update.state.surfaceHeight = update.state.icon.bitmap.height(); in doUpdateSprites()
158 int32_t desiredWidth = update.state.icon.bitmap.width(); in doUpdateSprites()
159 int32_t desiredHeight = update.state.icon.bitmap.height(); in doUpdateSprites()
220 surfaceCanvas.drawBitmap(update.state.icon.bitmap, 0, 0, &paint); in doUpdateSprites()
222 if (outBuffer.width > update.state.icon.bitmap.width()) { in doUpdateSprites()
224 surfaceCanvas.drawRectCoords(update.state.icon.bitmap.width(), 0, in doUpdateSprites()
225 outBuffer.width, update.state.icon.bitmap.height(), paint); in doUpdateSprites()
227 if (outBuffer.height > update.state.icon.bitmap.height()) { in doUpdateSprites()
229 surfaceCanvas.drawRectCoords(0, update.state.icon.bitmap.height(), in doUpdateSprites()
[all …]
/frameworks/base/core/java/android/view/
DPointerIcon.java140 PointerIcon icon = new PointerIcon(style); in getSystemIcon() local
142 icon.mSystemIconResourceId = resourceId; in getSystemIcon()
144 icon.loadResource(context, context.getResources(), resourceId); in getSystemIcon()
146 return icon; in getSystemIcon()
168 PointerIcon icon = new PointerIcon(STYLE_CUSTOM); in createCustomIcon() local
169 icon.mBitmap = bitmap; in createCustomIcon()
170 icon.mHotSpotX = hotSpotX; in createCustomIcon()
171 icon.mHotSpotY = hotSpotY; in createCustomIcon()
172 return icon; in createCustomIcon()
201 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 …]
/frameworks/base/services/core/java/com/android/server/policy/
DIconUtilities.java105 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/
DCondition.java49 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/packages/SystemUI/docs/
Ddemo_mode.md2 …reenshots with a consistent status bar state, or testing different status icon permutations. Demo …
33 … | ```airplane``` | | ```show``` to show icon, any other value to hide
35 … | ```wifi``` | | ```show``` to show icon, any other value to hide
37 … | ```mobile``` | | ```show``` to show icon, any other value to hide
40 …| | Sets mobile signal icon to carrier network change UX when disconnected (```show…
42 … | ```nosim``` | | ```show``` to show icon, any other value to hide
46 …| ```volume``` | | Sets the icon in the volume slot (```silent```, ``…
47 …| ```bluetooth``` | | Sets the icon in the bluetooth slot (```connected`…
48 …| ```location``` | | Sets the icon in the location slot (```show```, an…
49 …| ```alarm``` | | Sets the icon in the alarm_clock slot (```show```,…
[all …]
/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/
DAnimatedVectorDrawableDupPerf.java40 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()
DVectorDrawablePerformance.java37 protected int[] icon = { field in VectorDrawablePerformance
108 VectorDrawable []d = new VectorDrawable[icon.length]; in onCreate()
110 for (int i = 0; i < icon.length; i++) { in onCreate()
111 d[i] = create(res,icon[i]); in onCreate()
116 t.setText("avgL=" + df.format(time / (icon.length * 1000000.)) + " ms"); in onCreate()
119 for (int i = 0; i < icon.length; i++) { in onCreate()
122 button.setBackgroundResource(icon[i]); in onCreate()
128 t.setText("avgS=" + df.format(time / (icon.length * 1000000.)) + " ms"); in onCreate()
DVectorDrawable01.java27 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/support/design/src/android/support/design/internal/
DNavigationMenuItemView.java112 public void setIcon(Drawable icon) { in setIcon() argument
113 if (icon != null) { in setIcon()
114 icon = DrawableCompat.wrap(icon.getConstantState().newDrawable()).mutate(); in setIcon()
115 icon.setBounds(0, 0, mIconSize, mIconSize); in setIcon()
116 DrawableCompat.setTintList(icon, mIconTintList); in setIcon()
118 TextViewCompat.setCompoundDrawablesRelative(this, icon, null, null, null); in setIcon()
/frameworks/base/docs/html/guide/practices/ui_guidelines/
Dicon_design_launcher.jd39 <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 …]
/frameworks/base/core/java/com/android/internal/view/menu/
DIconMenuItemView.java97 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/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DDemoStatusIcons.java138 StatusBarIcon icon = v.getStatusBarIcon(); in updateSlot() local
139 icon.icon = Icon.createWithResource(icon.icon.getResPackage(), iconId); in updateSlot()
140 v.set(icon); in updateSlot()
152 StatusBarIcon icon = new StatusBarIcon(iconPkg, UserHandle.OWNER, iconId, 0, 0, "Demo"); in updateSlot() local
155 v.set(icon); in updateSlot()
DLockIcon.java114 Drawable icon = mContext.getDrawable(iconRes); in update() local
115 final AnimatedVectorDrawable animation = icon instanceof AnimatedVectorDrawable in update()
116 ? (AnimatedVectorDrawable) icon in update()
122 if (!anyFingerprintIcon && (icon.getIntrinsicHeight() != iconHeight in update()
123 || icon.getIntrinsicWidth() != iconWidth)) { in update()
124 icon = new IntrinsicSizeDrawable(icon, iconWidth, iconHeight); in update()
132 setImageDrawable(icon); in update()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/model/
DRootInfo.java50 public int icon; field in RootInfo
70 icon = 0; in reset()
89 icon = in.readInt(); in read()
108 out.writeInt(icon); in write()
145 root.icon = getCursorInt(cursor, Root.COLUMN_ICON); in fromRootsCursor()
208 return IconUtils.loadPackageIcon(context, authority, icon); in loadIcon()
216 return IconUtils.loadPackageIcon(context, authority, icon); in loadDrawerIcon()
225 return IconUtils.loadPackageIcon(context, authority, icon); in loadGridIcon()
234 return IconUtils.loadPackageIcon(context, authority, icon); in loadToolbarIcon()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DRotationLockTile.java82 final AnimationIcon icon; in handleUpdateState() local
87 icon = portrait ? mAutoToPortrait : mAutoToLandscape; in handleUpdateState()
90 icon = portrait ? mPortraitToAuto : mLandscapeToAuto; in handleUpdateState()
92 icon.setAllowAnimation(userInitiated); in handleUpdateState()
93 state.icon = icon; in handleUpdateState()

12345678910>>...21