Home
last modified time | relevance | path

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

123456

/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
DIconTest.java67 draw1.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); in testWithBitmap()
69 draw2.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); in testWithBitmap()
71 draw3.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); 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()
139 … (int)(draw1.getIntrinsicHeight() * (1 + 2 * AdaptiveIconDrawable.getExtraInsetFraction())), in testWithAdaptiveBitmap()
144 … (int) (draw1.getIntrinsicHeight() * (1 + 2 * AdaptiveIconDrawable.getExtraInsetFraction()))); in testWithAdaptiveBitmap()
168 draw1.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); in testWithBitmapResource()
204 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()
DNotificationShelfController.java118 public int getIntrinsicHeight() { in getIntrinsicHeight() method in NotificationShelfController
119 return mView.getIntrinsicHeight(); in getIntrinsicHeight()
DNotificationShelf.java213 viewState.height = getIntrinsicHeight(); in updateState()
399 notificationClipEnd = shelfStart + getIntrinsicHeight(); in updateAppearance()
458 || clipTopAmount >= getIntrinsicHeight() in updateAppearance()
699 getIntrinsicHeight());
702 fullHeight = Math.min(fullHeight, view.getMinHeight() - getIntrinsicHeight());
705 view.getMinHeight() - getIntrinsicHeight());
864 return -(getIntrinsicHeight() - mStatusBarHeight) / 2; in getFullyClosedTranslation()
/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/packages/SettingsLib/src/com/android/settingslib/applications/
DAppIconCacheManager.java44 return drawable.getIntrinsicHeight() * drawable.getIntrinsicWidth() * 4 / 1024; in AppIconCacheManager()
68 if (key == null || drawable == null || drawable.getIntrinsicHeight() < 0 in put()
/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/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/
DAppIconCacheManagerTest.java48 doReturn(10).when(mIcon).getIntrinsicHeight(); in setUp()
78 doReturn(-1).when(mIcon).getIntrinsicHeight(); in put_invalidIconSize_shouldNotCacheIcon()
/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/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/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.java427 - ambientState.getShelf().getIntrinsicHeight() in initAlgorithmState()
500 final float shelfHeight = showingShelf ? ambientState.getShelf().getIntrinsicHeight() : 0f; in getExpansionFractionWithoutShelf()
592 + view.getIntrinsicHeight();
627 - ambientState.getShelf().getIntrinsicHeight()
638 algorithmState.mCurrentExpandedYPosition += view.getIntrinsicHeight()
780 childState.height = Math.max(row.getIntrinsicHeight(), childState.height); in updateHeadsUpStates()
788 childState.height = row.getIntrinsicHeight(); in updateHeadsUpStates()
874 return expandableView.getIntrinsicHeight(); in getMaxAllowedChildHeight()
953 ambientState.getShelf().getIntrinsicHeight(); in updateChildZValue()
957 float notificationEnd = childViewState.getYTranslation() + child.getIntrinsicHeight() in updateChildZValue()
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/brightness/
DBrightnessSliderView.java199 int height = (int) (mProgressDrawable.getIntrinsicHeight() * mScale); in applySliderScale()
200 int inset = (mProgressDrawable.getIntrinsicHeight() - height) / 2; in applySliderScale()
/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.java110 int intrinsicHeight = drawable.getIntrinsicHeight(); in setMessage()
209 && measuredHeight != mDrawable.getIntrinsicHeight(); in getMeasuredType()
213 if (!mIsIsolated && measuredHeight != mDrawable.getIntrinsicHeight()) { in getMeasuredType()
/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/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.java214 mDialHeight = mDial.getIntrinsicHeight(); in AnalogClock()
222 mDialHeight = mDial.getIntrinsicHeight(); in setDial()
684 int h = dial.getIntrinsicHeight(); in onDraw()
706 h = hourHand.getIntrinsicHeight(); in onDraw()
718 h = minuteHand.getIntrinsicHeight(); in onDraw()
731 h = secondHand.getIntrinsicHeight(); in onDraw()
/frameworks/base/core/java/android/transition/
DChangeImageTransform.java101 int drawableHeight = drawable.getIntrinsicHeight(); in captureValues()
159 int drawableHeight = drawable.getIntrinsicHeight(); in createAnimator()
/frameworks/base/graphics/java/android/graphics/drawable/
DPictureDrawable.java80 public int getIntrinsicHeight() { in getIntrinsicHeight() method in PictureDrawable
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DFixedScaleDrawable.java43 float h = getIntrinsicHeight(); in setScale()
/frameworks/base/services/tests/servicestests/src/com/android/server/textclassifier/
DIconsContentProviderTest.java49 assertThat(expected.getIntrinsicHeight()).isGreaterThan(0); in testLoadResource()

123456