HomeSort by relevance Sort by last modified time
    Searched refs:sourceWidth (Results 1 - 17 of 17) sorted by null

  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
IconFactory.java 47 int sourceWidth = sourceImage.getWidth();
50 if (sourceWidth == 0 || sourceHeight == 0 || iconWidth == 0 || iconHeight == 0) {
74 int sourceWidth = sourceImage.getWidth();
79 if (sourceWidth == 0 || sourceHeight == 0 || iconWidth == 0 || iconHeight == 0) {
89 srcRect = new Rect(0, 0, sourceWidth, sourceHeight);
92 float wScale = sourceWidth / (float) iconWidth;
99 float borderW = (sourceWidth - iw) / 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);
113 private byte[] createRawData(Bitmap.CompressFormat format, int sourceWidth,
116 Bitmap b = Bitmap.createBitmap(sourceWidth, sourceHeight, Bitmap.Config.ARGB_8888);
  /packages/apps/Launcher2/src/com/android/launcher2/
Utilities.java 73 int sourceWidth = icon.getWidth();
75 if (sourceWidth > textureWidth && sourceHeight > textureHeight) {
78 (sourceWidth - textureWidth) / 2,
81 } else if (sourceWidth == textureWidth && sourceHeight == textureHeight) {
115 int sourceWidth = icon.getIntrinsicWidth();
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...]
  /external/chromium_org/third_party/angle/src/libGLESv2/renderer/
generatemip.h 35 static void GenerateMip_Y(unsigned int sourceWidth, unsigned int sourceHeight, unsigned int sourceDepth,
40 ASSERT(sourceWidth == 1);
55 static void GenerateMip_X(unsigned int sourceWidth, unsigned int sourceHeight, unsigned int sourceDepth,
60 ASSERT(sourceWidth > 1);
75 static void GenerateMip_Z(unsigned int sourceWidth, unsigned int sourceHeight, unsigned int sourceDepth,
80 ASSERT(sourceWidth == 1);
95 static void GenerateMip_XY(unsigned int sourceWidth, unsigned int sourceHeight, unsigned int sourceDepth,
100 ASSERT(sourceWidth > 1);
124 static void GenerateMip_YZ(unsigned int sourceWidth, unsigned int sourceHeight, unsigned int sourceDepth,
129 ASSERT(sourceWidth == 1)
    [all...]
  /frameworks/base/policy/src/com/android/internal/policy/impl/
IconUtilities.java 121 int sourceWidth = icon.getIntrinsicWidth();
124 if (sourceWidth > 0 && sourceHeight > 0) {
126 if (width < sourceWidth || height < sourceHeight) {
128 final float ratio = (float) sourceWidth / sourceHeight;
129 if (sourceWidth > sourceHeight) {
131 } else if (sourceHeight > sourceWidth) {
134 } else if (sourceWidth < width && sourceHeight < height) {
136 width = sourceWidth;
  /packages/apps/Launcher3/src/com/android/launcher3/
Utilities.java 120 int sourceWidth = icon.getWidth();
122 if (sourceWidth > textureWidth && sourceHeight > textureHeight) {
125 (sourceWidth - textureWidth) / 2,
128 } else if (sourceWidth == textureWidth && sourceHeight == textureHeight) {
162 int sourceWidth = icon.getIntrinsicWidth();
164 if (sourceWidth > 0 && sourceHeight > 0) {
166 final float ratio = (float) sourceWidth / sourceHeight;
167 if (sourceWidth > sourceHeight) {
169 } else if (sourceHeight > sourceWidth) {
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
ImageUtils.java     [all...]
  /external/chromium_org/ui/file_manager/image_loader/
image_loader.js 154 var sourceWidth = width;
159 sourceWidth = height;
163 var targetWidth = sourceWidth;
167 targetWidth = sourceWidth * options.scale;
  /frameworks/av/cmds/screenrecord/
screenrecord.cpp 219 uint32_t sourceWidth, sourceHeight;
221 sourceWidth = mainDpyInfo.w;
226 sourceWidth = mainDpyInfo.h;
228 Rect layerStackRect(sourceWidth, sourceHeight);
231 float displayAspect = (float) sourceHeight / (float) sourceWidth;
    [all...]
  /frameworks/native/opengl/tests/hwc/
hwcStress.cpp 461 int sourceWidth = layer->sourceCrop.right
465 if (((layer->displayFrame.left + sourceWidth) <= width)
468 + sourceWidth;
  /external/chromium_org/third_party/angle/src/libGLESv2/
formatutils.h 18 typedef void (*MipGenerationFunction)(unsigned int sourceWidth, unsigned int sourceHeight, unsigned int sourceDepth,
  /frameworks/base/core/java/com/android/internal/widget/
ResolverDrawerLayout.java 548 final int sourceWidth = MeasureSpec.getSize(widthMeasureSpec);
549 int widthSize = sourceWidth;
598 setMeasuredDimension(sourceWidth, heightSize);
  /hardware/qcom/display/msm8084/libhwcomposer/
hwc.cpp 251 uint32_t sourceWidth = sourceCrop.right - sourceCrop.left;
254 if (isEqual(((float)layerWidth / (float)sourceWidth), xresRatio) &&
  /hardware/qcom/display/msm8226/libhwcomposer/
hwc.cpp 175 float sourceWidth = sourceCrop.right - sourceCrop.left;
178 if (isEqual(layerWidth / sourceWidth, xresRatio) &&
  /external/chromium_org/third_party/WebKit/Source/core/rendering/
RenderBoxModelObject.cpp     [all...]
  /external/deqp/modules/gles3/functional/
es3fFramebufferBlitTests.cpp 766 const int sourceWidth = (m_blitDir == BLIT_DEFAULT_TO_TARGET) ? (getWidth()) : (fboTexW);
768 const int gridRenderWidth = de::min(256, sourceWidth);
    [all...]
  /external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
org.eclipse.swt.gtk.linux.x86_3.6.1.v3657a.jar 

Completed in 2196 milliseconds