/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
BitmapUtil.java | 121 * @param targetHeight desired output height 126 public static Bitmap getRoundedBitmap(Bitmap input, int targetWidth, int targetHeight) { 130 final Bitmap result = Bitmap.createBitmap(targetWidth, targetHeight, input.getConfig()); 135 canvas.drawOval(0, 0, targetWidth, targetHeight, paint); 147 (float) inputHeight / targetHeight); 150 final int yCropAmountHalved = (int) (scaleBy * targetHeight / 2); 158 final RectF dst = new RectF(0, 0, targetWidth, targetHeight);
|
/developers/build/prebuilts/gradle/BasicMediaDecoder/Application/src/main/java/com/example/android/common/media/ |
CameraHelper.java | 62 int targetHeight = h; 71 if (Math.abs(size.height - targetHeight) < minDiff) { 73 minDiff = Math.abs(size.height - targetHeight); 81 if (Math.abs(size.height - targetHeight) < minDiff) { 83 minDiff = Math.abs(size.height - targetHeight);
|
/developers/build/prebuilts/gradle/BasicRenderScript/Application/src/main/java/com/example/android/common/media/ |
CameraHelper.java | 62 int targetHeight = h; 71 if (Math.abs(size.height - targetHeight) < minDiff) { 73 minDiff = Math.abs(size.height - targetHeight); 81 if (Math.abs(size.height - targetHeight) < minDiff) { 83 minDiff = Math.abs(size.height - targetHeight);
|
/developers/build/prebuilts/gradle/MediaRecorder/Application/src/main/java/com/example/android/common/media/ |
CameraHelper.java | 62 int targetHeight = h; 71 if (Math.abs(size.height - targetHeight) < minDiff) { 73 minDiff = Math.abs(size.height - targetHeight); 81 if (Math.abs(size.height - targetHeight) < minDiff) { 83 minDiff = Math.abs(size.height - targetHeight);
|
/developers/samples/android/common/src/java/com/example/android/common/media/ |
CameraHelper.java | 62 int targetHeight = h; 71 if (Math.abs(size.height - targetHeight) < minDiff) { 73 minDiff = Math.abs(size.height - targetHeight); 81 if (Math.abs(size.height - targetHeight) < minDiff) { 83 minDiff = Math.abs(size.height - targetHeight);
|
/development/samples/browseable/BasicMediaDecoder/src/com.example.android.common.media/ |
CameraHelper.java | 62 int targetHeight = h; 71 if (Math.abs(size.height - targetHeight) < minDiff) { 73 minDiff = Math.abs(size.height - targetHeight); 81 if (Math.abs(size.height - targetHeight) < minDiff) { 83 minDiff = Math.abs(size.height - targetHeight);
|
/development/samples/browseable/BasicRenderScript/src/com.example.android.common.media/ |
CameraHelper.java | 62 int targetHeight = h; 71 if (Math.abs(size.height - targetHeight) < minDiff) { 73 minDiff = Math.abs(size.height - targetHeight); 81 if (Math.abs(size.height - targetHeight) < minDiff) { 83 minDiff = Math.abs(size.height - targetHeight);
|
/development/samples/browseable/MediaRecorder/src/com.example.android.common.media/ |
CameraHelper.java | 62 int targetHeight = h; 71 if (Math.abs(size.height - targetHeight) < minDiff) { 73 minDiff = Math.abs(size.height - targetHeight); 81 if (Math.abs(size.height - targetHeight) < minDiff) { 83 minDiff = Math.abs(size.height - targetHeight);
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/gif/ |
GifData.java | 21 private final int targetHeight; 26 int targetWidth, int targetHeight) { 32 this.targetHeight = targetHeight; 61 targetWidth, targetHeight);
|
GifFrameManager.java | 41 private final int targetHeight; 51 int targetHeight) { 53 targetWidth, targetHeight); 57 Transformation<Bitmap> transformation, int targetWidth, int targetHeight) { 63 this.targetHeight = targetHeight; 133 super(targetWidth, targetHeight);
|
/packages/apps/Camera2/src/com/android/camera/data/ |
LocalDataUtil.java | 131 int targetHeight = imageHeight; 133 while (targetHeight > heightBound || targetWidth > widthBound || 134 targetHeight > GL11.GL_MAX_TEXTURE_SIZE || targetWidth > GL11.GL_MAX_TEXTURE_SIZE || 135 targetHeight * targetWidth > maximumPixels) { 138 targetHeight = imageWidth / sampleSize; 148 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*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*targetHeight); 233 int maxH = targetHeight + 2*maxOutOfBounds; 238 int y = rnd.getInt(-maxOutOfBounds, targetHeight+maxOutOfBounds-height);
|
/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 | 359 int targetHeight, 365 int deltaY = source.getHeight() - targetHeight; 373 Bitmap b2 = Bitmap.createBitmap(targetWidth, targetHeight, 383 deltaYHalf + Math.min(targetHeight, source.getHeight())); 385 int dstY = (targetHeight - src.height()) / 2; 390 targetHeight - dstY); 402 float viewAspect = (float) targetWidth / targetHeight; 405 float scale = targetHeight / bitmapHeightF; 434 int dy1 = Math.max(0, b1.getHeight() - targetHeight); 441 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);
|
/external/chromium_org/ui/file_manager/image_loader/ |
image_loader.js | 163 var targetHeight = sourceHeight; 167 targetHeight = sourceHeight * options.scale; 173 targetHeight *= scale; 176 if (options.maxHeight && targetHeight > options.maxHeight) { 177 var scale = options.maxHeight / targetHeight; 179 targetHeight *= scale; 186 targetHeight = options.height; 189 targetHeight = Math.round(targetHeight); 191 return {width: targetWidth, height: targetHeight}; [all...] |
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
TransformationUtils.java | 95 final int targetHeight = (int) (minPercentage * toFit.getHeight()); 97 if (toFit.getWidth() == targetWidth && toFit.getHeight() == targetHeight) { 105 Bitmap toReuse = pool.get(targetWidth, targetHeight, config); 107 toReuse = Bitmap.createBitmap(targetWidth, targetHeight, config);
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/ |
FullscreenBlur.java | 53 static int targetHeight;
59 targetHeight = h/8;
61 Type renderType = b.setX(targetWidth).setY(targetHeight).create();
69 renderType = b.setX(targetWidth).setY(targetHeight).create();
143 addOffsets(quad, 1.0f / (float)targetHeight);
|