/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
IconFactory.java | 48 int sourceHeight = sourceImage.getHeight(); 50 if (sourceWidth == 0 || sourceHeight == 0 || iconWidth == 0 || iconHeight == 0) { 75 int sourceHeight = sourceImage.getHeight(); 79 if (sourceWidth == 0 || sourceHeight == 0 || iconWidth == 0 || iconHeight == 0) { 89 srcRect = new Rect(0, 0, sourceWidth, sourceHeight); 93 float hScale = sourceHeight / (float) iconHeight; 100 float borderH = (sourceHeight - ih) / 2.0f;
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/util/ |
BitmapUtilTests.java | 105 private byte[] createJpegRawData(int sourceWidth, int sourceHeight) throws IOException { 106 return createRawData(Bitmap.CompressFormat.JPEG, sourceWidth, sourceHeight); 109 private byte[] createPngRawData(int sourceWidth, int sourceHeight) throws IOException { 110 return createRawData(Bitmap.CompressFormat.PNG, sourceWidth, sourceHeight); 114 int sourceHeight) throws IOException { 116 Bitmap b = Bitmap.createBitmap(sourceWidth, sourceHeight, Bitmap.Config.ARGB_8888);
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
Utilities.java | 74 int sourceHeight = icon.getHeight(); 75 if (sourceWidth > textureWidth && sourceHeight > textureHeight) { 79 (sourceHeight - textureHeight) / 2, 81 } else if (sourceWidth == textureWidth && sourceHeight == textureHeight) { 116 int sourceHeight = icon.getIntrinsicHeight(); 117 if (sourceWidth > 0 && sourceHeight > 0) { 119 if (width < sourceWidth || height < sourceHeight) { 121 final float ratio = (float) sourceWidth / sourceHeight; 122 if (sourceWidth > sourceHeight) { 124 } else if (sourceHeight > sourceWidth) [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
IconUtilities.java | 131 int sourceHeight = icon.getIntrinsicHeight(); 133 if (sourceWidth > 0 && sourceHeight > 0) { 135 if (width < sourceWidth || height < sourceHeight) { 137 final float ratio = (float) sourceWidth / sourceHeight; 138 if (sourceWidth > sourceHeight) { 140 } else if (sourceHeight > sourceWidth) { 143 } else if (sourceWidth < width && sourceHeight < height) { 146 height = sourceHeight;
|
/external/chromium_org/third_party/WebKit/PerformanceTests/Canvas/ |
draw-dynamic-canvas-2d-to-hw-accelerated-canvas-2d.html | 14 function setSize(sourceWidth, sourceHeight, destWidth, destHeight) { 16 sourceCanvas2D.height = sourceHeight;
|
draw-static-canvas-2d-to-hw-accelerated-canvas-2d.html | 14 function setSize(sourceWidth, sourceHeight, destWidth, destHeight) { 16 sourceCanvas2D.height = sourceHeight;
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
Utilities.java | 94 int sourceHeight = icon.getHeight(); 95 if (sourceWidth > textureWidth && sourceHeight > textureHeight) { 99 (sourceHeight - textureHeight) / 2, 101 } else if (sourceWidth == textureWidth && sourceHeight == textureHeight) { 136 int sourceHeight = icon.getIntrinsicHeight(); 137 if (sourceWidth > 0 && sourceHeight > 0) { 139 final float ratio = (float) sourceWidth / sourceHeight; 140 if (sourceWidth > sourceHeight) { 142 } else if (sourceHeight > sourceWidth) {
|
/external/chromium_org/chrome/browser/resources/image_loader/ |
image_loader.js | 133 var sourceHeight = height; 138 sourceHeight = width; 142 var targetHeight = sourceHeight; 146 targetHeight = sourceHeight * options.scale;
|
/external/chromium_org/third_party/angle_dx11/src/libGLESv2/renderer/ |
generatemip.h | 149 static void GenerateMip(unsigned int sourceWidth, unsigned int sourceHeight, 154 unsigned int mipHeight = std::max(1U, sourceHeight >> 1); 156 if (sourceHeight == 1) 170 ASSERT(sourceHeight != 1);
|
Renderer11.h | 144 bool copyTexture(ID3D11ShaderResourceView *source, const gl::Rectangle &sourceArea, unsigned int sourceWidth, unsigned int sourceHeight,
|
Renderer11.cpp | [all...] |
/external/jmonkeyengine/engine/src/desktop/jme3tools/converters/ |
MipMapGenerator.java | 50 int sourceHeight = sourceImage.getHeight(); 56 g.drawImage(sourceImage, 0, 0, targetWidth, targetHeight, 0, 0, sourceWidth, sourceHeight, null);
|
/frameworks/av/cmds/screenrecord/ |
screenrecord.cpp | 210 uint32_t sourceWidth, sourceHeight; 213 sourceHeight = mainDpyInfo.h; 216 sourceHeight = mainDpyInfo.w; 219 Rect layerStackRect(sourceWidth, sourceHeight); 222 float displayAspect = (float) sourceHeight / (float) sourceWidth;
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
ImageUtils.java | [all...] |
/hardware/samsung_slsi/exynos5/exynos_omx/codecs/exynos_codecs/video/exynos5/mfc_v4l2/include/ |
ExynosVideoApi.h | 164 int SourceHeight; /* [IN] height of video to be encoded */
|
/frameworks/native/opengl/tests/hwc/ |
hwcStress.cpp | 464 int sourceHeight = layer->sourceCrop.bottom 467 && ((layer->displayFrame.top + sourceHeight) <= height)) { 471 + sourceHeight;
|
/hardware/samsung_slsi/exynos5/exynos_omx/openmax/exynos_omx/component/video/enc/mpeg4/ |
Exynos_OMX_Mpeg4enc.c | 144 Exynos_OSAL_Log(EXYNOS_LOG_TRACE, "SourceHeight : %d", pCommonParam->SourceHeight); 182 Exynos_OSAL_Log(EXYNOS_LOG_TRACE, "SourceHeight : %d", pCommonParam->SourceHeight); 232 pCommonParam->SourceHeight = pExynosOutputPort->portDefinition.format.video.nFrameHeight; 340 pCommonParam->SourceHeight = pExynosOutputPort->portDefinition.format.video.nFrameHeight; [all...] |
/external/chromium_org/third_party/WebKit/Source/core/rendering/ |
RenderBoxModelObject.cpp | [all...] |
/hardware/samsung_slsi/exynos5/exynos_omx/openmax/exynos_omx/component/video/enc/h264/ |
Exynos_OMX_H264enc.c | 174 Exynos_OSAL_Log(EXYNOS_LOG_TRACE, "SourceHeight : %d", pCommonParam->SourceHeight); 241 pCommonParam->SourceHeight = pExynosOutputPort->portDefinition.format.video.nFrameHeight; [all...] |
/external/chromium_org/third_party/WebKit/Source/core/html/canvas/ |
WebGLRenderingContext.cpp | 233 GC3Dsizei sourceWidth, GC3Dsizei sourceHeight, 238 clip1D(y, height, sourceHeight, clippedY, clippedHeight); [all...] |