HomeSort by relevance Sort by last modified time
    Searched refs:targetHeight (Results 1 - 25 of 73) sorted by null

1 2 3

  /development/samples/browseable/BasicMediaDecoder/src/com.example.android.common.media/
CameraHelper.java 70 int targetHeight = h;
79 if (Math.abs(size.height - targetHeight) < minDiff && previewSizes.contains(size)) {
81 minDiff = Math.abs(size.height - targetHeight);
89 if (Math.abs(size.height - targetHeight) < minDiff && previewSizes.contains(size)) {
91 minDiff = Math.abs(size.height - targetHeight);
  /development/samples/browseable/BasicRenderScript/src/com.example.android.common.media/
CameraHelper.java 70 int targetHeight = h;
79 if (Math.abs(size.height - targetHeight) < minDiff && previewSizes.contains(size)) {
81 minDiff = Math.abs(size.height - targetHeight);
89 if (Math.abs(size.height - targetHeight) < minDiff && previewSizes.contains(size)) {
91 minDiff = Math.abs(size.height - targetHeight);
  /development/samples/browseable/MediaRecorder/src/com.example.android.common.media/
CameraHelper.java 70 int targetHeight = h;
79 if (Math.abs(size.height - targetHeight) < minDiff && previewSizes.contains(size)) {
81 minDiff = Math.abs(size.height - targetHeight);
89 if (Math.abs(size.height - targetHeight) < minDiff && previewSizes.contains(size)) {
91 minDiff = Math.abs(size.height - targetHeight);
  /packages/apps/Dialer/java/com/android/dialer/contactphoto/
BitmapUtil.java 96 * @param targetHeight desired output height
101 public static Bitmap getRoundedBitmap(Bitmap input, int targetWidth, int targetHeight) {
108 targetWidth, targetHeight, inputConfig != null ? inputConfig : Bitmap.Config.ARGB_8888);
113 final RectF dst = new RectF(0, 0, targetWidth, targetHeight);
126 Math.min((float) inputWidth / targetWidth, (float) inputHeight / targetHeight);
129 final int yCropAmountHalved = (int) (scaleBy * targetHeight / 2);
  /packages/apps/Camera2/src/com/android/camera/data/
FilmstripItemUtils.java 106 int targetHeight = imageHeight;
108 while (targetHeight > heightBound || targetWidth > widthBound ||
109 targetHeight > GL11.GL_MAX_TEXTURE_SIZE || targetWidth > GL11.GL_MAX_TEXTURE_SIZE ||
110 targetHeight * targetWidth > maximumPixels) {
113 targetHeight = imageWidth / sampleSize;
123 targetWidth * targetHeight < maximumPixels / 4 && sampleSize > 1) {
  /external/deqp/modules/gles2/functional/
es2fColorClearTest.cpp 107 const int targetHeight = renderTarget.getHeight();
108 const int numPixels = targetWidth * targetHeight;
112 Surface refImage (targetWidth, targetHeight);
113 Surface resImage (targetWidth, targetHeight);
114 Surface diffImage (targetWidth, targetHeight);
133 clearHeight = targetHeight;
138 clearY = (rnd.getUint32() % (2*targetHeight)) - targetHeight;
140 clearHeight = (rnd.getUint32() % targetHeight);
170 for (int y = 0; y < targetHeight; y++
    [all...]
es2fPrerequisiteTests.cpp 179 int targetHeight = renderTarget.getHeight();
195 imageHeight = targetHeight;
202 imageHeight = targetHeight / 2;
207 y = targetHeight / 2;
209 imageHeight = targetHeight - y;
213 y = deRandom_getUint32(&rnd) % (targetHeight - 1);
215 imageHeight = 1 + (deRandom_getUint32(&rnd) % (targetHeight - y - 1));
  /external/deqp/modules/gles3/functional/
es3fColorClearTest.cpp 107 const int targetHeight = renderTarget.getHeight();
108 const int numPixels = targetWidth * targetHeight;
112 Surface refImage (targetWidth, targetHeight);
113 Surface resImage (targetWidth, targetHeight);
114 Surface diffImage (targetWidth, targetHeight);
133 clearHeight = targetHeight;
138 clearY = (rnd.getUint32() % (2*targetHeight)) - targetHeight;
140 clearHeight = (rnd.getUint32() % targetHeight);
170 for (int y = 0; y < targetHeight; y++
    [all...]
es3fPrerequisiteTests.cpp 179 int targetHeight = renderTarget.getHeight();
195 imageHeight = targetHeight;
202 imageHeight = targetHeight / 2;
207 y = targetHeight / 2;
209 imageHeight = targetHeight - y;
213 y = deRandom_getUint32(&rnd) % (targetHeight - 1);
215 imageHeight = 1 + (deRandom_getUint32(&rnd) % (targetHeight - y - 1));
  /external/deqp/modules/glshared/
glsInteractionTestUtil.hpp 121 void computeRandomRenderState (de::Random& rnd, RenderState& state, glu::ApiType apiType, int targetWidth, int targetHeight);
122 void computeRandomQuad (de::Random& rnd, gls::FragmentOpUtil::IntegerQuad& quad, int targetWidth, int targetHeight);
glsInteractionTestUtil.cpp 54 void computeRandomRenderState (de::Random& rnd, RenderState& state, glu::ApiType apiType, int targetWidth, int targetHeight)
158 int minScissorH = deCeilFloatToInt32(minScissorSize * (float)targetHeight);
160 int maxScissorH = targetHeight + 2*maxScissorOutOfBounds;
165 int scissorY = rnd.getInt(-maxScissorOutOfBounds, targetHeight+maxScissorOutOfBounds-scissorH);
220 void computeRandomQuad (de::Random& rnd, gls::FragmentOpUtil::IntegerQuad& quad, int targetWidth, int targetHeight)
231 int minH = deCeilFloatToInt32(minSize * (float)targetHeight);
233 int maxH = targetHeight + 2*maxOutOfBounds;
238 int y = rnd.getInt(-maxOutOfBounds, targetHeight+maxOutOfBounds-height);
  /packages/apps/TV/src/com/android/tv/ui/
ViewUtils.java 54 final View target, int initialHeight, int targetHeight) {
55 ValueAnimator animator = ValueAnimator.ofInt(initialHeight, targetHeight);
  /developers/build/prebuilts/gradle/BasicMediaDecoder/Application/src/main/java/com/example/android/common/media/
CameraHelper.java 71 int targetHeight = h;
80 if (Math.abs(size.height - targetHeight) < minDiff && previewSizes.contains(size)) {
82 minDiff = Math.abs(size.height - targetHeight);
90 if (Math.abs(size.height - targetHeight) < minDiff && previewSizes.contains(size)) {
92 minDiff = Math.abs(size.height - targetHeight);
  /developers/build/prebuilts/gradle/MediaRecorder/Application/src/main/java/com/example/android/common/media/
CameraHelper.java 71 int targetHeight = h;
80 if (Math.abs(size.height - targetHeight) < minDiff && previewSizes.contains(size)) {
82 minDiff = Math.abs(size.height - targetHeight);
90 if (Math.abs(size.height - targetHeight) < minDiff && previewSizes.contains(size)) {
92 minDiff = Math.abs(size.height - targetHeight);
  /developers/samples/android/common/src/java/com/example/android/common/media/
CameraHelper.java 71 int targetHeight = h;
80 if (Math.abs(size.height - targetHeight) < minDiff && previewSizes.contains(size)) {
82 minDiff = Math.abs(size.height - targetHeight);
90 if (Math.abs(size.height - targetHeight) < minDiff && previewSizes.contains(size)) {
92 minDiff = Math.abs(size.height - targetHeight);
  /packages/apps/Contacts/src/com/android/contacts/util/
BitmapUtil.java 121 * @param targetHeight desired output height
126 public static Bitmap getRoundedBitmap(Bitmap input, int targetWidth, int targetHeight) {
131 final Bitmap result = Bitmap.createBitmap(targetWidth, targetHeight,
137 final RectF dst = new RectF(0, 0, targetWidth, targetHeight);
150 (float) inputHeight / targetHeight);
153 final int yCropAmountHalved = (int) (scaleBy * targetHeight / 2);
  /external/glide/library/src/main/java/com/bumptech/glide/load/resource/gif/
GifDrawable.java 85 frameManager = new GifFrameManager(state.context, decoder, state.targetWidth, state.targetHeight);
319 int targetHeight;
325 Transformation<Bitmap> frameTransformation, int targetWidth, int targetHeight,
337 this.targetHeight = targetHeight;
348 targetHeight = original.targetHeight;
GifFrameManager.java 31 private final int targetHeight;
43 public GifFrameManager(Context context, GifDecoder decoder, int targetWidth, int targetHeight) {
45 targetHeight);
49 int targetWidth, int targetHeight) {
54 this.targetHeight = targetHeight;
127 super(targetWidth, targetHeight);
  /packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DecodedImageResource.java 209 final int targetHeight = (int) (bitmapHeight * targetScale);
211 if (targetScale < 1.0f && targetWidth > 0 && targetHeight > 0 &&
212 targetWidth != bitmapWidth && targetHeight != bitmapHeight) {
214 Bitmap.createScaledBitmap(bitmap, targetWidth, targetHeight, false);
  /development/samples/training/threadsample/src/com/example/android/threadsample/
PhotoDecodeRunnable.java 150 int targetHeight = mPhotoTask.getTargetHeight();
177 int hScale = bitmapOptions.outHeight / targetHeight;
  /frameworks/base/media/java/android/media/
ThumbnailUtils.java 364 int targetHeight,
370 int deltaY = source.getHeight() - targetHeight;
378 Bitmap b2 = Bitmap.createBitmap(targetWidth, targetHeight,
388 deltaYHalf + Math.min(targetHeight, source.getHeight()));
390 int dstY = (targetHeight - src.height()) / 2;
395 targetHeight - dstY);
407 float viewAspect = (float) targetWidth / targetHeight;
410 float scale = targetHeight / bitmapHeightF;
439 int dy1 = Math.max(0, b1.getHeight() - targetHeight);
446 targetHeight);
    [all...]
  /packages/apps/Gallery/src/com/android/camera/
Util.java 153 int targetHeight,
157 int deltaY = source.getHeight() - targetHeight;
165 Bitmap b2 = Bitmap.createBitmap(targetWidth, targetHeight,
175 deltaYHalf + Math.min(targetHeight, source.getHeight()));
177 int dstY = (targetHeight - src.height()) / 2;
182 targetHeight - dstY);
193 float viewAspect = (float) targetWidth / targetHeight;
196 float scale = targetHeight / bitmapHeightF;
225 int dy1 = Math.max(0, b1.getHeight() - targetHeight);
232 targetHeight);
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
CameraPreview.java 275 int targetHeight = h;
281 if (Math.abs(size.height - targetHeight) < minDiff) {
283 minDiff = Math.abs(size.height - targetHeight);
291 if (Math.abs(size.height - targetHeight) < minDiff) {
293 minDiff = Math.abs(size.height - targetHeight);
  /development/samples/HoneycombGallery/src/com/example/android/hcgallery/
CameraFragment.java 295 int targetHeight = h;
302 if (Math.abs(size.height - targetHeight) < minDiff) {
304 minDiff = Math.abs(size.height - targetHeight);
312 if (Math.abs(size.height - targetHeight) < minDiff) {
314 minDiff = Math.abs(size.height - targetHeight);
  /frameworks/base/core/java/com/android/internal/widget/
MessagingLinearLayout.java 72 int targetHeight = MeasureSpec.getSize(heightMeasureSpec);
75 targetHeight = Integer.MAX_VALUE;
94 for (int i = count - 1; i >= 0 && totalHeight < targetHeight; i--) {
122 if (newHeight <= targetHeight && !isTooSmall) {

Completed in 1399 milliseconds

1 2 3