/external/deqp/modules/gles3/functional/ |
es3fFragDepthTests.cpp | 129 int viewportW = de::min(128, renderTarget.getWidth()); 131 int viewportX = rnd.getInt(0, renderTarget.getWidth()-viewportW); 239 int half = de::clamp((int)((float)referenceFrame.getWidth()*0.5f + 0.5f), 0, referenceFrame.getWidth()); 244 float xf = ((float)x + 0.5f) / (float)referenceFrame.getWidth(); 252 for (int x = half; x < referenceFrame.getWidth(); x++) 254 float xf = ((float)x + 0.5f) / (float)referenceFrame.getWidth(); 255 float xh = ((float)x - half + 0.5f) / (float)(referenceFrame.getWidth()-half); 300 int viewportW = de::min(128, renderTarget.getWidth()); 302 int viewportX = rnd.getInt(0, renderTarget.getWidth()-viewportW) [all...] |
es3fDepthStencilClearTests.cpp | 205 int width = renderTarget.getWidth(); 233 int width = renderTarget.getWidth(); 411 tcu::TextureLevel depthBufRow (getDepthFormat(renderTarget.getDepthBits()), dst.getWidth(), 1, 1); 417 for (int x = 0; x < rowAccess.getWidth(); x++) 427 tcu::IVec4 clearRect = clear->useScissor ? clear->scissor : tcu::IVec4(0, 0, dst.getWidth(), dst.getHeight()); 438 for (int x = 0; x < dst.getWidth(); x++) 454 tcu::TextureLevel depthBufRow (getStencilFormat(stencilBits), dst.getWidth(), 1, 1); 461 for (int x = 0; x < rowAccess.getWidth(); x++) 471 tcu::IVec4 clearRect = clear->useScissor ? clear->scissor : tcu::IVec4(0, 0, dst.getWidth(), dst.getHeight()); 486 for (int x = 0; x < dst.getWidth(); x++ [all...] |
/external/zxing/qr_scanner/src/com/google/zxing/client/android/ |
PlanarYUVLuminanceSource.java | 64 int width = getWidth(); 75 int width = getWidth(); 110 int width = getWidth();
|
/frameworks/base/core/java/android/transition/ |
Explode.java | 63 int right = left + view.getWidth(); 135 focalX = sceneRootX + (sceneRoot.getWidth() / 2) 166 int maxX = Math.max(focalX, sceneRoot.getWidth() - focalX);
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
GrainFilter.java | 157 FrameFormat noiseFormat = ImageFormat.create(inputFormat.getWidth() / 2, 175 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) { 176 updateFrameSize(inputFormat.getWidth(), inputFormat.getHeight());
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
QSDualTileLabel.java | 156 if (getWidth() == 0) return; 163 final float maxWidth = getWidth() - mFirstLineCaret.getWidth() - mHorizontalPaddingPx
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
TaskViewThumbnail.java | 95 getWidth(), 172 mBitmapRect.set(0, 0, bm.getWidth(), bm.getHeight()); 185 mLayoutRect.set(0, 0, getWidth(), getHeight());
|
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
ErrorCalculator.java | 138 for (int x = 0; x < ideal.getWidth(); x += REGION_SIZE) { 139 for (int y = 0; y < ideal.getWidth(); y += REGION_SIZE) { 153 for (int x = 0; x < ideal.getWidth(); x++) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/ |
BitmapCache.java | 144 Long key = calcKey(bitmap.getWidth(), bitmap.getHeight()); 190 || bitmap.getWidth() != w 207 Bitmap bitmap = getBitmap(source.getWidth(), source.getHeight(), type);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
ImageTinyPlanet.java | 111 mCenterX = getWidth() / 2; 154 float sw = canvas.getWidth(); 156 float iw = bitmap.getWidth();
|
/packages/apps/Settings/src/com/android/settings/widget/ |
ChartGridView.java | 111 final int width = getWidth(); 155 canvas.translate((width - mid.getWidth()) / 2, height + padding); 163 canvas.translate(width - end.getWidth(), height + padding);
|
/pdk/apps/TestingCamera2/src/com/android/testingcamera2/ |
ImageReaderSubPane.java | 296 while (mConfiguredSize.getWidth() > (mImageView.getWidth() * SCALE_FACTOR << 1) ) { 315 int w = mConfiguredSize.getWidth() / SCALE_FACTOR; 317 byte[] row = new byte[mConfiguredSize.getWidth()]; 320 yBuffer.position(y * SCALE_FACTOR * mConfiguredSize.getWidth()); 336 int w = mConfiguredSize.getWidth() / SCALE_FACTOR; 338 short[] redRow = new short[mConfiguredSize.getWidth()]; 339 short[] blueRow = new short[mConfiguredSize.getWidth()]; 344 (y * SCALE_FACTOR + mRawShiftRow) * mConfiguredSize.getWidth()); 348 (y * SCALE_FACTOR + 1 - mRawShiftRow) * mConfiguredSize.getWidth()); [all...] |
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/ |
RecordingTest.java | 575 if (candidateSize.getWidth() <= videoSz.getWidth() && 587 videoSz.getWidth() <= maxPreviewSize.getWidth() && 723 if (videoSize.getWidth() > maxPreviewSize.getWidth() || 766 mMediaRecorder.setVideoSize(sz.getWidth(), sz.getHeight()); [all...] |
/external/deqp/modules/gles2/functional/ |
es2fFboRenderTest.cpp | 570 int width = deMin32(renderTarget.getWidth(), 128); 572 int xMax = renderTarget.getWidth()-width+1; 709 context.viewport(0, 0, context.getWidth(), context.getHeight()); 713 context.readPixels(dst, 0, 0, context.getWidth(), context.getHeight()); 802 ctx.viewport(0, 0, ctx.getWidth(), ctx.getHeight()); 806 ctx.readPixels(dst, 0, 0, ctx.getWidth(), ctx.getHeight()); 904 context.viewport(0, 0, context.getWidth(), context.getHeight()); 907 context.readPixels(dst, 0, 0, context.getWidth(), context.getHeight()); 978 context.viewport(0, 0, context.getWidth(), context.getHeight()); 980 context.readPixels(dst, 0, 0, context.getWidth(), context.getHeight()) [all...] |
/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/ |
AndroidViewIntegrationTest.java | 32 public int getWidth() { 230 (widthCss == -1 || helper.getWidth() == widthCss)) { 326 assertEquals(expectedWidthCss, mOnContentSizeChangedHelper.getWidth()); 352 assertEquals(expectedWidthCss, mOnContentSizeChangedHelper.getWidth()); 401 assertEquals(expectedWidthCss, mOnContentSizeChangedHelper.getWidth());
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
PhotoProcessor.java | 207 int cropWidth = original.getWidth(); 235 c.drawRect(0, 0, scaledBitmap.getWidth(), scaledBitmap.getHeight(), WHITE_PAINT); 240 final RectF dst = new RectF(0, 0, scaledBitmap.getWidth(), scaledBitmap.getHeight()); 293 (mDisplayPhoto.getWidth() > mThumbnailPhoto.getWidth() ||
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
ImageUtils.java | 64 for (int x = 0, width = image.getWidth(); x < width; x++) { 250 x2 = image.getWidth(); 310 if (x1 == 0 && y1 == 0 && x2 == image.getWidth() && y2 == image.getHeight()) { 357 BufferedImage image = new BufferedImage(source.getWidth() + shadowSize * 2, 364 int dstWidth = image.getWidth(); 464 int width = source.getWidth(); 578 assert sShadowBottomRight.getWidth() == SHADOW_SIZE; 582 int blWidth = sShadowBottomLeft.getWidth(); 595 x + sShadowBottomLeft.getWidth(), y + height, 597 0, 0, sShadowBottom.getWidth(), sShadowBottom.getHeight() [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
CropActivity.java | 206 if (bitmap != null && bitmap.getWidth() != 0 && bitmap.getHeight() != 0) { 207 RectF imgBounds = new RectF(0, 0, bitmap.getWidth(), bitmap.getHeight()); 309 RectF photo = new RectF(0, 0, mOriginalBitmap.getWidth(), mOriginalBitmap.getHeight()); 325 || currentBitmap.getWidth() == 0 || currentBitmap.getHeight() == 0 452 Bitmap tmp = Bitmap.createBitmap(ret, 0, 0, ret.getWidth(), 518 RectF cropRect = new RectF(0, 0, crop.getWidth(), crop.getHeight()); 536 Bitmap tmp = Bitmap.createBitmap(crop, 0, 0, crop.getWidth(), 618 RectF imageBounds = new RectF(0, 0, image.getWidth(), image.getHeight()); 630 if (image == null || image.getWidth() == 0 || image.getHeight() == 0 || max_size < 16) { 639 Bitmap ret = Bitmap.createScaledBitmap(image, image.getWidth() >> shifts [all...] |
/developers/build/prebuilts/gradle/HdrViewfinder/Application/src/main/java/com/example/android/hdrviewfinder/ |
HdrViewfinderActivity.java | 213 float width = mPreviewView.getWidth(); 332 float outputAspect = (float) outputSize.getWidth() / outputSize.getHeight(); 334 if (candidateSize.getWidth() > MAX_WIDTH) continue; 335 float candidateAspect = (float) candidateSize.getWidth() / candidateSize.getHeight(); 341 candidateSize.getWidth() > outputSize.getWidth()) { 354 mPreviewView.getHolder().setFixedSize(outputSize.getWidth(), outputSize.getHeight());
|
/developers/samples/android/media/HdrViewfinder/Application/src/main/java/com/example/android/hdrviewfinder/ |
HdrViewfinderActivity.java | 213 float width = mPreviewView.getWidth(); 332 float outputAspect = (float) outputSize.getWidth() / outputSize.getHeight(); 334 if (candidateSize.getWidth() > MAX_WIDTH) continue; 335 float candidateAspect = (float) candidateSize.getWidth() / candidateSize.getHeight(); 341 candidateSize.getWidth() > outputSize.getWidth()) { 354 mPreviewView.getHolder().setFixedSize(outputSize.getWidth(), outputSize.getHeight());
|
/development/samples/browseable/HdrViewfinder/src/com.example.android.hdrviewfinder/ |
HdrViewfinderActivity.java | 213 float width = mPreviewView.getWidth(); 332 float outputAspect = (float) outputSize.getWidth() / outputSize.getHeight(); 334 if (candidateSize.getWidth() > MAX_WIDTH) continue; 335 float candidateAspect = (float) candidateSize.getWidth() / candidateSize.getHeight(); 341 candidateSize.getWidth() > outputSize.getWidth()) { 354 mPreviewView.getHolder().setFixedSize(outputSize.getWidth(), outputSize.getHeight());
|
/frameworks/base/tests/Camera2Tests/CameraToo/src/com/example/android/camera2/cameratoo/ |
CameraTooActivity.java | 94 if (option.getWidth() >= width && option.getHeight() >= height) { 115 return Long.signum((long) lhs.getWidth() * lhs.getHeight() - 116 (long) rhs.getWidth() * rhs.getHeight()); 253 mCaptureBuffer = ImageReader.newInstance(largestSize.getWidth(), 262 mSurfaceView.getWidth() + 'x' + mSurfaceView.getHeight()); 269 surfaceHolder.setFixedSize(optimalSize.getWidth(), 419 mCapture.getWidth() + 'x' + mCapture.getHeight());
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/ |
PhotoView.java | 284 centerX = (getWidth() / 2 - relativeScale * mTranslateRect.centerX()) / 294 float widthBuffer = (getWidth() - mTranslateRect.width()) / relativeScale; 397 float centerX = getWidth() / 2; 403 float minX = getWidth() * marginFit + mTranslateRect.right * relativeDistance; 444 final float viewWidth = getWidth(); 477 final float viewWidth = getWidth(); 557 (mDrawable.getIntrinsicWidth() != photoBitmap.getWidth() || 722 final int drawLeft = (getWidth() - videoImage.getWidth()) / 2; 735 canvas.drawRect(0, 0, getWidth(), getHeight(), sCropDimPaint) [all...] |
/external/chromium_org/third_party/angle/src/libGLESv2/ |
Texture.cpp | 281 return (baseImage ? baseImage->getWidth() : 0); 308 if (image->getWidth() == 0 || image->getHeight() == 0 || image->getDepth() == 0) 328 image->loadData(0, 0, 0, image->getWidth(), image->getHeight(), image->getDepth(), unpack.alignment, type, pixelData); 359 image->loadCompressedData(0, 0, 0, image->getWidth(), image->getHeight(), image->getDepth(), pixels); 486 GLsizei Texture2D::getWidth(GLint level) const 489 return mImageArray[level]->getWidth(); 564 Box destArea(0, 0, 0, getWidth(level), getHeight(level), 1); 587 mImageArray[0]->redefine(mRenderer, GL_TEXTURE_2D, internalformat, surface->getWidth(), surface->getHeight(), 1, true); 861 GLsizei width = baseImage->getWidth(); 883 if (image->getWidth() != std::max(1, width >> level) [all...] |
/external/pdfium/core/src/fxge/apple/ |
fx_quartz_device.cpp | 36 pBitmap->GetWidth(),
160 pBitmap->GetWidth(),
522 CGFloat width = (CGFloat) bitmap->GetWidth();
545 for (int col = 0; col < bitmap->GetWidth(); col ++) {
575 src_width = pBitmap->GetWidth();
590 rect_usr.size = CGSizeMake(pBitmap->GetWidth() / scale_x, pBitmap->GetHeight() / scale_y);
610 CGImageRef pImage = CGImageCreate(pBitmap1->GetWidth(),
658 for (int col = 0; col < pBitmap1->GetWidth(); col ++) {
735 CGImageRef pImage = CGImageCreate(pBitmap1->GetWidth(),
783 for (int col = 0; col < pBitmap1->GetWidth(); col ++) { [all...] |