Home
last modified time | relevance | path

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

12345

/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()
201 if (stat_sys_adb.getIntrinsicWidth() != stat_sys_adb_width) { in testWithStatSysAdbResource()
[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/packages/SettingsLib/src/com/android/settingslib/applications/
DAppIconCacheManager.java44 return drawable.getIntrinsicHeight() * drawable.getIntrinsicWidth() * 4 / 1024; in AppIconCacheManager()
69 || drawable.getIntrinsicWidth() < 0) { in put()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/
DAppIconCacheManagerTest.java49 doReturn(10).when(mIcon).getIntrinsicWidth(); in setUp()
79 doReturn(-1).when(mIcon).getIntrinsicWidth(); in put_invalidIconSize_shouldNotCacheIcon()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/buttons/
DKeyButtonDrawable.java109 mState.mBaseWidth = d.getIntrinsicWidth(); in KeyButtonDrawable()
245 public int getIntrinsicWidth() { in getIntrinsicWidth() method in KeyButtonDrawable
292 canvas.rotate(mState.mRotateDegrees, getIntrinsicWidth() / 2, getIntrinsicHeight() / 2); in draw()
327 final int width = getIntrinsicWidth(); in regenerateBitmapIconCache()
355 final int width = getIntrinsicWidth(); in regenerateBitmapShadowCache()
403 d.setBounds(offsetX, offsetY, getIntrinsicWidth() - offsetX, in setDrawableBounds()
/frameworks/base/core/java/android/inputmethodservice/navigationbar/
DKeyButtonDrawable.java113 mState.mBaseWidth = d.getIntrinsicWidth(); in KeyButtonDrawable()
249 public int getIntrinsicWidth() { in getIntrinsicWidth() method in KeyButtonDrawable
296 canvas.rotate(mState.mRotateDegrees, getIntrinsicWidth() / 2, getIntrinsicHeight() / 2); in draw()
331 final int width = getIntrinsicWidth(); in regenerateBitmapIconCache()
359 final int width = getIntrinsicWidth(); in regenerateBitmapShadowCache()
407 d.setBounds(offsetX, offsetY, getIntrinsicWidth() - offsetX, in setDrawableBounds()
/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/core/java/com/android/internal/util/
DUserIcons.java49 return convertToBitmapAtSize(icon, icon.getIntrinsicWidth(), icon.getIntrinsicHeight()); in convertToBitmap()
98 icon.setBounds(0, 0, icon.getIntrinsicWidth(), icon.getIntrinsicHeight()); in getDefaultUserIconInColor()
/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/services/core/java/com/android/server/textclassifier/
DIconsContentProvider.java85 if (drawable.getIntrinsicWidth() <= 0 || drawable.getIntrinsicHeight() <= 0) { in getBitmap()
90 drawable.getIntrinsicWidth(), in getBitmap()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DSelectablePreference.java39 mSize / (float) icon.getIntrinsicWidth())); in setIcon()
/frameworks/base/core/java/android/transition/
DChangeImageTransform.java100 int drawableWidth = drawable.getIntrinsicWidth(); in captureValues()
158 int drawableWidth = drawable.getIntrinsicWidth(); in createAnimator()
/frameworks/base/core/java/android/widget/
DAnalogClock.java213 mDialWidth = mDial.getIntrinsicWidth(); in AnalogClock()
221 mDialWidth = mDial.getIntrinsicWidth(); in setDial()
683 int w = dial.getIntrinsicWidth(); in onDraw()
705 w = hourHand.getIntrinsicWidth(); in onDraw()
717 w = minuteHand.getIntrinsicWidth(); in onDraw()
730 w = secondHand.getIntrinsicWidth(); in onDraw()
DCompoundButton.java502 padding += buttonDrawable.getIntrinsicWidth(); in getCompoundPaddingLeft()
514 padding += buttonDrawable.getIntrinsicWidth(); in getCompoundPaddingRight()
526 return (buttonDrawable != null) ? buttonDrawable.getIntrinsicWidth() : 0; in getHorizontalOffsetForDrawables()
535 final int drawableWidth = buttonDrawable.getIntrinsicWidth(); in onDraw()
DAbsSeekBar.java210 mThumbOffset = thumb.getIntrinsicWidth() / 2; in setThumb()
214 (thumb.getIntrinsicWidth() != mThumb.getIntrinsicWidth() in setThumb()
721 final int thumbWidth = thumb.getIntrinsicWidth();
847 final int w = mTickMark.getIntrinsicWidth();
888 dw = Math.max(mMinWidth, Math.min(mMaxWidth, d.getIntrinsicWidth()));
/frameworks/base/graphics/java/android/graphics/drawable/
DPictureDrawable.java75 public int getIntrinsicWidth() { in getIntrinsicWidth() method in PictureDrawable
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DFixedScaleDrawable.java44 float w = getIntrinsicWidth(); in setScale()
/frameworks/base/services/tests/servicestests/src/com/android/server/textclassifier/
DIconsContentProviderTest.java48 assertThat(expected.getIntrinsicWidth()).isGreaterThan(0); in testLoadResource()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DSlashDrawable.java79 public int getIntrinsicWidth() { in getIntrinsicWidth() method in SlashDrawable
80 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/core/java/com/android/internal/app/
DSimpleIconFactory.java262 int w = icon.getIntrinsicWidth(); in createAppBadgedIconBitmap()
395 int intrinsicWidth = icon.getIntrinsicWidth(); in createIconBitmap()
497 int width = d.getIntrinsicWidth(); in getScale()
734 float w = getIntrinsicWidth(); in setScale()
762 public int getIntrinsicWidth() { in getIntrinsicWidth() method in SimpleIconFactory.FixedSizeBitmapDrawable

12345