/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();
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/ |
PhotoView.java | 375 final float viewWidth = getWidth(); 408 final float viewWidth = getWidth(); 464 (mDrawable.getIntrinsicWidth() != photoBitmap.getWidth() || 622 final int drawLeft = (getWidth() - videoImage.getWidth()) / 2; 635 canvas.drawRect(0, 0, getWidth(), getHeight(), sCropDimPaint); 654 final int layoutWidth = getWidth(); 718 final int vwidth = getWidth(); 749 final int vwidth = mAllowCrop ? sCropSize : getWidth(); 783 final int vwidth = mAllowCrop ? getCropSize() : getWidth(); [all...] |
/packages/apps/VideoEditor/src/com/android/videoeditor/ |
ProjectPickerAdapter.java | 173 right = bitmap.getWidth(), bottom = bitmap.getHeight(); 181 final int availableTitleWidth = bitmap.getWidth() - (int) paint.measureText(duration); 190 bitmap.getWidth() - paint.measureText(duration) - mOverlayHorizontalInset, 221 final int x = (mItemWidth - newProjectIcon.getWidth()) / 2; 287 (mWidth - previewBitmap.getWidth()) / 2,
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
PhotoProcessor.java | 205 int cropWidth = original.getWidth(); 230 c.drawRect(0, 0, scaledBitmap.getWidth(), scaledBitmap.getHeight(), WHITE_PAINT); 235 final RectF dst = new RectF(0, 0, scaledBitmap.getWidth(), scaledBitmap.getHeight()); 288 (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/Camera2/src/com/android/camera/crop/ |
CropActivity.java | 203 if (bitmap != null && bitmap.getWidth() != 0 && bitmap.getHeight() != 0) { 204 RectF imgBounds = new RectF(0, 0, bitmap.getWidth(), bitmap.getHeight()); 306 RectF photo = new RectF(0, 0, mOriginalBitmap.getWidth(), mOriginalBitmap.getHeight()); 322 || currentBitmap.getWidth() == 0 || currentBitmap.getHeight() == 0 449 Bitmap tmp = Bitmap.createBitmap(ret, 0, 0, ret.getWidth(), 515 RectF cropRect = new RectF(0, 0, crop.getWidth(), crop.getHeight()); 533 Bitmap tmp = Bitmap.createBitmap(crop, 0, 0, crop.getWidth(), 615 RectF imageBounds = new RectF(0, 0, image.getWidth(), image.getHeight()); 627 if (image == null || image.getWidth() == 0 || image.getHeight() == 0 || max_size < 16) { 636 Bitmap ret = Bitmap.createScaledBitmap(image, image.getWidth() >> shifts [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...] |
/frameworks/support/v4/java/android/support/v4/widget/ |
DrawerLayout.java | 541 final int width = drawerView.getWidth(); 794 int clipLeft = 0, clipRight = getWidth(); [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
BitmapTest.java | 164 Bitmap bitmap = Bitmap.createBitmap(mBitmap.getWidth(), mBitmap.getHeight(), 186 assertEquals(10, ret.getWidth()); 259 assertEquals(100, ret.getWidth()); 305 assertEquals(10, ret.getWidth()); 314 assertEquals(50, ret.getWidth()); 468 assertEquals(31, mBitmap.getWidth()); 470 assertEquals(100, mBitmap.getWidth()); 876 int scaledWidth = scaleFromDensity(ret.getWidth(), ret.getDensity(), dummyDensity); 885 int scaledWidth = scaleFromDensity(ret.getWidth(), ret.getDensity(), metrics.densityDpi); 895 int scaledWidth = scaleFromDensity(ret.getWidth(), ret.getDensity(), mCanvas.getDensity()) [all...] |
/external/chromium_org/third_party/libjingle/source/talk/media/base/ |
videoadapter.cc | 251 VideoFormat format(static_cast<int>(in_frame->GetWidth()), 283 static_cast<int>(in_frame->GetWidth()), 286 output_format_.width = static_cast<int>(in_frame->GetWidth() * scale + .5f); 301 if (in_frame->GetWidth() != (*out_frame)->GetWidth() || 309 if (previous_width_ && (previous_width_ != (*out_frame)->GetWidth() || 321 << " Input: " << in_frame->GetWidth() 324 << " Output: " << (*out_frame)->GetWidth() 328 previous_width_ = (*out_frame)->GetWidth(); 343 output_frame_->GetWidth() != static_cast<size_t>(output_width) | [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
Bitmap_Delegate.java | 285 int width = srcImage.getWidth(); 345 g.fillRect(0, 0, image.getWidth(), image.getHeight()); 359 return delegate.mImage.getWidth(); 557 image1.getWidth() != image2.getWidth() || 563 int w = image1.getWidth(); 598 int width = delegate.mImage.getWidth(); 627 int w = image.getWidth(); 633 image.getRGB(0, 0, image.getWidth(), image.getHeight(), argb, 0, image.getWidth()); [all...] |
/development/samples/devbytes/graphics/FoldingLayout/src/com/example/android/foldinglayout/ |
FoldingLayoutActivity.java | 298 mFoldLayout.getWidth(), mFoldLayout.getHeight())); 302 mFoldLayout.getWidth(), mFoldLayout.getHeight())); 402 factor = Math.abs(((float)mTranslation) / ((float) mFoldLayout.getWidth())); 404 if (e2.getRawX() > mFoldLayout.getWidth() * mAnchorFactor) { 413 if (mTranslation < -mFoldLayout.getWidth()) { 414 mTranslation = -mFoldLayout.getWidth();
|
/frameworks/base/libs/hwui/ |
LayerRenderer.cpp | 52 const float width = mLayer->layer.getWidth(); 162 const float texX = 1.0f / float(mLayer->getWidth()); 208 if (layer->getWidth() > maxTextureSize || layer->getHeight() > maxTextureSize) { 222 width / float(layer->getWidth()), 0.0f); 264 width / float(layer->getWidth()), 0.0f); 316 layer->getWidth(), layer->getHeight(), layer->getFbo());
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
WidgetPreviewLoader.java | 199 unusedBitmap.getWidth() != mPreviewBitmapWidth || 411 (preview.getWidth() != mPreviewBitmapWidth || 532 int x = (preview.getWidth() - previewWidth) / 2; 541 src.set(0, 0, defaultPreview.getWidth(), defaultPreview.getHeight()); 561 tempBitmap.getWidth() != maxWidth || 586 (preview.getWidth() != maxWidth || preview.getHeight() != maxHeight)) {
|
BubbleTextView.java | 180 (getWidth() + padding) / 2, (getHeight() + padding) / 2); 194 getWidth() + padding, getHeight() + padding, Bitmap.Config.ARGB_8888); 308 getScrollX() + getWidth(),
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
TextCandidates1LineViewManager.java | 264 (int)(mViewBodyScroll.getWidth() * -SCROLL_DISTANCE), 0); 274 mViewBodyScroll.scrollTo(mViewBodyScroll.getChildAt(0).getWidth(), 0); 286 int width = mViewBodyScroll.getWidth(); 487 return candidateTextView.getWidth(); 624 int viewBodyRight = viewBodyLeft + mViewBodyScroll.getWidth(); 626 int focusedViewRight = focusedViewLeft + v.getWidth();
|
/external/jmonkeyengine/engine/src/android/com/jme3/renderer/android/ |
TextureUtil.java | 56 int width = bitmap.getWidth(); 89 int width = bitmap.getWidth(); 140 int width = img.getWidth();
|
/external/jmonkeyengine/engine/src/test/jme3test/post/ |
TestMultiViewsFilters.java | 111 // cam5.setFrustumPerspective(45f, (float)cam.getWidth() / cam.getHeight(), 1f, 1000f); 119 cam5.setViewPort(1046f/settings.getWidth(), 1266f/settings.getWidth(), 112f/settings.getHeight(), 332f/settings.getHeight());
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
BitmapTest.java | 35 assertEquals("width", 100, bm1.getWidth()); 36 assertEquals("width", 100, bm2.getWidth()); 37 assertEquals("width", 100, bm3.getWidth());
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
NativeFrame.java | 174 } else if (getFormat().getWidth() != bitmap.getWidth() || 192 Bitmap result = Bitmap.createBitmap(getFormat().getWidth(),
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
KeyButtonView.java | 113 final int w = getWidth(); 183 final float w = getWidth(); 262 && x < getWidth() + mTouchSlop
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
UploadedTexture.java | 137 int w = mBitmap.getWidth() + mBorder * 2; 153 public int getWidth() { 215 int bWidth = bitmap.getWidth();
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
UploadedTexture.java | 137 int w = mBitmap.getWidth() + mBorder * 2; 153 public int getWidth() { 215 int bWidth = bitmap.getWidth();
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ui/ |
MtpImageView.java | 124 float vwidth = getWidth(); 162 int vwidth = getWidth(); 202 mLastBitmapWidth = bitmapWithMetadata.bitmap.getWidth();
|