/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() 201 if (stat_sys_adb.getIntrinsicWidth() != stat_sys_adb_width) { in testWithStatSysAdbResource() [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/packages/SettingsLib/src/com/android/settingslib/applications/ |
D | AppIconCacheManager.java | 44 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/ |
D | AppIconCacheManagerTest.java | 49 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/ |
D | KeyButtonDrawable.java | 109 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/ |
D | KeyButtonDrawable.java | 113 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/ |
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/core/java/com/android/internal/util/ |
D | UserIcons.java | 49 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/ |
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/services/core/java/com/android/server/textclassifier/ |
D | IconsContentProvider.java | 85 if (drawable.getIntrinsicWidth() <= 0 || drawable.getIntrinsicHeight() <= 0) { in getBitmap() 90 drawable.getIntrinsicWidth(), in getBitmap()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
D | SelectablePreference.java | 39 mSize / (float) icon.getIntrinsicWidth())); in setIcon()
|
/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/core/java/android/widget/ |
D | AnalogClock.java | 213 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()
|
D | CompoundButton.java | 502 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()
|
D | AbsSeekBar.java | 210 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/ |
D | PictureDrawable.java | 75 public int getIntrinsicWidth() { in getIntrinsicWidth() method in PictureDrawable
|
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/ |
D | FixedScaleDrawable.java | 44 float w = getIntrinsicWidth(); in setScale()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/textclassifier/ |
D | IconsContentProviderTest.java | 48 assertThat(expected.getIntrinsicWidth()).isGreaterThan(0); in testLoadResource()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | SlashDrawable.java | 79 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/ |
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/core/java/com/android/internal/app/ |
D | SimpleIconFactory.java | 262 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
|