/development/samples/training/threadsample/src/com/example/android/threadsample/ |
PhotoDecodeRunnable.java | 149 int targetWidth = mPhotoTask.getTargetWidth(); 178 int wScale = bitmapOptions.outWidth / targetWidth;
|
/external/deqp/modules/gles2/functional/ |
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));
|
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...] |
/external/deqp/modules/gles3/functional/ |
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));
|
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...] |
/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/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) {
|
/cts/tests/tests/keystore/src/android/server/am/ |
ActivityAndWindowManagersState.java | 528 int targetWidth = (int) Math.max(aTaskMinWidth, 532 targetWidth, (int) wTaskBounds.width());
|
/external/deqp/external/openglcts/modules/gl/ |
gl4cShaderViewportLayerArrayTests.cpp | 273 const GLfloat targetWidth = (GLfloat)renderTarget.getWidth(); 290 if (x > (targetWidth - viewportWidth))
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
Downsampler.java | 197 int targetWidth = (int) Math.ceil(inWidth / (double) sampleSize); 200 setInBitmap(options, pool.getDirty(targetWidth, targetHeight, config));
|
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);
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/gif/ |
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);
|
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;
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
CropFilter.java | 105 float targetWidth = croppedDims[0] / (float)extDims[0]; 107 Quad targetQuad = Quad.fromRect(0f, 0f, targetWidth, targetHeight);
|
/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);
|
/packages/apps/Settings/src/com/android/settings/widget/ |
ChartView.java | 89 final int targetWidth = (int) (mOptimalWidth + (slack * mOptimalWidthWeight)); 90 widthMeasureSpec = MeasureSpec.makeMeasureSpec(targetWidth, MeasureSpec.EXACTLY);
|
/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
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
BitmapDrawableTest.java | 379 int sourceWidth, targetWidth; 393 targetWidth = DrawableTestUtils.scaleBitmapFromDensity( 397 assertEquals(targetWidth, bitmapDrawable.getIntrinsicWidth()); 407 targetWidth = DrawableTestUtils.scaleBitmapFromDensity( 411 assertEquals(targetWidth, bitmapDrawable.getIntrinsicWidth()); 422 targetWidth = DrawableTestUtils.scaleBitmapFromDensity( 426 assertEquals(targetWidth, bitmapDrawable.getIntrinsicWidth());
|
/packages/apps/Gallery2/src/com/android/photos/views/ |
HeaderGridView.java | 198 int targetWidth = HeaderGridView.this.getMeasuredWidth() 201 widthMeasureSpec = MeasureSpec.makeMeasureSpec(targetWidth,
|
/packages/services/BuiltInPrintService/jni/plugins/ |
wprint_image.c | 309 float targetHeight, targetWidth; 319 targetWidth = image_info->printable_width * 1.0f; 324 useHeight = (rw >= targetWidth); 326 useHeight = (rw < targetWidth); 334 image_info->scaled_height = (int) floorf(targetWidth * sourceHeight / sourceWidth); 335 image_info->scaled_width = (int) floorf(targetWidth); [all...] |
/cts/tests/framework/base/activitymanager/util/src/android/server/am/ |
ActivityAndWindowManagersState.java | 708 int targetWidth = Math.max(taskWidth, defaultMinimalTaskSize); 711 assertEquals(new Rect(0, 0, targetWidth, targetHeight), [all...] |
/frameworks/base/core/java/com/android/internal/view/menu/ |
ActionMenuItemView.java | 287 final int targetWidth = widthMode == MeasureSpec.AT_MOST ? Math.min(widthSize, mMinWidth) 290 if (widthMode != MeasureSpec.EXACTLY && mMinWidth > 0 && oldMeasuredWidth < targetWidth) { 292 super.onMeasure(MeasureSpec.makeMeasureSpec(targetWidth, MeasureSpec.EXACTLY),
|
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/view/menu/ |
ActionMenuItemView.java | 280 final int targetWidth = widthMode == MeasureSpec.AT_MOST ? Math.min(widthSize, mMinWidth) 283 if (widthMode != MeasureSpec.EXACTLY && mMinWidth > 0 && oldMeasuredWidth < targetWidth) { 285 super.onMeasure(MeasureSpec.makeMeasureSpec(targetWidth, MeasureSpec.EXACTLY),
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/ |
CameraOrientationActivity.java | 389 int targetWidth = w; 402 Math.abs(size.width - targetWidth); 405 && size.width <= targetWidth) {
|