Lines Matching refs:icon
81 public static View initSnippet(View snippetView, CharSequence label, Drawable icon) {
82 ((ImageView)snippetView.findViewById(R.id.app_icon)).setImageDrawable(icon);
119 ((ImageView)appSnippet.findViewById(R.id.app_icon)).setImageDrawable(as.icon);
139 Drawable icon;
140 public AppSnippet(CharSequence label, Drawable icon) {
142 this.icon = icon;
172 Drawable icon = null;
173 // Try to load the icon from the package's resources. If an app has not explicitly
174 // specified any resource, just use the default icon for now.
175 if (appInfo.icon != 0) {
177 icon = res.getDrawable(appInfo.icon);
181 if (icon == null) {
182 icon = pContext.getPackageManager().getDefaultActivityIcon();
184 return new PackageUtil.AppSnippet(label, icon);