/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
D | IconUtils.java | 39 int icon; 42 icon = R.drawable.ic_doc_apk; 43 add("application/vnd.android.package-archive", icon); 46 icon = R.drawable.ic_doc_audio; 47 add("application/ogg", icon); 48 add("application/x-flac", icon); 51 icon = R.drawable.ic_doc_certificate; 52 add("application/pgp-keys", icon); 53 add("application/pgp-signature", icon); 54 add("application/x-pkcs12", icon); [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
D | CommandParams.java | 38 boolean setIcon(Bitmap icon) { return true; } in setIcon() argument 55 boolean setIcon(Bitmap icon) { in setIcon() argument 56 if (icon != null && mTextMsg != null) { in setIcon() 57 mTextMsg.icon = icon; in setIcon() 83 boolean setIcon(Bitmap icon) { in setIcon() argument 84 if (icon != null && mConfirmMsg != null) { in setIcon() 85 mConfirmMsg.icon = icon; in setIcon() 117 boolean setIcon(Bitmap icon) { in setIcon() argument 118 if (icon != null && mTextMsg != null) { in setIcon() 119 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 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/ |
D | StatusBarIcon.java | 28 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/ |
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 …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | QSIconView.java | 79 if (!Objects.equals(state.icon, iv.getTag(R.id.qs_icon_tag))) { in setIcon() 80 Drawable d = state.icon != null in setIcon() 81 ? iv.isShown() && mAnimationEnabled ? state.icon.getDrawable(mContext) in setIcon() 82 : state.icon.getInvisibleDrawable(mContext) : null; in setIcon() 83 int padding = state.icon != null ? state.icon.getPadding() : 0; in setIcon() 88 iv.setTag(R.id.qs_icon_tag, state.icon); in setIcon() 110 final ImageView icon = new ImageView(mContext); in createIcon() local 111 icon.setId(android.R.id.icon); in createIcon() 112 icon.setScaleType(ScaleType.FIT_CENTER); in createIcon() 113 return icon; in createIcon()
|
/frameworks/base/libs/input/ |
D | SpriteController.cpp | 140 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/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | NetworkController.java | 53 void setEthernetIndicators(IconState icon); in setEthernetIndicators() argument 55 void setIsAirplaneMode(IconState icon); in setIsAirplaneMode() argument 66 public final int icon; field in NetworkController.IconState 69 public IconState(boolean visible, int icon, String contentDescription) { in IconState() argument 71 this.icon = icon; in IconState() 75 public IconState(boolean visible, int icon, int contentDescription, in IconState() argument 77 this(visible, icon, context.getString(contentDescription)); in IconState()
|
/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/core/java/android/view/ |
D | PointerIcon.java | 202 PointerIcon icon = gSystemIcons.get(type); in getSystemIcon() local 203 if (icon != null) { in getSystemIcon() 204 return icon; in getSystemIcon() 225 icon = new PointerIcon(type); in getSystemIcon() 227 icon.mSystemIconResourceId = resourceId; in getSystemIcon() 229 icon.loadResource(context, context.getResources(), resourceId); in getSystemIcon() 231 gSystemIcons.append(type, icon); in getSystemIcon() 232 return icon; in getSystemIcon() 263 PointerIcon icon = new PointerIcon(TYPE_CUSTOM); in create() local 264 icon.mBitmap = bitmap; in create() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | StatusBarIconView.java | 146 public boolean set(StatusBarIcon icon) { in set() argument 147 final boolean iconEquals = mIcon != null && equalIcons(mIcon.icon, icon.icon); in set() 149 && mIcon.iconLevel == icon.iconLevel; in set() 151 && mIcon.visible == icon.visible; in set() 153 && mIcon.number == icon.number; in set() 154 mIcon = icon.clone(); in set() 155 setContentDescription(icon.contentDescription); in set() 160 setImageLevel(icon.iconLevel); in set() 164 if (icon.number > 0 && getContext().getResources().getBoolean( in set() 178 setVisibility(icon.visible && !mBlocked ? VISIBLE : GONE); in set() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | StatusBarIconController.java | 205 private void addSystemIcon(int index, StatusBarIcon icon) { in addSystemIcon() argument 210 view.set(icon); in addSystemIcon() 218 view.set(icon); in addSystemIcon() 226 StatusBarIcon icon = getIcon(index); in setIcon() local 227 if (icon == null) { in setIcon() 228 icon = new StatusBarIcon(UserHandle.SYSTEM, mContext.getPackageName(), in setIcon() 230 setIcon(slot, icon); in setIcon() 232 icon.icon = Icon.createWithResource(mContext, resourceId); in setIcon() 233 icon.contentDescription = contentDescription; in setIcon() 234 handleSet(index, icon); in setIcon() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/ |
D | SettingsDrawerAdapter.java | 47 tile.icon = Icon.createWithResource(mActivity, R.drawable.home); in updateCategories() 51 category.icon = null; in updateCategories() 59 tile.icon = dashboardTile.icon; in updateCategories() 88 return mItems.get(position) != null && mItems.get(position).icon != null; in isEnabled() 104 boolean isTile = item.icon != null; in getView() 111 ((ImageView) convertView.findViewById(android.R.id.icon)).setImageIcon(item.icon); in getView() 118 public Icon icon; field in SettingsDrawerAdapter.Item
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | IconUtilities.java | 105 public 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/packages/SystemUI/docs/ |
D | demo_mode.md | 2 …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/packages/SystemUI/src/com/android/systemui/recents/model/ |
D | RecentsTaskLoader.java | 299 Bitmap icon = Bitmap.createBitmap(1, 1, Bitmap.Config.ALPHA_8); in RecentsTaskLoader() local 300 icon.eraseColor(0); in RecentsTaskLoader() 304 mDefaultIcon = new BitmapDrawable(context.getResources(), icon); in RecentsTaskLoader() 361 Drawable icon = mIconCache.getAndInvalidateIfModified(t.key); in loadTaskData() local 372 boolean requiresLoad = (icon == null) || (thumbnail == null); in loadTaskData() 373 icon = icon != null ? icon : mDefaultIcon; in loadTaskData() 377 t.notifyTaskDataLoaded(thumbnail == mDefaultThumbnail ? null : thumbnail, icon, in loadTaskData() 511 Drawable icon = mIconCache.getAndInvalidateIfModified(taskKey); in getAndUpdateActivityIcon() local 512 if (icon != null) { in getAndUpdateActivityIcon() 513 return icon; in getAndUpdateActivityIcon() [all …]
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/ |
D | CustomPrinterIconCache.java | 92 Icon icon; in getIcon() local 97 icon = Icon.createFromStream(is); in getIcon() 99 icon = null; in getIcon() 106 icon = null; in getIcon() 109 return icon; in getIcon() 141 @Nullable Icon icon) { in onCustomPrinterIconLoaded() argument 149 icon.writeToStream(os); in onCustomPrinterIconLoaded()
|
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/ |
D | ItemTest.java | 44 Drawable icon = new ShapeDrawable(); in testOnBindView() local 45 icon.setLevel(4); in testOnBindView() 46 item.setIcon(icon); in testOnBindView() 58 assertSame("Icon should be the icon shape drawable", icon, mIconView.getDrawable()); in testOnBindView() 60 assertEquals("Icon should be level 4", 4, icon.getLevel()); in testOnBindView() 82 ShapeDrawable icon = new ShapeDrawable(); in testProperties() local 83 item.setIcon(icon); in testProperties() 90 assertSame("Icon should be same as set", icon, item.getIcon()); in testProperties()
|
/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()
|
/frameworks/base/core/java/android/service/notification/ |
D | Condition.java | 95 public final int icon; field in Condition 107 public Condition(Uri id, String summary, String line1, String line2, int icon, in Condition() argument 116 this.icon = icon; in Condition() 141 dest.writeInt(icon); in writeToParcel() 153 .append(",icon=").append(icon) in toString() 186 && other.icon == icon in equals() 193 return Objects.hash(id, summary, line1, line2, icon, state, flags); in hashCode()
|
/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 …]
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/ |
D | Item.java | 78 public void setIcon(Drawable icon) { in setIcon() argument 79 mIcon = icon; in setIcon() 138 final Drawable icon = getIcon(); in onBindView() local 139 if (icon != null) { in onBindView() 144 iconView.setImageState(icon.getState(), false /* merge */); in onBindView() 145 iconView.setImageLevel(icon.getLevel()); in onBindView() 146 iconView.setImageDrawable(icon); in onBindView()
|
/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/support/design/src/android/support/design/internal/ |
D | NavigationMenuItemView.java | 147 public void setIcon(Drawable icon) { in setIcon() argument 148 if (icon != null) { in setIcon() 149 Drawable.ConstantState state = icon.getConstantState(); in setIcon() 150 icon = DrawableCompat.wrap(state == null ? icon : state.newDrawable()).mutate(); in setIcon() 151 icon.setBounds(0, 0, mIconSize, mIconSize); in setIcon() 152 DrawableCompat.setTintList(icon, mIconTintList); in setIcon() 154 TextViewCompat.setCompoundDrawablesRelative(mTextView, icon, null, null, null); in setIcon()
|