Searched refs:icon (Results 1 - 25 of 237) sorted by relevance

12345678910

/packages/apps/PackageInstaller/src/com/android/packageinstaller/
H A DPackageUtil.java61 public static View initSnippet(View snippetView, CharSequence label, Drawable icon) { argument
62 ((ImageView)snippetView.findViewById(R.id.app_icon)).setImageDrawable(icon);
96 Drawable icon = appInfo.loadIcon(pm);
98 icon = pContext.getPackageManager().getUserBadgedIcon(icon, user);
103 icon);
119 ((ImageView)appSnippet.findViewById(R.id.app_icon)).setImageDrawable(as.icon);
139 Drawable icon; field in class:PackageUtil.AppSnippet
140 public AppSnippet(CharSequence label, Drawable icon) { argument
142 this.icon
[all...]
/packages/apps/Settings/src/com/android/settings/
H A DIconPreferenceScreen.java32 // Whether or not the text and icon should be highlighted (as selected)
50 ImageView imageView = (ImageView) view.findViewById(R.id.icon);
58 * Sets the icon for this Preference with a Drawable.
60 * @param icon The icon for this Preference
62 public void setIcon(Drawable icon) { argument
63 if ((icon == null && mIcon != null) || (icon != null && !icon.equals(mIcon))) {
64 mIcon = icon;
[all...]
H A DAppHeader.java40 public static void createAppHeader(SettingsPreferenceFragment fragment, Drawable icon, argument
42 createAppHeader(fragment, icon, label, pkgName, uid, 0, null);
45 public static void createAppHeader(SettingsPreferenceFragment fragment, Drawable icon, argument
47 createAppHeader(fragment, icon, label, pkgName, uid, 0, externalSettings);
50 public static void createAppHeader(Activity activity, Drawable icon, CharSequence label, argument
54 setupHeaderView(activity, icon, label, pkgName, uid, false, 0, bar, null);
58 public static void createAppHeader(SettingsPreferenceFragment fragment, Drawable icon, argument
60 createAppHeader(fragment, icon, label, pkgName, uid, tintColorRes, null);
63 public static void createAppHeader(SettingsPreferenceFragment fragment, Drawable icon, argument
67 setupHeaderView(fragment.getActivity(), icon, labe
71 setupHeaderView(final Activity activity, Drawable icon, CharSequence label, final String pkgName, final int uid, final boolean includeAppInfo, int tintColorRes, View bar, final Intent externalSettings) argument
[all...]
H A DActivityPicker.java154 Drawable icon = null;
157 // Try loading icon from requested package
161 icon = res.getDrawable(res.getIdentifier(
167 items.add(new PickAdapter.Item(this, label, icon));
217 Drawable icon; field in class:ActivityPicker.PickAdapter.Item
223 * Create a list item from given label and icon.
225 Item(Context context, CharSequence label, Drawable icon) { argument
227 this.icon = getResizer(context).createIconThumbnail(icon);
240 icon
353 createIconThumbnail(Drawable icon) argument
[all...]
H A DDimmableIconPreference.java31 * A preference item that can dim the icon when it's disabled, either directly or because its parent
57 Drawable icon = getIcon();
58 if (icon != null) {
59 icon.mutate().setAlpha(dimmed ? ICON_ALPHA_DISABLED : ICON_ALPHA_ENABLED);
60 setIcon(icon);
H A DAppWidgetPickActivity.java98 Drawable icon = null;
100 if (info.icon != 0) {
123 icon = packageResources.getDrawableForDensity(info.icon, iconDensity);
125 Log.w(TAG, "Can't load icon drawable 0x" + Integer.toHexString(info.icon)
128 if (icon == null) {
129 Log.w(TAG, "Can't load icon drawable 0x" + Integer.toHexString(info.icon)
134 PickAdapter.Item item = new PickAdapter.Item(context, label, icon);
[all...]
H A DTintablePreference.java43 ((ImageView) view.findViewById(android.R.id.icon)).setImageTintList(
46 ((ImageView) view.findViewById(android.R.id.icon)).setImageTintList(null);
/packages/apps/Launcher3/src/com/android/launcher3/compat/
H A DLauncherActivityInfoCompatV16.java60 Drawable icon = null;
61 // Get the preferred density icon from the app's resources
65 icon = resources.getDrawableForDensity(iconRes, density);
69 // Get the default density icon
70 if (icon == null) {
71 icon = mResolveInfo.loadIcon(mPm);
73 if (icon == null) {
75 icon = resources.getDrawableForDensity(android.R.mipmap.sym_def_app_icon, density);
77 return icon;
/packages/apps/Settings/src/com/android/settings/fuelgauge/
H A DPowerGaugePreference.java31 * Custom preference for displaying power consumption as a bar and an icon on
41 public PowerGaugePreference(Context context, Drawable icon, CharSequence contentDescription, argument
44 setIcon(icon != null ? icon : new ColorDrawable(0));
68 ImageView icon = (ImageView) view.findViewById(android.R.id.icon);
69 icon.setLayoutParams(new LinearLayout.LayoutParams(mIconSize, mIconSize));
H A DBatteryEntry.java42 * and icon image.
119 public Drawable icon; field in class:BatteryEntry
126 Drawable icon; field in class:BatteryEntry.UidToDetail
168 icon = Utils.getUserIcon(context, um, info);
171 icon = null;
190 icon = context.getDrawable(iconId);
198 return icon;
214 icon = utd.icon;
218 icon
[all...]
/packages/apps/Launcher2/src/com/android/launcher2/
H A DUtilities.java67 * icon bitmaps that are stored in the database (which were 74x74 pixels at hdpi size)
70 static Bitmap createIconBitmap(Bitmap icon, Context context) { argument
73 int sourceWidth = icon.getWidth();
74 int sourceHeight = icon.getHeight();
77 return Bitmap.createBitmap(icon,
83 return icon;
87 return createIconBitmap(new BitmapDrawable(resources, icon), context);
94 static Bitmap createIconBitmap(Drawable icon, Context context) { argument
103 if (icon instanceof PaintDrawable) {
104 PaintDrawable painter = (PaintDrawable) icon;
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
H A DAllAppsRecyclerViewContainerView.java33 * A container for RecyclerView to allow for the click shadow view to be shown behind an icon that
63 public void setPressedIcon(BubbleTextView icon, Bitmap background) { argument
64 if (icon == null || background == null) {
69 mTouchFeedbackView.alignWithIconView(icon, (ViewGroup) icon.getParent(), rv);
/packages/apps/Stk/src/com/android/stk/
H A DStkMenuAdapter.java54 if (!mIcosSelfExplanatory || (mIcosSelfExplanatory && item.icon == null)) {
57 ImageView imageView = ((ImageView) convertView.findViewById(R.id.icon));
58 if (item.icon == null) {
61 imageView.setImageBitmap(item.icon);
/packages/apps/Launcher3/src/com/android/launcher3/util/
H A DCursorIconInfo.java30 * Utility class to load icon from a cursor.
52 * Loads the icon from the cursor and updates the {@param info} if the icon is an app resource.
55 Bitmap icon = null;
62 icon = Utilities.createIconBitmap(packageName, resourceName, mContext);
64 if (icon == null) {
66 icon = loadIcon(c);
68 return icon;
72 * Loads the fixed bitmap from the icon if available.
/packages/apps/Settings/src/com/android/settings/accounts/
H A DProviderPreference.java36 Context context, String accountType, Drawable icon, CharSequence providerName) {
39 setIcon(icon);
35 ProviderPreference( Context context, String accountType, Drawable icon, CharSequence providerName) argument
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
H A DBaseDialogFragment.java103 int iconResourceId, Uri iconResourceUri, final ImageView icon, final TextView title,
110 // If the appropriate data is embedded in the intent and there is an icon specified
111 // in the content fragment, we animate the icon from its initial position to the final
152 // If we're animating the icon, we create a new ImageView in which to place the embedded
159 if (icon != null) {
162 // animation is done. Check if the icon is not visible. This mean
164 if (icon.getVisibility() != View.VISIBLE) {
165 icon.setImageDrawable(src.getBitmap());
166 int intrinsicWidth = icon.getDrawable().getIntrinsicWidth();
167 LayoutParams lp = icon
102 performEntryTransition(final Activity activity, final ViewGroup contentView, int iconResourceId, Uri iconResourceUri, final ImageView icon, final TextView title, final TextView description, final TextView breadcrumb) argument
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/widget/
H A DPendingAddWidgetInfo.java36 public int icon; field in class:PendingAddWidgetInfo
51 icon = i.icon;
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
H A DDefaultSuggestionView.java73 // override default icon (when no other available) with default source icon
150 // Set the icon even if the drawable is null, since we need to clear any
151 // previous icon.
186 if (DBG) Log.d(TAG, "getting icon Id=" + uniqueIconId);
187 NowOrLater<Drawable> icon = source.getIcon(sourceIconId);
188 if (icon.haveNow()) {
190 handleNewDrawable(icon.getNow(), uniqueIconId, source);
192 // make sure old icon is not visible while new one is loaded
195 icon
217 handleNewDrawable(Drawable icon, String id, Source source) argument
228 setDrawable(Drawable icon, String id) argument
[all...]
/packages/apps/Settings/src/com/android/settings/vpn2/
H A DAppPreference.java46 // Fetch icon and VPN label
48 Drawable icon = null;
54 // back to the default activity icon.
58 icon = pkgInfo.applicationInfo.loadIcon(pm);
62 // Use default app label and icon as fallback
64 if (icon == null) {
65 icon = pm.getDefaultActivityIcon();
73 setIcon(icon);
/packages/apps/Launcher3/src/com/android/launcher3/
H A DIconCache.java82 public Bitmap icon; field in class:IconCache.CacheEntry
246 // Remove all active icon update tasks.
259 // Update icon cache. This happens in segments and {@link #onPackageIconsUpdated}
260 // is called by the icon cache when the job is complete.
335 Log.d(TAG, "Error reading icon cache", e);
366 * @param values {@link ContentValues} containing icon & title
383 // We can't reuse the entry if the high-res icon is not present.
384 if (entry == null || entry.isLowResIcon || entry.icon == null) {
390 entry.icon = Utilities.createBadgedIconBitmap(
398 Bitmap lowResIcon = generateLowResIcon(entry.icon, mActivityBgColo
539 isDefaultIcon(Bitmap icon, UserHandleCompat user) argument
593 cachePackageInstallInfo(String packageName, UserHandleCompat user, Bitmap icon, CharSequence title) argument
683 preloadIcon(ComponentName componentName, Bitmap icon, int dpi, String label, long userSerial, InvariantDeviceProfile idp) argument
851 newContentValues(Bitmap icon, Bitmap lowResIcon, String label, String packageName) argument
866 generateLowResIcon(Bitmap icon, int lowResBackgroundColor) argument
[all...]
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/model/
H A DPermissionGroups.java145 Drawable icon = loadItemInfoIcon(groupInfo);
149 groupInfo.packageName, label, icon);
193 Drawable icon = loadItemInfoIcon(permissionInfo);
197 permissionInfo.packageName, label, icon);
215 Drawable icon = null;
216 if (itemInfo.icon > 0) {
217 icon = Utils.loadDrawable(getContext().getPackageManager(),
218 itemInfo.packageName, itemInfo.icon);
220 if (icon == null) {
221 icon
[all...]
/packages/apps/Settings/src/com/android/settings/deviceinfo/
H A DStorageVolumePreference.java62 Drawable icon;
64 icon = context.getDrawable(R.drawable.ic_settings_storage);
66 icon = context.getDrawable(R.drawable.ic_sim_sd);
87 icon = context.getDrawable(R.drawable.ic_warning_24dp);
95 icon.mutate();
96 icon.setTint(mColor);
97 setIcon(icon);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
H A DIconFactory.java31 * Builds an icon with the dimensions iconWidth:iconHeight. If scale is set
35 * @param sourceImage image to create an icon from.
36 * @param iconWidth width of the icon bitmap.
37 * @param iconHeight height of the icon bitmap.
38 * @param scale if true, stretch sourceImage to fit the icon dimensions.
39 * @return an icon bitmap with the dimensions iconWidth:iconHeight.
54 Bitmap icon = Bitmap.createBitmap(iconWidth, iconHeight,
56 drawIcon(icon, sourceImage, scale);
57 return icon;
61 * Draws an icon i
[all...]
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/handheld/
H A DSettingsWithHeader.java54 public void setHeader(Drawable icon, CharSequence label, Intent infoIntent) { argument
55 mIcon = icon;
63 final ImageView appIcon = (ImageView) mHeader.findViewById(R.id.icon);
/packages/services/Car/car-support-lib/src/android/support/car/ui/
H A DCarListItemViewHolder.java31 public final ImageView icon; field in class:CarListItemViewHolder
41 icon = (ImageView) v.findViewById(R.id.icon);

Completed in 548 milliseconds

12345678910