/frameworks/base/core/tests/coretests/src/android/graphics/drawable/ |
D | IconTest.java | 66 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/ |
D | TransformTestActivity.java | 57 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/ |
D | ScalingDrawableWrapper.java | 35 public int getIntrinsicWidth() { in getIntrinsicWidth() method in ScalingDrawableWrapper 36 return (int) (super.getIntrinsicWidth() * mScaleFactor); in getIntrinsicWidth()
|
/frameworks/base/core/java/android/text/style/ |
D | ImageSpan.java | 116 int width = mDrawable.getIntrinsicWidth(); in ImageSpan() 239 drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), in getDrawable() 248 drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), in getDrawable()
|
D | DrawableMarginSpan.java | 77 return mDrawable.getIntrinsicWidth() + mPad; in getLeadingMargin() 89 int dw = mDrawable.getIntrinsicWidth(); in drawLeadingMargin()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | UserIcons.java | 51 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/ |
D | KeyButtonDrawable.java | 94 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/ |
D | AnalogClock.java | 106 mDialWidth = mDial.getIntrinsicWidth(); in AnalogClock() 199 int w = dial.getIntrinsicWidth(); in onDraw() 221 w = hourHand.getIntrinsicWidth(); in onDraw() 233 w = minuteHand.getIntrinsicWidth(); in onDraw()
|
D | CompoundButton.java | 432 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()
|
D | AbsSeekBar.java | 208 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()));
|
D | ScrollBarDrawable.java | 332 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/ |
D | DpiTestActivity.java | 174 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/ |
D | BluetoothDeviceLayerDrawableTest.java | 56 drawable.getDrawable(0).getIntrinsicWidth()); in testCreateLayerDrawable_configCorrect() 69 drawable.getDrawable(0).getIntrinsicWidth()); in testCreateLayerDrawable_withIconScale_configCorrect()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | DrawableHolder.java | 56 mDrawable.setBounds(0, 0, mDrawable.getIntrinsicWidth(), mDrawable.getIntrinsicHeight()); in DrawableHolder() 203 return mDrawable.getIntrinsicWidth(); in getWidth()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | SimpleIconFactory.java | 225 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/ |
D | ChangeImageTransform.java | 100 int drawableWidth = drawable.getIntrinsicWidth(); in captureValues() 158 int drawableWidth = drawable.getIntrinsicWidth(); in createAnimator()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
D | SelectablePreference.java | 39 mSize / (float) icon.getIntrinsicWidth())); in setIcon()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | PictureDrawable.java | 75 public int getIntrinsicWidth() { in getIntrinsicWidth() method in PictureDrawable
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | SlashDrawable.java | 77 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/ |
D | IconMenuItemView.java | 195 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/ |
D | UserIconDrawable.java | 399 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/ |
D | BrushPropertyDrawable.kt | 57 override fun getIntrinsicWidth(): Int { in getIntrinsicWidth() method in com.android.egg.paint.BrushPropertyDrawable
|
/frameworks/base/core/java/android/view/ |
D | PointerIcon.java | 442 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/ |
D | AdaptiveOutlineDrawable.java | 84 public int getIntrinsicWidth() { in getIntrinsicWidth() method in AdaptiveOutlineDrawable
|
/frameworks/ex/framesequence/src/android/support/rastermill/ |
D | FrameSequenceDrawable.java | 409 final int bitmapWidth = getIntrinsicWidth(); in draw() 527 public int getIntrinsicWidth() { in getIntrinsicWidth() method in FrameSequenceDrawable
|