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

12

/frameworks/support/v7/preference/src/android/support/v7/internal/widget/
H A DPreferenceImageView.java26 * Extension of ImageView that correctly applies maxWidth and maxHeight.
73 public void setMaxHeight(int maxHeight) { argument
74 mMaxHeight = maxHeight;
75 super.setMaxHeight(maxHeight);
97 final int maxHeight = getMaxHeight();
98 if (maxHeight != Integer.MAX_VALUE
99 && (maxHeight < heightSize || heightMode == MeasureSpec.UNSPECIFIED)) {
100 heightMeasureSpec = MeasureSpec.makeMeasureSpec(maxHeight, MeasureSpec.AT_MOST);
/frameworks/volley/src/test/java/com/android/volley/toolbox/
H A DImageRequestTest.java126 private void verifyResize(NetworkResponse networkResponse, int maxWidth, int maxHeight, argument
128 ImageRequest request = new ImageRequest("", null, maxWidth, maxHeight, scaleType,
H A DNetworkImageViewTest.java49 int maxHeight, ScaleType scaleType) {
52 lastMaxHeight = maxHeight;
48 get(String requestUrl, ImageListener imageListener, int maxWidth, int maxHeight, ScaleType scaleType) argument
/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/base/media/java/android/media/tv/
H A DTvStreamConfig.java54 maxHeight(source.readInt()).
139 public Builder maxHeight(int maxHeight) { argument
140 mMaxHeight = maxHeight;
/frameworks/volley/src/main/java/com/android/volley/toolbox/
H A DImageRequest.java66 * @param maxHeight Maximum height to decode this bitmap to, or zero for
72 public ImageRequest(String url, Response.Listener<Bitmap> listener, int maxWidth, int maxHeight, argument
80 mMaxHeight = maxHeight;
89 public ImageRequest(String url, Response.Listener<Bitmap> listener, int maxWidth, int maxHeight, argument
91 this(url, listener, maxWidth, maxHeight,
H A DImageLoader.java149 * @param maxHeight The maximum height of the returned image.
152 public boolean isCached(String requestUrl, int maxWidth, int maxHeight) { argument
153 return isCached(requestUrl, maxWidth, maxHeight, ScaleType.CENTER_INSIDE);
161 * @param maxHeight The maximum height of the returned image.
165 public boolean isCached(String requestUrl, int maxWidth, int maxHeight, ScaleType scaleType) { argument
168 String cacheKey = getCacheKey(requestUrl, maxWidth, maxHeight, scaleType);
190 int maxWidth, int maxHeight) {
191 return get(requestUrl, imageListener, maxWidth, maxHeight, ScaleType.CENTER_INSIDE);
202 * @param maxHeight The maximum height of the returned image.
208 int maxWidth, int maxHeight, ScaleTyp
189 get(String requestUrl, ImageListener imageListener, int maxWidth, int maxHeight) argument
207 get(String requestUrl, ImageListener imageListener, int maxWidth, int maxHeight, ScaleType scaleType) argument
250 makeImageRequest(String requestUrl, int maxWidth, int maxHeight, ScaleType scaleType, final String cacheKey) argument
502 getCacheKey(String url, int maxWidth, int maxHeight, ScaleType scaleType) argument
[all...]
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DKeyguardSecurityViewFlipper.java206 int maxHeight = heightSize;
215 if (lp.maxHeight > 0 && lp.maxHeight < maxHeight) {
216 maxHeight = lp.maxHeight;
223 maxHeight = Math.max(0, maxHeight - hPadding);
232 final int childHeightSpec = makeChildMeasureSpec(maxHeight, lp.height);
267 public int maxHeight; field in class:KeyguardSecurityViewFlipper.LayoutParams
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DListViewCompat.java244 * with this ListView's padding and divider heights included. If maxHeight is provided, the
245 * measuring will stop when the current height reaches maxHeight.
253 * @param maxHeight The maximum height that will be returned (if all the
269 int endPosition, final int maxHeight,
290 // The previous height value that was less than maxHeight and contained
333 if (returnedHeight >= maxHeight) {
335 // maxHeight, then the i'th position did not fit completely.
339 && (returnedHeight != maxHeight) // i'th child did not fit completely
341 : maxHeight;
268 measureHeightOfChildrenCompat(int widthMeasureSpec, int startPosition, int endPosition, final int maxHeight, int disallowPartialChildPosition) argument
/frameworks/base/media/java/android/media/session/
H A DMediaSessionLegacyHelper.java335 * @param maxHeight
338 private static Bitmap scaleBitmapIfTooBig(Bitmap bitmap, int maxWidth, int maxHeight) { argument
342 if (width > maxWidth || height > maxHeight) {
343 float scale = Math.min((float) maxWidth / width, (float) maxHeight / height);
/frameworks/ex/framesequence/jni/
H A DFrameSequence_gif.cpp163 static void getCopySize(const GifImageDesc& imageDesc, int maxWidth, int maxHeight, argument
170 if (imageDesc.Top + copyHeight > maxHeight) {
171 copyHeight = maxHeight - imageDesc.Top;
/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) {
305 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/services/core/jni/
H A Dcom_android_server_tv_TvInputHal.cpp55 jmethodID maxHeight; member in struct:android::__anon1124
646 builder, gTvStreamConfigBuilderClassInfo.maxHeight, configs[i].max_video_height);
732 gTvStreamConfigBuilderClassInfo.maxHeight,
734 "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.cpp734 int32_t maxHeight; local
735 if (meta->findInt32(kKeyMaxHeight, &maxHeight)) {
736 msg->setInt32("max-height", maxHeight);
1362 int32_t maxHeight; local
1363 if (msg->findInt32("max-height", &maxHeight)) {
1364 meta->setInt32(kKeyMaxHeight, maxHeight);
H A DACodec.cpp1913 int32_t maxWidth = 0, maxHeight = 0; local
1915 msg->findInt32("max-height", &maxHeight)) {
1918 mNode, kPortIndexOutput, OMX_TRUE, maxWidth, maxHeight);
1926 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);
1982 maxHeight);
1989 inputFormat->setInt32("max-height", maxHeight);
/frameworks/av/media/libstagefright/httplive/
H A DLiveSession.cpp1038 int32_t maxHeight = 0; local
1059 maxHeight = max(maxHeight, height);
1096 mMaxHeight = maxHeight > 0 ? maxHeight : mMaxHeight;
/frameworks/base/core/java/android/widget/
H A DImageView.java325 * adjustViewBounds to true 2) set maxWidth and maxHeight to 100 3) set the height and width
363 * adjustViewBounds to true 2) set maxWidth and maxHeight to 100 3) set the height and width
373 * @param maxHeight maximum height for this view
380 public void setMaxHeight(int maxHeight) { argument
381 mMaxHeight = maxHeight;
H A DListView.java1280 * included. If maxHeight is provided, the measuring will stop when the
1281 * current height reaches maxHeight.
1289 * @param maxHeight The maximum height that will be returned (if all the
1304 int maxHeight, int disallowPartialChildPosition) {
1313 // The previous height value that was less than maxHeight and contained
1328 measureScrapChild(child, i, widthMeasureSpec, maxHeight);
1343 if (returnedHeight >= maxHeight) {
1344 // We went over, figure out which height to return. If returnedHeight > maxHeight,
1349 && (returnedHeight != maxHeight) // i'th child did not fit completely
1351 : maxHeight;
1303 measureHeightOfChildren(int widthMeasureSpec, int startPosition, int endPosition, int maxHeight, int disallowPartialChildPosition) argument
[all...]
H A DTextView.java3770 public void setMaxHeight(int maxHeight) { argument
3771 mMaximum = maxHeight;
/frameworks/base/core/jni/android/graphics/
H A DGraphics.cpp708 const int maxHeight = SkTMax(bitmap->height(), mRecycledBitmap->info().height()); local
709 const SkImageInfo maxInfo = bitmap->info().makeWH(maxWidth, maxHeight);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DNotificationContentView.java135 public void setHeights(int smallHeight, int headsUpMaxHeight, int maxHeight) { argument
138 mNotificationMaxHeight = maxHeight;
/frameworks/base/tools/layoutlib/bridge/src/android/view/
H A DIWindowManagerImpl.java304 int maxHeight, float frameScale) throws RemoteException {
303 screenshotApplications(IBinder appToken, int displayId, int maxWidth, int maxHeight, float frameScale) argument
/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 7263 milliseconds

12