Searched refs:maxWidth (Results 1 – 5 of 5) sorted by relevance
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
D | CustomLayout.java | 86 int maxWidth = 0; in onMeasure() local 101 mLeftWidth += Math.max(maxWidth, in onMeasure() 104 mRightWidth += Math.max(maxWidth, in onMeasure() 107 maxWidth = Math.max(maxWidth, in onMeasure() 117 maxWidth += mLeftWidth + mRightWidth; in onMeasure() 121 maxWidth = Math.max(maxWidth, getSuggestedMinimumWidth()); in onMeasure() 124 setMeasuredDimension(resolveSizeAndState(maxWidth, widthMeasureSpec, childState), in onMeasure()
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | PictureLayout.java | 86 int maxWidth = 0; in onMeasure() local 95 maxWidth += getPaddingLeft() + getPaddingRight(); in onMeasure() 101 maxWidth = Math.max(maxWidth, drawable.getMinimumWidth()); in onMeasure() 104 setMeasuredDimension(resolveSize(maxWidth, widthMeasureSpec), in onMeasure()
|
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/ |
D | BitmapHelper.java | 33 public static Bitmap scaleBitmap(Bitmap src, int maxWidth, int maxHeight) { in scaleBitmap() argument 35 ((double) maxWidth)/src.getWidth(), ((double) maxHeight)/src.getHeight()); in scaleBitmap()
|
/development/samples/WeatherListWidget/src/com/example/android/weatherlistwidget/ |
D | WeatherWidgetProvider.java | 221 int maxWidth = newOptions.getInt(AppWidgetManager.OPTION_APPWIDGET_MAX_WIDTH); in onAppWidgetOptionsChanged() local
|
/development/samples/browseable/Camera2Basic/src/com.example.android.camera2basic/ |
D | Camera2BasicFragment.java | 385 int textureViewHeight, int maxWidth, int maxHeight, Size aspectRatio) { in chooseOptimalSize() argument 394 if (option.getWidth() <= maxWidth && option.getHeight() <= maxHeight && in chooseOptimalSize()
|