/frameworks/support/preference/src/main/java/androidx/preference/internal/ |
H A D | PreferenceImageView.java | 30 * 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 D | ImageUtils.java | 125 * 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 D | BitmapHelper.java | 35 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 D | BitmapHelper.java | 35 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 D | TvStreamConfig.java | 54 maxHeight(source.readInt()). 139 public Builder maxHeight(int maxHeight) { argument 140 mMaxHeight = maxHeight;
|
/frameworks/av/media/libnblog/ |
H A D | PerformanceAnalysis.cpp | 256 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 D | KeyguardSecurityViewFlipper.java | 215 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 D | MediaSessionLegacyHelper.java | 293 * @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 D | FrameSequence_gif.cpp | 165 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 D | DropDownListView.java | 262 * 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 D | AppWidgetHostView.java | 276 * @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 D | Icon.java | 847 * @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 D | com_android_server_tv_TvInputHal.cpp | 72 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 D | rsFont.h | 173 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 D | Utils.cpp | 766 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 D | MediaCodec.cpp | 1040 int32_t maxHeight = 0; local 1041 if (format->findInt32("max-height", &maxHeight)) { 1042 mAnalyticsItem->setInt32(kCodecMaxHeight, maxHeight);
|
H A D | ACodec.cpp | 1919 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 D | LiveSession.cpp | 1055 int32_t maxHeight = 0; local 1076 maxHeight = max(maxHeight, height); 1113 mMaxHeight = maxHeight > 0 ? maxHeight : mMaxHeight;
|
/frameworks/base/core/java/android/widget/ |
H A D | ImageView.java | 361 * 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 D | ListView.java | 1362 * 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 D | RemoteViews.java | 245 * @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 D | Graphics.cpp | 645 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 D | NotificationContentView.java | 168 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 D | hwcCommit.cpp | 251 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 D | OpenMAXAL.h | 1597 XAuint32 maxHeight; member in struct:XACameraDescriptor_ 2818 XAuint32 maxHeight; member in struct:XAImageCodecDescriptor_ 2992 XAuint32 maxHeight; member in struct:XAVideoCodecDescriptor_
|