/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 | 148 int newWidth = (int) (info.mWidth - (excessContents * (info.mWeight / weightSum))); in balanceViewWidths() local 149 if (newWidth < 0) { in balanceViewWidths() 150 newWidth = 0; in balanceViewWidths() 153 excessRemovedDuringThisPass += info.mWidth - newWidth; in balanceViewWidths() 154 info.mWidth = newWidth; in balanceViewWidths()
|
D | ScrollingTabContainerView.java | 123 final int newWidth = getMeasuredWidth(); in onMeasure() local 125 if (lockedExpanded && oldWidth != newWidth) { in onMeasure()
|
/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/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 | 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/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 | 527 final int newWidth = button.getMeasuredWidth(); in squeezeButtonToTextWidth() local 530 if (button.getLineCount() > 2 || newWidth >= oldWidth) { in squeezeButtonToTextWidth() 535 return oldWidth - newWidth; in squeezeButtonToTextWidth() 552 int newWidth = child.getMeasuredWidth(); in remeasureButtonsIfNecessary() local 558 newWidth = Integer.MAX_VALUE; in remeasureButtonsIfNecessary() 568 child.measure(MeasureSpec.makeMeasureSpec(newWidth, MeasureSpec.AT_MOST), in remeasureButtonsIfNecessary()
|
/frameworks/base/core/java/android/content/res/ |
D | CompatibilityInfo.java | 585 int newWidth, newHeight; in computeCompatibleScaling() local 587 newWidth = newShortSize; in computeCompatibleScaling() 590 newWidth = newLongSize; in computeCompatibleScaling() 594 float sw = width/(float)newWidth; in computeCompatibleScaling() 602 outDm.widthPixels = newWidth; in computeCompatibleScaling()
|
/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/libs/hwui/canvas/ |
D | CanvasFrontend.h | 200 void reset(int newWidth, int newHeight, Args&&... args) { in reset() argument 201 resetState(newWidth, newHeight); in reset()
|
/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 | 62 val newWidth = value.width constant 64 if (newWidth != desiredMeasureWidth || newHeight != desiredMeasureHeight) { 65 desiredMeasureWidth = newWidth
|
/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 | 1194 int newWidth = (int)(desiredAspect * (heightSize - ptop - pbottom)) + in onMeasure() local 1199 widthSize = resolveAdjustedSize(newWidth, mMaxWidth, widthMeasureSpec); in onMeasure() 1202 if (newWidth <= widthSize) { in onMeasure() 1203 widthSize = newWidth; in onMeasure()
|
/frameworks/base/core/java/android/app/ |
D | WallpaperColors.java | 576 int newWidth = (int) (width * scale); in calculateOptimalSize() local 580 if (newWidth == 0) { in calculateOptimalSize() 581 newWidth = 1; in calculateOptimalSize() 587 return new Size(newWidth, newHeight); in calculateOptimalSize()
|
/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 | 726 uint32_t newWidth = needSwap ? kFallbackHeight : kFallbackWidth; in recordScreen() local 728 if (gVideoWidth != newWidth && gVideoHeight != newHeight) { in recordScreen() 731 gVideoWidth, gVideoHeight, newWidth, newHeight); in recordScreen() 732 gVideoWidth = newWidth; in recordScreen()
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | SurfaceFlinger_HandleTransactionLockedTest.cpp | 640 constexpr int newWidth = 123; in TEST_F() local 666 display.mutableCurrentDisplayState().width = newWidth; in TEST_F() 672 EXPECT_CALL(*displaySurface, resizeBuffers(ui::Size(newWidth, oldHeight))).Times(1); in TEST_F()
|
/frameworks/base/cmds/bootanimation/ |
D | BootAnimation.h | 187 void resizeSurface(int newWidth, int newHeight);
|
D | BootAnimation.cpp | 513 void BootAnimation::resizeSurface(int newWidth, int newHeight) { in resizeSurface() argument 515 if (newWidth == mWidth && newHeight == mHeight) { in resizeSurface() 518 SLOGV("Resizing the boot animation surface to %d %d", newWidth, newHeight); in resizeSurface() 523 const auto limitedSize = limitSurfaceSize(newWidth, newHeight); in resizeSurface()
|
/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/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/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
D | AuthBiometricView.java | 831 final int newWidth = Math.min(width, height); in onMeasure() local 835 mLayoutParams = onMeasureInternal(newWidth, height); in onMeasure()
|