Home
last modified time | relevance | path

Searched refs:getIntrinsicWidth (Results 1 – 25 of 104) sorted by relevance

12345

/frameworks/base/graphics/tests/graphicstests/src/android/graphics/drawable/
DIconTest.java63 final Bitmap test1 = Bitmap.createBitmap(draw1.getIntrinsicWidth(), in testWithBitmap()
65 final Bitmap test2 = Bitmap.createBitmap(draw2.getIntrinsicWidth(), in testWithBitmap()
67 final Bitmap test3 = Bitmap.createBitmap(draw3.getIntrinsicWidth(), in testWithBitmap()
70 draw1.setBounds(0, 0, draw1.getIntrinsicWidth(), draw1.getIntrinsicHeight()); in testWithBitmap()
73 draw2.setBounds(0, 0, draw2.getIntrinsicWidth(), draw2.getIntrinsicHeight()); in testWithBitmap()
76 draw3.setBounds(0, 0, draw3.getIntrinsicWidth(), draw3.getIntrinsicHeight()); in testWithBitmap()
117 final Bitmap test1 = Bitmap.createBitmap(draw1.getIntrinsicWidth(), in testWithBitmapResource()
144 final Bitmap test1 = Bitmap.createBitmap(draw1.getIntrinsicWidth(), in testWithFile()
175 L(TAG, "asyncTest: thread: loaded: %dx%d", draw1.getIntrinsicWidth(), in testAsync()
177 final Bitmap test1 = Bitmap.createBitmap(draw1.getIntrinsicWidth(), in testAsync()
[all …]
/frameworks/base/tests/TransformTest/src/com/google/android/test/transform/
DTransformTestActivity.java57 drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicWidth()); in onCreate()
95 float sizeX = mDrawable.getIntrinsicWidth()/2; in onScale()
137 float sizeX = mDrawable.getIntrinsicWidth()/2; in setDrawable()
165 float sizeX = mDrawable.getIntrinsicWidth()/2; in onTouchEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DScalingDrawableWrapper.java35 public int getIntrinsicWidth() { in getIntrinsicWidth() method in ScalingDrawableWrapper
36 return (int) (super.getIntrinsicWidth() * mScaleFactor); in getIntrinsicWidth()
/frameworks/base/core/java/android/text/style/
DImageSpan.java67 int width = mDrawable.getIntrinsicWidth(); in ImageSpan()
141 drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), in getDrawable()
150 drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), in getDrawable()
DDrawableMarginSpan.java38 return mDrawable.getIntrinsicWidth() + mPad; in getLeadingMargin()
49 int dw = mDrawable.getIntrinsicWidth(); in drawLeadingMargin()
/frameworks/base/core/java/android/widget/
DAnalogClock.java99 mDialWidth = mDial.getIntrinsicWidth(); in AnalogClock()
192 int w = dial.getIntrinsicWidth(); in onDraw()
214 w = hourHand.getIntrinsicWidth(); in onDraw()
226 w = minuteHand.getIntrinsicWidth(); in onDraw()
DCompoundButton.java374 padding += buttonDrawable.getIntrinsicWidth(); in getCompoundPaddingLeft()
386 padding += buttonDrawable.getIntrinsicWidth(); in getCompoundPaddingRight()
398 return (buttonDrawable != null) ? buttonDrawable.getIntrinsicWidth() : 0; in getHorizontalOffsetForDrawables()
407 final int drawableWidth = buttonDrawable.getIntrinsicWidth(); in onDraw()
DAbsSeekBar.java180 mThumbOffset = thumb.getIntrinsicWidth() / 2; in setThumb()
184 (thumb.getIntrinsicWidth() != mThumb.getIntrinsicWidth() in setThumb()
610 final int thumbWidth = thumb.getIntrinsicWidth();
692 final int w = mTickMark.getIntrinsicWidth();
732 dw = Math.max(mMinWidth, Math.min(mMaxWidth, d.getIntrinsicWidth()));
DScrollBarDrawable.java284 return mVerticalTrack != null ? mVerticalTrack.getIntrinsicWidth() : in getSize()
285 mVerticalThumb != null ? mVerticalThumb.getIntrinsicWidth() : 0; in getSize()
DTabWidget.java383 leftStrip.setBounds(Math.min(0, bounds.left - leftStrip.getIntrinsicWidth()), in dispatchDraw()
386 Math.max(getWidth(), bounds.right + rightStrip.getIntrinsicWidth()), myHeight); in dispatchDraw()
/frameworks/base/core/java/com/android/internal/util/
DUserIcons.java51 final int width = icon.getIntrinsicWidth(); in convertToBitmap()
75 icon.setBounds(0, 0, icon.getIntrinsicWidth(), icon.getIntrinsicHeight()); in getDefaultUserIcon()
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/
DDpiTestActivity.java174 view.setLayoutParams(new LinearLayout.LayoutParams(d.getIntrinsicWidth(), in addBitmapDrawable()
185 view.setLayoutParams(new LinearLayout.LayoutParams(d.getIntrinsicWidth(), in addResourceDrawable()
208 + " w=" + d.getIntrinsicWidth() + " h=" + d.getIntrinsicHeight()); in addNinePatchResourceDrawable()
210 d.getIntrinsicWidth()*2, d.getIntrinsicHeight()*2)); in addNinePatchResourceDrawable()
/frameworks/support/v4/tests/java/android/support/v4/content/res/
DResourcesCompatTest.java160 expectedSizeForMediumDensity, unthemedDrawableForMediumDensity.getIntrinsicWidth()); in testGetDrawableForDensityUnthemed()
174 expectedSizeForHighDensity, unthemedDrawableForHighDensity.getIntrinsicWidth()); in testGetDrawableForDensityUnthemed()
187 expectedSizeForXHighDensity, unthemedDrawableForXHighDensity.getIntrinsicWidth()); in testGetDrawableForDensityUnthemed()
200 expectedSizeForXXHighDensity, unthemedDrawableForXXHighDensity.getIntrinsicWidth()); in testGetDrawableForDensityUnthemed()
/frameworks/base/core/java/com/android/internal/widget/
DDrawableHolder.java56 mDrawable.setBounds(0, 0, mDrawable.getIntrinsicWidth(), mDrawable.getIntrinsicHeight()); in DrawableHolder()
203 return mDrawable.getIntrinsicWidth(); in getWidth()
/frameworks/support/v7/appcompat/src/android/support/v7/graphics/drawable/
DDrawableWrapper.java125 public int getIntrinsicWidth() { in getIntrinsicWidth() method in DrawableWrapper
126 return mDrawable.getIntrinsicWidth(); in getIntrinsicWidth()
/frameworks/base/core/java/android/transition/
DChangeImageTransform.java105 int drawableWidth = drawable.getIntrinsicWidth(); in captureValues()
171 int drawableWidth = drawable.getIntrinsicWidth(); in createAnimator()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawable/
DUserIconDrawable.java372 mIntrinsicRadius = Math.min(mUserDrawable.getIntrinsicWidth(), in onBoundsChange()
405 public int getIntrinsicWidth() { in getIntrinsicWidth() method in UserIconDrawable
411 return getIntrinsicWidth(); in getIntrinsicHeight()
/frameworks/base/core/java/com/android/internal/view/menu/
DIconMenuItemView.java183 icon.setBounds(0, 0, icon.getIntrinsicWidth(), icon.getIntrinsicHeight()); in setIcon()
288 Gravity.apply(Gravity.CENTER_VERTICAL | Gravity.START, mIcon.getIntrinsicWidth(), mIcon in positionIcon()
/frameworks/base/graphics/java/android/graphics/drawable/
DPictureDrawable.java75 public int getIntrinsicWidth() { in getIntrinsicWidth() method in PictureDrawable
DInsetDrawable.java224 public int getIntrinsicWidth() { in getIntrinsicWidth() method in InsetDrawable
225 final int childWidth = getDrawable().getIntrinsicWidth(); in getIntrinsicWidth()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DLockIcon.java155 || icon.getIntrinsicWidth() != iconWidth)) { in update()
291 public int getIntrinsicWidth() { in getIntrinsicWidth() method in LockIcon.IntrinsicSizeDrawable
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/
DDrawableWrapperDonut.java171 public int getIntrinsicWidth() { in getIntrinsicWidth() method in DrawableWrapperDonut
172 return mDrawable.getIntrinsicWidth(); in getIntrinsicWidth()
/frameworks/base/core/java/android/app/
DMediaRouteButton.java335 mRemoteIndicator.getIntrinsicWidth() + getPaddingLeft() + getPaddingRight() : 0); in onMeasure()
381 final int drawWidth = mRemoteIndicator.getIntrinsicWidth(); in onDraw()
/frameworks/support/v4/tests/java/android/support/v4/testutils/
DTestUtils.java72 int drawableWidth = drawable.getIntrinsicWidth(); in assertAllPixelsOfColor()
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/
DAnimatedVectorDrawableCompat.java305 public int getIntrinsicWidth() { in getIntrinsicWidth() method in AnimatedVectorDrawableCompat
307 return mDelegateDrawable.getIntrinsicWidth(); in getIntrinsicWidth()
309 return mAnimatedVectorState.mVectorDrawable.getIntrinsicWidth(); in getIntrinsicWidth()

12345