/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
IconFactory.java | 31 * Builds an icon with the dimensions iconWidth:iconHeight. If scale is set 36 * @param iconWidth width of the icon bitmap. 39 * @return an icon bitmap with the dimensions iconWidth:iconHeight. 41 public static Bitmap createIcon(Bitmap sourceImage, int iconWidth, int iconHeight, 50 if (sourceWidth == 0 || sourceHeight == 0 || iconWidth == 0 || iconHeight == 0) { 54 Bitmap icon = Bitmap.createBitmap(iconWidth, iconHeight, 76 int iconWidth = dest.getWidth(); 79 if (sourceWidth == 0 || sourceHeight == 0 || iconWidth == 0 || iconHeight == 0) { 83 Rect destRect = new Rect(0, 0, iconWidth, iconHeight); 91 // crop image to aspect ratio iconWidth:iconHeigh [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
ClickShadowView.java | 98 int iconWidth = view.getRight() - view.getLeft(); 100 int iconHSpace = iconWidth - view.getCompoundPaddingRight() - view.getCompoundPaddingLeft(); 110 setClipBounds(new Rect(clipLeft, clipTop, clipLeft + iconWidth, clipTop + iconHeight)); 120 + iconWidth * (1 - view.getScaleX()) / 2 /* gap due to scale */
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
SecondLevelIndicatorControlBar.java | 85 int iconWidth = firstIndicatorButton.getMeasuredWidth(); 86 int buttonRange = iconWidth + ICON_SPACING; 178 int iconWidth = mCloseIcon.getMeasuredWidth(); 183 int increment = iconWidth + ICON_SPACING; 185 getChildAt(i).layout(offsetX, 0, offsetX + iconWidth, height); 190 offsetX = width - iconWidth - 2 * padding; 194 offsetX = width - iconWidth - padding; 196 mCloseIcon.layout(offsetX, 0, (offsetX + iconWidth), height);
|
/packages/apps/Settings/src/com/android/settings/display/ |
ConversationMessageView.java | 131 final int iconWidth = mContactIconView.getMeasuredWidth(); 134 final int contentWidth = (right -left) - iconWidth - getPaddingLeft() - getPaddingRight(); 143 iconLeft = (right - left) - getPaddingRight() - iconWidth; 147 contentLeft = iconLeft + iconWidth; 152 contentLeft = iconLeft + iconWidth; 154 iconLeft = (right - left) - getPaddingRight() - iconWidth; 159 mContactIconView.layout(iconLeft, iconTop, iconLeft + iconWidth, iconTop + iconHeight);
|
/packages/apps/Settings/src/com/android/settings/ |
ActivityPicker.java | 378 int iconWidth = icon.getIntrinsicWidth(); 381 if (iconWidth > 0 && iconHeight > 0) { 382 if (width < iconWidth || height < iconHeight) { 383 final float ratio = (float) iconWidth / iconHeight; 385 if (iconWidth > iconHeight) { 387 } else if (iconHeight > iconWidth) { 411 } else if (iconWidth < width && iconHeight < height) { 417 final int x = (width - iconWidth) / 2; 419 icon.setBounds(x, y, x + iconWidth, y + iconHeight);
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
AddAccessoryPreferenceFragment.java | 90 final int iconWidth = 94 tempDrawable.setBounds(0, 0, iconWidth, iconHeight); 96 Bitmap.createBitmap(iconWidth, iconHeight, Bitmap.Config.ARGB_8888);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
LintOverlay.java | 72 int iconWidth = imageData.width; 94 if (w < iconWidth || h < iconHeight) { 100 x += w - iconWidth;
|
/frameworks/base/core/java/android/app/ |
LauncherActivity.java | 281 final int iconWidth = icon.getIntrinsicWidth(); 291 if (width < iconWidth || height < iconHeight) { 292 final float ratio = (float) iconWidth / iconHeight; 294 if (iconWidth > iconHeight) { 296 } else if (iconHeight > iconWidth) { 318 } else if (iconWidth < width && iconHeight < height) { 324 final int x = (width - iconWidth) / 2; 326 icon.setBounds(x, y, x + iconWidth, y + iconHeight);
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
ModePicker.java | 259 int iconWidth = ((ImageView) mModeSelectionIcon[MODE_CAMERA]) 261 int padding = (viewWidth - iconWidth) / 2; 265 (l + padding + iconWidth),
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
LockIcon.java | 169 int iconWidth = getResources().getDimensionPixelSize( 172 || icon.getIntrinsicWidth() != iconWidth)) { 173 icon = new IntrinsicSizeDrawable(icon, iconWidth, iconHeight);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
MoreKeysKeyboardView.java | 96 final int iconWidth = Math.min(mDivider.getIntrinsicWidth(), keyWidth); 98 final int iconX = (keyWidth - iconWidth) / 2; // Align horizontally center 100 drawIcon(canvas, mDivider, iconX, iconY, iconWidth, iconHeight);
|
KeyboardView.java | 489 final int iconWidth; 491 iconWidth = (int)(keyWidth * mSpacebarIconWidthRatio); 493 iconWidth = Math.min(icon.getIntrinsicWidth(), keyWidth); 502 final int iconX = (keyWidth - iconWidth) / 2; // Align horizontally center. 503 drawIcon(canvas, icon, iconX, iconY, iconWidth, iconHeight);
|
/development/samples/Home/src/com/example/android/home/ |
Home.java | 630 final int iconWidth = icon.getIntrinsicWidth(); 639 if (width > 0 && height > 0 && (width < iconWidth || height < iconHeight)) { 640 final float ratio = (float) iconWidth / iconHeight; 642 if (iconWidth > iconHeight) { 644 } else if (iconHeight > iconWidth) {
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/file/ |
FileURLConnection.java | 186 int iconWidth;
|
/packages/apps/Launcher3/src/com/android/launcher3/popup/ |
PopupContainerWithArrow.java | 479 int iconWidth = icon.getWidth() - icon.getTotalPaddingLeft() - icon.getTotalPaddingRight(); 480 iconWidth *= icon.getScaleX(); 488 xOffset = iconWidth / 2 - shortcutIconWidth / 2 - shortcutPaddingStart; 495 xOffset = iconWidth / 2 - shortcutDragHandleWidth / 2 - shortcutPaddingEnd; 522 int rightSide = leftAlignedX + iconWidth - insets.left; 523 int leftSide = rightAlignedX - iconWidth - insets.left; [all...] |
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/ |
ConversationMessageView.java | 195 final int iconWidth = mContactIconView.getMeasuredWidth(); 198 final int contentWidth = (right -left) - iconWidth - getPaddingLeft() - getPaddingRight(); 206 iconLeft = (right - left) - getPaddingRight() - iconWidth; 210 contentLeft = iconLeft + iconWidth; 215 contentLeft = iconLeft + iconWidth; 217 iconLeft = (right - left) - getPaddingRight() - iconWidth; 222 mContactIconView.layout(iconLeft, iconTop, iconLeft + iconWidth, iconTop + iconHeight); [all...] |
/packages/apps/Contacts/src/com/android/contacts/ |
ShortcutIntentBuilder.java | 450 int iconWidth = icon.getWidth(); 463 dst.set(iconWidth - ((int) (20 * density)), -1, 464 iconWidth, ((int) (19 * density)));
|
/packages/apps/Dialer/java/com/android/contacts/common/list/ |
ContactListItemView.java | 706 int iconWidth = mPresenceIcon.getMeasuredWidth(); 708 rightBound - iconWidth, textTopBound, rightBound, textTopBound + mStatusTextViewHeight); 709 statusRightBound -= (iconWidth + mPresenceIconMargin); 719 int iconWidth = mPresenceIcon.getMeasuredWidth(); 721 leftBound, textTopBound, leftBound + iconWidth, textTopBound + mStatusTextViewHeight); 722 statusLeftBound += (iconWidth + mPresenceIconMargin); [all...] |
/packages/apps/Contacts/src/com/android/contacts/list/ |
ContactListItemView.java | [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
ActionBarView.java | [all...] |
/frameworks/opt/chips/src/com/android/ex/chips/ |
RecipientEditTextView.java | [all...] |
/external/robolectric/v3/runtime/ |
android-all-4.1.2_r1-robolectric-0.jar | |
android-all-4.2.2_r1.2-robolectric-0.jar | |
android-all-4.3_r2-robolectric-0.jar | |
android-all-4.4_r1-robolectric-1.jar | |