/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/ |
LODGeomap.java | 89 FloatBuffer bb = BufferUtils.createFloatBuffer(getWidth() * getHeight() * 3);
90 FloatBuffer tanb = BufferUtils.createFloatBuffer(getWidth() * getHeight() * 3);
107 if (store.remaining() < getWidth() * getHeight() * 2) {
111 store = BufferUtils.createFloatBuffer(getWidth() * getHeight() * 2);
122 for (int x = 0; x < getWidth(); x++) {
166 //System.out.println("for (x="+lod+"; x<"+(getWidth()-(2*lod))+"; x+="+lod+")");
167 //System.out.println(" for (z="+lod+"; z<"+(getWidth()-(1*lod))+"; z+="+lod+")");
168 for (int r = lod; r < getWidth() - (2 * lod); r += lod) { // row
169 int rowIdx = r * getWidth();
170 int nextRowIdx = (r + 1 * lod) * getWidth();
[all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/ |
FaceSquareFilterTest.java | 80 bitmap.getPixels(pixels, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), 89 int left = (faceRect.left+WIDTH_OFFSET)*bitmap.getWidth()/FACE_X_RANGE; 90 int right = (faceRect.right+WIDTH_OFFSET)*bitmap.getWidth()/FACE_X_RANGE; 99 } else if (left > bitmap.getWidth()) { 100 left = bitmap.getWidth(); 107 if (right > bitmap.getWidth()) { 108 right = bitmap.getWidth(); 116 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) + 118 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
RotateBitmap.java | 60 int cx = mBitmap.getWidth() / 2; 64 matrix.postTranslate(getWidth() / 2, getHeight() / 2); 75 return mBitmap.getWidth(); 81 public int getWidth() { 85 return mBitmap.getWidth();
|
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/ |
GeoMap.java | 95 * MUST return the same value as getHeight(y*getWidth()+x) 111 * getWidth()*getHeight() index is lower right 128 public int getWidth() { 155 * @param store A preallocated FloatBuffer where to store the data (optional), size must be >= getWidth()*getHeight()*3 163 if (store.remaining() < getWidth()*getHeight()*3) 166 store = BufferUtils.createFloatBuffer(getWidth()*getHeight()*3); 177 for (int x = 0; x < getWidth(); x++) { 180 if (x == getWidth() - 1) { // case #4 : last row, last col 182 // adj = normalIndex - getWidth(); 189 // opp = normalIndex - getWidth(); [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
NinePatchTest.java | 80 Bitmap bitmap = Bitmap.createBitmap(expected.getWidth(), expected.getHeight(), 83 RectF rectf = new RectF(0, 0, c.getWidth(), c.getHeight()); 88 bitmap = Bitmap.createBitmap(expected.getWidth(), expected.getHeight(), 91 Rect rect = new Rect(0, 0, c.getWidth(), c.getHeight()); 95 bitmap = Bitmap.createBitmap(expected.getWidth(), expected.getHeight(), 98 rect = new Rect(0, 0, c.getWidth(), c.getHeight()); 105 bitmap = Bitmap.createBitmap(expected.getWidth(), expected.getHeight(), 108 rectf = new RectF(0, 0, c.getWidth(), c.getHeight()); 115 assertEquals(expected.getWidth(), bitmap.getWidth()); [all...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
TableLayoutTest.java | 230 int oldWidth0 = column0.getWidth(); 231 int oldWidth1 = column1.getWidth(); 232 int oldWidth2 = column2.getWidth(); 239 int totalSpace = tableLayout.getWidth() - orignalWidth0 249 assertEquals(oldWidth0, column0.getWidth()); 250 assertTrue(oldWidth1 < column1.getWidth()); 251 assertTrue(oldWidth2 > column2.getWidth()); 253 assertEquals(orignalWidth0, column0.getWidth()); 254 assertEquals(orignalWidth1 + extraSpace, column1.getWidth()); 255 assertEquals(orignalWidth2 + extraSpace, column2.getWidth()); [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/ |
CategorySelected.java | 27 canvas.drawCircle(getWidth()/2, getHeight()/2, 28 getWidth()/2 - mMargin, mPaint);
|
IconView.java | 102 int x = (int) (canvas.getWidth() - textWidth - 2*mMargin); 104 x = (int) ((canvas.getWidth() - textWidth) / 2.0f); 181 mBitmapBounds = new Rect(mMargin/2, mMargin, getWidth() - mMargin/2, 185 mBitmapBounds = new Rect(mMargin/2, mMargin, getWidth()/2, getHeight()); 187 mBitmapBounds = new Rect(mMargin/2, mMargin, getWidth() - mMargin/2, getHeight()); 206 m.setRectToRect(new RectF(0, 0, mBitmap.getWidth(), mBitmap.getHeight()), 209 float scaleWidth = mBitmapBounds.width() / (float) mBitmap.getWidth(); 212 float dx = (mBitmapBounds.width() - (mBitmap.getWidth() * scale)) / 2f; 234 startGradient = getWidth()/2; 236 canvas.drawRect(new RectF(startGradient, start, getWidth(), end), mPaint) [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/ |
CameraPreviewView.java | 43 float centerX = canvas.getWidth() / 2.0f; 52 int vertLines = canvas.getWidth() / 2 / GRID_WIDTH; 56 canvas.drawLine(0, y, canvas.getWidth(), y, mPaint); 58 canvas.drawLine(0, y, canvas.getWidth(), y, mPaint);
|
/frameworks/base/core/tests/coretests/src/android/widget/layout/table/ |
WeightTest.java | 61 assertEquals(mCell1.getWidth() + mCell2.getWidth() + mCell3.getWidth(), mRow.getWidth());
|
FixedWidthTest.java | 59 assertEquals(150, mFixedWidth.getWidth()); 60 assertEquals(mFixedWidth.getWidth(), mNonFixedWidth.getWidth());
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic_renderer/ |
FrameBuffer.h | 20 int GetWidth() const;
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
IllegalFormatWidthExceptionTest.java | 35 assertEquals(width, illegalFormatWidthException.getWidth()); 40 * @tests java.util.IllegalFormatWidthException#getWidth() 46 assertEquals(width, illegalFormatWidthException.getWidth()); 72 assertEquals("Width", initEx.getWidth(), desrEx.getWidth());
|
/frameworks/base/media/java/android/media/videoeditor/ |
OverlayFrame.java | 200 mOFWidth = mBitmap.getWidth(); 329 resizedRGBFileWidth = overlayBitmap.getWidth(); 350 destRect = new Rect(0, 0, overlayCanvas.getWidth(), 352 srcRect = new Rect(0, 0, overlayBitmap.getWidth(), 360 aROverlayImage = (float)(overlayBitmap.getWidth()) / 363 aRCanvas = (float)(overlayCanvas.getWidth()) / 367 int newHeight = ((overlayCanvas.getWidth() * overlayBitmap.getHeight()) 368 / overlayBitmap.getWidth()); 371 right = overlayCanvas.getWidth(); 374 int newWidth = ((overlayCanvas.getHeight() * overlayBitmap.getWidth()) [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
Transform3dActivity.java | 57 final float centerX = getWidth() / 2.0f - mBitmap1.getWidth() / 2.0f; 67 drawBitmap(canvas, centerX, centerY, -mBitmap1.getWidth(), matrix); 70 drawBitmap(canvas, centerX, centerY, mBitmap1.getWidth(), matrix); 73 drawBitmap(canvas, centerX, centerY, mBitmap1.getWidth() * 2.0f, matrix);
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
ProgressSpinner.java | 41 mWidth = Math.max(mOuter.getWidth(), mInner.getWidth()); 45 public int getWidth() { 75 mOuter.draw(canvas, -mOuter.getWidth() / 2, -mOuter.getHeight() / 2); 77 mInner.draw(canvas, -mInner.getWidth() / 2, -mInner.getHeight() / 2);
|
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/ |
ShapeTest.java | 43 assertEquals(200f, mockShape.getWidth()); 48 assertEquals(0f, mockShape.getWidth()); 52 assertEquals(Float.MAX_VALUE, mockShape.getWidth()); 56 assertEquals(0f, mockShape.getWidth()); 82 assertEquals(100f, shape.getWidth()); 86 assertEquals(shape.getWidth(), clonedShape.getWidth());
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
ImageUtilsTest.java | 39 g.fillRect(0, 0, image.getWidth(), image.getHeight()); 50 g.fillRect(0, 0, image.getWidth(), image.getHeight()); 61 g.fillRect(0, 0, image.getWidth(), image.getHeight()); 66 assertEquals(image.getWidth(), crop.getWidth()); 74 g.fillRect(0, 0, image.getWidth(), image.getHeight()); 81 assertEquals(50, crop.getWidth()); 91 g.fillRect(0, 0, image.getWidth(), image.getHeight()); 98 assertEquals(50, crop.getWidth()); 108 g.fillRect(0, 0, image.getWidth(), image.getHeight()) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
TrimTimeBar.java | 80 return mTrimStartScrubber.getWidth() * 3 / 4; 84 return mTrimEndScrubber.getWidth() / 4; 97 mScrubberLeft = mPlayedBar.right - mScrubber.getWidth() / 2; 106 mScrubberLeft = mProgressBar.left - mScrubber.getWidth() / 2; 150 int scrubberRight = startX + scrubber.getWidth(); 173 int margin = mScrubber.getWidth() / 3; 203 getWidth() - getPaddingRight() - mTimeBounds.width() / 2, 219 mCurrentTime = getScrubberTime(mScrubberLeft, mScrubber.getWidth() / 2); 264 mScrubber.getWidth() / 2, 267 mScrubber.getWidth() / 2) [all...] |
/frameworks/base/libs/hwui/ |
LayerCache.cpp | 79 LAYER_LOGD("Destroying layer %dx%d, fbo %d", layer->getWidth(), layer->getHeight(), 81 mSize -= layer->getWidth() * layer->getHeight() * 4; 105 mSize -= layer->getWidth() * layer->getHeight() * 4; 107 LAYER_LOGD("Reusing layer %dx%d", layer->getWidth(), layer->getHeight()); 141 const uint32_t size = layer->getWidth() * layer->getHeight() * 4; 154 LAYER_LOGD(" Deleting layer %.2fx%.2f", victim->layer.getWidth(),
|
/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/ |
AwContentsClientGetDefaultVideoPosterTest.java | 87 assertEquals("poster.getWidth() not equal to bitmap.getWidth()", 88 poster.getWidth(), bitmap.getWidth());
|
/external/jmonkeyengine/engine/src/android/com/jme3/texture/plugins/ |
AndroidImageLoader.java | 16 Image image = new Image(imageInfo.getFormat(), bitmap.getWidth(), bitmap.getHeight(), null);
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
BitmapFactoryTest.java | 24 assertEquals(100, bitmap.getWidth()); 33 assertEquals(100, bitmap.getWidth()); 43 assertEquals(100, bitmap.getWidth()); 52 assertEquals(100, bitmap.getWidth()); 62 assertEquals(123, bitmap.getWidth()); 73 assertEquals(123, bitmap.getWidth()); 93 assertEquals(123, bitmap.getWidth()); 113 assertEquals(123, bitmap.getWidth()); 124 assertEquals(123, bitmap.getWidth());
|
/frameworks/base/core/tests/coretests/src/android/view/ |
ZeroSizedTest.java | 63 assertTrue(mWithDimension.getWidth() > 0); 70 assertTrue(mWithNoWdith.getWidth() == 0); 77 assertTrue(mWithNoHeight.getWidth() > 0); 84 assertTrue(mWithNoDimension.getWidth() == 0);
|
/packages/apps/Camera/jni/feature_mos/src/mosaic_renderer/ |
FrameBuffer.h | 23 int GetWidth() const;
|