Home
last modified time | relevance | path

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

12345678910>>...18

/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DCommandParams.java42 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 …]
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(Bitmap.class.getClassLoader()); in Item()
61 dest.writeParcelable(icon, flags); in writeToParcel()
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DBaseIconFactory.java116 public BitmapInfo createIconBitmap(Bitmap icon) { in createIconBitmap() argument
117 if (mIconBitmapSize != icon.getWidth() || mIconBitmapSize != icon.getHeight()) { in createIconBitmap()
118 icon = createIconBitmap(new BitmapDrawable(mContext.getResources(), icon), 1f); in createIconBitmap()
121 return BitmapInfo.of(icon, extractColor(icon)); in createIconBitmap()
124 public BitmapInfo createBadgedIconBitmap(Drawable icon, UserHandle user, in createBadgedIconBitmap() argument
126 return createBadgedIconBitmap(icon, user, shrinkNonAdaptiveIcons, false, null); in createBadgedIconBitmap()
129 public BitmapInfo createBadgedIconBitmap(Drawable icon, UserHandle user, in createBadgedIconBitmap() argument
131 return createBadgedIconBitmap(icon, user, iconAppTargetSdk, false); in createBadgedIconBitmap()
134 public BitmapInfo createBadgedIconBitmap(Drawable icon, UserHandle user, in createBadgedIconBitmap() argument
136 return createBadgedIconBitmap(icon, user, iconAppTargetSdk, isInstantApp, null); in createBadgedIconBitmap()
[all …]
DBitmapInfo.java28 public final Bitmap icon; field in BitmapInfo
31 public BitmapInfo(Bitmap icon, int color) { in BitmapInfo() argument
32 this.icon = icon; in BitmapInfo()
40 return icon == null || icon == LOW_RES_ICON; in isNullOrLowRes()
44 return LOW_RES_ICON == icon; in isLowRes()
/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()
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/
DPackageUtil.java65 public static View initSnippet(View snippetView, CharSequence label, Drawable icon) { in initSnippet() argument
66 ((ImageView)snippetView.findViewById(R.id.app_icon)).setImageDrawable(icon); in initSnippet()
100 Drawable icon = appInfo.loadIcon(pm); in initSnippetForInstalledApp() local
102 icon = pContext.getPackageManager().getUserBadgedIcon(icon, user); in initSnippetForInstalledApp()
107 icon); in initSnippetForInstalledApp()
112 @Nullable public Drawable icon; field in PackageUtil.AppSnippet
113 public AppSnippet(@NonNull CharSequence label, @Nullable Drawable icon) { in AppSnippet() argument
115 this.icon = icon; in AppSnippet()
146 Drawable icon = null; in getAppSnippet() local
150 if (appInfo.icon != 0) { in getAppSnippet()
[all …]
/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/com/android/internal/app/
DSimpleIconFactory.java197 Bitmap createUserBadgedIconBitmap(@Nullable Drawable icon, UserHandle user) { in createUserBadgedIconBitmap() argument
201 if (icon == null) { in createUserBadgedIconBitmap()
202 icon = getFullResDefaultActivityIcon(mFillResIconDpi); in createUserBadgedIconBitmap()
204 icon = normalizeAndWrapToAdaptiveIcon(icon, null, scale); in createUserBadgedIconBitmap()
205 Bitmap bitmap = createIconBitmap(icon, scale[0]); in createUserBadgedIconBitmap()
206 if (icon instanceof AdaptiveIconDrawable) { in createUserBadgedIconBitmap()
241 public Bitmap createAppBadgedIconBitmap(@Nullable Drawable icon, Bitmap renderedAppIcon) { in createAppBadgedIconBitmap() argument
243 if (icon == null) { in createAppBadgedIconBitmap()
244 icon = getFullResDefaultActivityIcon(mFillResIconDpi); in createAppBadgedIconBitmap()
249 int w = icon.getIntrinsicWidth(); in createAppBadgedIconBitmap()
[all …]
/frameworks/base/core/java/android/util/
DIconDrawableFactory.java66 Drawable icon = mPm.loadUnbadgedItemIcon(itemInfo, appInfo); in getBadgedIcon() local
68 return icon; in getBadgedIcon()
71 icon = getShadowedIcon(icon); in getBadgedIcon()
75 icon = mLauncherIcons.getBadgedDrawable(icon, in getBadgedIcon()
80 icon = mLauncherIcons.getBadgedDrawable(icon, in getBadgedIcon()
84 return icon; in getBadgedIcon()
90 public Drawable getShadowedIcon(Drawable icon) { in getShadowedIcon() argument
91 return mLauncherIcons.wrapIconDrawableWithShadow(icon); in getShadowedIcon()
/frameworks/base/libs/input/tests/
DPointerController_test.cpp53 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/base/core/java/com/android/internal/widget/
DCachingIconView.java60 public void setImageIcon(@Nullable Icon icon) { in setImageIcon() argument
61 if (!testAndSetCache(icon)) { in setImageIcon()
64 super.setImageIcon(icon); in setImageIcon()
70 public Runnable setImageIconAsync(@Nullable Icon icon) { in setImageIconAsync() argument
72 return super.setImageIconAsync(icon); in setImageIconAsync()
130 private synchronized boolean testAndSetCache(Icon icon) { in testAndSetCache() argument
131 if (icon != null && icon.getType() == Icon.TYPE_RESOURCE) { in testAndSetCache()
132 String iconPackage = normalizeIconPackage(icon); in testAndSetCache()
135 && icon.getResId() == mLastResId in testAndSetCache()
139 mLastResId = icon.getResId(); in testAndSetCache()
[all …]
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
DItem.java35 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/
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 …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DIconCache.java39 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/base/libs/input/
DSpriteController.cpp133 update.state.surfaceWidth = update.state.icon.bitmap.getInfo().width; in doUpdateSprites()
134 update.state.surfaceHeight = update.state.icon.bitmap.getInfo().height; in doUpdateSprites()
155 int32_t desiredWidth = update.state.icon.bitmap.getInfo().width; in doUpdateSprites()
156 int32_t desiredHeight = update.state.icon.bitmap.getInfo().height; in doUpdateSprites()
206 canvas.drawBitmap(update.state.icon.bitmap, 0, 0, &paint); in doUpdateSprites()
208 const int iconWidth = update.state.icon.bitmap.getInfo().width; in doUpdateSprites()
209 const int iconHeight = update.state.icon.bitmap.getInfo().height; in doUpdateSprites()
257 update.state.positionX - update.state.icon.hotSpotX, in doUpdateSprites()
258 update.state.positionY - update.state.icon.hotSpotY); in doUpdateSprites()
276 p.writeInt32(update.state.icon.style); in doUpdateSprites()
[all …]
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/template/
DIconMixin.java46 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/
DNavBarTuner.java126 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/
DIconUtilities.java71 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/
DSinglePressAction.java42 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/packages/CarSystemUI/src/com/android/systemui/car/userswitcher/
DUserIconProvider.java50 Bitmap icon = userManager.getUserIcon(userInfo.id); in getRoundedUserIcon() local
52 if (icon == null) { in getRoundedUserIcon()
53 icon = assignDefaultIcon(userManager, res, userInfo); in getRoundedUserIcon()
56 return createScaledRoundIcon(res, icon); in getRoundedUserIcon()
64 private RoundedBitmapDrawable createScaledRoundIcon(Resources resources, Bitmap icon) { in createScaledRoundIcon() argument
65 BitmapDrawable scaledIcon = scaleUserIcon(resources, icon); in createScaledRoundIcon()
75 private static BitmapDrawable scaleUserIcon(Resources res, Bitmap icon) { in scaleUserIcon() argument
78 Bitmap.createScaledBitmap(icon, desiredSize, desiredSize, /*filter=*/ true); in scaleUserIcon()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DNetworkController.java82 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/core/java/android/app/
DLauncherActivity.java72 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/qs/tileimpl/
DQSIconViewImpl.java101 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/
DNotificationIconContainer.java316 if (sourceIcon.sameAs(replacedIcon.icon)) { in isReplacingIcon()
329 final StatusBarIconView icon = (StatusBarIconView) child; in onViewRemoved() local
330 … if (areAnimationsEnabled(icon) && icon.getVisibleState() != StatusBarIconView.STATE_HIDDEN in onViewRemoved()
332 int animationStartIndex = findFirstViewIndexAfter(icon.getTranslationX()); in onViewRemoved()
341 if (areAnimationsEnabled(icon) && !isReplacingIcon) { in onViewRemoved()
342 addTransientView(icon, 0); in onViewRemoved()
344 icon.setVisibleState(StatusBarIconView.STATE_HIDDEN, true /* animate */, in onViewRemoved()
345 () -> removeTransientView(icon), in onViewRemoved()
352 private boolean areAnimationsEnabled(StatusBarIconView icon) { in areAnimationsEnabled() argument
353 return mAnimationsEnabled || icon == mIsolatedIcon; in areAnimationsEnabled()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationShelf.java333 StatusBarIconView icon = expandableRow.getEntry().getIcons().getShelfIcon(); in updateAppearance() local
334 NotificationIconContainer.IconState iconState = getIconState(icon); in updateAppearance()
433 StatusBarIconView icon = row.getEntry().getIcons().getShelfIcon();
434 float shelfIconPosition = getTranslationY() + icon.getTop() + icon.getTranslationY();
437 Rect clipRect = new Rect(0, top, icon.getWidth(), Math.max(top, icon.getHeight()));
438 icon.setClipBounds(clipRect);
440 icon.setClipBounds(null);
445 StatusBarIconView icon = row.getEntry().getIcons().getShelfIcon();
446 boolean needsContinuousClipping = ViewState.isAnimatingY(icon) && !mAmbientState.isDozing();
447 boolean isContinuousClipping = icon.getTag(TAG_CONTINUOUS_CLIPPING) != null;
[all …]

12345678910>>...18