Home
last modified time | relevance | path

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

12

/aosp14/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
H A 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()
/aosp14/frameworks/base/core/java/com/android/internal/widget/
H A 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()
H A DScrollingTabContainerView.java123 final int newWidth = getMeasuredWidth(); in onMeasure() local
125 if (lockedExpanded && oldWidth != newWidth) { in onMeasure()
/aosp14/frameworks/base/services/core/java/com/android/server/wm/utils/
H A 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()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
H A DNeverExactlyLinearLayout.kt39 val newWidth = if (widthExactly) width else measuredWidth regex
41 setMeasuredDimension(newWidth, newHeight)
/aosp14/frameworks/base/services/core/java/com/android/server/wallpaper/
H A DWallpaperCropper.java133 final int newWidth = (int) (cropHint.width() * scaleByHeight); in generateCropInternal() local
134 if (newWidth < displayInfo.logicalWidth) { in generateCropInternal()
195 int newWidth = (int) (wpData.mWidth / hRatio); in generateCropInternal() local
202 estimateCrop.left += (cropHint.width() - newWidth) / 2; in generateCropInternal()
204 estimateCrop.right = estimateCrop.left + newWidth; in generateCropInternal()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DBrightnessMirrorController.java107 int newWidth = original.getMeasuredWidth() + 2 * mBrightnessMirrorBackgroundPadding; in setLocationAndSize() local
108 if (newWidth != mLastBrightnessSliderWidth) { in setLocationAndSize()
110 lp.width = newWidth; in setLocationAndSize()
H A 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()
/aosp14/frameworks/base/core/java/android/content/res/
H A DCompatibilityInfo.java661 int newWidth, newHeight; in computeCompatibleScaling() local
663 newWidth = newShortSize; in computeCompatibleScaling()
666 newWidth = newLongSize; in computeCompatibleScaling()
670 float sw = width/(float)newWidth; in computeCompatibleScaling()
678 outDm.widthPixels = newWidth; in computeCompatibleScaling()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/
H A DCredentialPasswordView.kt101 val newWidth = MeasureSpec.getSize(widthMeasureSpec) regex
104 setMeasuredDimension(newWidth, newHeight)
/aosp14/frameworks/base/core/java/android/widget/
H A DTabWidget.java217 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()
H A 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()
H A DPopupWindow.java2444 final int newWidth = width < 0 ? width : p.width;
2446 update(p.x, p.y, newWidth, newHeight, paramsChanged);
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/util/animation/
H A DTransitionLayout.kt68 val newWidth = value.measureWidth regex
70 if (newWidth != desiredMeasureWidth || newHeight != desiredMeasureHeight) {
71 desiredMeasureWidth = newWidth
/aosp14/frameworks/base/libs/hwui/canvas/
H A DCanvasFrontend.h244 void reset(int newWidth, int newHeight, Args&&... args) { in reset() argument
245 resetState(newWidth, newHeight); in reset()
/aosp14/frameworks/base/core/java/android/app/
H A 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()
/aosp14/frameworks/base/core/java/android/inputmethodservice/
H A 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()
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DContentRecorderTests.java274 final int newWidth = 55; in testOnConfigurationChanged_resizesVirtualDisplay() local
279 resizeDisplay(mDisplayContent, newWidth, sSurfaceSize.y); in testOnConfigurationChanged_resizesVirtualDisplay()
280 resizeDisplay(mVirtualDisplayContent, newWidth, sSurfaceSize.y); in testOnConfigurationChanged_resizesVirtualDisplay()
H A DActivityRecordTests.java633 final int newWidth = stableRect.height() - 10; in ignoreRequestedOrientationInFreeformWindows() local
634 bounds.left = stableRect.left + (stableRect.width() - newWidth) / 2; in ignoreRequestedOrientationInFreeformWindows()
635 bounds.right = bounds.left + newWidth; in ignoreRequestedOrientationInFreeformWindows()
674 final int newWidth = stableRect.height() - 10; in ignoreRequestedOrientationForResizableInSplitWindows() local
675 bounds.left = stableRect.left + (stableRect.width() - newWidth) / 2; in ignoreRequestedOrientationForResizableInSplitWindows()
676 bounds.right = bounds.left + newWidth; in ignoreRequestedOrientationForResizableInSplitWindows()
/aosp14/frameworks/base/graphics/java/android/graphics/drawable/
H A DIcon.java376 int newWidth = (int) (newHeight * aspRatio); in fixMaxBitmapSize() local
381 + newWidth + " " + newHeight); in fixMaxBitmapSize()
384 return scaleDownIfNecessary(bitmap, newWidth, newHeight); in fixMaxBitmapSize()
/aosp14/frameworks/base/cmds/bootanimation/
H A DBootAnimation.h203 void resizeSurface(int newWidth, int newHeight);
H A DBootAnimation.cpp679 void BootAnimation::resizeSurface(int newWidth, int newHeight) { in resizeSurface() argument
681 if (newWidth == mWidth && newHeight == mHeight) { in resizeSurface()
684 SLOGV("Resizing the boot animation surface to %d %d", newWidth, newHeight); in resizeSurface()
689 mFlingerSurfaceControl->updateDefaultBufferSize(newWidth, newHeight); in resizeSurface()
690 const auto limitedSize = limitSurfaceSize(newWidth, newHeight); in resizeSurface()
/aosp14/frameworks/base/media/java/android/media/session/
H A DMediaSessionLegacyHelper.java306 int newWidth = Math.round(scale * width); in scaleBitmapIfTooBig() local
312 Bitmap outBitmap = Bitmap.createBitmap(newWidth, newHeight, newConfig); in scaleBitmapIfTooBig()
/aosp14/frameworks/base/core/tests/coretests/src/android/text/
H A DTextLineTest.java57 final float newWidth = tl.metrics(null); in stretchesToFullWidth() local
59 return Math.abs(newWidth - expandedWidth) < 0.5; in stretchesToFullWidth()
/aosp14/frameworks/base/core/jni/
H A Dandroid_app_NativeActivity.cpp588 int32_t newWidth = getWindowProp(code->nativeWindow.get(), in onSurfaceChanged_native() local
592 if (newWidth != code->lastWindowWidth in onSurfaceChanged_native()

12