Home
last modified time | relevance | path

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

1234

/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
DIconTest.java66 final Bitmap test1 = Bitmap.createBitmap(draw1.getIntrinsicWidth(), in testWithBitmap()
68 final Bitmap test2 = Bitmap.createBitmap(draw2.getIntrinsicWidth(), in testWithBitmap()
70 final Bitmap test3 = Bitmap.createBitmap(draw3.getIntrinsicWidth(), in testWithBitmap()
73 draw1.setBounds(0, 0, draw1.getIntrinsicWidth(), draw1.getIntrinsicHeight()); in testWithBitmap()
76 draw2.setBounds(0, 0, draw2.getIntrinsicWidth(), draw2.getIntrinsicHeight()); in testWithBitmap()
79 draw3.setBounds(0, 0, draw3.getIntrinsicWidth(), draw3.getIntrinsicHeight()); in testWithBitmap()
138 … (int)(draw1.getIntrinsicWidth() * (1 + 2 * AdaptiveIconDrawable.getExtraInsetFraction())), in testWithAdaptiveBitmap()
143 … (int) (draw1.getIntrinsicWidth() * (1 + 2 * AdaptiveIconDrawable.getExtraInsetFraction())), in testWithAdaptiveBitmap()
167 final Bitmap test1 = Bitmap.createBitmap(draw1.getIntrinsicWidth(), in testWithBitmapResource()
194 final Bitmap test1 = Bitmap.createBitmap(draw1.getIntrinsicWidth(), in testWithFile()
[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.java116 int width = mDrawable.getIntrinsicWidth(); in ImageSpan()
239 drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), in getDrawable()
248 drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), in getDrawable()
DDrawableMarginSpan.java77 return mDrawable.getIntrinsicWidth() + mPad; in getLeadingMargin()
89 int dw = mDrawable.getIntrinsicWidth(); in drawLeadingMargin()
/frameworks/base/core/java/com/android/internal/util/
DUserIcons.java51 final int width = icon.getIntrinsicWidth(); in convertToBitmap()
77 icon.setBounds(0, 0, icon.getIntrinsicWidth(), icon.getIntrinsicHeight()); in getDefaultUserIcon()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyButtonDrawable.java94 mState.mBaseWidth = d.getIntrinsicWidth(); in KeyButtonDrawable()
211 public int getIntrinsicWidth() { in getIntrinsicWidth() method in KeyButtonDrawable
258 canvas.rotate(mState.mRotateDegrees, getIntrinsicWidth() / 2, getIntrinsicHeight() / 2); in draw()
293 final int width = getIntrinsicWidth(); in regenerateBitmapIconCache()
321 final int width = getIntrinsicWidth(); in regenerateBitmapShadowCache()
369 d.setBounds(offsetX, offsetY, getIntrinsicWidth() - offsetX, in setDrawableBounds()
/frameworks/base/core/java/android/widget/
DAnalogClock.java106 mDialWidth = mDial.getIntrinsicWidth(); in AnalogClock()
199 int w = dial.getIntrinsicWidth(); in onDraw()
221 w = hourHand.getIntrinsicWidth(); in onDraw()
233 w = minuteHand.getIntrinsicWidth(); in onDraw()
DCompoundButton.java432 padding += buttonDrawable.getIntrinsicWidth(); in getCompoundPaddingLeft()
444 padding += buttonDrawable.getIntrinsicWidth(); in getCompoundPaddingRight()
456 return (buttonDrawable != null) ? buttonDrawable.getIntrinsicWidth() : 0; in getHorizontalOffsetForDrawables()
465 final int drawableWidth = buttonDrawable.getIntrinsicWidth(); in onDraw()
DAbsSeekBar.java208 mThumbOffset = thumb.getIntrinsicWidth() / 2; in setThumb()
212 (thumb.getIntrinsicWidth() != mThumb.getIntrinsicWidth() in setThumb()
719 final int thumbWidth = thumb.getIntrinsicWidth();
839 final int w = mTickMark.getIntrinsicWidth();
880 dw = Math.max(mMinWidth, Math.min(mMaxWidth, d.getIntrinsicWidth()));
DScrollBarDrawable.java332 return mVerticalTrack != null ? mVerticalTrack.getIntrinsicWidth() : in getSize()
333 mVerticalThumb != null ? mVerticalThumb.getIntrinsicWidth() : 0; in getSize()
/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/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/graph/
DBluetoothDeviceLayerDrawableTest.java56 drawable.getDrawable(0).getIntrinsicWidth()); in testCreateLayerDrawable_configCorrect()
69 drawable.getDrawable(0).getIntrinsicWidth()); in testCreateLayerDrawable_withIconScale_configCorrect()
/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/base/core/java/com/android/internal/app/
DSimpleIconFactory.java225 int w = icon.getIntrinsicWidth(); in createAppBadgedIconBitmap()
317 int intrinsicWidth = icon.getIntrinsicWidth(); in createIconBitmap()
419 int width = d.getIntrinsicWidth(); in getScale()
656 float w = getIntrinsicWidth(); in setScale()
684 public int getIntrinsicWidth() { in getIntrinsicWidth() method in SimpleIconFactory.FixedSizeBitmapDrawable
/frameworks/base/core/java/android/transition/
DChangeImageTransform.java100 int drawableWidth = drawable.getIntrinsicWidth(); in captureValues()
158 int drawableWidth = drawable.getIntrinsicWidth(); in createAnimator()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DSelectablePreference.java39 mSize / (float) icon.getIntrinsicWidth())); in setIcon()
/frameworks/base/graphics/java/android/graphics/drawable/
DPictureDrawable.java75 public int getIntrinsicWidth() { in getIntrinsicWidth() method in PictureDrawable
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DSlashDrawable.java77 public int getIntrinsicWidth() { in getIntrinsicWidth() method in SlashDrawable
78 return mDrawable != null ? mDrawable.getIntrinsicWidth(): 0; in getIntrinsicWidth()
/frameworks/base/core/java/com/android/internal/view/menu/
DIconMenuItemView.java195 icon.setBounds(0, 0, icon.getIntrinsicWidth(), icon.getIntrinsicHeight()); in setIcon()
304 Gravity.apply(Gravity.CENTER_VERTICAL | Gravity.START, mIcon.getIntrinsicWidth(), mIcon in positionIcon()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawable/
DUserIconDrawable.java399 mIntrinsicRadius = Math.min(mUserDrawable.getIntrinsicWidth(), in onBoundsChange()
432 public int getIntrinsicWidth() { in getIntrinsicWidth() method in UserIconDrawable
438 return getIntrinsicWidth(); in getIntrinsicHeight()
/frameworks/base/packages/EasterEgg/src/com/android/egg/paint/
DBrushPropertyDrawable.kt57 override fun getIntrinsicWidth(): Int { in getIntrinsicWidth() method in com.android.egg.paint.BrushPropertyDrawable
/frameworks/base/core/java/android/view/
DPointerIcon.java442 final int scaledWidth = bitmapDrawable.getIntrinsicWidth(); in getBitmapFromDrawable()
501 final int width = drawable.getIntrinsicWidth(); in loadResource()
509 if (drawableFrame.getIntrinsicWidth() != width || in loadResource()
/frameworks/base/packages/SettingsLib/AdaptiveIcon/src/com/android/settingslib/widget/
DAdaptiveOutlineDrawable.java84 public int getIntrinsicWidth() { in getIntrinsicWidth() method in AdaptiveOutlineDrawable
/frameworks/ex/framesequence/src/android/support/rastermill/
DFrameSequenceDrawable.java409 final int bitmapWidth = getIntrinsicWidth(); in draw()
527 public int getIntrinsicWidth() { in getIntrinsicWidth() method in FrameSequenceDrawable

1234