/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/ |
D | EmbeddedContentContainer.java | 39 protected void onSizeChanged(int newWidth, int newHeight, int oldWidth, int oldHeight) { in onSizeChanged() argument 40 super.onSizeChanged(newWidth, newHeight, oldWidth, oldHeight); in onSizeChanged() 42 mSizeChangeListener.onSizeChanged(newWidth, newHeight); in onSizeChanged()
|
/frameworks/native/libs/nativedisplay/surfacetexture/ |
D | SurfaceTexture.cpp | 353 uint32_t newWidth = static_cast<uint32_t>(crop.width()); in scaleDownCrop() local 356 if (newWidth * bufferHeight > newHeight * bufferWidth) { in scaleDownCrop() 357 newWidth = newHeight * bufferWidth / bufferHeight; in scaleDownCrop() 358 ALOGV("too wide: newWidth = %d", newWidth); in scaleDownCrop() 359 } else if (newWidth * bufferHeight < newHeight * bufferWidth) { in scaleDownCrop() 360 newHeight = newWidth * bufferHeight / bufferWidth; in scaleDownCrop() 368 if (newWidth < currentWidth) { in scaleDownCrop() 369 uint32_t dw = currentWidth - newWidth; in scaleDownCrop()
|
/frameworks/base/services/core/java/com/android/server/wm/utils/ |
D | CoordinateTransforms.java | 129 @Rotation int newRotation, int newWidth, int newHeight, Matrix out) { in transformToRotation() argument 131 final int h = flipped ? newWidth : newHeight; in transformToRotation() 132 final int w = flipped ? newHeight : newWidth; in transformToRotation()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
D | NeverExactlyLinearLayout.kt | 39 val newWidth = if (widthExactly) width else measuredWidth in onMeasure() constant 41 setMeasuredDimension(newWidth, newHeight) in onMeasure()
|
/frameworks/base/core/java/android/content/res/ |
D | CompatibilityInfo.java | 527 int newWidth, newHeight; in computeCompatibleScaling() local 529 newWidth = newShortSize; in computeCompatibleScaling() 532 newWidth = newLongSize; in computeCompatibleScaling() 536 float sw = width/(float)newWidth; in computeCompatibleScaling() 544 outDm.widthPixels = newWidth; in computeCompatibleScaling()
|
/frameworks/base/core/java/android/app/ |
D | WallpaperColors.java | 446 int newWidth = (int) (width * scale); in calculateOptimalSize() local 450 if (newWidth == 0) { in calculateOptimalSize() 451 newWidth = 1; in calculateOptimalSize() 457 return new Size(newWidth, newHeight); in calculateOptimalSize()
|
/frameworks/native/libs/gui/ |
D | GLConsumer.cpp | 751 uint32_t newWidth = static_cast<uint32_t>(crop.width()); in scaleDownCrop() local 754 if (newWidth * bufferHeight > newHeight * bufferWidth) { in scaleDownCrop() 755 newWidth = newHeight * bufferWidth / bufferHeight; in scaleDownCrop() 756 ALOGV("too wide: newWidth = %d", newWidth); in scaleDownCrop() 757 } else if (newWidth * bufferHeight < newHeight * bufferWidth) { in scaleDownCrop() 758 newHeight = newWidth * bufferHeight / bufferWidth; in scaleDownCrop() 766 if (newWidth < currentWidth) { in scaleDownCrop() 767 uint32_t dw = currentWidth - newWidth; in scaleDownCrop()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | SmartReplyView.java | 717 final int newWidth = button.getMeasuredWidth(); in squeezeButtonToTextWidth() local 720 if (button.getLineCount() > 2 || newWidth >= oldWidth) { in squeezeButtonToTextWidth() 725 return oldWidth - newWidth; in squeezeButtonToTextWidth() 743 int newWidth = child.getMeasuredWidth(); in remeasureButtonsIfNecessary() local 749 newWidth = Integer.MAX_VALUE; in remeasureButtonsIfNecessary() 756 if (newWidth != Integer.MAX_VALUE) { in remeasureButtonsIfNecessary() 759 newWidth -= mSingleToDoubleLineButtonWidthIncrease; in remeasureButtonsIfNecessary() 762 newWidth += mSingleToDoubleLineButtonWidthIncrease; in remeasureButtonsIfNecessary() 776 child.measure(MeasureSpec.makeMeasureSpec(newWidth, MeasureSpec.AT_MOST), in remeasureButtonsIfNecessary()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | ActivityLaunchAnimator.java | 211 int newWidth = (int) MathUtils.lerp(notificationWidth, in onAnimationStart() 213 mParams.left = (int) ((targetWidth - newWidth) / 2.0f); in onAnimationStart() 214 mParams.right = mParams.left + newWidth; in onAnimationStart()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
D | AuthBiometricView.java | 698 final int newWidth = Math.min(width, height); in onMeasure() local 707 MeasureSpec.makeMeasureSpec(newWidth, MeasureSpec.AT_MOST), in onMeasure() 711 MeasureSpec.makeMeasureSpec(newWidth, MeasureSpec.EXACTLY), in onMeasure() 716 MeasureSpec.makeMeasureSpec(newWidth, MeasureSpec.EXACTLY), in onMeasure() 726 setMeasuredDimension(newWidth, totalHeight); in onMeasure()
|
/frameworks/av/media/libstagefright/omx/ |
D | SoftVideoDecoderOMXComponent.cpp | 499 uint32_t newWidth = video_def->nFrameWidth; in internalSetParameter() local 504 if (newWidth > 32768 || newHeight > 32768 in internalSetParameter() 510 if (newWidth != oldWidth || newHeight != oldHeight) { in internalSetParameter() 514 mWidth = newWidth; in internalSetParameter() 524 def->format.video.nFrameWidth = newWidth; in internalSetParameter()
|
/frameworks/base/core/java/android/widget/ |
D | TabWidget.java | 217 final int newWidth = Math.max(0, childWidth - delta); in measureHorizontal() local 218 mImposedTabWidths[i] = newWidth; in measureHorizontal() 220 extraWidth -= childWidth - newWidth; // delta may have been clamped in measureHorizontal()
|
D | ImageView.java | 1188 int newWidth = (int)(desiredAspect * (heightSize - ptop - pbottom)) + in onMeasure() local 1193 widthSize = resolveAdjustedSize(newWidth, mMaxWidth, widthMeasureSpec); in onMeasure() 1196 if (newWidth <= widthSize) { in onMeasure() 1197 widthSize = newWidth; in onMeasure()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/animation/ |
D | TransitionLayout.kt | 59 val newWidth = value.width constant 61 if (newWidth != desiredMeasureWidth || newHeight != desiredMeasureHeight) { 62 desiredMeasureWidth = newWidth
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | TextLineTest.java | 56 final float newWidth = tl.metrics(null); in stretchesToFullWidth() local 58 return Math.abs(newWidth - expandedWidth) < 0.5; in stretchesToFullWidth()
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | Keyboard.java | 637 final void resize(int newWidth, int newHeight) { in resize() argument 651 if (totalGap + totalWidth > newWidth) { in resize() 653 float scaleFactor = (float)(newWidth - totalGap) / totalWidth; in resize() 662 mTotalWidth = newWidth; in resize()
|
/frameworks/av/cmds/screenrecord/ |
D | screenrecord.cpp | 728 uint32_t newWidth = needSwap ? kFallbackHeight : kFallbackWidth; in recordScreen() local 730 if (gVideoWidth != newWidth && gVideoHeight != newHeight) { in recordScreen() 733 gVideoWidth, gVideoHeight, newWidth, newHeight); in recordScreen() 734 gVideoWidth = newWidth; in recordScreen()
|
/frameworks/base/cmds/bootanimation/ |
D | BootAnimation.h | 174 void resizeSurface(int newWidth, int newHeight);
|
D | BootAnimation.cpp | 473 void BootAnimation::resizeSurface(int newWidth, int newHeight) { in resizeSurface() argument 475 if (newWidth == mWidth && newHeight == mHeight) { in resizeSurface() 478 SLOGV("Resizing the boot animation surface to %d %d", newWidth, newHeight); in resizeSurface() 483 const auto limitedSize = limitSurfaceSize(newWidth, newHeight); in resizeSurface()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | ActivityRecordTests.java | 435 final int newWidth = stableRect.height() - 10; in ignoreRequestedOrientationInFreeformWindows() local 436 bounds.left = stableRect.left + (stableRect.width() - newWidth) / 2; in ignoreRequestedOrientationInFreeformWindows() 437 bounds.right = bounds.left + newWidth; in ignoreRequestedOrientationInFreeformWindows() 474 final int newWidth = stableRect.height() - 10; in ignoreRequestedOrientationInSplitWindows() local 475 bounds.left = stableRect.left + (stableRect.width() - newWidth) / 2; in ignoreRequestedOrientationInSplitWindows() 476 bounds.right = bounds.left + newWidth; in ignoreRequestedOrientationInSplitWindows()
|
/frameworks/base/media/java/android/media/session/ |
D | MediaSessionLegacyHelper.java | 303 int newWidth = Math.round(scale * width); in scaleBitmapIfTooBig() local 309 Bitmap outBitmap = Bitmap.createBitmap(newWidth, newHeight, newConfig); in scaleBitmapIfTooBig()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ScrollingTabContainerView.java | 122 final int newWidth = getMeasuredWidth(); in onMeasure() local 124 if (lockedExpanded && oldWidth != newWidth) { in onMeasure()
|
/frameworks/base/core/jni/ |
D | android_app_NativeActivity.cpp | 588 int32_t newWidth = getWindowProp(code->nativeWindow.get(), in onSurfaceChanged_native() local 592 if (newWidth != code->lastWindowWidth in onSurfaceChanged_native()
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
D | Parameters.cpp | 110 int newWidth = availablePreviewSizes[i].width; in initialize() local 112 if (newWidth >= previewWidth && newHeight >= previewHeight && in initialize() 113 newWidth <= MAX_INITIAL_PREVIEW_WIDTH && in initialize() 116 if (availableVideoSizes[j].width == newWidth && in initialize() 118 previewWidth = newWidth; in initialize()
|
/frameworks/base/services/core/java/com/android/server/wallpaper/ |
D | WallpaperManagerService.java | 636 final int newWidth = (int) (cropHint.width() * scaleByHeight); in generateCrop() local 637 if (newWidth < displayInfo.logicalWidth) { in generateCrop() 708 int newWidth = (int) (wpData.mWidth / hRatio); in generateCrop() local 715 estimateCrop.left += (cropHint.width() - newWidth) / 2; in generateCrop() 717 estimateCrop.right = estimateCrop.left + newWidth; in generateCrop()
|