/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/base/core/java/com/android/internal/widget/ |
D | ConversationHeaderLinearLayout.java | 149 int newWidth = (int) (info.mWidth - (excessContents * (info.mWeight / weightSum))); in balanceViewWidths() local 150 if (newWidth < 0) { in balanceViewWidths() 151 newWidth = 0; in balanceViewWidths() 154 excessRemovedDuringThisPass += info.mWidth - newWidth; in balanceViewWidths() 155 info.mWidth = newWidth; in balanceViewWidths()
|
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/anc/ui/composable/ |
D | SliceAndroidView.kt | 79 val newWidth = right - left in onLayoutChange() constant 81 if (oldWidth != newWidth) { in onLayoutChange() 82 widthChanged(newWidth) in onLayoutChange()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ImmediateDisplayUpdater.java | 46 int initialDisplayHeight, int newWidth, int newHeight) { in onDisplayContentDisplayPropertiesPreChanged() argument 48 displayId, initialDisplayWidth, initialDisplayHeight, newWidth, newHeight); in onDisplayContentDisplayPropertiesPreChanged()
|
D | DisplayUpdater.java | 42 int initialDisplayHeight, int newWidth, int newHeight) { in onDisplayContentDisplayPropertiesPreChanged() argument
|
/frameworks/native/libs/nativedisplay/surfacetexture/ |
D | SurfaceTexture.cpp | 355 uint32_t newWidth = static_cast<uint32_t>(crop.width()); in scaleDownCrop() local 358 if (newWidth * bufferHeight > newHeight * bufferWidth) { in scaleDownCrop() 359 newWidth = newHeight * bufferWidth / bufferHeight; in scaleDownCrop() 360 ALOGV("too wide: newWidth = %d", newWidth); in scaleDownCrop() 361 } else if (newWidth * bufferHeight < newHeight * bufferWidth) { in scaleDownCrop() 362 newHeight = newWidth * bufferHeight / bufferWidth; in scaleDownCrop() 370 if (newWidth < currentWidth) { in scaleDownCrop() 371 uint32_t dw = currentWidth - newWidth; in scaleDownCrop()
|
/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/services/core/java/com/android/server/wm/utils/ |
D | CoordinateTransforms.java | 127 @Rotation int newRotation, int newWidth, int newHeight, Matrix out) { in transformToRotation() argument 129 final int h = flipped ? newWidth : newHeight; in transformToRotation() 130 final int w = flipped ? newHeight : newWidth; in transformToRotation()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | BrightnessMirrorController.java | 106 int newWidth = original.getMeasuredWidth() + 2 * mBrightnessMirrorBackgroundPadding; in setLocationAndSize() local 107 if (newWidth != mLastBrightnessSliderWidth) { in setLocationAndSize() 109 lp.width = newWidth; in setLocationAndSize()
|
D | SmartReplyView.java | 615 final int newWidth = button.getMeasuredWidth(); in squeezeButtonToTextWidth() local 618 if (button.getLineCount() > 2 || newWidth >= oldWidth) { in squeezeButtonToTextWidth() 623 return oldWidth - newWidth; in squeezeButtonToTextWidth() 640 int newWidth = child.getMeasuredWidth(); in remeasureButtonsIfNecessary() local 646 newWidth = Integer.MAX_VALUE; in remeasureButtonsIfNecessary() 656 child.measure(MeasureSpec.makeMeasureSpec(newWidth, MeasureSpec.AT_MOST), in remeasureButtonsIfNecessary()
|
/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/notification/row/ |
D | BigPictureIconManager.kt | 159 val (newWidth, newHeight) = newDrawable.intrinsicSize in <lambda>() constant 161 if (oldWidth != newWidth || oldHeight != newHeight) { in <lambda>() 165 "$oldWidth X $oldHeight with Drawable $newWidth X $newHeight." in <lambda>()
|
/frameworks/base/core/java/android/content/res/ |
D | CompatibilityInfo.java | 719 int newWidth, newHeight; in computeCompatibleScaling() local 721 newWidth = newShortSize; in computeCompatibleScaling() 724 newWidth = newLongSize; in computeCompatibleScaling() 728 float sw = width/(float)newWidth; in computeCompatibleScaling() 736 outDm.widthPixels = newWidth; in computeCompatibleScaling()
|
/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/packages/SystemUI/src/com/android/systemui/util/animation/ |
D | TransitionLayout.kt | 68 val newWidth = value.measureWidth constant 70 if (newWidth != desiredMeasureWidth || newHeight != desiredMeasureHeight) { 71 desiredMeasureWidth = newWidth
|
/frameworks/base/core/java/android/widget/ |
D | TabWidget.java | 221 final int newWidth = Math.max(0, childWidth - delta); in measureHorizontal() local 222 mImposedTabWidths[i] = newWidth; in measureHorizontal() 224 extraWidth -= childWidth - newWidth; // delta may have been clamped in measureHorizontal()
|
D | ImageView.java | 1198 int newWidth = (int)(desiredAspect * (heightSize - ptop - pbottom)) + in onMeasure() local 1203 widthSize = resolveAdjustedSize(newWidth, mMaxWidth, widthMeasureSpec); in onMeasure() 1206 if (newWidth <= widthSize) { in onMeasure() 1207 widthSize = newWidth; in onMeasure()
|
/frameworks/base/libs/hwui/canvas/ |
D | CanvasFrontend.h | 244 void reset(int newWidth, int newHeight, Args&&... args) { in reset() argument 245 resetState(newWidth, newHeight); in reset()
|
/frameworks/base/core/java/android/app/ |
D | WallpaperColors.java | 627 int newWidth = (int) (width * scale); in calculateOptimalSize() local 631 if (newWidth == 0) { in calculateOptimalSize() 632 newWidth = 1; in calculateOptimalSize() 638 return new Size(newWidth, newHeight); in calculateOptimalSize()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/ |
D | FullscreenMagnificationController.java | 304 final int newWidth = mWindowBounds.width() + 2 * mBorderOffset; in onConfigurationChanged() local 306 mSurfaceControlViewHost.relayout(newWidth, newHeight); in onConfigurationChanged()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/ |
D | FullscreenMagnificationControllerTest.java | 257 final int newWidth = testWindowBounds.width() + 2 * borderOffset; in onScreenSizeChanged_activated_borderChangedToExpectedSize() local 259 verify(mSurfaceControlViewHost).relayout(newWidth, newHeight); in onScreenSizeChanged_activated_borderChangedToExpectedSize()
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | Keyboard.java | 638 final void resize(int newWidth, int newHeight) { in resize() argument 652 if (totalGap + totalWidth > newWidth) { in resize() 654 float scaleFactor = (float)(newWidth - totalGap) / totalWidth; in resize() 663 mTotalWidth = newWidth; in resize()
|
/frameworks/base/services/core/java/com/android/server/wallpaper/ |
D | WallpaperCropper.java | 623 final int newWidth = (int) (cropHint.width() * scaleByHeight); in generateCropInternal() local 624 if (newWidth < displayInfo.logicalWidth) { in generateCropInternal() 691 int newWidth = (int) (wpData.mWidth / hRatio); in generateCropInternal() local 694 estimateCrop.left += (cropHint.width() - newWidth) / 2; in generateCropInternal() 696 estimateCrop.right = estimateCrop.left + newWidth; in generateCropInternal()
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | SurfaceFlinger_DisplayTransactionCommitTest.cpp | 651 constexpr int newWidth = 123; in TEST_F() local 679 display.mutableCurrentDisplayState().width = newWidth; in TEST_F() 685 EXPECT_CALL(*displaySurface, resizeBuffers(ui::Size(newWidth, oldHeight))).Times(1); in TEST_F()
|
/frameworks/av/cmds/screenrecord/ |
D | screenrecord.cpp | 921 uint32_t newWidth = needSwap ? kFallbackHeight : kFallbackWidth; in recordScreen() local 923 if (gVideoWidth != newWidth && gVideoHeight != newHeight) { in recordScreen() 926 gVideoWidth, gVideoHeight, newWidth, newHeight); in recordScreen() 927 gVideoWidth = newWidth; in recordScreen()
|