/sdk/apps/NotificationStudio/src/com/android/notificationstudio/ |
MaxHeightScrollView.java | 31 public void setMaxHeight(int maxHeight) { 32 mMaxHeight = maxHeight;
|
/frameworks/support/design/src/android/support/design/internal/ |
BaselineLayout.java | 49 int maxHeight = 0; 67 maxHeight = Math.max(maxHeight, child.getMeasuredHeight()); 72 maxHeight = Math.max(maxHeight, maxChildBaseline + maxChildDescent); 75 maxHeight = Math.max(maxHeight, getSuggestedMinimumHeight()); 79 View.resolveSizeAndState(maxHeight, heightMeasureSpec,
|
/frameworks/base/core/java/com/android/internal/widget/ |
PreferenceImageView.java | 24 * Extension of ImageView that correctly applies maxWidth and maxHeight. 60 final int maxHeight = getMaxHeight(); 61 if (maxHeight != Integer.MAX_VALUE 62 && (maxHeight < heightSize || heightMode == MeasureSpec.UNSPECIFIED)) { 63 heightMeasureSpec = MeasureSpec.makeMeasureSpec(maxHeight, MeasureSpec.AT_MOST);
|
DialogViewAnimator.java | 47 int maxHeight = 0; 77 maxHeight = Math.max(maxHeight, child.getMeasuredHeight() 89 maxHeight += getPaddingTop() + getPaddingBottom(); 92 maxHeight = Math.max(maxHeight, getSuggestedMinimumHeight()); 98 maxHeight = Math.max(maxHeight, drawable.getMinimumHeight()); 103 resolveSizeAndState(maxHeight, heightMeasureSpec,
|
WatchListDecorLayout.java | 167 int maxHeight = 0; 178 maxHeight = Math.max(maxHeight, 192 maxHeight += getPaddingTopWithForeground() + getPaddingBottomWithForeground(); 195 maxHeight = Math.max(maxHeight, getSuggestedMinimumHeight()); 201 maxHeight = Math.max(maxHeight, drawable.getMinimumHeight()); 206 resolveSizeAndState(maxHeight, heightMeasureSpec,
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/ |
PreferenceImageView.java | 24 * Extension of ImageView that correctly applies maxWidth and maxHeight. 60 final int maxHeight = getMaxHeight(); 61 if (maxHeight != Integer.MAX_VALUE 62 && (maxHeight < heightSize || heightMode == MeasureSpec.UNSPECIFIED)) { 63 heightMeasureSpec = MeasureSpec.makeMeasureSpec(maxHeight, MeasureSpec.AT_MOST);
|
/frameworks/support/v7/preference/src/android/support/v7/internal/widget/ |
PreferenceImageView.java | 29 * Extension of ImageView that correctly applies maxWidth and maxHeight. 78 public void setMaxHeight(int maxHeight) { 79 mMaxHeight = maxHeight; 80 super.setMaxHeight(maxHeight); 103 final int maxHeight = getMaxHeight(); 104 if (maxHeight != Integer.MAX_VALUE 105 && (maxHeight < heightSize || heightMode == MeasureSpec.UNSPECIFIED)) { 106 heightMeasureSpec = MeasureSpec.makeMeasureSpec(maxHeight, MeasureSpec.AT_MOST);
|
/frameworks/base/core/java/android/widget/ |
DayPickerViewPager.java | 63 int maxHeight = 0; 73 maxHeight = Math.max(maxHeight, child.getMeasuredHeight()); 86 maxHeight += getPaddingTop() + getPaddingBottom(); 89 maxHeight = Math.max(maxHeight, getSuggestedMinimumHeight()); 95 maxHeight = Math.max(maxHeight, drawable.getMinimumHeight()); 100 resolveSizeAndState(maxHeight, heightMeasureSpec,
|
AbsoluteLayout.java | 62 int maxHeight = 0; 82 maxHeight = Math.max(maxHeight, childBottom); 88 maxHeight += mPaddingTop + mPaddingBottom; 91 maxHeight = Math.max(maxHeight, getSuggestedMinimumHeight()); 95 resolveSizeAndState(maxHeight, heightMeasureSpec, 0));
|
/frameworks/base/core/proto/android/service/ |
appwidget.proto | 39 int32 maxHeight = 9;
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
LogoUtils.java | 48 int maxHeight = (int) context.getResources().getDimension(R.dimen.max_logo_height); 50 bitmap = getBitmapPartiallyResized(logoFile.getPath(), maxWidth, maxHeight); 58 resizeBitmap(bitmap, maxWidth, maxHeight)); 103 static Bitmap resizeBitmap(Bitmap bitmap, int maxWidth, int maxHeight) { 106 double ratio = Math.max((double) width / maxWidth, (double) height / maxHeight);
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
KeyguardSecurityViewFlipper.java | 206 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; [all...] |
/packages/apps/TV/src/com/android/tv/util/ |
ImageLoader.java | 140 final int maxHeight) { 143 doLoadBitmap(context, uriString, maxWidth, maxHeight, null, AsyncTask.SERIAL_EXECUTOR); 152 doLoadBitmap(appContext, uriString, maxWidth, maxHeight, null, 182 public static boolean loadBitmap(Context context, String uriString, int maxWidth, int maxHeight, 187 return doLoadBitmap(context, uriString, maxWidth, maxHeight, callback, 192 int maxWidth, int maxHeight, ImageLoaderCallback callback, Executor executor) { 197 if (bitmapInfo != null && !bitmapInfo.needToReload(maxWidth, maxHeight)) { 204 new LoadBitmapFromUriTask(context, imageCache, uriString, maxWidth, maxHeight)); 303 public LoadBitmapTask(Context context, ImageCache imageCache, String key, int maxHeight, 305 if (maxWidth == 0 || maxHeight == 0) [all...] |
BitmapUtils.java | 54 public static Bitmap scaleBitmap(Bitmap bm, int maxWidth, int maxHeight) { 55 Rect rect = calculateNewSize(bm, maxWidth, maxHeight); 59 private static Rect calculateNewSize(Bitmap bm, int maxWidth, int maxHeight) { 60 final double ratio = maxHeight / (double) maxWidth; 67 rect.right = Math.round((float) bm.getWidth() * maxHeight / bm.getHeight()); 68 rect.bottom = maxHeight; 74 int maxHeight) { 75 return new ScaledBitmapInfo(id, scaleBitmap(bm, maxWidth, maxHeight), 76 calculateInSampleSize(bm.getWidth(), bm.getHeight(), maxWidth, maxHeight));
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
PseudoGridView.java | 82 int maxHeight = 0; 86 maxHeight = Math.max(maxHeight, child.getMeasuredHeight()); 88 int maxHeightSpec = MeasureSpec.makeMeasureSpec(maxHeight, MeasureSpec.EXACTLY); 91 if (child.getMeasuredHeight() != maxHeight) { 95 totalHeight += maxHeight; 112 int maxHeight = 0; 123 maxHeight = Math.max(maxHeight, height); 130 y += maxHeight; [all...] |
/external/volley/src/main/java/com/android/volley/toolbox/ |
ImageLoader.java | 149 * @param maxHeight The maximum height of the returned image. 152 public boolean isCached(String requestUrl, int maxWidth, int maxHeight) { 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) { 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, ScaleType scaleType) [all...] |
ImageRequest.java | 66 * @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, 80 mMaxHeight = maxHeight; 89 public ImageRequest(String url, Response.Listener<Bitmap> listener, int maxWidth, int maxHeight, 91 this(url, listener, maxWidth, maxHeight,
|
/frameworks/base/media/java/android/media/tv/ |
TvStreamConfig.java | 54 maxHeight(source.readInt()). 139 public Builder maxHeight(int maxHeight) { 140 mMaxHeight = maxHeight;
|
/external/deqp/modules/egl/ |
teglMemoryStressTests.cpp | 72 MemoryAllocator (EglTestContext& eglTestCtx, EGLDisplay display, EGLConfig config, int seed, ObjectType types, int minWidth, int minHeight, int maxWidth, int maxHeight, bool use); 105 MemoryAllocator::MemoryAllocator (EglTestContext& eglTestCtx, EGLDisplay display, EGLConfig config, int seed, ObjectType types, int minWidth, int minHeight, int maxWidth, int maxHeight, bool use) 117 , m_maxHeight (maxHeight) 323 int maxHeight; 401 m_allocator = new MemoryAllocator(m_eglTestCtx, m_display, m_config, m_seed, m_spec.types, m_spec.minWidth, m_spec.minHeight, m_spec.maxWidth, m_spec.maxHeight, m_spec.use); 482 spec.maxHeight = 256; 496 spec.maxHeight = 256; 510 spec.maxHeight = 1024; 524 spec.maxHeight = 1024; 538 spec.maxHeight = 1024 [all...] |
/external/volley/src/test/java/com/android/volley/toolbox/ |
NetworkImageViewTest.java | 65 int maxHeight, ScaleType scaleType) { 68 lastMaxHeight = maxHeight;
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
PictureLayout.java | 85 int maxHeight = 0; 96 maxHeight += getPaddingTop() + getPaddingBottom(); 100 maxHeight = Math.max(maxHeight, drawable.getMinimumHeight()); 105 resolveSize(maxHeight, heightMeasureSpec));
|
/frameworks/base/core/java/com/android/internal/util/ |
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);
|
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/ |
BitmapHelper.java | 33 public static Bitmap scaleBitmap(Bitmap src, int maxWidth, int maxHeight) { 35 ((double) maxWidth)/src.getWidth(), ((double) maxHeight)/src.getHeight());
|
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/utils/ |
BitmapHelper.java | 35 public static Bitmap scaleBitmap(Bitmap src, int maxWidth, int maxHeight) { 37 ((double) maxWidth)/src.getWidth(), ((double) maxHeight)/src.getHeight());
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
CustomLayout.java | 85 int maxHeight = 0; 110 maxHeight = Math.max(maxHeight, 120 maxHeight = Math.max(maxHeight, getSuggestedMinimumHeight()); 125 resolveSizeAndState(maxHeight, heightMeasureSpec,
|