/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | BrightnessController.java | 57 public BrightnessController(Context context, ImageView icon, ToggleSlider control) { argument 59 mIcon = icon;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
H A D | StorageNotification.java | 279 private synchronized void setUsbStorageNotification(int titleId, int messageId, int icon, argument 300 mUsbStorageNotification.icon = icon; 339 final int notificationId = mUsbStorageNotification.icon; 360 private synchronized void setMediaStorageNotification(int titleId, int messageId, int icon, boolean visible, argument 379 final int notificationId = mMediaStorageNotification.icon; 408 mMediaStorageNotification.icon = icon; 412 final int notificationId = mMediaStorageNotification.icon;
|
/frameworks/base/core/java/android/webkit/ |
H A D | WebChromeClient.java | 45 * @param icon A Bitmap containing the favicon for the current page. 47 public void onReceivedIcon(WebView view, Bitmap icon) {} argument 50 * Notify the host application of the url for an apple-touch-icon. 52 * @param url The icon url. 53 * @param precomposed True if the url is for a precomposed touch icon.
|
H A D | WebIconDatabaseClassic.java | 49 // Message for dispatching icon request results 60 IconResult(String url, Bitmap icon, IconListener l) { argument 62 mIcon = icon; 167 Bitmap icon = nativeIconForPageUrl(url); 168 if (icon != null) { 170 new IconResult(url, icon, listener))); 201 * Request the Bitmap representing the icon for the given page 202 * url. If the icon exists, the listener will be called with the result.
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
H A D | ActionMenuItemView.java | 106 setTitle(itemData.getTitleForItemView(this)); // Title only takes effect if there is no icon 152 public void setIcon(Drawable icon) { argument 153 mIcon = icon; 154 if (icon != null) { 155 int width = icon.getIntrinsicWidth(); 156 int height = icon.getIntrinsicHeight(); 167 icon.setBounds(0, 0, width, height); 169 setCompoundDrawables(icon, null, null, null); 282 // a little coercion. Pad in to center the icon after we've measured.
|
H A D | IconMenuItemView.java | 90 * Initializes with the provided title and icon 92 * @param icon The icon of this item 94 void initialize(CharSequence title, Drawable icon) { argument 103 setIcon(icon); 174 public void setIcon(Drawable icon) { argument 175 mIcon = icon; 177 if (icon != null) { 179 /* Set the bounds of the icon since setCompoundDrawables needs it. */ 180 icon [all...] |
H A D | ListMenuItemView.java | 197 public void setIcon(Drawable icon) { argument 203 if (mIconView == null && icon == null && !mPreserveIconSpacing) { 211 if (icon != null || mPreserveIconSpacing) { 212 mIconView.setImageDrawable(showIcon ? icon : null); 225 // Enforce minimum icon spacing
|
H A D | ActionMenuItem.java | 158 public MenuItem setIcon(Drawable icon) { argument 159 mIconDrawable = icon;
|
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/ |
H A D | KeyguardMessageArea.java | 186 MutableInt icon = new MutableInt(0); 187 CharSequence status = concat(getChargeInfo(icon), getOwnerInfo(), getCurrentMessage()); 188 setCompoundDrawablesWithIntrinsicBounds(icon.value, 0, 0, 0); 222 private CharSequence getChargeInfo(MutableInt icon) { argument 231 icon.value = CHARGING_ICON; 236 icon.value = BATTERY_LOW_ICON;
|
/frameworks/base/services/input/ |
H A D | SpriteController.cpp | 134 update.state.surfaceWidth = update.state.icon.bitmap.width(); 135 update.state.surfaceHeight = update.state.icon.bitmap.height(); 152 int32_t desiredWidth = update.state.icon.bitmap.width(); 153 int32_t desiredHeight = update.state.icon.bitmap.height(); 216 surfaceCanvas.drawBitmap(update.state.icon.bitmap, 0, 0, &paint); 218 if (surfaceInfo.w > uint32_t(update.state.icon.bitmap.width())) { 220 surfaceCanvas.drawRectCoords(update.state.icon.bitmap.width(), 0, 221 surfaceInfo.w, update.state.icon.bitmap.height(), paint); 223 if (surfaceInfo.h > uint32_t(update.state.icon.bitmap.height())) { 225 surfaceCanvas.drawRectCoords(0, update.state.icon 400 setIcon(const SpriteIcon& icon) argument [all...] |
H A D | PointerController.cpp | 266 const SpriteIcon& icon = c.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE) > 0 local 276 spot->updateSprite(&icon, x, y); 391 void PointerController::setPointerIcon(const SpriteIcon& icon) { argument 394 mLocked.pointerIcon = icon.copy(); 584 void PointerController::Spot::updateSprite(const SpriteIcon* icon, float x, float y) { argument 593 if (icon != lastIcon) { 594 lastIcon = icon; 595 if (icon) { 596 sprite->setIcon(*icon);
|
H A D | SpriteController.h | 104 virtual void setIcon(const SpriteIcon& icon) = 0; 186 SpriteIcon icon; member in struct:android::SpriteController::SpriteState 201 return visible && alpha > 0.0f && icon.isValid(); 219 virtual void setIcon(const SpriteIcon& icon);
|
/frameworks/ex/carousel/test/src/com/android/carouseltest/ |
H A D | TaskSwitcherActivity.java | 70 Drawable icon; field in class:TaskSwitcherActivity.ActivityDescription 80 icon = _icon; 87 icon = null; 309 Drawable icon = info.loadIcon(pm); 312 if (id != -1 && title != null && title.length() > 0 && icon != null) { 313 //icon = iconUtilities.createIconDrawable(icon); 314 ActivityDescription item = new ActivityDescription(null, icon, title, null, id);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | NotificationData.java | 37 public StatusBarIconView icon; field in class:NotificationData.Entry 47 this.icon = ic; 130 View expanded, StatusBarIconView icon) { 137 entry.icon = icon; 129 add(IBinder key, StatusBarNotification notification, View row, View content, View expanded, StatusBarIconView icon) argument
|
H A D | CommandQueue.java | 80 public void addIcon(String slot, int index, int viewIndex, StatusBarIcon icon); argument 82 StatusBarIcon old, StatusBarIcon icon); 108 public void setIcon(int index, StatusBarIcon icon) { argument 112 mHandler.obtainMessage(what, OP_SET_ICON, 0, icon.clone()).sendToTarget(); 244 StatusBarIcon icon = (StatusBarIcon)msg.obj; 247 mList.setIcon(index, icon); 248 mCallbacks.addIcon(mList.getSlot(index), index, viewIndex, icon); 250 mList.setIcon(index, icon); 252 old, icon); 81 updateIcon(String slot, int index, int viewIndex, StatusBarIcon old, StatusBarIcon icon) argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | Ticker.java | 68 Drawable icon; field in class:Ticker.Segment 143 Segment(StatusBarNotification n, Drawable icon, CharSequence text) { argument 145 this.icon = icon; 190 // If what's being displayed has the same text and icon, just drop it 196 && n.notification.icon == seg.notification.notification.icon 204 final Drawable icon = StatusBarIconView.getIcon(mContext, 205 new StatusBarIcon(n.pkg, n.user, n.notification.icon, n.notification.iconLevel, 0, 208 final Segment newSegment = new Segment(n, icon, tex [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tv/ |
H A D | TvStatusBar.java | 35 public void addIcon(String slot, int index, int viewIndex, StatusBarIcon icon) { argument 40 StatusBarIcon icon) { 39 updateIcon(String slot, int index, int viewIndex, StatusBarIcon old, StatusBarIcon icon) argument
|
/frameworks/base/core/java/android/app/ |
H A D | LauncherActivity.java | 68 public Drawable icon; field in class:LauncherActivity.ListItem 83 icon = resizer.createIconThumbnail(resolveInfo.loadIcon(pm)); 166 if (item.icon == null) { 167 item.icon = mIconResizer.createIconThumbnail(item.resolveInfo.loadIcon(getPackageManager())); 169 text.setCompoundDrawablesWithIntrinsicBounds(item.icon, null, null, null); 246 * Utility class to resize icons to match default icon size. 272 * @param icon The icon to get a thumbnail of. 274 * @return A thumbnail for the specified icon or the icon itsel 277 createIconThumbnail(Drawable icon) argument [all...] |
H A D | ActionBar.java | 40 * <p>By default, the action bar shows the application icon on 61 * Standard navigation mode. Consists of either a logo or icon 82 * Use logo instead of icon if available. This flag will cause appropriate 83 * navigation modes to use a wider logo in place of the standard icon. 92 * navigation elements. This includes logo and icon. 138 * Custom navigation views appear between the application icon and 152 * <p>Custom navigation views appear between the application icon and 172 * <p>Custom navigation views appear between the application icon and 188 * Set the icon to display in the 'home' section of the action bar. 189 * The action bar will use an icon specifie 215 setIcon(Drawable icon) argument 753 setIcon(Drawable icon) argument [all...] |
H A D | AlertDialog.java | 307 * Set resId to 0 if you don't want an icon. 308 * @param resId the resourceId of the drawable to use as the icon or 0 309 * if you don't want an icon. 315 public void setIcon(Drawable icon) { argument 316 mAlert.setIcon(icon); 320 * Set an icon as supplied by a theme attribute. e.g. android.R.attr.alertDialogIcon 416 * more customization. Using this will replace the title and icon set 463 public Builder setIcon(Drawable icon) { argument 464 P.mIcon = icon; 469 * Set an icon a [all...] |
/frameworks/base/core/java/android/view/ |
H A D | MenuItem.java | 57 * it also has an icon specified. 197 * Change the icon associated with this item. This icon will not always be 201 * @param icon The new icon (as a Drawable) to be displayed. 204 public MenuItem setIcon(Drawable icon); argument 207 * Change the icon associated with this item. This icon will not always be 211 * This method will set the resource ID of the icon which will be used to 214 * @param iconRes The new icon (a [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | AppSecurityPermissions.java | 102 if (icon != 0) { 169 Drawable icon = null; 171 icon = grp.loadGroupIcon(pm); 187 permGrpIcon.setImageDrawable(icon); 329 Drawable icon = context.getResources().getDrawable(dangerous 332 description, dangerous, icon); 539 CharSequence grpName, CharSequence permList, boolean dangerous, Drawable icon) { 546 imgView.setImageDrawable(icon); 538 getPermissionItemViewOld(Context context, LayoutInflater inflater, CharSequence grpName, CharSequence permList, boolean dangerous, Drawable icon) argument
|
H A D | TabHost.java | 481 * 2) set a label and an icon 508 * Specify a label and icon as the tab indicator. 510 public TabSpec setIndicator(CharSequence label, Drawable icon) { argument 511 mIndicatorStrategy = new LabelAndIconIndicatorStrategy(label, icon); 616 * How we create a tab indicator that has a label and an icon 623 private LabelAndIconIndicatorStrategy(CharSequence label, Drawable icon) { argument 625 mIcon = icon; 637 final ImageView iconView = (ImageView) tabIndicator.findViewById(R.id.icon); 639 // when icon is gone by default, we're in exclusive mode
|
/frameworks/base/services/java/com/android/server/connectivity/ |
H A D | Vpn.java | 262 // Load the icon and convert it into a bitmap. 263 Drawable icon = app.loadIcon(pm); 265 if (icon.getIntrinsicWidth() > 0 && icon.getIntrinsicHeight() > 0) { 270 icon.setBounds(0, 0, width, height); 273 icon.draw(c); 402 private void showNotification(VpnConfig config, String label, Bitmap icon) { argument 418 .setLargeIcon(icon)
|
/frameworks/base/core/java/android/inputmethodservice/ |
H A D | Keyboard.java | 241 public Drawable icon; field in class:Keyboard.Key 242 /** Preview version of the icon, for the preview popup */ 380 icon = a.getDrawable( 382 if (icon != null) { 383 icon.setBounds(0, 0, icon.getIntrinsicWidth(), icon.getIntrinsicHeight());
|