Home
last modified time | relevance | path

Searched refs:getIntrinsicHeight (Results 1 – 25 of 145) sorted by relevance

123456

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/
DAppIconCacheManagerTest.java58 doReturn(10).when(mIcon).getIntrinsicHeight(); in setUp()
73 doReturn(iconSize).when(mIcon1).getIntrinsicHeight(); in setUp()
77 doReturn(iconSize).when(mIcon2).getIntrinsicHeight(); in setUp()
81 doReturn(iconSize).when(mIcon3).getIntrinsicHeight(); in setUp()
111 doReturn(-1).when(mIcon).getIntrinsicHeight(); in put_invalidIconSize_shouldNotCacheIcon()
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
DIconTest.java99 draw1.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); in testWithBitmap()
101 draw2.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); in testWithBitmap()
103 draw3.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); in testWithBitmap()
105 draw1.setBounds(0, 0, draw1.getIntrinsicWidth(), draw1.getIntrinsicHeight()); in testWithBitmap()
108 draw2.setBounds(0, 0, draw2.getIntrinsicWidth(), draw2.getIntrinsicHeight()); in testWithBitmap()
111 draw3.setBounds(0, 0, draw3.getIntrinsicWidth(), draw3.getIntrinsicHeight()); in testWithBitmap()
171 … (int)(draw1.getIntrinsicHeight() * (1 + 2 * AdaptiveIconDrawable.getExtraInsetFraction())), in testWithAdaptiveBitmap()
176 … (int) (draw1.getIntrinsicHeight() * (1 + 2 * AdaptiveIconDrawable.getExtraInsetFraction()))); in testWithAdaptiveBitmap()
200 draw1.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); in testWithBitmapResource()
236 if (stat_sys_adb.getIntrinsicHeight() != stat_sys_adb_height) { in testWithStatSysAdbResource()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DScalingDrawableWrapper.java40 public int getIntrinsicHeight() { in getIntrinsicHeight() method in ScalingDrawableWrapper
41 return (int) (super.getIntrinsicHeight() * mScaleFactor); in getIntrinsicHeight()
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/
DBaselineButtonsTest.java65 int pauseHeight = Math.max(mPause.getDrawable().getIntrinsicHeight() in testLayout()
68 int prevHeight = Math.max(mPrev.getDrawable().getIntrinsicHeight() + mPrev.getPaddingTop() in testLayout()
71 int nextHeight = Math.max(mNext.getDrawable().getIntrinsicHeight() + mNext.getPaddingTop() in testLayout()
/frameworks/base/core/java/android/text/style/
DImageSpan.java117 int height = mDrawable.getIntrinsicHeight(); in ImageSpan()
240 drawable.getIntrinsicHeight()); in getDrawable()
249 drawable.getIntrinsicHeight()); in getDrawable()
DDrawableMarginSpan.java90 int dh = mDrawable.getIntrinsicHeight(); in drawLeadingMargin()
102 int ht = mDrawable.getIntrinsicHeight(); in chooseHeight()
/frameworks/base/tests/TransformTest/src/com/google/android/test/transform/
DTransformTestActivity.java96 float sizeY = mDrawable.getIntrinsicHeight()/2; in onScale()
138 float sizeY = mDrawable.getIntrinsicHeight()/2; in setDrawable()
166 float sizeY = mDrawable.getIntrinsicHeight()/2; in onTouchEvent()
/frameworks/base/core/java/android/inputmethodservice/navigationbar/
DKeyButtonDrawable.java112 mState.mBaseHeight = d.getIntrinsicHeight(); in KeyButtonDrawable()
244 public int getIntrinsicHeight() { in getIntrinsicHeight() method in KeyButtonDrawable
296 canvas.rotate(mState.mRotateDegrees, getIntrinsicWidth() / 2, getIntrinsicHeight() / 2); in draw()
332 final int height = getIntrinsicHeight(); in regenerateBitmapIconCache()
360 final int height = getIntrinsicHeight(); in regenerateBitmapShadowCache()
408 getIntrinsicHeight() - offsetY); in setDrawableBounds()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/buttons/
DKeyButtonDrawable.java108 mState.mBaseHeight = d.getIntrinsicHeight(); in KeyButtonDrawable()
240 public int getIntrinsicHeight() { in getIntrinsicHeight() method in KeyButtonDrawable
292 canvas.rotate(mState.mRotateDegrees, getIntrinsicWidth() / 2, getIntrinsicHeight() / 2); in draw()
328 final int height = getIntrinsicHeight(); in regenerateBitmapIconCache()
356 final int height = getIntrinsicHeight(); in regenerateBitmapShadowCache()
404 getIntrinsicHeight() - offsetY); in setDrawableBounds()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DAppIconCacheManager.java47 return drawable.getIntrinsicHeight() * drawable.getIntrinsicWidth() * 4 / 1024; in AppIconCacheManager()
71 if (key == null || drawable == null || drawable.getIntrinsicHeight() < 0 in put()
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/
DDpiTestActivity.java175 d.getIntrinsicHeight())); in addBitmapDrawable()
186 d.getIntrinsicHeight())); 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/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DStackScrollAlgorithm.java492 - ambientState.getShelf().getIntrinsicHeight() in initAlgorithmState()
565 final float shelfHeight = showingShelf ? ambientState.getShelf().getIntrinsicHeight() : 0f; in getExpansionFractionWithoutShelf()
660 + view.getIntrinsicHeight();
674 + view.getIntrinsicHeight();
710 - ambientState.getShelf().getIntrinsicHeight()
725 algorithmState.mCurrentExpandedYPosition += view.getIntrinsicHeight()
889 childState.height = Math.max(row.getIntrinsicHeight(), childState.height); in updateHeadsUpStates()
904 childState.height = row.getIntrinsicHeight(); in updateHeadsUpStates()
1029 return expandableView.getIntrinsicHeight(); in getMaxAllowedChildHeight()
1108 ambientState.getShelf().getIntrinsicHeight(); in updateChildZValue()
[all …]
/frameworks/base/services/core/java/com/android/server/textclassifier/
DIconsContentProvider.java85 if (drawable.getIntrinsicWidth() <= 0 || drawable.getIntrinsicHeight() <= 0) { in getBitmap()
91 drawable.getIntrinsicHeight(), in getBitmap()
/frameworks/base/core/java/com/android/internal/widget/
DDrawableHolder.java56 mDrawable.setBounds(0, 0, mDrawable.getIntrinsicWidth(), mDrawable.getIntrinsicHeight()); in DrawableHolder()
207 return mDrawable.getIntrinsicHeight(); in getHeight()
DMessagingImageMessage.java111 int intrinsicHeight = drawable.getIntrinsicHeight(); in setMessage()
225 && measuredHeight != mDrawable.getIntrinsicHeight(); in getMeasuredType()
229 if (!mIsIsolated && measuredHeight != mDrawable.getIntrinsicHeight()) { in getMeasuredType()
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/brightness/
DBrightnessSliderView.java217 int height = (int) (mProgressDrawable.getIntrinsicHeight() * mScale); in applySliderScale()
218 int inset = (mProgressDrawable.getIntrinsicHeight() - height) / 2; in applySliderScale()
/frameworks/base/core/java/android/widget/
DAbsSeekBar.java215 || thumb.getIntrinsicHeight() != mThumb.getIntrinsicHeight())) { in setThumb()
678 final int thumbHeight = thumb == null ? 0 : thumb.getIntrinsicHeight();
722 final int thumbHeight = thumb.getIntrinsicHeight();
848 final int h = mTickMark.getIntrinsicHeight();
884 int thumbHeight = mThumb == null ? 0 : mThumb.getIntrinsicHeight();
889 dh = Math.max(mMinHeight, Math.min(mMaxHeight, d.getIntrinsicHeight()));
DAnalogClock.java220 mDialHeight = mDial.getIntrinsicHeight(); in AnalogClock()
228 mDialHeight = mDial.getIntrinsicHeight(); in setDial()
689 int h = dial.getIntrinsicHeight(); in onDraw()
711 h = hourHand.getIntrinsicHeight(); in onDraw()
723 h = minuteHand.getIntrinsicHeight(); in onDraw()
736 h = secondHand.getIntrinsicHeight(); in onDraw()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DPlaceHolderDrawable.kt20 override fun getIntrinsicHeight(): Int { in getIntrinsicHeight() method in com.android.systemui.statusbar.notification.row.PlaceHolderDrawable
/frameworks/base/core/java/android/transition/
DChangeImageTransform.java103 int drawableHeight = drawable.getIntrinsicHeight(); in captureValues()
163 int drawableHeight = drawable.getIntrinsicHeight(); in createAnimator()
/frameworks/base/core/java/android/content/pm/
DArchivedActivityInfo.java100 if (drawable.getIntrinsicWidth() <= 0 || drawable.getIntrinsicHeight() <= 0) { in drawableToBitmap()
107 drawable.getIntrinsicHeight(), in drawableToBitmap()
/frameworks/base/graphics/java/android/graphics/drawable/
DPictureDrawable.java80 public int getIntrinsicHeight() { in getIntrinsicHeight() method in PictureDrawable
/frameworks/ex/framesequence/src/android/support/rastermill/
DFrameSequenceDrawable.java124 public int getIntrinsicHeight() { in getIntrinsicHeight() method in FrameSequenceDrawable
/frameworks/base/services/tests/servicestests/src/com/android/server/textclassifier/
DIconsContentProviderTest.java49 assertThat(expected.getIntrinsicHeight()).isGreaterThan(0); in testLoadResource()

123456