/frameworks/base/core/java/com/android/internal/util/ |
D | MimeIconUtils.java | 38 int icon; 41 icon = R.drawable.ic_doc_apk; 42 add("application/vnd.android.package-archive", icon); 45 icon = R.drawable.ic_doc_audio; 46 add("application/ogg", icon); 47 add("application/x-flac", icon); 50 icon = R.drawable.ic_doc_certificate; 51 add("application/pgp-keys", icon); 52 add("application/pgp-signature", icon); 53 add("application/x-pkcs12", icon); [all …]
|
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/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/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | StatusBarIconControllerImpl.java | 81 StatusBarIcon icon = mIcons.get(i); in addIconGroup() local 82 if (icon != null) { in addIconGroup() 85 group.onIconAdded(getViewIndex(getSlotIndex(slot)), slot, blocked, icon); in addIconGroup() local 118 private void addSystemIcon(int index, StatusBarIcon icon) { in addSystemIcon() argument 123 mIconLogger.onIconVisibility(getSlot(index), icon.visible); in addSystemIcon() 124 mIconGroups.forEach(l -> l.onIconAdded(viewIndex, slot, blocked, icon)); in addSystemIcon() 130 StatusBarIcon icon = getIcon(index); in setIcon() local 131 if (icon == null) { in setIcon() 132 icon = new StatusBarIcon(UserHandle.SYSTEM, mContext.getPackageName(), in setIcon() 134 setIcon(slot, icon); in setIcon() [all …]
|
D | StatusBarIconController.java | 44 public void setIcon(String slot, StatusBarIcon icon); in setIcon() argument 80 StatusBarIcon icon) { in onIconAdded() argument 81 StatusBarIconView v = addIcon(index, slot, blocked, icon); in onIconAdded() 108 public void onSetIcon(int viewIndex, StatusBarIcon icon) { in onSetIcon() argument 109 super.onSetIcon(viewIndex, icon); in onSetIcon() 122 protected void onIconAdded(int index, String slot, boolean blocked, StatusBarIcon icon) { in onIconAdded() argument 123 StatusBarIconView v = addIcon(index, slot, blocked, icon); in onIconAdded() 132 StatusBarIconView icon = (StatusBarIconView) child; in setTint() local 133 icon.setStaticDrawableColor(mColor); in setTint() 155 StatusBarIcon icon) { in onIconAdded() argument [all …]
|
D | NotificationIconContainer.java | 230 if (sourceIcon.sameAs(replacedIcon.icon)) { in isReplacingIcon() 242 final StatusBarIconView icon = (StatusBarIconView) child; in onViewRemoved() local 243 if (icon.getVisibleState() != StatusBarIconView.STATE_HIDDEN in onViewRemoved() 245 int animationStartIndex = findFirstViewIndexAfter(icon.getTranslationX()); in onViewRemoved() 255 addTransientView(icon, 0); in onViewRemoved() 256 icon.setVisibleState(StatusBarIconView.STATE_HIDDEN, true /* animate */, in onViewRemoved() 257 () -> removeTransientView(icon)); in onViewRemoved() 475 public IconState getIconState(StatusBarIconView icon) { in getIconState() argument 476 return mIconStates.get(icon); in getIconState() 549 StatusBarIconView icon = (StatusBarIconView) view; in applyToView() local [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | CachingIconView.java | 53 public void setImageIcon(@Nullable Icon icon) { in setImageIcon() argument 54 if (!testAndSetCache(icon)) { in setImageIcon() 57 super.setImageIcon(icon); in setImageIcon() 63 public Runnable setImageIconAsync(@Nullable Icon icon) { in setImageIconAsync() argument 65 return super.setImageIconAsync(icon); in setImageIconAsync() 123 private synchronized boolean testAndSetCache(Icon icon) { in testAndSetCache() argument 124 if (icon != null && icon.getType() == Icon.TYPE_RESOURCE) { in testAndSetCache() 125 String iconPackage = normalizeIconPackage(icon); in testAndSetCache() 128 && icon.getResId() == mLastResId in testAndSetCache() 132 mLastResId = icon.getResId(); in testAndSetCache() [all …]
|
/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/core/java/android/util/ |
D | IconDrawableFactory.java | 65 Drawable icon = mPm.loadUnbadgedItemIcon(itemInfo, appInfo); in getBadgedIcon() local 67 return icon; in getBadgedIcon() 70 icon = getShadowedIcon(icon); in getBadgedIcon() 74 icon = mLauncherIcons.getBadgedDrawable(icon, in getBadgedIcon() 79 icon = mLauncherIcons.getBadgedDrawable(icon, in getBadgedIcon() 83 return icon; in getBadgedIcon() 89 public Drawable getShadowedIcon(Drawable icon) { in getShadowedIcon() argument 90 return mLauncherIcons.wrapIconDrawableWithShadow(icon); in getShadowedIcon()
|
/frameworks/base/libs/input/ |
D | SpriteController.cpp | 139 update.state.surfaceWidth = update.state.icon.bitmap.width(); in doUpdateSprites() 140 update.state.surfaceHeight = update.state.icon.bitmap.height(); in doUpdateSprites() 157 int32_t desiredWidth = update.state.icon.bitmap.width(); in doUpdateSprites() 158 int32_t desiredHeight = update.state.icon.bitmap.height(); in doUpdateSprites() 219 surfaceCanvas.drawBitmap(update.state.icon.bitmap, 0, 0, &paint); in doUpdateSprites() 221 if (outBuffer.width > update.state.icon.bitmap.width()) { in doUpdateSprites() 223 surfaceCanvas.drawRect(SkRect::MakeLTRB(update.state.icon.bitmap.width(), 0, in doUpdateSprites() 224 outBuffer.width, update.state.icon.bitmap.height()), paint); in doUpdateSprites() 226 if (outBuffer.height > update.state.icon.bitmap.height()) { in doUpdateSprites() 228 surfaceCanvas.drawRect(SkRect::MakeLTRB(0, update.state.icon.bitmap.height(), in doUpdateSprites() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
D | NavBarTuner.java | 136 ListPreference icon = (ListPreference) findPreference(ICON + "_" + k); in bindButton() local 137 setupIcons(icon); in bindButton() 148 icon.setValue(uri); in bindButton() 149 updateSummary(icon); in bindButton() 152 icon.setVisible(true); in bindButton() 156 icon.setVisible(false); in bindButton() 161 setValue(setting, type, keycode, icon); in bindButton() 162 updateSummary(icon); in bindButton() 167 icon.setOnPreferenceChangeListener(listener); in bindButton() 181 setValue(setting, type, keycode, icon); in bindButton() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | NetworkController.java | 57 default void setEthernetIndicators(IconState icon) {} in setEthernetIndicators() argument 59 default void setIsAirplaneMode(IconState icon) {} in setIsAirplaneMode() argument 70 public final int icon; field in NetworkController.IconState 73 public IconState(boolean visible, int icon, String contentDescription) { in IconState() argument 75 this.icon = icon; in IconState() 79 public IconState(boolean visible, int icon, int contentDescription, in IconState() argument 81 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/qs/tileimpl/ |
D | QSIconViewImpl.java | 90 final QSTile.Icon icon = state.iconSupplier != null ? state.iconSupplier.get() : state.icon; in updateIcon() local 91 if (!Objects.equals(icon, iv.getTag(R.id.qs_icon_tag)) in updateIcon() 95 Drawable d = icon != null in updateIcon() 96 ? shouldAnimate ? icon.getDrawable(mContext) in updateIcon() 97 : icon.getInvisibleDrawable(mContext) : null; in updateIcon() 98 int padding = icon != null ? icon.getPadding() : 0; in updateIcon() 111 iv.setTag(R.id.qs_icon_tag, icon); in updateIcon() 195 final ImageView icon = new SlashImageView(mContext); in createIcon() local 196 icon.setId(android.R.id.icon); in createIcon() 197 icon.setScaleType(ScaleType.FIT_CENTER); in createIcon() [all …]
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/ |
D | Item.java | 79 public void setIcon(Drawable icon) { in setIcon() argument 80 mIcon = icon; in setIcon() 152 final Drawable icon = getIcon(); in onBindView() local 153 if (icon != null) { in onBindView() 158 onMergeIconStateAndLevels(iconView, icon); in onBindView() 159 iconView.setImageDrawable(icon); in onBindView() 173 protected void onMergeIconStateAndLevels(ImageView iconView, Drawable icon) { in onMergeIconStateAndLevels() argument 174 iconView.setImageState(icon.getState(), false /* merge */); in onMergeIconStateAndLevels() 175 iconView.setImageLevel(icon.getLevel()); in onMergeIconStateAndLevels()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NotificationShelf.java | 330 StatusBarIconView icon = row.getEntry().expandedIcon; 331 float shelfIconPosition = getTranslationY() + icon.getTop() + icon.getTranslationY(); 334 Rect clipRect = new Rect(0, top, icon.getWidth(), Math.max(top, icon.getHeight())); 335 icon.setClipBounds(clipRect); 337 icon.setClipBounds(null); 342 StatusBarIconView icon = row.getEntry().expandedIcon; 343 boolean needsContinuousClipping = ViewState.isAnimatingY(icon); 344 boolean isContinuousClipping = icon.getTag(TAG_CONTINUOUS_CLIPPING) != null; 350 boolean animatingY = ViewState.isAnimatingY(icon); 351 if (!animatingY || !icon.isAttachedToWindow()) { [all …]
|
/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/opt/setupwizard/library/main/src/com/android/setupwizardlib/template/ |
D | IconMixin.java | 47 final Drawable icon = a.getDrawable(R.styleable.SuwIconMixin_android_icon); in IconMixin() local 48 if (icon != null) { in IconMixin() 49 setIcon(icon); in IconMixin() 60 public void setIcon(Drawable icon) { in setIcon() argument 63 iconView.setImageDrawable(icon); in setIcon()
|
/frameworks/base/packages/SystemUI/docs/ |
D | demo_mode.md | 2 …reenshots with a consistent status bar state, or testing different status icon permutations. Demo … 34 … | ```airplane``` | | ```show``` to show icon, any other value to hide 36 … | ```wifi``` | | ```show``` to show icon, any other value to hide 38 … | ```mobile``` | | ```show``` to show icon, any other value to hide 41 …| | Sets mobile signal icon to carrier network change UX when disconnected (```show… 43 … | ```nosim``` | | ```show``` to show icon, any other value to hide 47 …| ```volume``` | | Sets the icon in the volume slot (```silent```, ``… 48 …| ```bluetooth``` | | Sets the icon in the bluetooth slot (```connected`… 49 …| ```location``` | | Sets the icon in the location slot (```show```, an… 50 …| ```alarm``` | | Sets the icon in the alarm_clock slot (```show```,… [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/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()
|