/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/ |
EmbeddedContentContainer.java | 39 protected void onSizeChanged(int newWidth, int newHeight, int oldWidth, int oldHeight) { 40 super.onSizeChanged(newWidth, newHeight, oldWidth, oldHeight); 42 mSizeChangeListener.onSizeChanged(newWidth, newHeight);
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/ |
ManualLayoutFrame.java | 39 int newWidth = mWidth; 43 newWidth = Math.min(mWidth, MeasureSpec.getSize(widthMeasureSpec)); 46 newWidth = MeasureSpec.getSize(widthMeasureSpec); 49 if (newWidth != mWidth) { 50 mWidth = newWidth;
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
ModeSelectorItem.java | 165 * @param newWidth new visible width 167 public void setVisibleWidth(int newWidth) { 169 newWidth = Math.max(newWidth, 0); 171 newWidth = Math.min(newWidth, fullyShownIconWidth); 173 if (mVisibleWidth != newWidth) { 174 mVisibleWidth = newWidth; 176 mListener.onVisibleWidthChanged(newWidth);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
ImageFilterDownsample.java | 68 int newWidth = orig_w * p / 100; 72 if (newWidth <= 0 || newHeight <= 0 || newWidth >= w || newHeight >= h) { 75 Bitmap ret = Bitmap.createScaledBitmap(bitmap, newWidth, newHeight, true);
|
/frameworks/base/core/tests/coretests/src/android/text/ |
TextLineTest.java | 43 final float newWidth = tl.metrics(null); 45 return Math.abs(newWidth - expandedWidth) < 0.5;
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
CustomViewToolbar.java | 142 final int newWidth; 144 newWidth = coords[0] + mCustomView.getWidth() - xEnd; 146 newWidth = xEnd - coords[0]; 150 if (mCustomView.getWidth() != newWidth) { 152 params.width = newWidth;
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/ |
ConversationMessageBubbleView.java | 97 public void kickOffMorphAnimation(final int oldWidth, final int newWidth) { 99 mAnimator.setIntValues(mRunningStartWidth, newWidth); 103 mAnimator = ObjectAnimator.ofInt(this, "morphWidth", oldWidth, newWidth);
|
/cts/apps/CtsVerifier/include/colorchecker/ |
testingimage.h | 36 int newHeight, int newWidth);
|
/packages/apps/UnifiedEmail/assets/ |
script.js | 216 var newWidth = elWidth; 248 newWidth = el.scrollWidth; 249 console.log("ran div-width munger on el=" + el + " oldW=" + elWidth + " newW=" + newWidth 252 transformText += " DIV:newW=" + newWidth; 254 if (newWidth <= docWidth) { 264 newWidth = el.scrollWidth; 265 console.log("ran img munger on el=" + el + " oldW=" + elWidth + " newW=" + newWidth 268 transformText += " IMG:newW=" + newWidth; 270 if (newWidth <= docWidth) { 284 newWidth = el.scrollWidth [all...] |
/packages/apps/Dialer/java/com/android/incallui/ |
ContactsAsyncHelper.java | 195 int newWidth = (int) (orgWidth / ratio); 199 if (newWidth <= 0 || newHeight <= 0) { 208 return Bitmap.createScaledBitmap(orgBitmap, newWidth, newHeight, true);
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
ContactsAsyncHelper.java | 169 int newWidth = (int) (orgWidth / ratio); 173 if (newWidth <= 0 || newHeight <= 0) { 180 return Bitmap.createScaledBitmap(orgBitmap, newWidth, newHeight, true);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
SmartReplyView.java | 460 final int newWidth = button.getMeasuredWidth(); 463 if (button.getLineCount() > 2 || newWidth >= oldWidth) { 468 return oldWidth - newWidth; 486 int newWidth = child.getMeasuredWidth(); 492 newWidth = Integer.MAX_VALUE; 499 if (newWidth != Integer.MAX_VALUE) { 502 newWidth -= mSingleToDoubleLineButtonWidthIncrease; 505 newWidth += mSingleToDoubleLineButtonWidthIncrease; 519 child.measure(MeasureSpec.makeMeasureSpec(newWidth, MeasureSpec.AT_MOST),
|
/frameworks/base/core/java/android/app/ |
WallpaperColors.java | 411 int newWidth = (int) (width * scale); 415 if (newWidth == 0) { 416 newWidth = 1; 422 return new Size(newWidth, newHeight);
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
PhotoProcessor.java | 225 final int newWidth = (int) (cropWidth * scaleFactor); 227 if (newWidth <= 0 || newHeight <= 0) { 230 final Bitmap scaledBitmap = Bitmap.createBitmap(newWidth, newHeight,
|
/frameworks/base/core/java/android/content/res/ |
CompatibilityInfo.java | 508 int newWidth, newHeight; 510 newWidth = newShortSize; 513 newWidth = newLongSize; 517 float sw = width/(float)newWidth; 525 outDm.widthPixels = newWidth;
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
BoundedRect.java | 303 float newWidth = Math.abs(fixed_x - p[0]); 305 newWidth = Math.max(newWidth, aspRatio * newHeight); 306 if (newWidth < widthSoFar) 307 widthSoFar = newWidth;
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
PagedViewCellLayout.java | 199 int newWidth = widthSpecSize; 202 newWidth = getPaddingLeft() + getPaddingRight() + (mCellCountX * mCellWidth) + 206 setMeasuredDimension(newWidth, newHeight); 213 MeasureSpec.makeMeasureSpec(newWidth - getPaddingLeft() - 221 setMeasuredDimension(newWidth, newHeight);
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
TransformationUtils.java | 268 final int newWidth = Math.round(newRect.width()); 271 Bitmap result = pool.get(newWidth, newHeight, toOrient.getConfig()); 273 result = Bitmap.createBitmap(newWidth, newHeight, toOrient.getConfig());
|
/frameworks/base/core/java/android/widget/ |
TabWidget.java | 199 final int newWidth = Math.max(0, childWidth - delta); 200 mImposedTabWidths[i] = newWidth; 202 extraWidth -= childWidth - newWidth; // delta may have been clamped
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
ActivityLaunchAnimator.java | 174 int newWidth = (int) MathUtils.lerp(notificationWidth, 176 mParams.left = (int) ((targetWidth - newWidth) / 2.0f); 177 mParams.right = mParams.left + newWidth;
|
/external/skia/include/core/ |
SkImageInfo.h | 221 SkImageInfo makeWH(int newWidth, int newHeight) const { 222 return Make(newWidth, newHeight, fColorType, fAlphaType, fColorSpace);
|
/external/skqp/include/core/ |
SkImageInfo.h | 257 SkImageInfo makeWH(int newWidth, int newHeight) const { 258 return Make(newWidth, newHeight, fColorType, fAlphaType, fColorSpace);
|
/frameworks/native/libs/gui/ |
GLConsumer.cpp | 878 uint32_t newWidth = static_cast<uint32_t>(crop.width()); 881 if (newWidth * bufferHeight > newHeight * bufferWidth) { 882 newWidth = newHeight * bufferWidth / bufferHeight; 883 ALOGV("too wide: newWidth = %d", newWidth); 884 } else if (newWidth * bufferHeight < newHeight * bufferWidth) { 885 newHeight = newWidth * bufferHeight / bufferWidth; 893 if (newWidth < currentWidth) { 894 uint32_t dw = currentWidth - newWidth; [all...] |
/packages/apps/Dialer/java/com/android/dialer/animation/ |
AnimUtils.java | 216 * @param newWidth The new width of the view. 219 public static void changeDimensions(final View view, final int newWidth, final int newHeight) { 224 final int deltaWidth = newWidth - oldWidth;
|
/packages/apps/PhoneCommon/src/com/android/phone/common/animation/ |
AnimUtils.java | 196 * @param newWidth The new width of the view. 199 public static void changeDimensions(final View view, final int newWidth, final int newHeight) { 204 final int deltaWidth = newWidth - oldWidth;
|