/packages/apps/Camera/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;
|
/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/chromium_org/chrome/browser/resources/image_loader/ |
image_loader.js | 141 var targetWidth = sourceWidth; 145 targetWidth = sourceWidth * options.scale; 150 targetWidth > options.maxWidth) { 151 var scale = options.maxWidth / targetWidth; 152 targetWidth *= scale; 159 targetWidth *= scale; 164 targetWidth = options.width; 169 targetWidth = Math.round(targetWidth); 172 return {width: targetWidth, height: targetHeight} [all...] |
/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 | 364 int targetWidth, 370 int deltaX = source.getWidth() - targetWidth; 379 Bitmap b2 = Bitmap.createBitmap(targetWidth, targetHeight, 388 deltaXHalf + Math.min(targetWidth, source.getWidth()), 390 int dstX = (targetWidth - src.width()) / 2; 395 targetWidth - dstX, 408 float viewAspect = (float) targetWidth / targetHeight; 418 float scale = targetWidth / bitmapWidthF; 439 int dx1 = Math.max(0, b1.getWidth() - targetWidth); 446 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;
|
/external/jmonkeyengine/engine/src/desktop/jme3tools/converters/ |
MipMapGenerator.java | 48 private static BufferedImage scaleDown(BufferedImage sourceImage, int targetWidth, int targetHeight) { 52 BufferedImage targetImage = new BufferedImage(targetWidth, targetHeight, sourceImage.getType()); 56 g.drawImage(sourceImage, 0, 0, targetWidth, targetHeight, 0, 0, sourceWidth, sourceHeight, null);
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/ |
FullscreenBlur.java | 52 static int targetWidth;
58 targetWidth = w/8;
61 Type renderType = b.setX(targetWidth).setY(targetHeight).create();
69 renderType = b.setX(targetWidth).setY(targetHeight).create();
134 addOffsets(quad, 1.0f / (float)targetWidth);
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
ActionMenuItemView.java | 271 final int targetWidth = widthMode == MeasureSpec.AT_MOST ? Math.min(widthSize, mMinWidth) 274 if (widthMode != MeasureSpec.EXACTLY && mMinWidth > 0 && oldMeasuredWidth < targetWidth) { 276 super.onMeasure(MeasureSpec.makeMeasureSpec(targetWidth, MeasureSpec.EXACTLY),
|
ActionMenuView.java | 381 final int targetWidth = cellsUsed * cellSize; 382 child.measure(MeasureSpec.makeMeasureSpec(targetWidth, MeasureSpec.EXACTLY),
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/ |
ActionMenuItemView.java | 220 final int targetWidth = widthMode == MeasureSpec.AT_MOST ? Math.min(widthSize, mMinWidth) 223 if (widthMode != MeasureSpec.EXACTLY && mMinWidth > 0 && oldMeasuredWidth < targetWidth) { 225 super.onMeasure(MeasureSpec.makeMeasureSpec(targetWidth, MeasureSpec.EXACTLY),
|
ActionMenuView.java | 408 final int targetWidth = cellsUsed * cellSize; 409 child.measure(MeasureSpec.makeMeasureSpec(targetWidth, MeasureSpec.EXACTLY),
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
CropFilter.java | 106 float targetWidth = croppedDims[0] / (float)extDims[0]; 108 Quad targetQuad = Quad.fromRect(0f, 0f, targetWidth, targetHeight);
|
/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);
|
ChartSweepView.java | 185 final float targetWidth = mSweep.getIntrinsicWidth() - mSweepPadding.left 187 return mSweepPadding.left + (targetWidth / 2) + mSweepOffset.x; 654 final int targetWidth = mSweep.getIntrinsicWidth() - mSweepPadding.left 656 mMargins.left = -(mSweepPadding.left + (targetWidth / 2));
|
/packages/apps/Gallery2/src/com/android/photos/views/ |
HeaderGridView.java | 198 int targetWidth = HeaderGridView.this.getMeasuredWidth() 201 widthMeasureSpec = MeasureSpec.makeMeasureSpec(targetWidth,
|
/frameworks/base/core/java/com/android/internal/widget/ |
SlidingTab.java | 341 final int targetWidth = targetDrawable.getIntrinsicWidth(); 346 final int leftTarget = (int) (THRESHOLD * parentWidth) - targetWidth + handleWidth / 2; 361 target.layout(leftTarget, targetTop, leftTarget + targetWidth, targetBottom); 366 target.layout(rightTarget, targetTop, rightTarget + targetWidth, targetBottom); 372 final int targetLeft = (parentWidth - targetWidth) / 2; 373 final int targetRight = (parentWidth + targetWidth) / 2; [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/ |
CameraOrientationActivity.java | 388 int targetWidth = w; 400 Math.abs(size.width - targetWidth); 403 && size.width <= targetWidth) {
|
/external/qemu/distrib/sdl-1.2.15/src/video/symbian/EKA2/ |
dsa_old.cpp | 528 const TInt targetWidth = HwRect().Size().iWidth; 536 targetPtr += targetWidth * (height - 1); 542 targetPtr -= targetWidth; 553 targetPtr += targetWidth;
|
dsa_new.cpp | 745 const TInt targetWidth = iScanLineWidth >> 2; 820 const TInt targetWidth = iScanLineWidth >> 2; 828 targetPtr += targetWidth * (height - 1); 834 targetPtr -= targetWidth; 845 targetPtr += targetWidth;
|
/frameworks/base/core/java/android/widget/ |
FastScroller.java | [all...] |
GridLayout.java | [all...] |
/external/chromium_org/third_party/angle_dx11/src/libGLESv2/ |
ProgramBinary.cpp | 461 template<typename T, int targetWidth, int targetHeight, int srcWidth, int srcHeight> 464 int copyWidth = std::min(targetWidth, srcWidth); 471 target[x * targetWidth + y] = (T)value[y * srcWidth + x]; 477 for (int x = srcWidth; x < targetWidth; x++) 479 target[y * targetWidth + x] = (T)0; 485 for (int x = 0; x < targetWidth; x++) 487 target[y * targetWidth + x] = (T)0; [all...] |
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/ |
GridLayout.java | [all...] |