/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/libs/hwui/surfacetexture/ |
D | SurfaceTexture.cpp | 365 uint32_t newWidth = static_cast<uint32_t>(crop.width()); in scaleDownCrop() local 368 if (newWidth * bufferHeight > newHeight * bufferWidth) { in scaleDownCrop() 369 newWidth = newHeight * bufferWidth / bufferHeight; in scaleDownCrop() 370 ALOGV("too wide: newWidth = %d", newWidth); in scaleDownCrop() 371 } else if (newWidth * bufferHeight < newHeight * bufferWidth) { in scaleDownCrop() 372 newHeight = newWidth * bufferHeight / bufferWidth; in scaleDownCrop() 380 if (newWidth < currentWidth) { in scaleDownCrop() 381 uint32_t dw = currentWidth - newWidth; in scaleDownCrop()
|
/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/core/java/android/content/res/ |
D | CompatibilityInfo.java | 527 int newWidth, newHeight; in computeCompatibleScaling() local 529 newWidth = newShortSize; in computeCompatibleScaling() 532 newWidth = newLongSize; in computeCompatibleScaling() 536 float sw = width/(float)newWidth; in computeCompatibleScaling() 544 outDm.widthPixels = newWidth; in computeCompatibleScaling()
|
/frameworks/base/core/java/android/app/ |
D | WallpaperColors.java | 438 int newWidth = (int) (width * scale); in calculateOptimalSize() local 442 if (newWidth == 0) { in calculateOptimalSize() 443 newWidth = 1; in calculateOptimalSize() 449 return new Size(newWidth, newHeight); in calculateOptimalSize()
|
/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/policy/ |
D | SmartReplyView.java | 712 final int newWidth = button.getMeasuredWidth(); in squeezeButtonToTextWidth() local 715 if (button.getLineCount() > 2 || newWidth >= oldWidth) { in squeezeButtonToTextWidth() 720 return oldWidth - newWidth; in squeezeButtonToTextWidth() 738 int newWidth = child.getMeasuredWidth(); in remeasureButtonsIfNecessary() local 744 newWidth = Integer.MAX_VALUE; in remeasureButtonsIfNecessary() 751 if (newWidth != Integer.MAX_VALUE) { in remeasureButtonsIfNecessary() 754 newWidth -= mSingleToDoubleLineButtonWidthIncrease; in remeasureButtonsIfNecessary() 757 newWidth += mSingleToDoubleLineButtonWidthIncrease; in remeasureButtonsIfNecessary() 771 child.measure(MeasureSpec.makeMeasureSpec(newWidth, MeasureSpec.AT_MOST), in remeasureButtonsIfNecessary()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | ActivityLaunchAnimator.java | 197 int newWidth = (int) MathUtils.lerp(notificationWidth, in onAnimationStart() 199 mParams.left = (int) ((targetWidth - newWidth) / 2.0f); in onAnimationStart() 200 mParams.right = mParams.left + newWidth; in onAnimationStart()
|
/frameworks/base/core/java/android/widget/ |
D | TabWidget.java | 204 final int newWidth = Math.max(0, childWidth - delta); in measureHorizontal() local 205 mImposedTabWidths[i] = newWidth; in measureHorizontal() 207 extraWidth -= childWidth - newWidth; // delta may have been clamped in measureHorizontal()
|
D | ImageView.java | 1186 int newWidth = (int)(desiredAspect * (heightSize - ptop - pbottom)) + in onMeasure() local 1191 widthSize = resolveAdjustedSize(newWidth, mMaxWidth, widthMeasureSpec); in onMeasure() 1194 if (newWidth <= widthSize) { in onMeasure() 1195 widthSize = newWidth; in onMeasure()
|
D | PopupWindow.java | 2431 final int newWidth = width < 0 ? width : p.width; 2433 update(p.x, p.y, newWidth, newHeight, paramsChanged);
|
/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/native/services/surfaceflinger/ |
D | DisplayDevice.cpp | 198 void DisplayDevice::setDisplaySize(const int newWidth, const int newHeight) { in setDisplaySize() argument 199 mCompositionDisplay->setBounds(ui::Size(newWidth, newHeight)); in setDisplaySize()
|
D | DisplayDevice.h | 95 void setDisplaySize(const int newWidth, const int newHeight);
|
/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/av/cmds/screenrecord/ |
D | screenrecord.cpp | 632 uint32_t newWidth = needSwap ? kFallbackHeight : kFallbackWidth; in recordScreen() local 634 if (gVideoWidth != newWidth && gVideoHeight != newHeight) { in recordScreen() 637 gVideoWidth, gVideoHeight, newWidth, newHeight); in recordScreen() 638 gVideoWidth = newWidth; in recordScreen()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskPositioner.java | 587 void updateDraggedBounds(int left, int top, int right, int bottom, int newWidth, in updateDraggedBounds() argument 591 left = right - newWidth; in updateDraggedBounds() 593 right = left + newWidth; in updateDraggedBounds()
|
D | DisplayContent.java | 2251 final int newWidth = rotated ? mDisplayInfo.logicalHeight : mDisplayInfo.logicalWidth; in updateBaseDisplayMetricsIfNeeded() local 2256 final boolean displayMetricsChanged = mInitialDisplayWidth != newWidth in updateBaseDisplayMetricsIfNeeded() 2268 updateBaseDisplayMetrics(isDisplaySizeForced ? mBaseDisplayWidth : newWidth, in updateBaseDisplayMetricsIfNeeded() 2273 mInitialDisplayWidth = newWidth; in updateBaseDisplayMetricsIfNeeded()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ScrollingTabContainerView.java | 122 final int newWidth = getMeasuredWidth(); in onMeasure() local 124 if (lockedExpanded && oldWidth != newWidth) { in onMeasure()
|
/frameworks/base/media/java/android/media/session/ |
D | MediaSessionLegacyHelper.java | 304 int newWidth = Math.round(scale * width); in scaleBitmapIfTooBig() local 310 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/av/services/camera/libcameraservice/api1/client2/ |
D | Parameters.cpp | 110 int newWidth = availablePreviewSizes[i].width; in initialize() local 112 if (newWidth >= previewWidth && newHeight >= previewHeight && in initialize() 113 newWidth <= MAX_INITIAL_PREVIEW_WIDTH && in initialize() 116 if (availableVideoSizes[j].width == newWidth && in initialize() 118 previewWidth = newWidth; in initialize()
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | DisplayTransactionTest.cpp | 2129 constexpr int newWidth = 123; in TEST_F() local 2155 display.mutableCurrentDisplayState().width = newWidth; in TEST_F() 2161 EXPECT_CALL(*displaySurface, resizeBuffers(newWidth, oldHeight)).Times(1); in TEST_F()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | ChooserActivity.java | 2854 int newWidth = width / getMaxTargetsPerRow(); 2855 if (newWidth != mChooserTargetWidth) { 2856 mChooserTargetWidth = newWidth;
|
/frameworks/base/services/core/java/com/android/server/wallpaper/ |
D | WallpaperManagerService.java | 628 final int newWidth = (int) (cropHint.width() * scaleByHeight); in generateCrop() local 629 if (newWidth < displayInfo.logicalWidth) { in generateCrop()
|