Home
last modified time | relevance | path

Searched refs:newHeight (Results 1 – 23 of 23) sorted by relevance

/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/tests/ImfTest/tests/src/com/android/imftest/samples/
DImfBaseTestCase.java125 int newHeight; in destructiveCheckImeUp() local
133 newHeight = rootView.getHeight(); in destructiveCheckImeUp()
135 …while (Math.abs(newHeight - origHeight) < IME_MIN_HEIGHT && SystemClock.uptimeMillis() < timeoutTi… in destructiveCheckImeUp()
136 newHeight = rootView.getHeight(); in destructiveCheckImeUp()
139 return (Math.abs(origHeight - newHeight) >= IME_MIN_HEIGHT); in destructiveCheckImeUp()
/frameworks/base/core/java/android/content/res/
DCompatibilityInfo.java494 int newWidth, newHeight; in computeCompatibleScaling() local
497 newHeight = newLongSize; in computeCompatibleScaling()
500 newHeight = newShortSize; in computeCompatibleScaling()
504 float sh = height/(float)newHeight; in computeCompatibleScaling()
512 outDm.heightPixels = newHeight; in computeCompatibleScaling()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
DStackScrollAlgorithm.java214 float newHeight = state.height * state.scale; in updateClipping() local
216 float newNotificationEnd = newYTranslation + newHeight; in updateClipping()
222 clipHeight = newHeight; in updateClipping()
238 updateChildClippingAndBackground(state, newHeight, clipHeight, in updateClipping()
239 newHeight - (previousNotificationStart - newYTranslation)); in updateClipping()
622 int newHeight = childHeight; in updateStateForChildTransitioningInBottom() local
624 newHeight = (int) Math.max(Math.min(transitioningPositionStart + offset - in updateStateForChildTransitioningInBottom()
626 childViewState.height = newHeight; in updateStateForChildTransitioningInBottom()
628 childViewState.yTranslation = transitioningPositionStart + offset - newHeight in updateStateForChildTransitioningInBottom()
632 clampPositionToTopStackEnd(childViewState, newHeight); in updateStateForChildTransitioningInBottom()
DStackScrollState.java142 int newHeight = state.height;
145 if (height != newHeight) {
146 view.setActualHeight(newHeight, false /* notifyListeners */);
/frameworks/native/services/surfaceflinger/
DDisplayDevice.cpp409 void DisplayDevice::setDisplaySize(const int newWidth, const int newHeight) { in setDisplaySize() argument
417 mDisplaySurface->resizeBuffers(newWidth, newHeight); in setDisplaySize()
426 LOG_FATAL_IF(mDisplayHeight != newHeight, in setDisplaySize()
427 "Unable to set new height to %d", newHeight); in setDisplaySize()
DDisplayDevice.h113 void setDisplaySize(const int newWidth, const int newHeight);
/frameworks/native/libs/gui/
DGLConsumer.cpp889 uint32_t newHeight = static_cast<uint32_t>(mCurrentCrop.height()); in getCurrentCrop() local
891 if (newWidth * mDefaultHeight > newHeight * mDefaultWidth) { in getCurrentCrop()
892 newWidth = newHeight * mDefaultWidth / mDefaultHeight; in getCurrentCrop()
894 } else if (newWidth * mDefaultHeight < newHeight * mDefaultWidth) { in getCurrentCrop()
895 newHeight = newWidth * mDefaultHeight / mDefaultWidth; in getCurrentCrop()
896 GLC_LOGV("too tall: newHeight = %d", newHeight); in getCurrentCrop()
910 } else if (newHeight < currentHeight) { in getCurrentCrop()
911 uint32_t dh = currentHeight - newHeight; in getCurrentCrop()
/frameworks/av/media/libstagefright/omx/
DSoftVideoDecoderOMXComponent.cpp390 uint32_t newHeight = video_def->nFrameHeight; in internalSetParameter() local
391 if (newWidth != oldWidth || newHeight != oldHeight) { in internalSetParameter()
396 mHeight = newHeight; in internalSetParameter()
406 def->format.video.nFrameHeight = newHeight; in internalSetParameter()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DExpandHelper.java187 float newHeight = clamp(target); in updateExpansion() local
188 mScaler.setHeight(newHeight); in updateExpansion()
431 final float newHeight = clamp(rawHeight); in onTouchEvent() local
450 mScaler.setHeight(newHeight); in onTouchEvent()
/frameworks/av/cmds/screenrecord/
Dscreenrecord.cpp577 uint32_t newHeight = needSwap ? kFallbackWidth : kFallbackHeight; in recordScreen() local
578 if (gVideoWidth != newWidth && gVideoHeight != newHeight) { in recordScreen()
581 gVideoWidth, gVideoHeight, newWidth, newHeight); in recordScreen()
583 gVideoHeight = newHeight; in recordScreen()
/frameworks/base/core/java/android/widget/
DImageView.java1026 int newHeight = (int)((widthSize - pleft - pright) / desiredAspect) + in onMeasure() local
1031 heightSize = resolveAdjustedSize(newHeight, mMaxHeight, in onMeasure()
1035 if (newHeight <= heightSize) { in onMeasure()
1036 heightSize = newHeight; in onMeasure()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DListRowPresenter.java499 int newHeight = expanded ? getExpandedRowHeight() : getRowHeight(); in onRowViewExpanded() local
500 vh.getGridView().setRowHeight(newHeight); in onRowViewExpanded()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPanelView.java314 final float newHeight = Math.max(0, h + mInitialOffsetOnTouch); in onTouchEvent() local
315 if (newHeight > mPeekHeight) { in onTouchEvent()
326 setExpandedHeightInternal(newHeight); in onTouchEvent()
DNotificationPanelView.java375 private void startQsSizeChangeAnimation(int oldHeight, final int newHeight) { in startQsSizeChangeAnimation() argument
380 mQsSizeChangeAnimator = ValueAnimator.ofInt(oldHeight, newHeight); in startQsSizeChangeAnimation()
/frameworks/base/media/java/android/media/session/
DMediaSessionLegacyHelper.java345 int newHeight = Math.round(scale * height); in scaleBitmapIfTooBig() local
350 Bitmap outBitmap = Bitmap.createBitmap(newWidth, newHeight, newConfig); in scaleBitmapIfTooBig()
/frameworks/base/core/java/android/inputmethodservice/
DInputMethodService.java975 final int newHeight = isFullscreen ? MATCH_PARENT : WRAP_CONTENT; in onConfigureWindow() local
976 if (mIsInputViewShown && currentHeight != newHeight) { in onConfigureWindow()
978 + currentHeight + " -> " + newHeight); in onConfigureWindow()
980 mWindow.getWindow().setLayout(MATCH_PARENT, newHeight); in onConfigureWindow()
DKeyboard.java626 final void resize(int newWidth, int newHeight) { in resize() argument
/frameworks/base/docs/html/training/gestures/
Dscale.jd382 float newHeight = lastSpanY / spanY * mCurrentViewport.height();
397 - newHeight * (mContentRect.bottom - focusY)
402 mCurrentViewport.bottom = mCurrentViewport.top + newHeight;
Dscroll.jd321 float newHeight = (1f - mZoomer.getCurrZoom()) *
331 mZoomFocalPoint.y - newHeight * pointWithinViewportY,
333 mZoomFocalPoint.y + newHeight * (1 - pointWithinViewportY));
/frameworks/base/core/jni/
Dandroid_app_NativeActivity.cpp560 int32_t newHeight = getWindowProp(code->nativeWindow.get(), in onSurfaceChanged_native() local
563 || newHeight != code->lastWindowHeight) { in onSurfaceChanged_native()
/frameworks/av/services/camera/libcameraservice/api1/client2/
DParameters.cpp99 int newHeight = availablePreviewSizes[i].height; in initialize() local
100 if (newWidth >= previewWidth && newHeight >= previewHeight && in initialize()
102 newHeight <= MAX_INITIAL_PREVIEW_HEIGHT) { in initialize()
105 availableVideoSizes[j].height == newHeight) { in initialize()
107 previewHeight = newHeight; in initialize()
/frameworks/base/core/java/android/view/
DView.java16694 int newHeight = bottom - top;
16695 boolean sizeChanged = (newWidth != oldWidth) || (newHeight != oldHeight);
16710 sizeChange(newWidth, newHeight, oldWidth, oldHeight);
16747 private void sizeChange(int newWidth, int newHeight, int oldWidth, int oldHeight) {
16748 onSizeChanged(newWidth, newHeight, oldWidth, oldHeight);
16751 mOverlay.getOverlayView().setBottom(newHeight);