/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);
|
/external/skia/bench/ |
ETCBitmapBench.cpp | 48 etc1_uint32 newWidth = origWidth * factor; 51 etc1_uint32 newDataSz = etc1_get_encoded_data_size(newWidth, newHeight); 54 etc1_pkm_format_header(newData, newWidth, newHeight); 68 for(etc1_uint32 i = 0; i < newWidth; i += origWidth) {
|
/external/skia/gm/ |
etc1bitmap.cpp | 45 int newWidth = (blockWidth - 1) << 2; 48 size_t newDataSz = etc1_get_encoded_data_size(newWidth, newHeight) + ETC_PKM_HEADER_SIZE; 53 etc1_pkm_format_header(newData, newWidth, newHeight); 65 *width = newWidth;
|
/frameworks/av/media/libstagefright/omx/ |
SoftVideoDecoderOMXComponent.cpp | 389 uint32_t newWidth = video_def->nFrameWidth; 391 if (newWidth != oldWidth || newHeight != oldHeight) { 395 mWidth = newWidth; 405 def->format.video.nFrameWidth = newWidth;
|
/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;
|
/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());
|
/external/mesa3d/src/mesa/main/ |
framebuffer.c | 347 GLuint newWidth, newHeight; 353 ctx->Driver.GetBufferSize( buffer, &newWidth, &newHeight ); 356 if (buffer->Width != newWidth || buffer->Height != newHeight) { 358 ctx->Driver.ResizeBuffers(ctx, buffer, newWidth, newHeight ); 364 GLuint newWidth, newHeight; 370 ctx->Driver.GetBufferSize( buffer, &newWidth, &newHeight ); 373 if (buffer->Width != newWidth || buffer->Height != newHeight) { 375 ctx->Driver.ResizeBuffers(ctx, buffer, newWidth, newHeight );
|
texcompress_fxt1.c | [all...] |
/packages/apps/InCallUI/src/com/android/incallui/ |
ContactsAsyncHelper.java | 181 int newWidth = (int) (orgWidth / ratio); 185 if (newWidth <= 0 || newHeight <= 0) { 192 return Bitmap.createScaledBitmap(orgBitmap, newWidth, newHeight, true);
|
/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,
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
ContactsAsyncHelper.java | 160 int newWidth = (int) (orgWidth / ratio); 164 if (newWidth <= 0 || newHeight <= 0) { 171 return Bitmap.createScaledBitmap(orgBitmap, newWidth, newHeight, true);
|
/external/deqp/framework/egl/ |
egluGLContextFactory.cpp | 525 int newWidth = 0; 528 egl.querySurface(m_eglDisplay, m_eglSurface, EGL_WIDTH, &newWidth); 532 if (newWidth != m_glRenderTarget.getWidth() || 536 m_glRenderTarget.getWidth(), m_glRenderTarget.getHeight(), newWidth, newHeight); 538 m_glRenderTarget = tcu::RenderTarget(newWidth, newHeight,
|
/external/jmonkeyengine/engine/src/desktop/com/jme3/system/awt/ |
AwtPanel.java | 44 private int newWidth = 1; 62 if (newWidth != newWidth2 || newHeight != newHeight2){ 63 newWidth = newWidth2; 66 System.out.println("EDT: componentResized " + newWidth + ", " + newHeight); 266 reshapeInThread(newWidth, newHeight);
|
/frameworks/base/core/java/android/content/res/ |
CompatibilityInfo.java | 494 int newWidth, newHeight; 496 newWidth = newShortSize; 499 newWidth = newLongSize; 503 float sw = width/(float)newWidth; 511 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;
|
/external/deqp/modules/egl/ |
teglResizeTests.cpp | 277 const int newWidth = newSurface.getWidth(); 279 const int minWidth = de::min(oldWidth, newWidth); 285 const int newX = xCorner == 0 ? 0 : newWidth - minWidth;
|
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/core/controls/flyout/ |
FlyoutControlComposite.java | 468 int newWidth = width; 470 newWidth = event.x + RESIZE_WIDTH / 2; 472 newWidth = width - event.x + RESIZE_WIDTH / 2; 474 newWidth = event.y + RESIZE_WIDTH / 2; 476 newWidth = width - event.y + RESIZE_WIDTH / 2; 479 if (newWidth != width) { 480 m_preferences.setWidth(newWidth); [all...] |
/external/jmonkeyengine/engine/src/lwjgl/com/jme3/system/lwjgl/ |
LwjglCanvas.java | 210 int newWidth = Math.max(canvas.getWidth(), 1);
212 if (width != newWidth || height != newHeight){
213 width = newWidth;
|
/frameworks/base/core/java/android/widget/ |
TabWidget.java | 202 final int newWidth = Math.max(0, childWidth - delta); 203 mImposedTabWidths[i] = newWidth; 205 extraWidth -= childWidth - newWidth; // delta may have been clamped
|
/frameworks/base/core/jni/ |
android_app_NativeActivity.cpp | 558 int32_t newWidth = getWindowProp(code->nativeWindow.get(), 562 if (newWidth != code->lastWindowWidth
|
/external/deqp/modules/gles3/functional/ |
es3fFboRenderTest.cpp | [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
ScrollingTabContainerView.java | 121 final int newWidth = getMeasuredWidth(); 123 if (lockedExpanded && oldWidth != newWidth) {
|
/frameworks/base/media/java/android/media/session/ |
MediaSessionLegacyHelper.java | 344 int newWidth = Math.round(scale * width); 350 Bitmap outBitmap = Bitmap.createBitmap(newWidth, newHeight, newConfig);
|
/frameworks/native/libs/gui/ |
GLConsumer.cpp | 888 uint32_t newWidth = static_cast<uint32_t>(mCurrentCrop.width()); 891 if (newWidth * mDefaultHeight > newHeight * mDefaultWidth) { 892 newWidth = newHeight * mDefaultWidth / mDefaultHeight; 893 GLC_LOGV("too wide: newWidth = %d", newWidth); 894 } else if (newWidth * mDefaultHeight < newHeight * mDefaultWidth) { 895 newHeight = newWidth * mDefaultHeight / mDefaultWidth; 903 if (newWidth < currentWidth) { 904 uint32_t dw = currentWidth - newWidth; [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
ScrollingTabContainerView.java | 131 final int newWidth = getMeasuredWidth(); 133 if (lockedExpanded && oldWidth != newWidth) {
|