/packages/apps/Camera2/src/com/android/camera/ |
Thumbnail.java | 25 public static Bitmap createVideoThumbnailBitmap(FileDescriptor fd, int targetWidth) { 26 return createVideoThumbnailBitmap(null, fd, targetWidth); 29 public static Bitmap createVideoThumbnailBitmap(String filePath, int targetWidth) { 30 return createVideoThumbnailBitmap(filePath, null, targetWidth); 34 int targetWidth) { 60 if (width > targetWidth) { 61 float scale = (float) targetWidth / width;
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/ |
Padder.java | 52 int targetWidth; 55 public Padder(String paddingString, int targetWidth, PadPosition position) { 58 this.targetWidth = targetWidth; 66 public static Padder codePoints(int cp, int targetWidth, PadPosition position) { 68 if (targetWidth >= 0) { 70 return new Padder(paddingString, targetWidth, position); 77 return targetWidth > 0; 82 int requiredPadding = targetWidth - modLength - string.codePointCount();
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
Padder.java | 48 int targetWidth; 51 public Padder(String paddingString, int targetWidth, PadPosition position) { 54 this.targetWidth = targetWidth; 62 public static Padder codePoints(int cp, int targetWidth, PadPosition position) { 64 if (targetWidth >= 0) { 66 return new Padder(paddingString, targetWidth, position); 73 return targetWidth > 0; 78 int requiredPadding = targetWidth - modLength - string.codePointCount();
|
/packages/apps/Dialer/java/com/android/dialer/contactphoto/ |
BitmapUtil.java | 95 * @param targetWidth desired output width 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); 128 final int xCropAmountHalved = (int) (scaleBy * targetWidth / 2);
|
/external/deqp/modules/gles2/functional/ |
es2fColorClearTest.cpp | 106 const int targetWidth = renderTarget.getWidth(); 108 const int numPixels = targetWidth * targetHeight; 112 Surface refImage (targetWidth, targetHeight); 113 Surface resImage (targetWidth, targetHeight); 114 Surface diffImage (targetWidth, targetHeight); 132 clearWidth = targetWidth; 137 clearX = (rnd.getUint32() % (2*targetWidth)) - targetWidth; 139 clearWidth = (rnd.getUint32() % targetWidth); 184 while (x < targetWidth) [all...] |
es2fPrerequisiteTests.cpp | 178 int targetWidth = renderTarget.getWidth(); 194 imageWidth = targetWidth; 201 imageWidth = targetWidth / 2; 206 x = targetWidth / 2; 208 imageWidth = targetWidth - x; 212 x = deRandom_getUint32(&rnd) % (targetWidth - 1); 214 imageWidth = 1 + (deRandom_getUint32(&rnd) % (targetWidth - x - 1));
|
/external/deqp/modules/gles3/functional/ |
es3fColorClearTest.cpp | 106 const int targetWidth = renderTarget.getWidth(); 108 const int numPixels = targetWidth * targetHeight; 112 Surface refImage (targetWidth, targetHeight); 113 Surface resImage (targetWidth, targetHeight); 114 Surface diffImage (targetWidth, targetHeight); 132 clearWidth = targetWidth; 137 clearX = (rnd.getUint32() % (2*targetWidth)) - targetWidth; 139 clearWidth = (rnd.getUint32() % targetWidth); 184 while (x < targetWidth) [all...] |
es3fPrerequisiteTests.cpp | 178 int targetWidth = renderTarget.getWidth(); 194 imageWidth = targetWidth; 201 imageWidth = targetWidth / 2; 206 x = targetWidth / 2; 208 imageWidth = targetWidth - x; 212 x = deRandom_getUint32(&rnd) % (targetWidth - 1); 214 imageWidth = 1 + (deRandom_getUint32(&rnd) % (targetWidth - x - 1));
|
/packages/apps/Camera2/src/com/android/camera/data/ |
FilmstripItemUtils.java | 105 int targetWidth = imageWidth; 108 while (targetHeight > heightBound || targetWidth > widthBound || 109 targetHeight > GL11.GL_MAX_TEXTURE_SIZE || targetWidth > GL11.GL_MAX_TEXTURE_SIZE || 110 targetHeight * targetWidth > maximumPixels) { 112 targetWidth = imageWidth / sampleSize; 123 targetWidth * targetHeight < maximumPixels / 4 && sampleSize > 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) 157 int minScissorW = deCeilFloatToInt32(minScissorSize * (float)targetWidth); 159 int maxScissorW = targetWidth + 2*maxScissorOutOfBounds; 164 int scissorX = rnd.getInt(-maxScissorOutOfBounds, targetWidth+maxScissorOutOfBounds-scissorW); 220 void computeRandomQuad (de::Random& rnd, gls::FragmentOpUtil::IntegerQuad& quad, int targetWidth, int targetHeight) 230 int minW = deCeilFloatToInt32(minSize * (float)targetWidth); 232 int maxW = targetWidth + 2*maxOutOfBounds; 237 int x = rnd.getInt(-maxOutOfBounds, targetWidth+maxOutOfBounds-width);
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
BitmapUtil.java | 120 * @param targetWidth desired output width 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); 149 final float scaleBy = Math.min((float) inputWidth / targetWidth, 152 final int xCropAmountHalved = (int) (scaleBy * targetWidth / 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); 318 int targetWidth; 325 Transformation<Bitmap> frameTransformation, int targetWidth, int targetHeight, 336 this.targetWidth = targetWidth; 347 targetWidth = original.targetWidth;
|
GifFrameManager.java | 30 private final int targetWidth; 43 public GifFrameManager(Context context, GifDecoder decoder, int targetWidth, int targetHeight) { 44 this(context, Glide.get(context).getBitmapPool(), decoder, new Handler(Looper.getMainLooper()), targetWidth, 49 int targetWidth, int targetHeight) { 53 this.targetWidth = targetWidth; 127 super(targetWidth, targetHeight);
|
/external/icu/icu4c/source/i18n/ |
number_padding.cpp | 41 Padder Padder::codePoints(UChar32 cp, int32_t targetWidth, UNumberFormatPadPosition position) { 43 if (targetWidth >= 0) { 44 return {cp, targetWidth, position};
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
DecodedImageResource.java | 208 final int targetWidth = (int) (bitmapWidth * 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 | 149 int targetWidth = mPhotoTask.getTargetWidth(); 178 int wScale = bitmapOptions.outWidth / targetWidth;
|
/frameworks/base/media/java/android/media/ |
ThumbnailUtils.java | 363 int targetWidth, 369 int deltaX = source.getWidth() - targetWidth; 378 Bitmap b2 = Bitmap.createBitmap(targetWidth, targetHeight, 387 deltaXHalf + Math.min(targetWidth, source.getWidth()), 389 int dstX = (targetWidth - src.width()) / 2; 394 targetWidth - dstX, 407 float viewAspect = (float) targetWidth / targetHeight; 417 float scale = targetWidth / bitmapWidthF; 438 int dx1 = Math.max(0, b1.getWidth() - targetWidth); 445 targetWidth, [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
Util.java | 152 int targetWidth, 156 int deltaX = source.getWidth() - targetWidth; 165 Bitmap b2 = Bitmap.createBitmap(targetWidth, targetHeight, 174 deltaXHalf + Math.min(targetWidth, source.getWidth()), 176 int dstX = (targetWidth - src.width()) / 2; 181 targetWidth - dstX, 193 float viewAspect = (float) targetWidth / targetHeight; 203 float scale = targetWidth / bitmapWidthF; 224 int dx1 = Math.max(0, b1.getWidth() - targetWidth); 231 targetWidth, [all...] |
/packages/apps/LegacyCamera/src/com/android/camera/ |
Thumbnail.java | 256 public static Bitmap createVideoThumbnail(FileDescriptor fd, int targetWidth) { 257 return createVideoThumbnail(null, fd, targetWidth); 260 public static Bitmap createVideoThumbnail(String filePath, int targetWidth) { 261 return createVideoThumbnail(filePath, null, targetWidth); 264 private static Bitmap createVideoThumbnail(String filePath, FileDescriptor fd, int targetWidth) { 290 if (width > targetWidth) { 291 float scale = (float) targetWidth / width;
|
/frameworks/base/core/java/com/android/internal/graphics/palette/ |
ColorCutQuantizer.java | 525 private static int modifyWordWidth(int value, int currentWidth, int targetWidth) { 527 if (targetWidth > currentWidth) { 529 newValue = value << (targetWidth - currentWidth); 532 newValue = value >> (currentWidth - targetWidth); 534 return newValue & ((1 << targetWidth) - 1);
|
/frameworks/support/palette/src/main/java/androidx/palette/graphics/ |
ColorCutQuantizer.java | 508 private static int modifyWordWidth(int value, int currentWidth, int targetWidth) { 510 if (targetWidth > currentWidth) { 512 newValue = value << (targetWidth - currentWidth); 515 newValue = value >> (currentWidth - targetWidth); 517 return newValue & ((1 << targetWidth) - 1);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/ |
DividerHandleView.java | 113 private void animateToTarget(int targetWidth, int targetHeight, boolean touching) { 115 mCurrentWidth, targetWidth);
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
TransformationUtils.java | 100 final int targetWidth = (int) (minPercentage * toFit.getWidth()); 103 if (toFit.getWidth() == targetWidth && toFit.getHeight() == targetHeight) { 111 Bitmap toReuse = pool.get(targetWidth, targetHeight, config); 113 toReuse = Bitmap.createBitmap(targetWidth, targetHeight, config);
|
/packages/apps/TV/src/com/android/tv/dvr/ui/list/ |
SchedulesHeaderRowPresenter.java | 237 final int targetWidth = focusedView.getWidth(); 249 lp.width = targetWidth; 254 final float deltaWidth = lp.width - targetWidth; 267 targetWidth
|