OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:iconWidth
(Results
1 - 17
of
17
) sorted by null
/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/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/
ActivityPicker.java
374
int
iconWidth
= icon.getIntrinsicWidth();
377
if (
iconWidth
> 0 && iconHeight > 0) {
378
if (width <
iconWidth
|| height < iconHeight) {
379
final float ratio = (float)
iconWidth
/ iconHeight;
381
if (
iconWidth
> iconHeight) {
383
} else if (iconHeight >
iconWidth
) {
407
} else if (
iconWidth
< width && iconHeight < height) {
413
final int x = (width -
iconWidth
) / 2;
415
icon.setBounds(x, y, x +
iconWidth
, y + iconHeight);
/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
),
/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
478
final int
iconWidth
;
480
iconWidth
= (int)(keyWidth * mSpacebarIconWidthRatio);
482
iconWidth
= Math.min(icon.getIntrinsicWidth(), keyWidth);
491
final int iconX = (keyWidth -
iconWidth
) / 2; // Align horizontally center.
492
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
) {
/bootable/recovery/
screen_ui.cpp
102
int
iconWidth
= gr_get_width(surface);
110
iconX = (gr_fb_width() -
iconWidth
) / 2;
116
gr_blit(surface, 0, 0,
iconWidth
, iconHeight, iconX, iconY);
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
ShortcutIntentBuilder.java
405
int
iconWidth
= icon.getWidth();
406
dst.set(
iconWidth
- ((int) (20 * density)), -1,
407
iconWidth
, ((int) (19 * density)));
ContactListItemView.java
558
int
iconWidth
= mPresenceIcon.getMeasuredWidth();
560
rightBound -
iconWidth
,
564
statusRightBound -= (
iconWidth
+ mPresenceIconMargin);
576
int
iconWidth
= mPresenceIcon.getMeasuredWidth();
580
leftBound +
iconWidth
,
582
statusLeftBound += (
iconWidth
+ mPresenceIconMargin);
[
all
...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
KeyguardBottomAreaView.java
407
int
iconWidth
= getResources().getDimensionPixelSize(
409
if (icon.getIntrinsicHeight() != iconHeight || icon.getIntrinsicWidth() !=
iconWidth
) {
410
icon = new IntrinsicSizeDrawable(icon,
iconWidth
, iconHeight);
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/banners/
AppBannerView.java
743
int
iconWidth
= mIconView.getMeasuredWidth();
744
int iconLeft = mIsLayoutLTR ? start : (getMeasuredWidth() - start -
iconWidth
);
745
mIconView.layout(iconLeft, top, iconLeft +
iconWidth
, top + mIconView.getMeasuredHeight());
[
all
...]
/frameworks/opt/chips/src/com/android/ex/chips/
RecipientEditTextView.java
647
// the chip. Don't include
iconWidth
for invalid contacts.
648
int
iconWidth
= contact.isValid() ?
653
calculateAvailableWidth() -
iconWidth
- widths[0] - backgroundPadding.left
661
int width = Math.max(
iconWidth
* 2, textWidth + startPadding + mChipTextEndPadding
662
+
iconWidth
+ backgroundPadding.left + backgroundPadding.right);
689
int iconX = shouldPositionAvatarOnRight() ? width - backgroundPadding.right -
iconWidth
:
693
result.right = iconX +
iconWidth
;
[
all
...]
/frameworks/base/core/java/com/android/internal/widget/
ActionBarView.java
[
all
...]
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
org.eclipse.swt.win32.win32.x86_3.6.1.v3657a.jar
Completed in 989 milliseconds