Searched defs:maxHeight (Results 1 - 25 of 26) sorted by relevance

12

/frameworks/support/preference/src/main/java/androidx/preference/internal/
H A DPreferenceImageView.java30 * Extension of ImageView that correctly applies maxWidth and maxHeight.
79 public void setMaxHeight(int maxHeight) { argument
80 mMaxHeight = maxHeight;
81 super.setMaxHeight(maxHeight);
104 final int maxHeight = getMaxHeight();
105 if (maxHeight != Integer.MAX_VALUE
106 && (maxHeight < heightSize || heightMode == MeasureSpec.UNSPECIFIED)) {
107 heightMeasureSpec = MeasureSpec.makeMeasureSpec(maxHeight, MeasureSpec.AT_MOST);
/frameworks/base/core/java/com/android/internal/util/
H A DImageUtils.java125 * Convert a drawable to a bitmap, scaled to fit within maxWidth and maxHeight.
128 int maxHeight) {
135 if ((originalWidth <= maxWidth) && (originalHeight <= maxHeight) &&
146 (float) maxHeight / (float) originalHeight);
127 buildScaledBitmap(Drawable drawable, int maxWidth, int maxHeight) argument
/frameworks/support/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/utils/
H A DBitmapHelper.java35 public static Bitmap scaleBitmap(Bitmap src, int maxWidth, int maxHeight) { argument
37 ((double) maxWidth)/src.getWidth(), ((double) maxHeight)/src.getHeight());
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/utils/
H A DBitmapHelper.java35 public static Bitmap scaleBitmap(Bitmap src, int maxWidth, int maxHeight) { argument
37 ((double) maxWidth)/src.getWidth(), ((double) maxHeight)/src.getHeight());
/frameworks/base/media/java/android/media/tv/
H A DTvStreamConfig.java54 maxHeight(source.readInt()).
139 public Builder maxHeight(int maxHeight) { argument
140 mMaxHeight = maxHeight;
/frameworks/av/media/libnblog/
H A DPerformanceAnalysis.cpp256 int maxHeight) {
298 if (height > maxHeight) {
299 scalingFactor = (height + maxHeight) / maxHeight;
255 reportPerformance(String8 *body, int author, log_hash_t hash, int maxHeight) argument
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A DKeyguardSecurityViewFlipper.java215 int maxHeight = heightSize;
224 if (lp.maxHeight > 0 && lp.maxHeight < maxHeight) {
225 maxHeight = lp.maxHeight;
232 maxHeight = Math.max(0, maxHeight - hPadding);
241 final int childHeightSpec = makeChildMeasureSpec(maxHeight, lp.height);
276 public int maxHeight; field in class:KeyguardSecurityViewFlipper.LayoutParams
[all...]
/frameworks/base/media/java/android/media/session/
H A DMediaSessionLegacyHelper.java293 * @param maxHeight
296 private static Bitmap scaleBitmapIfTooBig(Bitmap bitmap, int maxWidth, int maxHeight) { argument
300 if (width > maxWidth || height > maxHeight) {
301 float scale = Math.min((float) maxWidth / width, (float) maxHeight / height);
/frameworks/ex/framesequence/jni/
H A DFrameSequence_gif.cpp165 static void getCopySize(const GifImageDesc& imageDesc, int maxWidth, int maxHeight, argument
172 if (imageDesc.Top + copyHeight > maxHeight) {
173 copyHeight = maxHeight - imageDesc.Top;
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
H A DDropDownListView.java262 * with this ListView's padding and divider heights included. If maxHeight is provided, the
263 * measuring will stop when the current height reaches maxHeight.
271 * @param maxHeight The maximum height that will be returned (if all the
287 int endPosition, final int maxHeight,
308 // The previous height value that was less than maxHeight and contained
351 if (returnedHeight >= maxHeight) {
353 // maxHeight, then the i'th position did not fit completely.
357 && (returnedHeight != maxHeight) // i'th child did not fit completely
359 : maxHeight;
286 measureHeightOfChildrenCompat(int widthMeasureSpec, int startPosition, int endPosition, final int maxHeight, int disallowPartialChildPosition) argument
/frameworks/base/core/java/android/appwidget/
H A DAppWidgetHostView.java276 * @param maxHeight The maximum height in dips that the widget will be displayed at.
280 int maxHeight) {
281 updateAppWidgetSize(newOptions, minWidth, minHeight, maxWidth, maxHeight, false);
288 int maxHeight, boolean ignorePadding) {
302 int newMaxHeight = maxHeight - (ignorePadding ? 0 : yPaddingDips);
279 updateAppWidgetSize(Bundle newOptions, int minWidth, int minHeight, int maxWidth, int maxHeight) argument
287 updateAppWidgetSize(Bundle newOptions, int minWidth, int minHeight, int maxWidth, int maxHeight, boolean ignorePadding) argument
/frameworks/base/graphics/java/android/graphics/drawable/
H A DIcon.java847 * @param maxHeight the maximum height allowed
852 public static Bitmap scaleDownIfNecessary(Bitmap bitmap, int maxWidth, int maxHeight) { argument
855 if (bitmapWidth > maxWidth || bitmapHeight > maxHeight) {
857 (float) maxHeight / bitmapHeight);
870 * @param maxHeight the maximum height allowed
874 public void scaleDownIfNecessary(int maxWidth, int maxHeight) { argument
879 setBitmap(scaleDownIfNecessary(bitmap, maxWidth, maxHeight));
/frameworks/base/services/core/jni/
H A Dcom_android_server_tv_TvInputHal.cpp72 jmethodID maxHeight; member in struct:android::__anon1138
629 builder, gTvStreamConfigBuilderClassInfo.maxHeight, configs[i].maxVideoHeight);
715 gTvStreamConfigBuilderClassInfo.maxHeight,
717 "maxHeight", "(I)Landroid/media/tv/TvStreamConfig$Builder;");
/frameworks/rs/
H A DrsFont.h173 CacheTextureLine(uint32_t maxHeight, uint32_t maxWidth, uint32_t currentRow, uint32_t currentCol) argument
174 : mMaxHeight(maxHeight), mMaxWidth(maxWidth), mCurrentRow(currentRow),
/frameworks/av/media/libstagefright/
H A DUtils.cpp766 int32_t maxHeight; local
767 if (meta->findInt32(kKeyMaxHeight, &maxHeight)) {
768 msg->setInt32("max-height", maxHeight);
1447 int32_t maxHeight; local
1448 if (msg->findInt32("max-height", &maxHeight)) {
1449 meta->setInt32(kKeyMaxHeight, maxHeight);
H A DMediaCodec.cpp1040 int32_t maxHeight = 0; local
1041 if (format->findInt32("max-height", &maxHeight)) {
1042 mAnalyticsItem->setInt32(kCodecMaxHeight, maxHeight);
H A DACodec.cpp1919 int32_t maxWidth = 0, maxHeight = 0; local
1921 msg->findInt32("max-height", &maxHeight)) {
1924 kPortIndexOutput, OMX_TRUE, maxWidth, maxHeight);
1932 inputFormat->setInt32("max-height", maxHeight);
1973 int32_t maxWidth = 0, maxHeight = 0; local
1976 msg->findInt32("max-height", &maxHeight)) {
1978 mComponentName.c_str(), maxWidth, maxHeight);
1981 kPortIndexOutput, OMX_TRUE, maxWidth, maxHeight);
1988 inputFormat->setInt32("max-height", maxHeight);
/frameworks/av/media/libstagefright/httplive/
H A DLiveSession.cpp1055 int32_t maxHeight = 0; local
1076 maxHeight = max(maxHeight, height);
1113 mMaxHeight = maxHeight > 0 ? maxHeight : mMaxHeight;
/frameworks/base/core/java/android/widget/
H A DImageView.java361 * adjustViewBounds to true 2) set maxWidth and maxHeight to 100 3) set the height and width
399 * adjustViewBounds to true 2) set maxWidth and maxHeight to 100 3) set the height and width
409 * @param maxHeight maximum height for this view
416 public void setMaxHeight(int maxHeight) { argument
417 mMaxHeight = maxHeight;
H A DListView.java1362 * included. If maxHeight is provided, the measuring will stop when the
1363 * current height reaches maxHeight.
1371 * @param maxHeight The maximum height that will be returned (if all the
1386 int maxHeight, int disallowPartialChildPosition) {
1395 // The previous height value that was less than maxHeight and contained
1410 measureScrapChild(child, i, widthMeasureSpec, maxHeight);
1425 if (returnedHeight >= maxHeight) {
1426 // We went over, figure out which height to return. If returnedHeight > maxHeight,
1431 && (returnedHeight != maxHeight) // i'th child did not fit completely
1433 : maxHeight;
1385 measureHeightOfChildren(int widthMeasureSpec, int startPosition, int endPosition, int maxHeight, int disallowPartialChildPosition) argument
[all...]
H A DRemoteViews.java245 * @param maxHeight the maximum height allowed
249 public void reduceImageSizes(int maxWidth, int maxHeight) { argument
253 cache.set(i, Icon.scaleDownIfNecessary(bitmap, maxWidth, maxHeight));
/frameworks/base/core/jni/android/graphics/
H A DGraphics.cpp645 const int maxHeight = SkTMax(bitmap->height(), mRecycledBitmap->info().height()); local
646 const SkImageInfo maxInfo = bitmap->info().makeWH(maxWidth, maxHeight);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DNotificationContentView.java168 public void setHeights(int smallHeight, int headsUpMaxHeight, int maxHeight, argument
172 mNotificationMaxHeight = maxHeight;
241 int maxHeight = mHeadsUpHeight;
242 maxHeight += mHeadsUpWrapper.getExtraMeasureHeight();
243 int size = maxHeight;
/frameworks/native/opengl/tests/hwc/
H A DhwcCommit.cpp251 uint32_t maxHeight; member in struct:meas::displayFrame
259 uint32_t maxHeight; member in struct:meas::sourceCrop
490 measPtr->df.maxHeight = dfMaxHeight(format->format);
491 testPrintI(" dfMaxHeight: %u", measPtr->df.maxHeight);
511 measPtr->sc.maxHeight = scMaxHeight(format->format, measPtr->df.maxDim);
512 testPrintI(" scMaxHeight: %s%u", (measPtr->sc.maxHeight
514 measPtr->sc.maxHeight);
/frameworks/wilhelm/include/OMXAL/
H A DOpenMAXAL.h1597 XAuint32 maxHeight; member in struct:XACameraDescriptor_
2818 XAuint32 maxHeight; member in struct:XAImageCodecDescriptor_
2992 XAuint32 maxHeight; member in struct:XAVideoCodecDescriptor_

Completed in 759 milliseconds

12