/aosp14/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/ |
H A 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()
|
/aosp14/frameworks/base/core/java/com/android/internal/widget/ |
H A 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()
|
H A D | ScrollingTabContainerView.java | 123 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 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()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
H A D | NeverExactlyLinearLayout.kt | 39 val newWidth = if (widthExactly) width else measuredWidth regex 41 setMeasuredDimension(newWidth, newHeight)
|
/aosp14/frameworks/base/services/core/java/com/android/server/wallpaper/ |
H A D | WallpaperCropper.java | 133 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 D | BrightnessMirrorController.java | 107 int newWidth = original.getMeasuredWidth() + 2 * mBrightnessMirrorBackgroundPadding; in setLocationAndSize() local 108 if (newWidth != mLastBrightnessSliderWidth) { in setLocationAndSize() 110 lp.width = newWidth; in setLocationAndSize()
|
H A 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()
|
/aosp14/frameworks/base/core/java/android/content/res/ |
H A D | CompatibilityInfo.java | 661 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 D | CredentialPasswordView.kt | 101 val newWidth = MeasureSpec.getSize(widthMeasureSpec) regex 104 setMeasuredDimension(newWidth, newHeight)
|
/aosp14/frameworks/base/core/java/android/widget/ |
H A 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()
|
H A 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()
|
H A D | PopupWindow.java | 2444 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 D | TransitionLayout.kt | 68 val newWidth = value.measureWidth regex 70 if (newWidth != desiredMeasureWidth || newHeight != desiredMeasureHeight) { 71 desiredMeasureWidth = newWidth
|
/aosp14/frameworks/base/libs/hwui/canvas/ |
H A D | CanvasFrontend.h | 244 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 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()
|
/aosp14/frameworks/base/core/java/android/inputmethodservice/ |
H A 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()
|
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
H A D | ContentRecorderTests.java | 274 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 D | ActivityRecordTests.java | 633 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 D | Icon.java | 376 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 D | BootAnimation.h | 203 void resizeSurface(int newWidth, int newHeight);
|
H A D | BootAnimation.cpp | 679 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 D | MediaSessionLegacyHelper.java | 306 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 D | TextLineTest.java | 57 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 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()
|