Home
last modified time | relevance | path

Searched refs:newWidth (Results 1 – 25 of 39) sorted by relevance

12

/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
DEmbeddedContentContainer.java39 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/
DConversationHeaderLinearLayout.java149 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/
DSliceAndroidView.kt79 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/
DImmediateDisplayUpdater.java46 int initialDisplayHeight, int newWidth, int newHeight) { in onDisplayContentDisplayPropertiesPreChanged() argument
48 displayId, initialDisplayWidth, initialDisplayHeight, newWidth, newHeight); in onDisplayContentDisplayPropertiesPreChanged()
DDisplayUpdater.java42 int initialDisplayHeight, int newWidth, int newHeight) { in onDisplayContentDisplayPropertiesPreChanged() argument
/frameworks/native/libs/nativedisplay/surfacetexture/
DSurfaceTexture.cpp355 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/
DNeverExactlyLinearLayout.kt39 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/
DCoordinateTransforms.java127 @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/
DBrightnessMirrorController.java106 int newWidth = original.getMeasuredWidth() + 2 * mBrightnessMirrorBackgroundPadding; in setLocationAndSize() local
107 if (newWidth != mLastBrightnessSliderWidth) { in setLocationAndSize()
109 lp.width = newWidth; in setLocationAndSize()
DSmartReplyView.java615 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/
DGLConsumer.cpp751 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/
DBigPictureIconManager.kt159 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/
DCompatibilityInfo.java719 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/
DSoftVideoDecoderOMXComponent.cpp499 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/
DTransitionLayout.kt68 val newWidth = value.measureWidth constant
70 if (newWidth != desiredMeasureWidth || newHeight != desiredMeasureHeight) {
71 desiredMeasureWidth = newWidth
/frameworks/base/core/java/android/widget/
DTabWidget.java221 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()
DImageView.java1198 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/
DCanvasFrontend.h244 void reset(int newWidth, int newHeight, Args&&... args) { in reset() argument
245 resetState(newWidth, newHeight); in reset()
/frameworks/base/core/java/android/app/
DWallpaperColors.java627 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/
DFullscreenMagnificationController.java304 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/
DFullscreenMagnificationControllerTest.java257 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/
DKeyboard.java638 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/
DWallpaperCropper.java623 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/
DSurfaceFlinger_DisplayTransactionCommitTest.cpp651 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/
Dscreenrecord.cpp921 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()

12