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

1 2

  /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);
  /external/chromium_org/chrome/browser/resources/image_loader/
image_loader.js 142 var targetHeight = sourceHeight;
146 targetHeight = sourceHeight * options.scale;
153 targetHeight *= scale;
157 targetHeight > options.maxHeight) {
158 var scale = options.maxHeight / targetHeight;
160 targetHeight *= scale;
167 targetHeight = options.height;
170 targetHeight = Math.round(targetHeight);
172 return {width: targetWidth, height: targetHeight};
    [all...]
  /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 365 int targetHeight,
371 int deltaY = source.getHeight() - targetHeight;
379 Bitmap b2 = Bitmap.createBitmap(targetWidth, targetHeight,
389 deltaYHalf + Math.min(targetHeight, source.getHeight()));
391 int dstY = (targetHeight - src.height()) / 2;
396 targetHeight - dstY);
408 float viewAspect = (float) targetWidth / targetHeight;
411 float scale = targetHeight / bitmapHeightF;
440 int dy1 = Math.max(0, b1.getHeight() - targetHeight);
447 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/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 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);
  /external/chromium_org/chrome/browser/resources/print_preview/
print_preview_animations.js 24 * @param {number} targetHeight The desired height in pixels after the animation
28 function getFadeInAnimationCode(targetHeight) {
30 '80% { height: ' + (targetHeight + 4) + 'px; }' +
31 '100% { opacity: 1; height: ' + targetHeight + 'px; }';
  /packages/apps/LegacyCamera/src/com/android/camera/
Util.java 390 int targetHeight = Math.min(display.getHeight(), display.getWidth());
392 if (targetHeight <= 0) {
394 targetHeight = display.getHeight();
401 if (Math.abs(size.height - targetHeight) < minDiff) {
403 minDiff = Math.abs(size.height - targetHeight);
413 if (Math.abs(size.height - targetHeight) < minDiff) {
415 minDiff = Math.abs(size.height - targetHeight);
  /frameworks/base/packages/SystemUI/src/com/android/systemui/
ExpandHelper.java 531 float targetHeight = mSmallSize;
535 targetHeight = (force || currentHeight > mSmallSize) ? mNaturalHeight : mSmallSize;
537 targetHeight = (force || currentHeight < mNaturalHeight) ? mSmallSize : mNaturalHeight;
544 if (targetHeight != currentHeight) {
545 mScaleAnimation.setFloatValues(targetHeight);
557 if (DEBUG) Log.d(TAG, "targetHeight is: " + targetHeight);
  /frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
CropFilter.java 107 float targetHeight = croppedDims[1] / (float)extDims[1];
108 Quad targetQuad = Quad.fromRect(0f, 0f, targetWidth, targetHeight);
  /packages/apps/Settings/src/com/android/settings/widget/
ChartSweepView.java 181 final float targetHeight = mSweep.getIntrinsicHeight() - mSweepPadding.top
183 return mSweepPadding.top + (targetHeight / 2) + mSweepOffset.y;
647 final int targetHeight = mSweep.getIntrinsicHeight() - mSweepPadding.top
649 mMargins.top = -(mSweepPadding.top + (targetHeight / 2));
  /frameworks/base/core/java/com/android/internal/widget/
SlidingTab.java 342 final int targetHeight = targetDrawable.getIntrinsicHeight();
353 final int targetTop = (parentHeight - targetHeight) / 2;
354 final int targetBottom = targetTop + targetHeight;
374 final int top = (int) (THRESHOLD * parentHeight) + handleHeight / 2 - targetHeight;
379 target.layout(targetLeft, top, targetRight, top + targetHeight);
384 target.layout(targetLeft, bottom, targetRight, bottom + targetHeight);
    [all...]
  /packages/apps/Camera/src/com/android/camera/
Util.java 452 int targetHeight = Math.min(point.x, point.y);
457 if (Math.abs(size.height - targetHeight) < minDiff) {
459 minDiff = Math.abs(size.height - targetHeight);
468 if (Math.abs(size.height - targetHeight) < minDiff) {
470 minDiff = Math.abs(size.height - targetHeight);
  /packages/apps/Camera2/src/com/android/camera/util/
CameraUtil.java 507 int targetHeight = Math.min(point.x, point.y);
513 if (Math.abs(size.y - targetHeight) < minDiff) {
515 minDiff = Math.abs(size.y - targetHeight);
525 if (Math.abs(size.y - targetHeight) < minDiff) {
527 minDiff = Math.abs(size.y - targetHeight);
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/
CameraOrientationActivity.java 387 int targetHeight = h;
399 curDiff = Math.abs(size.height - targetHeight) +
402 && size.height <= targetHeight
  /sdk/testapps/gridlayoutTest/v7-gridlayout/libs/
android-support-v7-gridlayout.jar 
  /external/chromium_org/third_party/angle_dx11/src/libGLESv2/
ProgramBinary.cpp 461 template<typename T, int targetWidth, int targetHeight, int srcWidth, int srcHeight>
465 int copyHeight = std::min(targetHeight, srcHeight);
483 for (int y = srcHeight; y < targetHeight; y++)
    [all...]
  /frameworks/base/core/java/android/widget/
GridLayout.java     [all...]
  /frameworks/support/v7/gridlayout/src/android/support/v7/widget/
GridLayout.java     [all...]
  /external/chromium_org/chrome/browser/resources/ntp_android/
ntp_android.js     [all...]
  /cts/suite/cts/deviceTests/browserbench/assets/octane/
gbemu.js     [all...]

Completed in 633 milliseconds

1 2