/packages/apps/Settings/src/com/android/settings/ |
TintablePreference.java | 49 ((ImageView) view.findViewById(android.R.id.icon)).setImageTintList( 52 ((ImageView) view.findViewById(android.R.id.icon)).setImageTintList(null);
|
/packages/apps/Settings/src/com/android/settings/security/ |
SecurityFeatureProviderImpl.java | 73 // Fetching the summary and icon from the provider introduces latency, so do this on a 98 // Either remove an icon by replacing them with nothing, or use the cached one since 99 // there is a delay in fetching the injected icon, and we don't want an inappropriate 100 // icon to be displayed while waiting for the injected icon. 105 Pair<String, Integer> icon = sIconCache.get(iconUri); local 108 .getResourcesForApplication(icon.first /* package name */) 109 .getDrawable(icon.second /* res id */, 112 // Ignore and just load the default icon. 160 Pair<String, Integer> icon local [all...] |
/packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/ |
SubRatingsFragment.java | 84 Drawable icon = mRating.getIcon(); local 85 ImageView imageView = (ImageView) view.findViewById(R.id.icon); 86 if (icon != null) { 88 imageView.setImageDrawable(icon); 145 Drawable icon = mSubRating.getIcon(); local 146 ImageView imageView = (ImageView) view.findViewById(R.id.icon); 147 if (icon != null) { 149 imageView.setImageDrawable(icon);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
KeyboardIconsSet.java | 35 public static final String PREFIX_ICON = "!icon/"; 64 // Icon name to icon id map. 116 final Drawable icon = keyboardAttrs.getDrawable(attrId); local 117 setDefaultBounds(icon); 119 mIcons[iconId] = icon; 122 Log.w(TAG, "Drawable resource for icon #" 143 throw new RuntimeException("unknown icon name: " + name); 151 throw new RuntimeException("unknown icon name: " + name); 159 throw new RuntimeException("unknown icon id: " + getIconName(iconId)) [all...] |
/frameworks/base/packages/VpnDialogs/src/com/android/vpndialogs/ |
ConfirmDialog.java | 113 // Should only reach this when fetching the VPN icon for the warning string. 114 Drawable icon = getDrawable(R.drawable.ic_vpn_dialog); local 115 icon.setBounds(0, 0, icon.getIntrinsicWidth(), icon.getIntrinsicHeight()); 116 return icon;
|
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
ResolveCache.java | 105 * MIME-type, along with a {@link SoftReference} to its icon. 109 public Drawable icon; field in class:ResolveCache.Entry 148 final Drawable icon = bestResolve.loadIcon(mPackageManager); local 151 entry.icon = icon; 164 * <strong>only</strong> used for selecting a default icon for 205 * Return the best icon for the given {@link Action}, which is usually 210 return getEntry(mimeType, intent).icon;
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
ManageCacheDrawer.java | 95 ResourceTexture icon; local 97 icon = mLocalAlbumIcon; 99 icon = mCheckedItem; 101 icon = mUnCheckedItem; 104 // show the icon in right bottom 107 icon.draw(canvas, width - m - s, height - s, s, s);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
LockIcon.java | 35 * Manages the different states and animations of the unlock icon. 155 Drawable icon; local 158 icon = mContext.getDrawable(iconAnimRes); 160 // Load the static icon resource based on the current state. 161 icon = getIconForState(state, mScreenOn, mDeviceInteractive); 164 final AnimatedVectorDrawable animation = icon instanceof AnimatedVectorDrawable 165 ? (AnimatedVectorDrawable) icon 171 if (!anyFingerprintIcon && (icon.getIntrinsicHeight() != iconHeight 172 || icon.getIntrinsicWidth() != iconWidth)) { 173 icon = new IntrinsicSizeDrawable(icon, iconWidth, iconHeight) [all...] |
NotificationIconContainer.java | 24 import android.graphics.drawable.Icon; 51 * 1 icon width early. 223 Icon sourceIcon = iconView.getSourceIcon(); 228 if (sourceIcon.sameAs(replacedIcon.icon)) { 240 final StatusBarIconView icon = (StatusBarIconView) child; local 241 if (icon.getVisibleState() != StatusBarIconView.STATE_HIDDEN 243 int animationStartIndex = findFirstViewIndexAfter(icon.getTranslationX()); 253 addTransientView(icon, 0); 254 icon.setVisibleState(StatusBarIconView.STATE_HIDDEN, true /* animate */, 255 () -> removeTransientView(icon)); 532 StatusBarIconView icon = (StatusBarIconView) view; local [all...] |
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ |
IconHelper.java | 61 // Two animations applied to image views. The first is used to switch mime icon and thumbnail. 129 * @param icon 131 public void stopLoading(ImageView icon) { 132 final LoaderTask oldTask = (LoaderTask) icon.getTag(); 135 icon.setTag(null); 163 if (VERBOSE) Log.v(TAG, "Starting icon loader task for " + mUri); 168 if (VERBOSE) Log.v(TAG, "Icon loader task for " + mUri + " was cancelled."); 219 * @param iconThumb The itemview's thumbnail icon. 220 * @param iconMime The itemview's mime icon. Hidden when iconThumb is shown. 221 * @param subIconMime The second itemview's mime icon. Always visible [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/ |
RecentsTaskLoader.java | 207 // Load the icon if it is stale or we haven't cached one yet 216 if (DEBUG) Log.d(TAG, "Loading icon: " + t.key); 225 // At this point, even if we can't load the icon, we will set the 226 // default icon. 302 Bitmap icon = Bitmap.createBitmap(1, 1, Bitmap.Config.ALPHA_8); local 303 icon.eraseColor(0); 304 mDefaultIcon = new BitmapDrawable(context.getResources(), icon); 320 /** Returns the size of the app icon cache. */ 383 Drawable icon = mIconCache.getAndInvalidateIfModified(t.key); local 384 icon = icon != null ? icon : mDefaultIcon 515 Drawable icon = mIconCache.getAndInvalidateIfModified(taskKey); local [all...] |
/frameworks/base/core/java/android/content/pm/ |
PackageItemInfo.java | 37 * a label, icon, and meta-data. This class is not intended 70 * component's icon. From the "icon" attribute or, if not set, 0. 72 public int icon; field in class:PackageItemInfo 83 * displayed by certain UI elements in place of a name or name/icon 96 * If different of UserHandle.USER_NULL, The icon of this item will be the one of that user. 112 icon = orig.icon; 203 * Retrieve the current graphical icon associated with this item. This 204 * will call back on the given PackageManager to load the icon fro [all...] |
/frameworks/base/core/java/com/android/internal/view/menu/ |
ActionMenuItemView.java | 122 setTitle(itemData.getTitleForItemView(this)); // Title is only displayed if there is no icon 205 public void setIcon(Drawable icon) { 206 mIcon = icon; 207 if (icon != null) { 208 int width = icon.getIntrinsicWidth(); 209 int height = icon.getIntrinsicHeight(); 220 icon.setBounds(0, 0, width, height); 222 setCompoundDrawables(icon, null, null, null); 298 // a little coercion. Pad in to center the icon after we've measured.
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
UidDetailProvider.java | 110 detail.icon = pm.getDefaultActivityIcon(); 116 detail.icon = pm.getDefaultActivityIcon(); 122 detail.icon = pm.getDefaultActivityIcon(); 128 detail.icon = pm.getDefaultActivityIcon(); 140 detail.icon = Utils.getUserIcon(mContext, um, info); 157 detail.icon = um.getBadgedIconForUser(info.loadIcon(pm), 176 detail.icon = um.getBadgedIconForUser(appInfo.loadIcon(pm), userHandle);
|
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/ |
ActionMenuItemView.java | 126 setTitle(itemData.getTitleForItemView(this)); // Title only takes effect if there is no icon 213 public void setIcon(Drawable icon) { 214 mIcon = icon; 215 if (icon != null) { 216 int width = icon.getIntrinsicWidth(); 217 int height = icon.getIntrinsicHeight(); 228 icon.setBounds(0, 0, width, height); 230 setCompoundDrawables(icon, null, null, null); 290 // a little coercion. Pad in to center the icon after we've measured.
|
/packages/apps/Dialer/java/com/android/contacts/common/list/ |
ContactListFilter.java | 70 public final Drawable icon; field in class:ContactListFilter 74 int filterType, String accountType, String accountName, String dataSet, Drawable icon) { 79 this.icon = icon; 87 String accountType, String accountName, String dataSet, Drawable icon) { 89 ContactListFilter.FILTER_TYPE_ACCOUNT, accountType, accountName, dataSet, icon); 294 builder.append(", icon: " + icon + "]");
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
IconCache.java | 46 public Bitmap icon; field in class:IconCache.CacheEntry 86 // need to set mIconDpi before getting default icon 179 * Fill in "application" with the icon and label for "info." 188 application.iconBitmap = entry.icon; 206 return entry.icon; 218 return entry.icon; 222 public boolean isDefaultIcon(Bitmap icon) { 223 return mDefaultIcon == icon; 248 entry.icon = Utilities.createIconBitmap(info.getBadgedIcon(mIconDpi), mContext);
|
/packages/apps/Launcher3/src/com/android/launcher3/notification/ |
NotificationFooterLayout.java | 86 // Compute margin start for each icon such that the icons between the first one 136 * Creates an icon for the given NotificationInfo, and adds it to the icon row. 137 * @return the icon view that was added 140 View icon = new View(getContext()); local 141 icon.setBackground(info.getIconForBackground(getContext(), mBackgroundColor)); 142 icon.setOnClickListener(info); 143 icon.setTag(info); 144 icon.setImportantForAccessibility(IMPORTANT_FOR_ACCESSIBILITY_NO); 145 mIconRow.addView(icon, 0, mIconLayoutParams) [all...] |
/bootable/recovery/minui/ |
graphics.cpp | 127 void gr_texticon(int x, int y, GRSurface* icon) { 128 if (icon == NULL) return; 130 if (icon->pixel_bytes != 1) { 138 if (outside(x, y) || outside(x+icon->width-1, y+icon->height-1)) return; 140 unsigned char* src_p = icon->data; 143 text_blend(src_p, icon->row_bytes, 145 icon->width, icon->height);
|
/cts/tests/tests/shortcutmanager/packages/src/android/content/pm/cts/shortcutmanager/packages/ |
ShortcutConfirmPin.java | 88 final Drawable icon = launcherApps.getShortcutBadgedIconDrawable( local 93 if (icon == null) { 94 ReplyUtil.sendReply(this, replyAction, "Expected to have icon"); 98 if (icon != null) { 99 ReplyUtil.sendReply(this, replyAction, "Not expected to have icon");
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
WebHistoryItemTest.java | 44 public synchronized void onReceivedIcon(WebView webview, Bitmap icon) { 113 Bitmap icon = mOnUiThread.getFavicon(); local 114 assertTrue(icon.sameAs(item.getFavicon()));
|
/frameworks/base/core/java/android/app/ |
RemoteAction.java | 20 import android.graphics.drawable.Icon; 34 * associated visualization including metadata like an icon or title. 40 private final Icon mIcon; 47 mIcon = Icon.CREATOR.createFromParcel(in); 54 public RemoteAction(@NonNull Icon icon, @NonNull CharSequence title, 56 if (icon == null || title == null || contentDescription == null || intent == null) { 57 throw new IllegalArgumentException("Expected icon, title, content description and " + 60 mIcon = icon; 82 * Return an icon representing the action [all...] |
/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/ |
AnimatedVectorDrawableTest.java | 32 protected int[] icon = { field in class:AnimatedVectorDrawableTest 67 for (int i = 0; i < icon.length; i++) { 74 button.setBackgroundResource(icon[i]);
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
AccountsListAdapter.java | 94 final ImageView icon = (ImageView) resultView.findViewById(android.R.id.icon); local 99 icon.setImageDrawable(mAccounts.get(position).getIcon());
|
/packages/apps/Dialer/java/com/android/contacts/common/widget/ |
FloatingActionButtonController.java | 87 public void changeIcon(Drawable icon, String description) { 88 if (mFab.getDrawable() != icon || !mFab.getContentDescription().equals(description)) { 89 mFab.setImageDrawable(icon); 162 // Fade out the icon faster than the scale out animation, so that the icon scaling is less
|