Searched refs:newWidth (Results 1 - 13 of 13) sorted by relevance

/frameworks/base/media/java/android/media/videoeditor/
H A DVideoEditor.java262 int newWidth = ((overlayCanvas.getHeight() * mOverlayBitmap.getWidth())
264 left = (overlayCanvas.getWidth() - newWidth) / 2;
266 right = left + newWidth;
292 int newWidth = ((mOverlayBitmap.getHeight() * overlayCanvas.getWidth())
294 left = (mOverlayBitmap.getWidth() - newWidth) / 2;
296 right = left + newWidth;
H A DOverlayFrame.java374 int newWidth = ((overlayCanvas.getHeight() * overlayBitmap.getWidth())
376 left = (overlayCanvas.getWidth() - newWidth) / 2;
378 right = left + newWidth;
404 int newWidth = ((overlayBitmap.getHeight() * overlayCanvas.getWidth())
406 left = (overlayBitmap.getWidth() - newWidth) / 2;
408 right = left + newWidth;
H A DMediaImageItem.java179 int newWidth = mScaledWidth;
184 final int [] framingBuffer = new int[newWidth];
191 tmp, newWidth, 1);
193 intBuffer.put(framingBuffer, 0, newWidth);
/frameworks/base/core/java/android/content/res/
H A DCompatibilityInfo.java495 int newWidth, newHeight;
497 newWidth = newShortSize;
500 newWidth = newLongSize;
504 float sw = width/(float)newWidth;
512 outDm.widthPixels = newWidth;
/frameworks/base/core/java/android/widget/
H A DTabWidget.java198 final int newWidth = Math.max(0, childWidth - delta);
199 mImposedTabWidths[i] = newWidth;
201 extraWidth -= childWidth - newWidth; // delta may have been clamped
H A DImageView.java790 int newWidth = (int)(desiredAspect * (heightSize - ptop - pbottom)) +
792 if (newWidth <= widthSize) {
793 widthSize = newWidth;
/frameworks/native/libs/gui/
H A DSurfaceTexture.cpp706 int32_t newWidth = mCurrentCrop.width(); local
709 if (newWidth * mDefaultHeight > newHeight * mDefaultWidth) {
710 newWidth = newHeight * mDefaultWidth / mDefaultHeight;
711 ST_LOGV("too wide: newWidth = %d", newWidth);
712 } else if (newWidth * mDefaultHeight < newHeight * mDefaultWidth) {
713 newHeight = newWidth * mDefaultHeight / mDefaultWidth;
718 if (newWidth < mCurrentCrop.width()) {
719 int32_t dw = (newWidth - mCurrentCrop.width())/2;
/frameworks/base/media/java/android/media/
H A DRemoteControlClient.java1123 int newWidth = Math.round(scale * width);
1129 Bitmap outBitmap = Bitmap.createBitmap(newWidth, newHeight, newConfig);
/frameworks/base/core/java/android/inputmethodservice/
H A DKeyboard.java613 final void resize(int newWidth, int newHeight) { argument
627 if (totalGap + totalWidth > newWidth) {
629 float scaleFactor = (float)(newWidth - totalGap) / totalWidth;
638 mTotalWidth = newWidth;
/frameworks/base/core/java/com/android/internal/widget/
H A DScrollingTabContainerView.java121 final int newWidth = getMeasuredWidth();
123 if (lockedExpanded && oldWidth != newWidth) {
/frameworks/base/core/jni/
H A Dandroid_app_NativeActivity.cpp864 int32_t newWidth = getWindowProp(code->nativeWindow.get(), local
868 if (newWidth != code->lastWindowWidth
/frameworks/base/core/java/android/webkit/
H A DWebViewClassic.java3218 int newWidth = Math.round(viewWidth * mZoomManager.getInvScale());
3222 // Make the ratio more accurate than (newHeight / newWidth), since the
3233 if (newWidth > mLastWidthSent && mWrapContent) {
3240 if (newWidth != mLastWidthSent || newHeight != mLastHeightSent || force ||
3243 data.mWidth = newWidth;
3254 mLastWidthSent = newWidth;
/frameworks/base/core/java/android/view/
H A DView.java14064 int newWidth = right - left;
14066 boolean sizeChanged = (newWidth != oldWidth) || (newHeight != oldHeight);
14089 onSizeChanged(newWidth, newHeight, oldWidth, oldHeight);

Completed in 2549 milliseconds