/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
D | CommandParams.java | 42 boolean setIcon(Bitmap icon) { return true; } in setIcon() argument 61 boolean setIcon(Bitmap icon) { in setIcon() argument 62 if (icon != null && mTextMsg != null) { in setIcon() 63 mTextMsg.icon = icon; in setIcon() 89 boolean setIcon(Bitmap icon) { in setIcon() argument 90 if (icon != null && mConfirmMsg != null) { in setIcon() 91 mConfirmMsg.icon = icon; in setIcon() 124 boolean setIcon(Bitmap icon) { in setIcon() argument 125 if (icon != null && mTextMsg != null) { in setIcon() 126 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(Bitmap.class.getClassLoader()); 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() 75 Drawable icon = resources.getDrawable(R.drawable.ic_account_circle, null).mutate(); in getDefaultUserIcon() local 76 icon.setColorFilter(resources.getColor(colorResId, null), Mode.SRC_IN); in getDefaultUserIcon() 77 icon.setBounds(0, 0, icon.getIntrinsicWidth(), icon.getIntrinsicHeight()); in getDefaultUserIcon() 78 return icon; in getDefaultUserIcon()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | PackageUtil.java | 66 public static View initSnippet(View snippetView, CharSequence label, Drawable icon) { in initSnippet() argument 67 ((ImageView)snippetView.findViewById(R.id.app_icon)).setImageDrawable(icon); in initSnippet() 101 Drawable icon = appInfo.loadIcon(pm); in initSnippetForInstalledApp() local 103 icon = pContext.getPackageManager().getUserBadgedIcon(icon, user); in initSnippetForInstalledApp() 108 icon); in initSnippetForInstalledApp() 113 @Nullable public Drawable icon; field in PackageUtil.AppSnippet 114 public AppSnippet(@NonNull CharSequence label, @Nullable Drawable icon) { in AppSnippet() argument 116 this.icon = icon; in AppSnippet() 147 Drawable icon = null; in getAppSnippet() local 151 if (appInfo.icon != 0) { in getAppSnippet() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/ |
D | AdaptiveIconTest.java | 66 final AdaptiveIcon icon = in createIcon_shouldSetBackgroundAndInset() local 69 assertThat(icon.getNumberOfLayers()).isEqualTo(2); in createIcon_shouldSetBackgroundAndInset() 70 assertThat(icon.getDrawable(0)).isInstanceOf(AdaptiveIconShapeDrawable.class); in createIcon_shouldSetBackgroundAndInset() 75 final AdaptiveIcon icon = in setBackgroundColor_shouldUpdateColorFilter() local 78 when(icon.getDrawable(0)).thenReturn(background); in setBackgroundColor_shouldUpdateColorFilter() 80 icon.setBackgroundColor(Color.BLUE); in setBackgroundColor_shouldUpdateColorFilter() 91 final AdaptiveIcon icon = in setBackgroundColor_externalTileWithBackgroundColorRawValue_shouldUpdateIcon() local 94 icon.setBackgroundColor(mContext, tile); in setBackgroundColor_externalTileWithBackgroundColorRawValue_shouldUpdateIcon() 95 assertThat(icon.mBackgroundColor).isEqualTo(0xff0000); in setBackgroundColor_externalTileWithBackgroundColorRawValue_shouldUpdateIcon() 103 final AdaptiveIcon icon = new AdaptiveIcon(mContext, new ColorDrawable(Color.BLACK)); in setBackgroundColor_tileWithoutBackgroundColor_shouldSetDefaultBackgroundColor() local [all …]
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/ |
D | IconLoader.java | 88 Drawable icon = mIconCache.getAndInvalidateIfModified(taskKey); in getAndInvalidateIfModified() local 89 if (icon != null) { in getAndInvalidateIfModified() 90 return icon; in getAndInvalidateIfModified() 94 icon = createNewIconForTask(taskKey, td, false /* returnDefault */); in getAndInvalidateIfModified() 95 if (icon != null) { in getAndInvalidateIfModified() 96 mIconCache.put(taskKey, icon); in getAndInvalidateIfModified() 97 return icon; in getAndInvalidateIfModified() 134 Drawable icon = getBadgedActivityIcon(activityInfo, userId, desc); in createNewIconForTask() local 135 if (icon != null) { in createNewIconForTask() 136 return icon; in createNewIconForTask() [all …]
|
/frameworks/base/core/java/com/android/internal/app/ |
D | SimpleIconFactory.java | 173 Bitmap createUserBadgedIconBitmap(@Nullable Drawable icon, UserHandle user) { in createUserBadgedIconBitmap() argument 177 if (icon == null) { in createUserBadgedIconBitmap() 178 icon = getFullResDefaultActivityIcon(mFillResIconDpi); in createUserBadgedIconBitmap() 180 icon = normalizeAndWrapToAdaptiveIcon(icon, null, scale); in createUserBadgedIconBitmap() 181 Bitmap bitmap = createIconBitmap(icon, scale[0]); in createUserBadgedIconBitmap() 182 if (icon instanceof AdaptiveIconDrawable) { in createUserBadgedIconBitmap() 217 Bitmap createAppBadgedIconBitmap(@Nullable Drawable icon, Bitmap renderedAppIcon) { in createAppBadgedIconBitmap() argument 219 if (icon == null) { in createAppBadgedIconBitmap() 220 icon = getFullResDefaultActivityIcon(mFillResIconDpi); in createAppBadgedIconBitmap() 225 int w = icon.getIntrinsicWidth(); in createAppBadgedIconBitmap() [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | CachingIconView.java | 55 public void setImageIcon(@Nullable Icon icon) { in setImageIcon() argument 56 if (!testAndSetCache(icon)) { in setImageIcon() 59 super.setImageIcon(icon); in setImageIcon() 65 public Runnable setImageIconAsync(@Nullable Icon icon) { in setImageIconAsync() argument 67 return super.setImageIconAsync(icon); in setImageIconAsync() 125 private synchronized boolean testAndSetCache(Icon icon) { in testAndSetCache() argument 126 if (icon != null && icon.getType() == Icon.TYPE_RESOURCE) { in testAndSetCache() 127 String iconPackage = normalizeIconPackage(icon); in testAndSetCache() 130 && icon.getResId() == mLastResId in testAndSetCache() 134 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/libs/input/tests/ |
D | PointerController_test.cpp | 53 virtual void loadPointerIcon(SpriteIcon* icon, int32_t displayId) override; 64 void loadPointerIconForType(SpriteIcon* icon, int32_t cursorType); 71 void MockPointerControllerPolicyInterface::loadPointerIcon(SpriteIcon* icon, int32_t) { in loadPointerIcon() argument 72 loadPointerIconForType(icon, CURSOR_TYPE_DEFAULT); in loadPointerIcon() 88 SpriteIcon icon; in loadAdditionalMouseResources() local 93 loadPointerIconForType(&icon, cursorType); in loadAdditionalMouseResources() 94 (*outResources)[cursorType] = icon; in loadAdditionalMouseResources() 98 loadPointerIconForType(&icon, cursorType); in loadAdditionalMouseResources() 99 anim.animationFrames.push_back(icon); in loadAdditionalMouseResources() 101 (*outResources)[cursorType] = icon; in loadAdditionalMouseResources() [all …]
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/ |
D | Item.java | 35 private Drawable icon; field in Item 50 icon = a.getDrawable(R.styleable.SuwItem_android_icon); in Item() 77 public void setIcon(Drawable icon) { in setIcon() argument 78 this.icon = icon; in setIcon() 83 return icon; in getIcon() 150 final Drawable icon = getIcon(); in onBindView() local 151 if (icon != null) { in onBindView() 156 onMergeIconStateAndLevels(iconView, icon); in onBindView() 157 iconView.setImageDrawable(icon); in onBindView() 171 protected void onMergeIconStateAndLevels(ImageView iconView, Drawable icon) { in onMergeIconStateAndLevels() argument [all …]
|
/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/libs/input/ |
D | SpriteController.cpp | 128 update.state.surfaceWidth = update.state.icon.width(); in doUpdateSprites() 129 update.state.surfaceHeight = update.state.icon.height(); in doUpdateSprites() 150 int32_t desiredWidth = update.state.icon.width(); in doUpdateSprites() 151 int32_t desiredHeight = update.state.icon.height(); in doUpdateSprites() 192 if (update.state.icon.draw(surface)) { in doUpdateSprites() 225 update.state.positionX - update.state.icon.hotSpotX, in doUpdateSprites() 226 update.state.positionY - update.state.icon.hotSpotY); in doUpdateSprites() 244 p.writeInt32(update.state.icon.style); in doUpdateSprites() 245 p.writeFloat(update.state.icon.hotSpotX); in doUpdateSprites() 246 p.writeFloat(update.state.icon.hotSpotY); in doUpdateSprites() [all …]
|
/frameworks/base/core/java/android/util/ |
D | IconDrawableFactory.java | 68 Drawable icon = mPm.loadUnbadgedItemIcon(itemInfo, appInfo); in getBadgedIcon() local 70 return icon; in getBadgedIcon() 73 icon = getShadowedIcon(icon); in getBadgedIcon() 77 icon = mLauncherIcons.getBadgedDrawable(icon, in getBadgedIcon() 82 icon = mLauncherIcons.getBadgedDrawable(icon, in getBadgedIcon() 86 return icon; in getBadgedIcon() 92 public Drawable getShadowedIcon(Drawable icon) { in getShadowedIcon() argument 93 return mLauncherIcons.wrapIconDrawableWithShadow(icon); in getShadowedIcon()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/ |
D | IconCache.java | 39 public Drawable getIcon(Icon icon) { in getIcon() argument 40 if (icon == null) { in getIcon() 43 Drawable drawable = mMap.get(icon); in getIcon() 45 drawable = icon.loadDrawable(mContext); in getIcon() 46 updateIcon(icon, drawable); in getIcon() 51 public void updateIcon(Icon icon, Drawable drawable) { in updateIcon() argument 52 mMap.put(icon, drawable); in updateIcon()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/template/ |
D | IconMixin.java | 46 final @DrawableRes int icon = a.getResourceId(R.styleable.SuwIconMixin_android_icon, 0); in IconMixin() local 47 if (icon != 0) { in IconMixin() 48 setIcon(icon); in IconMixin() 59 public void setIcon(Drawable icon) { in setIcon() argument 62 iconView.setImageDrawable(icon); in setIcon() 63 iconView.setVisibility(icon != null ? View.VISIBLE : View.GONE); in setIcon() 72 public void setIcon(@DrawableRes int icon) { in setIcon() argument 77 iconView.setImageResource(icon); in setIcon() 78 iconView.setVisibility(icon != 0 ? View.VISIBLE : View.GONE); in setIcon()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
D | NavBarTuner.java | 126 ListPreference icon = (ListPreference) findPreference(ICON + "_" + k); in bindButton() local 127 setupIcons(icon); in bindButton() 138 icon.setValue(uri); in bindButton() 139 updateSummary(icon); in bindButton() 142 icon.setVisible(true); in bindButton() 146 icon.setVisible(false); in bindButton() 151 setValue(setting, type, keycode, icon); in bindButton() 152 updateSummary(icon); in bindButton() 157 icon.setOnPreferenceChangeListener(listener); in bindButton() 171 setValue(setting, type, keycode, icon); in bindButton() [all …]
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | IconUtilities.java | 71 public Bitmap createIconBitmap(Drawable icon) { in createIconBitmap() argument 75 if (icon instanceof PaintDrawable) { in createIconBitmap() 76 PaintDrawable painter = (PaintDrawable) icon; in createIconBitmap() 79 } else if (icon instanceof BitmapDrawable) { in createIconBitmap() 81 BitmapDrawable bitmapDrawable = (BitmapDrawable) icon; in createIconBitmap() 87 int sourceWidth = icon.getIntrinsicWidth(); in createIconBitmap() 88 int sourceHeight = icon.getIntrinsicHeight(); in createIconBitmap() 119 mOldBounds.set(icon.getBounds()); in createIconBitmap() 120 icon.setBounds(left, top, left+width, top+height); in createIconBitmap() 121 icon.draw(canvas); in createIconBitmap() [all …]
|
/frameworks/base/core/java/com/android/internal/globalactions/ |
D | SinglePressAction.java | 42 protected SinglePressAction(int iconResId, Drawable icon, CharSequence message) { in SinglePressAction() argument 46 mIcon = icon; in SinglePressAction() 75 ImageView icon = v.findViewById(R.id.icon); in create() local 87 if (icon != null) { in create() 89 icon.setImageDrawable(mIcon); in create() 90 icon.setScaleType(ImageView.ScaleType.CENTER_CROP); in create() 92 icon.setImageDrawable(context.getDrawable(mIconResId)); in create()
|
/frameworks/base/core/java/android/app/ |
D | LauncherActivity.java | 72 public Drawable icon; field in LauncherActivity.ListItem 87 icon = resizer.createIconThumbnail(resolveInfo.loadIcon(pm)); in ListItem() 170 if (item.icon == null) { in bindView() 171 … item.icon = mIconResizer.createIconThumbnail(item.resolveInfo.loadIcon(getPackageManager())); in bindView() 173 text.setCompoundDrawablesRelativeWithIntrinsicBounds(item.icon, null, null, null); in bindView() 281 public Drawable createIconThumbnail(Drawable icon) { in createIconThumbnail() argument 285 final int iconWidth = icon.getIntrinsicWidth(); in createIconThumbnail() 286 final int iconHeight = icon.getIntrinsicHeight(); in createIconThumbnail() 288 if (icon instanceof PaintDrawable) { in createIconThumbnail() 289 PaintDrawable painter = (PaintDrawable) icon; in createIconThumbnail() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | NetworkController.java | 82 default void setEthernetIndicators(IconState icon) {} in setEthernetIndicators() argument 84 default void setIsAirplaneMode(IconState icon) {} in setIsAirplaneMode() argument 95 public final int icon; field in NetworkController.IconState 98 public IconState(boolean visible, int icon, String contentDescription) { in IconState() argument 100 this.icon = icon; in IconState() 104 public IconState(boolean visible, int icon, int contentDescription, in IconState() argument 106 this(visible, icon, context.getString(contentDescription)); in IconState()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/ |
D | QSIconViewImpl.java | 101 final QSTile.Icon icon = state.iconSupplier != null ? state.iconSupplier.get() : state.icon; in updateIcon() local 102 if (!Objects.equals(icon, iv.getTag(R.id.qs_icon_tag)) in updateIcon() 105 mLastIcon = icon; in updateIcon() 106 Drawable d = icon != null in updateIcon() 107 ? shouldAnimate ? icon.getDrawable(mContext) in updateIcon() 108 : icon.getInvisibleDrawable(mContext) : null; in updateIcon() 109 int padding = icon != null ? icon.getPadding() : 0; in updateIcon() 122 iv.setTag(R.id.qs_icon_tag, icon); in updateIcon() 219 final ImageView icon = new SlashImageView(mContext); in createIcon() local 220 icon.setId(android.R.id.icon); in createIcon() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | NotificationIconContainer.java | 309 if (sourceIcon.sameAs(replacedIcon.icon)) { in isReplacingIcon() 322 final StatusBarIconView icon = (StatusBarIconView) child; in onViewRemoved() local 323 … if (areAnimationsEnabled(icon) && icon.getVisibleState() != StatusBarIconView.STATE_HIDDEN in onViewRemoved() 325 int animationStartIndex = findFirstViewIndexAfter(icon.getTranslationX()); in onViewRemoved() 334 if (areAnimationsEnabled(icon) && !isReplacingIcon) { in onViewRemoved() 335 addTransientView(icon, 0); in onViewRemoved() 337 icon.setVisibleState(StatusBarIconView.STATE_HIDDEN, true /* animate */, in onViewRemoved() 338 () -> removeTransientView(icon), in onViewRemoved() 345 private boolean areAnimationsEnabled(StatusBarIconView icon) { in areAnimationsEnabled() argument 346 return mAnimationsEnabled || icon == mIsolatedIcon; in areAnimationsEnabled() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NotificationShelf.java | 338 StatusBarIconView icon = expandableRow.getEntry().expandedIcon; in updateAppearance() local 339 NotificationIconContainer.IconState iconState = getIconState(icon); in updateAppearance() 435 StatusBarIconView icon = row.getEntry().expandedIcon; 436 float shelfIconPosition = getTranslationY() + icon.getTop() + icon.getTranslationY(); 439 Rect clipRect = new Rect(0, top, icon.getWidth(), Math.max(top, icon.getHeight())); 440 icon.setClipBounds(clipRect); 442 icon.setClipBounds(null); 447 StatusBarIconView icon = row.getEntry().expandedIcon; 448 boolean needsContinuousClipping = ViewState.isAnimatingY(icon) && !mAmbientState.isDozing(); 449 boolean isContinuousClipping = icon.getTag(TAG_CONTINUOUS_CLIPPING) != null; [all …]
|
/frameworks/base/core/java/android/view/ |
D | PointerIcon.java | 233 PointerIcon icon = systemIcons.get(type); in getSystemIcon() local 235 if (icon != null) { in getSystemIcon() 236 return icon; in getSystemIcon() 257 icon = new PointerIcon(type); in getSystemIcon() 259 icon.mSystemIconResourceId = resourceId; in getSystemIcon() 261 icon.loadResource(context, context.getResources(), resourceId); in getSystemIcon() 263 systemIcons.append(type, icon); in getSystemIcon() 264 return icon; in getSystemIcon() 295 PointerIcon icon = new PointerIcon(TYPE_CUSTOM); in create() local 296 icon.mBitmap = bitmap; in create() [all …]
|