Home
last modified time | relevance | path

Searched refs:maxHeight (Results 1 – 25 of 112) sorted by relevance

12345

/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/bip/
H A DBipPixel.java78 int maxHeight) { in createResizableModified() argument
80 maxHeight); in createResizableModified()
87 int minHeight = (minWidth * maxHeight) / maxWidth; in createResizableFixed()
89 maxWidth, maxHeight); in createResizableFixed()
105 mMaxHeight = maxHeight; in BipPixel()
116 int maxHeight = -1; in BipPixel() local
128 maxHeight = Integer.parseInt(m1.group(2)); in BipPixel()
140 maxHeight = Integer.parseInt(m2.group(4)); in BipPixel()
150 maxHeight = Integer.parseInt(m3.group(3)); in BipPixel()
151 minHeight = (minWidth * maxHeight) / maxWidth; in BipPixel()
[all …]
/aosp12/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A DKeyguardSecurityViewFlipper.java127 int maxHeight = heightSize; in onMeasure() local
138 if (lp.maxHeight > 0 && lp.maxHeight < maxHeight) { in onMeasure()
139 maxHeight = lp.maxHeight; in onMeasure()
146 maxHeight = Math.max(0, maxHeight - hPadding); in onMeasure()
155 final int childHeightSpec = makeChildMeasureSpec(maxHeight, lp.height); in onMeasure()
190 public int maxHeight; field in KeyguardSecurityViewFlipper.LayoutParams
200 maxHeight = other.maxHeight; in LayoutParams()
210 maxHeight = a.getDimensionPixelSize( in LayoutParams()
221 encoder.addProperty("layout:maxHeight", maxHeight); in encodeProperties()
/aosp12/frameworks/base/core/java/com/android/internal/widget/
H A DDialogViewAnimator.java47 int maxHeight = 0; in onMeasure() local
77 maxHeight = Math.max(maxHeight, child.getMeasuredHeight() in onMeasure()
89 maxHeight += getPaddingTop() + getPaddingBottom(); in onMeasure()
92 maxHeight = Math.max(maxHeight, getSuggestedMinimumHeight()); in onMeasure()
98 maxHeight = Math.max(maxHeight, drawable.getMinimumHeight()); in onMeasure()
103 resolveSizeAndState(maxHeight, heightMeasureSpec, in onMeasure()
H A DWatchListDecorLayout.java167 int maxHeight = 0; in onMeasure() local
178 maxHeight = Math.max(maxHeight, in onMeasure()
192 maxHeight += getPaddingTopWithForeground() + getPaddingBottomWithForeground(); in onMeasure()
195 maxHeight = Math.max(maxHeight, getSuggestedMinimumHeight()); in onMeasure()
201 maxHeight = Math.max(maxHeight, drawable.getMinimumHeight()); in onMeasure()
206 resolveSizeAndState(maxHeight, heightMeasureSpec, in onMeasure()
H A DPreferenceImageView.java63 final int maxHeight = getMaxHeight(); in onMeasure() local
64 if (maxHeight != Integer.MAX_VALUE in onMeasure()
65 && (maxHeight < heightSize || heightMode == MeasureSpec.UNSPECIFIED)) { in onMeasure()
66 heightMeasureSpec = MeasureSpec.makeMeasureSpec(maxHeight, MeasureSpec.AT_MOST); in onMeasure()
H A DLocalImageResolver.java65 public static Drawable resolveImage(Uri uri, Context context, int maxWidth, int maxHeight) in resolveImage() argument
77 if (size.getHeight() > maxHeight) { in resolveImage()
78 final int targetWidth = size.getWidth() * maxHeight / size.getHeight(); in resolveImage()
79 decoder.setTargetSize(targetWidth, maxHeight); in resolveImage()
H A DActionBarOverlayLayout.java376 int maxHeight = 0;
387 maxHeight = Math.max(maxHeight,
397 maxHeight = Math.max(maxHeight,
467 maxHeight = Math.max(maxHeight,
473 maxHeight += getPaddingTop() + getPaddingBottom();
476 maxHeight = Math.max(maxHeight, getSuggestedMinimumHeight());
480 resolveSizeAndState(maxHeight, heightMeasureSpec,
/aosp12/frameworks/base/core/java/android/widget/
H A DDayPickerViewPager.java63 int maxHeight = 0; in onMeasure() local
73 maxHeight = Math.max(maxHeight, child.getMeasuredHeight()); in onMeasure()
86 maxHeight += getPaddingTop() + getPaddingBottom(); in onMeasure()
89 maxHeight = Math.max(maxHeight, getSuggestedMinimumHeight()); in onMeasure()
95 maxHeight = Math.max(maxHeight, drawable.getMinimumHeight()); in onMeasure()
100 resolveSizeAndState(maxHeight, heightMeasureSpec, in onMeasure()
H A DAbsoluteLayout.java63 int maxHeight = 0; in onMeasure() local
83 maxHeight = Math.max(maxHeight, childBottom); in onMeasure()
89 maxHeight += mPaddingTop + mPaddingBottom; in onMeasure()
92 maxHeight = Math.max(maxHeight, getSuggestedMinimumHeight()); in onMeasure()
96 resolveSizeAndState(maxHeight, heightMeasureSpec, 0)); in onMeasure()
H A DFrameLayout.java187 int maxHeight = 0; in onMeasure() local
198 maxHeight = Math.max(maxHeight, in onMeasure()
212 maxHeight += getPaddingTopWithForeground() + getPaddingBottomWithForeground(); in onMeasure()
215 maxHeight = Math.max(maxHeight, getSuggestedMinimumHeight()); in onMeasure()
221 maxHeight = Math.max(maxHeight, drawable.getMinimumHeight()); in onMeasure()
226 resolveSizeAndState(maxHeight, heightMeasureSpec, in onMeasure()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DPseudoGridView.java88 int maxHeight = 0; in onMeasure() local
92 maxHeight = Math.max(maxHeight, child.getMeasuredHeight()); in onMeasure()
94 int maxHeightSpec = MeasureSpec.makeMeasureSpec(maxHeight, MeasureSpec.EXACTLY); in onMeasure()
97 if (child.getMeasuredHeight() != maxHeight) { in onMeasure()
101 totalHeight += maxHeight; in onMeasure()
118 int maxHeight = 0; in onLayout() local
129 maxHeight = Math.max(maxHeight, height); in onLayout()
136 y += maxHeight + mVerticalSpacing; in onLayout()
/aosp12/packages/apps/Dialer/java/com/android/dialer/widget/
H A DMaxHeightScrollView.java28 private final int maxHeight; field in MaxHeightScrollView
42 maxHeight = -1; in MaxHeightScrollView()
49 maxHeight = array.getDimensionPixelSize(R.styleable.MaxHeightScrollView_maxHeight, -1); in MaxHeightScrollView()
57 if (maxHeight < 0) { in onMeasure()
61 widthMeasureSpec, MeasureSpec.makeMeasureSpec(maxHeight, MeasureSpec.AT_MOST)); in onMeasure()
/aosp12/packages/apps/TV/src/com/android/tv/util/images/
H A DImageLoader.java143 Context context, final String uriString, final int maxWidth, final int maxHeight) { in prefetchBitmap() argument
156 maxHeight, in prefetchBitmap()
189 int maxHeight, in loadBitmap() argument
195 context, uriString, maxWidth, maxHeight, callback, IMAGE_THREAD_POOL_EXECUTOR); in loadBitmap()
202 int maxHeight, in doLoadBitmap() argument
209 if (bitmapInfo != null && !bitmapInfo.needToReload(maxWidth, maxHeight)) { in doLoadBitmap()
323 if (maxWidth == 0 || maxHeight == 0) { in LoadBitmapTask()
328 + maxHeight in LoadBitmapTask()
334 mMaxHeight = maxHeight; in LoadBitmapTask()
390 int maxHeight) { in LoadBitmapFromUriTask() argument
[all …]
H A DBitmapUtils.java60 public static Bitmap scaleBitmap(Bitmap bm, int maxWidth, int maxHeight) { in scaleBitmap() argument
61 Rect rect = calculateNewSize(bm, maxWidth, maxHeight); in scaleBitmap()
65 public static Bitmap getScaledMutableBitmap(Bitmap bm, int maxWidth, int maxHeight) { in getScaledMutableBitmap() argument
66 Bitmap scaledBitmap = scaleBitmap(bm, maxWidth, maxHeight); in getScaledMutableBitmap()
72 private static Rect calculateNewSize(Bitmap bm, int maxWidth, int maxHeight) { in calculateNewSize() argument
73 final double ratio = maxHeight / (double) maxWidth; in calculateNewSize()
80 rect.right = Math.round((float) bm.getWidth() * maxHeight / bm.getHeight()); in calculateNewSize()
81 rect.bottom = maxHeight; in calculateNewSize()
87 String id, Bitmap bm, int maxWidth, int maxHeight) { in createScaledBitmapInfo() argument
90 scaleBitmap(bm, maxWidth, maxHeight), in createScaledBitmapInfo()
[all …]
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/
H A DBipPixelTest.java32 int maxHeight, String pixelStr) { in testParse() argument
38 Assert.assertEquals(maxHeight, pixel.getMaxHeight()); in testParse()
52 private void testResizableModified(int minWidth, int minHeight, int maxWidth, int maxHeight, in testResizableModified() argument
54 BipPixel pixel = BipPixel.createResizableModified(minWidth, minHeight, maxWidth, maxHeight); in testResizableModified()
59 Assert.assertEquals(maxHeight, pixel.getMaxHeight()); in testResizableModified()
63 private void testResizableFixed(int minWidth, int maxWidth, int maxHeight, in testResizableFixed() argument
65 int minHeight = (minWidth * maxHeight) / maxWidth; // spec defined in testResizableFixed()
66 BipPixel pixel = BipPixel.createResizableFixed(minWidth, maxWidth, maxHeight); in testResizableFixed()
71 Assert.assertEquals(maxHeight, pixel.getMaxHeight()); in testResizableFixed()
/aosp12/frameworks/base/core/java/com/android/internal/app/
H A DResolverViewPager.java61 int maxHeight = 0; in onMeasure() local
66 if (maxHeight < child.getMeasuredHeight()) { in onMeasure()
67 maxHeight = child.getMeasuredHeight(); in onMeasure()
70 if (maxHeight > 0) { in onMeasure()
71 height = maxHeight; in onMeasure()
/aosp12/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
H A DLogoUtils.java48 int maxHeight = (int) context.getResources().getDimension(R.dimen.max_logo_height); in getOrganisationLogo() local
50 bitmap = getBitmapPartiallyResized(logoFile.getPath(), maxWidth, maxHeight); in getOrganisationLogo()
58 resizeBitmap(bitmap, maxWidth, maxHeight)); in getOrganisationLogo()
103 static Bitmap resizeBitmap(Bitmap bitmap, int maxWidth, int maxHeight) { in resizeBitmap() argument
106 double ratio = Math.max((double) width / maxWidth, (double) height / maxHeight); in resizeBitmap()
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/dashboard/
H A DPreferenceImageView.java60 final int maxHeight = getMaxHeight(); in onMeasure() local
61 if (maxHeight != Integer.MAX_VALUE in onMeasure()
62 && (maxHeight < heightSize || heightMode == MeasureSpec.UNSPECIFIED)) { in onMeasure()
63 heightMeasureSpec = MeasureSpec.makeMeasureSpec(maxHeight, MeasureSpec.AT_MOST); in onMeasure()
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
H A DIllustrationPreferenceTest.java167 final int maxHeight = restrictedHeight - 200; in setMaxHeight_smallerThanRestrictedHeight_matchResult() local
169 mPreference.setMaxHeight(maxHeight); in setMaxHeight_smallerThanRestrictedHeight_matchResult()
172 assertThat(mBackgroundView.getMaxHeight()).isEqualTo(maxHeight); in setMaxHeight_smallerThanRestrictedHeight_matchResult()
173 assertThat(mAnimationView.getMaxHeight()).isEqualTo(maxHeight); in setMaxHeight_smallerThanRestrictedHeight_matchResult()
181 final int maxHeight = restrictedHeight + 200; in setMaxHeight_largerThanRestrictedHeight_specificHeight() local
183 mPreference.setMaxHeight(maxHeight); in setMaxHeight_largerThanRestrictedHeight_specificHeight()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
H A DSeekBarObserver.kt44 if (holder.seekBar.maxHeight != seekBarDisabledHeight) {
45 holder.seekBar.maxHeight = seekBarDisabledHeight
60 if (holder.seekBar.maxHeight != seekBarEnabledMaxHeight) {
61 holder.seekBar.maxHeight = seekBarEnabledMaxHeight
/aosp12/frameworks/base/media/java/android/media/tv/
H A DTvStreamConfig.java56 maxHeight(source.readInt()).
142 public Builder maxHeight(int maxHeight) { in maxHeight() method in TvStreamConfig.Builder
143 mMaxHeight = maxHeight; in maxHeight()
/aosp12/frameworks/base/core/java/android/app/
H A DFragmentBreadCrumbs.java248 int maxHeight = 0; in onMeasure() local
258 maxHeight = Math.max(maxHeight, child.getMeasuredHeight()); in onMeasure()
266 maxHeight += mPaddingTop + mPaddingBottom; in onMeasure()
269 maxHeight = Math.max(maxHeight, getSuggestedMinimumHeight()); in onMeasure()
273 resolveSizeAndState(maxHeight, heightMeasureSpec, in onMeasure()
/aosp12/frameworks/base/services/autofill/java/com/android/server/autofill/ui/
H A DCustomScrollView.java83 final int maxHeight = (int) typedValue.getFraction(point.y, point.y); in calculateDimensions() local
85 mHeight = Math.min(childHeight, maxHeight); in calculateDimensions()
87 Slog.d(TAG, "calculateDimensions(): maxHeight=" + maxHeight in calculateDimensions()
/aosp12/packages/apps/LegacyCamera/src/com/android/camera/ui/
H A DSharePopup.java172 float maxHeight = mPreviewFrame.getHeight() - vPaddingRootView; in setOrientation() local
176 maxWidth = maxHeight; in setOrientation()
177 maxHeight = temp; in setOrientation()
179 float actualAspect = maxWidth / maxHeight; in setOrientation()
191 params.width = Math.round(maxHeight * desiredAspect); in setOrientation()
192 params.height = Math.round(maxHeight); in setOrientation()
/aosp12/system/media/audio_utils/include/audio_utils/
H A DLogPlot.h139 const char *title = "", const char *label = "", int maxHeight = 10)
162 if (height > maxHeight) {
163 scalingFactor = (height + maxHeight) / maxHeight;

12345