/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
ScalingDrawableWrapper.java | 35 public int getIntrinsicWidth() { 36 return (int) (super.getIntrinsicWidth() * mScaleFactor);
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
PlaceholderInsetDrawable.java | 45 final int drawableWidth = drawable.getIntrinsicWidth(); 64 public int getIntrinsicWidth() {
|
OrientedBitmapDrawable.java | 59 public int getIntrinsicWidth() { 63 return super.getIntrinsicWidth(); 69 return super.getIntrinsicWidth(); 83 Gravity.apply(getGravity(), getIntrinsicWidth(), getIntrinsicHeight(), getBounds(),
|
/device/google/accessory/demokit/app/src/com/google/android/DemoKit/ |
Utilities.java | 7 int w = d.getIntrinsicWidth();
|
JoystickView.java | 51 int w = mJoystickBackground.getIntrinsicWidth(); 70 int w = mJoystickBackground.getIntrinsicWidth(); 81 setMeasuredDimension(mJoystickBackground.getIntrinsicWidth(),
|
/frameworks/support/design/tests/src/android/support/design/testutils/ |
TestDrawable.java | 41 public int getIntrinsicWidth() {
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
InsetDrawableTest.java | 331 assertEquals((int)(mPassDrawable.getIntrinsicWidth() / (1 - 2 * inset)), 332 insetDrawable.getIntrinsicWidth()); 336 Rect r = new Rect(0, 0, insetDrawable.getIntrinsicWidth(), 341 assertEquals((int)(insetDrawable.getIntrinsicWidth() * inset), r.left); 343 assertEquals(insetDrawable.getIntrinsicWidth() 344 - (int)((inset) * insetDrawable.getIntrinsicWidth()), r.right); 349 assertEquals(r.width(), mPassDrawable.getIntrinsicWidth(), 1); 362 int expected = mPassDrawable.getIntrinsicWidth(); 363 assertEquals(expected, mInsetDrawable.getIntrinsicWidth()); 368 expected = mPassDrawable.getIntrinsicWidth(); [all...] |
GradientDrawableTest.java | 224 assertEquals(width, gradientDrawable.getIntrinsicWidth()); 472 assertEquals(6, gradientDrawable.getIntrinsicWidth()); 475 assertEquals(-10, gradientDrawable.getIntrinsicWidth()); 505 assertEquals(10, d1.getIntrinsicWidth()); 507 assertEquals(10, d2.getIntrinsicWidth()); 509 assertEquals(10, d3.getIntrinsicWidth()); 514 assertEquals(20, d1.getIntrinsicWidth()); 516 assertEquals(10, d2.getIntrinsicWidth()); 518 assertEquals(10, d3.getIntrinsicWidth()); 522 assertEquals(20, d1.getIntrinsicWidth()); [all...] |
LayerDrawableTest.java | 308 doReturn(10).when(firstLayer).getIntrinsicWidth(); 311 doReturn(-1).when(secondLayer).getIntrinsicWidth(); 323 assertEquals(layerDrawable.getDrawable(0).getIntrinsicWidth() + left + right, 324 layerDrawable.getIntrinsicWidth()); 331 assertEquals(layerDrawable.getDrawable(0).getIntrinsicWidth() + left + right, 332 layerDrawable.getIntrinsicWidth()); 480 assertEquals(34, layerDrawable.getIntrinsicWidth()); 487 assertEquals(30, layerDrawable.getIntrinsicWidth()); [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
ProxyDrawable.java | 51 public int getIntrinsicWidth() { 52 return mProxy != null ? mProxy.getIntrinsicWidth() : -1;
|
/frameworks/base/tests/TransformTest/src/com/google/android/test/transform/ |
TransformTestActivity.java | 57 drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicWidth()); 95 float sizeX = mDrawable.getIntrinsicWidth()/2; 137 float sizeX = mDrawable.getIntrinsicWidth()/2; 165 float sizeX = mDrawable.getIntrinsicWidth()/2;
|
/cts/tests/tests/widget/src/android/widget/cts/ |
ImageButtonTest.java | 81 imageButtonDrawable.getIntrinsicWidth(), imageButtonDrawable.getIntrinsicHeight(), 87 imageButtonDrawable.getIntrinsicWidth(), imageButtonDrawable.getIntrinsicHeight(), 93 imageButtonDrawable.getIntrinsicWidth(), imageButtonDrawable.getIntrinsicHeight(),
|
TabWidgetTest.java | 88 leftStripDrawable.getIntrinsicWidth(), leftStripDrawable.getIntrinsicHeight(), 94 rightStripDrawable.getIntrinsicWidth(), rightStripDrawable.getIntrinsicHeight(), 108 leftStripDrawable.getIntrinsicWidth(), leftStripDrawable.getIntrinsicHeight(), 114 rightStripDrawable.getIntrinsicWidth(), rightStripDrawable.getIntrinsicHeight(), 305 leftStripDrawable.getIntrinsicWidth(), leftStripDrawable.getIntrinsicHeight(), 313 leftStripDrawable.getIntrinsicWidth(), leftStripDrawable.getIntrinsicHeight(), 328 rightStripDrawable.getIntrinsicWidth(), rightStripDrawable.getIntrinsicHeight(), 336 rightStripDrawable.getIntrinsicWidth(), rightStripDrawable.getIntrinsicHeight(), 354 dividerDrawable.getIntrinsicWidth(), dividerDrawable.getIntrinsicHeight(), 361 dividerDrawable.getIntrinsicWidth(), dividerDrawable.getIntrinsicHeight() [all...] |
/cts/tests/app/src/android/app/cts/ |
LauncherActivity_IconResizerTest.java | 54 assertTrue(thumbNail.getIntrinsicWidth() > 0);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
SelectablePreference.java | 38 mSize / (float) icon.getIntrinsicWidth()));
|
/packages/apps/Car/Stream/src/com/android/car/stream/ |
BitmapUtils.java | 41 Bitmap bitmap = Bitmap.createBitmap(vectorDrawable.getIntrinsicWidth(),
|
/frameworks/base/core/java/android/text/style/ |
DrawableMarginSpan.java | 38 return mDrawable.getIntrinsicWidth() + mPad; 49 int dw = mDrawable.getIntrinsicWidth();
|
ImageSpan.java | 67 int width = mDrawable.getIntrinsicWidth(); 141 drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), 150 drawable.setBounds(0, 0, drawable.getIntrinsicWidth(),
|
/frameworks/base/core/java/com/android/internal/util/ |
UserIcons.java | 51 final int width = icon.getIntrinsicWidth(); 75 icon.setBounds(0, 0, icon.getIntrinsicWidth(), icon.getIntrinsicHeight());
|
/packages/apps/Dialer/java/com/android/dialer/util/ |
DrawableConverter.java | 59 } else if (drawable.getIntrinsicWidth() <= 0 || drawable.getIntrinsicHeight() <= 0) { 65 drawable.getIntrinsicWidth(),
|
/packages/apps/Dialer/java/com/android/dialer/calllogutils/ |
CallTypeIconsView.java | 83 mWidth += drawable.getIntrinsicWidth() + sResources.iconMargin; 84 mHeight = Math.max(mHeight, drawable.getIntrinsicWidth()); 96 mWidth += sResources.videoCall.getIntrinsicWidth() + sResources.iconMargin; 114 mWidth += sResources.hdCall.getIntrinsicWidth() + sResources.iconMargin; 123 mWidth += sResources.wifiCall.getIntrinsicWidth() + sResources.iconMargin; 174 final int right = left + drawable.getIntrinsicWidth(); 196 int right = left + drawable.getIntrinsicWidth();
|
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/ |
IconTest.java | 63 final Bitmap test1 = Bitmap.createBitmap(draw1.getIntrinsicWidth(), 65 final Bitmap test2 = Bitmap.createBitmap(draw2.getIntrinsicWidth(), 67 final Bitmap test3 = Bitmap.createBitmap(draw3.getIntrinsicWidth(), 70 draw1.setBounds(0, 0, draw1.getIntrinsicWidth(), draw1.getIntrinsicHeight()); 73 draw2.setBounds(0, 0, draw2.getIntrinsicWidth(), draw2.getIntrinsicHeight()); 76 draw3.setBounds(0, 0, draw3.getIntrinsicWidth(), draw3.getIntrinsicHeight()); 122 (int)(draw1.getIntrinsicWidth() * (1 + 2 * AdaptiveIconDrawable.getExtraInsetFraction())), 127 (int) (draw1.getIntrinsicWidth() * (1 + 2 * AdaptiveIconDrawable.getExtraInsetFraction())), 151 final Bitmap test1 = Bitmap.createBitmap(draw1.getIntrinsicWidth(), 178 final Bitmap test1 = Bitmap.createBitmap(draw1.getIntrinsicWidth(), [all...] |
/cts/tests/tests/transition/src/android/transition/cts/ |
ChangeImageTransformTest.java | 103 int imageWidth = mImage.getIntrinsicWidth(); 117 int imageWidth = mImage.getIntrinsicWidth(); 131 int imageWidth = mImage.getIntrinsicWidth(); 153 int imageWidth = mImage.getIntrinsicWidth(); 175 int imageWidth = mImage.getIntrinsicWidth(); 191 int imageWidth = mImage.getIntrinsicWidth();
|
/frameworks/support/transition/tests/src/android/support/transition/ |
ChangeImageTransformTest.java | 91 int imageWidth = mImage.getIntrinsicWidth(); 105 int imageWidth = mImage.getIntrinsicWidth(); 119 int imageWidth = mImage.getIntrinsicWidth(); 141 int imageWidth = mImage.getIntrinsicWidth(); 163 int imageWidth = mImage.getIntrinsicWidth(); 179 int imageWidth = mImage.getIntrinsicWidth();
|
/cts/hostsidetests/shortcuts/deviceside/common/src/android/content/pm/cts/shortcut/device/common/ |
ShortcutManagerDeviceTestBase.java | 107 assertEquals(expected.getIntrinsicWidth(), actual.getIntrinsicWidth());
|