HomeSort by relevance Sort by last modified time
    Searched defs:bitmap (Results 126 - 150 of 864) sorted by null

1 2 3 4 56 7 8 91011>>

  /frameworks/minikin/libs/minikin/
MinikinFontFreeType.cpp 87 FT_Bitmap &bitmap = mTypeface->glyph->bitmap; local
88 result->buffer = bitmap.buffer;
89 result->width = bitmap.width;
90 result->height = bitmap.rows;
  /frameworks/opt/bitmap/src/com/android/bitmap/util/
BitmapUtils.java 17 package com.android.bitmap.util;
  /cts/tests/tests/systemui/src/android/systemui/cts/
LightStatusBarTests.java 21 import android.graphics.Bitmap;
69 Bitmap bitmap = takeStatusBarScreenshot(); local
70 Stats s = evaluateLightStatusBarBitmap(bitmap, Color.RED /* background */);
94 Log.e(TAG, "Dumping failed bitmap to " + DUMP_PATH);
95 dumpBitmap(bitmap);
150 private Stats evaluateLightStatusBarBitmap(Bitmap bitmap, int background) {
157 int[] pixels = new int[bitmap.getHeight() * bitmap.getWidth()]
    [all...]
  /cts/tests/tests/widget/src/android/widget/cts/util/
TestUtils.java 19 import android.graphics.Bitmap;
35 * This method takes a view and returns a single bitmap that is the layered combination
47 public static Bitmap getCombinedBackgroundBitmap(View view) {
51 // Create a bitmap
52 final Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, local
53 Bitmap.Config.ARGB_8888);
54 // Create a canvas that wraps the bitmap
55 final Canvas canvas = new Canvas(bitmap);
113 Bitmap bitmap = Bitmap.createBitmap(view.getWidth(), view.getHeight(), local
140 Bitmap bitmap = Bitmap.createBitmap(drawableWidth, drawableHeight, local
    [all...]
  /frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
BitmapUtils.java 19 import android.graphics.Bitmap;
20 import android.graphics.Bitmap.CompressFormat;
43 * bitmap.
51 * generates a smaller bitmap, unless minSideLength = UNCONSTRAINED.
115 public static Bitmap resizeBitmapByScale(
116 Bitmap bitmap, float scale, boolean recycle) {
117 int width = Math.round(bitmap.getWidth() * scale);
118 int height = Math.round(bitmap.getHeight() * scale);
119 if (width == bitmap.getWidth(
184 Bitmap bitmap = Bitmap.createBitmap(source, 0, 0, w, h, m, true); local
207 Bitmap bitmap = BitmapFactory.decodeByteArray(data, 0, data.length); local
    [all...]
  /frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/
TestUtils.java 25 import android.graphics.Bitmap;
38 * This method takes a view and returns a single bitmap that is the layered combination
50 public static Bitmap getCombinedBackgroundBitmap(View view) {
54 // Create a bitmap
55 final Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, local
56 Bitmap.Config.ARGB_8888);
57 // Create a canvas that wraps the bitmap
58 final Canvas canvas = new Canvas(bitmap);
117 Bitmap bitmap = Bitmap.createBitmap(drawableWidth, drawableHeight, local
    [all...]
  /packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
BitmapUtils.java 19 import android.graphics.Bitmap;
20 import android.graphics.Bitmap.CompressFormat;
43 * bitmap.
51 * generates a smaller bitmap, unless minSideLength = UNCONSTRAINED.
115 public static Bitmap resizeBitmapByScale(
116 Bitmap bitmap, float scale, boolean recycle) {
117 int width = Math.round(bitmap.getWidth() * scale);
118 int height = Math.round(bitmap.getHeight() * scale);
119 if (width == bitmap.getWidth(
184 Bitmap bitmap = Bitmap.createBitmap(source, 0, 0, w, h, m, true); local
207 Bitmap bitmap = BitmapFactory.decodeByteArray(data, 0, data.length); local
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/ui/
DetailsHelper.java 19 import android.graphics.Bitmap;
85 Bitmap bitmap = BitmapFactory.decodeFile(path); local
86 if (bitmap == null) return;
87 listener.onResolutionAvailable(bitmap.getWidth(), bitmap.getHeight());
  /packages/apps/Gallery2/src/com/android/photos/data/
SparseArrayBitmapPool.java 19 import android.graphics.Bitmap;
26 * Bitmap pool backed by a sparse array indexing linked lists of bitmaps
41 Bitmap bitmap; field in class:SparseArrayBitmapPool.Node
92 mStore.put(n.bitmap.getWidth(), n.nextInBucket);
120 mSizeBytes -= n.bitmap.getByteCount();
121 if (recycleBitmap) n.bitmap.recycle();
122 n.bitmap = null;
141 * @return Bitmap from the pool with the desired height/width or null if none available.
143 public synchronized Bitmap get(int width, int height)
    [all...]
  /packages/apps/LegacyCamera/tests/src/com/android/camera/functional/
ImageCaptureIntentTest.java 25 import android.graphics.Bitmap;
66 Bitmap bitmap = (Bitmap) resultData.getParcelableExtra("data"); local
67 assertNotNull(bitmap);
68 assertTrue(bitmap.getWidth() > 0);
69 assertTrue(bitmap.getHeight() > 0);
101 Bitmap b = BitmapFactory.decodeByteArray(jpegData, 0, jpegData.length);
119 Bitmap bitmap = (Bitmap) resultData.getParcelableExtra("data") local
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/datamodel/media/
ImageRequest.java 19 import android.graphics.Bitmap;
37 * Base class that serves an image request for resolving, retrieving and decoding bitmap resources.
88 protected Bitmap getBitmapForResource() throws IOException {
120 final Bitmap loadedBitmap = loadBitmapInternal();
122 throw new RuntimeException("failed decoding bitmap");
136 protected Bitmap loadBitmapInternal() throws IOException {
141 // If the ImageRequest has a Bitmap object rather than a stream, there's little to do here
143 final Bitmap bitmap = getBitmapForResource(); local
144 if (bitmap != null && unknownSize)
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
ImagePersistTask.java 20 import android.graphics.Bitmap;
75 Bitmap bitmap = null; local
76 Bitmap clippedBitmap = null;
96 bitmap = BitmapFactory.decodeByteArray(mBytes, 0, mBytes.length);
100 Assert.equals(mWidth, bitmap.getHeight());
101 Assert.equals(mHeight, bitmap.getWidth());
105 Assert.equals(mWidth, bitmap.getWidth());
106 Assert.equals(mHeight, bitmap.getHeight());
110 final int offsetTop = (bitmap.getHeight() - clippedHeight) / 2
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/cts/
BitmapTest.java 23 import android.graphics.Bitmap;
29 import android.graphics.Bitmap.CompressFormat;
30 import android.graphics.Bitmap.Config;
43 private Bitmap mBitmap;
64 //abnormal case: the bitmap has been recycled
101 //abnormal case: the bitmap has been recycled
109 mBitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888);
110 Bitmap bitmap = mBitmap.copy(Config.ARGB_8888, false); local
111 WidgetTestUtils.assertEquals(mBitmap, bitmap);
164 Bitmap bitmap = Bitmap.createBitmap(mBitmap.getWidth(), mBitmap.getHeight(), local
183 Bitmap bitmap = Bitmap.createBitmap(colors, 10, 10, Config.RGB_565); local
547 Bitmap bitmap = Bitmap.createBitmap(10, 10, fromConfig); local
819 Bitmap bitmap = Bitmap.createBitmap(1, 1, config); local
837 Bitmap bitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888); local
857 Bitmap bitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888); local
883 Bitmap bitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888); local
895 Bitmap bitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888); local
    [all...]
ColorMatrixColorFilterTest.java 19 import android.graphics.Bitmap;
25 import android.graphics.Bitmap.Config;
44 Bitmap bitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888); local
45 Canvas canvas = new Canvas(bitmap);
50 assertColor(Color.CYAN, bitmap.getPixel(0, 0));
53 assertColor(Color.GREEN, bitmap.getPixel(0, 0));
56 assertColor(Color.RED, bitmap.getPixel(0, 0));
60 assertColor(Color.WHITE, bitmap.getPixel(0, 0))
    [all...]
ComposeShaderTest.java 19 import android.graphics.Bitmap;
30 import android.graphics.Bitmap.Config;
48 Bitmap bitmap = Bitmap.createBitmap(SIZE, SIZE, Config.ARGB_8888); local
49 Canvas canvas = new Canvas(bitmap);
59 int pixel = bitmap.getPixel(x, y);
74 Bitmap redBitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888);
76 Bitmap cyanBitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888)
86 Bitmap bitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888); local
    [all...]
  /art/runtime/gc/accounting/
remembered_set.cc 137 ContinuousSpaceBitmap* bitmap = space_->GetLiveBitmap(); local
143 bitmap->VisitMarkedRange(start, start + CardTable::kCardSize, obj_visitor);
  /art/runtime/gc/space/
zygote_space.cc 113 accounting::ContinuousSpaceBitmap* bitmap = zygote_space->GetLiveBitmap(); local
115 bitmap->Clear(ptrs[i]);
  /art/tools/ahat/src/
BitmapHandler.java 40 BufferedImage bitmap = null; local
43 bitmap = InstanceUtils.asBitmap(inst);
46 if (bitmap != null) {
50 ImageIO.write(bitmap, "png", os);
57 doc.big(DocString.text("No bitmap found for the given request."));
Value.java 88 Instance bitmap = InstanceUtils.getAssociatedBitmapInstance(inst); local
90 if (bitmap != null) {
91 URI uri = DocString.formattedUri("bitmap?id=%d", bitmap.getId());
92 formatted.appendThumbnail(uri, "bitmap image");
  /cts/tests/tests/graphics/src/android/opengl/cts/
CompressedTextureCtsActivity.java 24 import android.graphics.Bitmap;
25 import android.graphics.Bitmap.Config;
52 optionsRGB.inPreferredConfig = Bitmap.Config.RGB_565;
54 Bitmap bitmap = BitmapFactory.decodeResource(mResources, R.raw.basetex, optionsRGB); local
57 compressed = CompressedTextureLoader.createFromUncompressedETC1(bitmap);
66 mCompressedTextureView = new CompressedTextureSurfaceView(this, bitmap, compressed);
  /cts/tests/tests/permission/src/android/permission/cts/
NoSystemFunctionPermissionTest.java 24 import android.graphics.Bitmap;
86 Bitmap bitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.RGB_565); local
89 mContext.setWallpaper(bitmap);
90 fail("Context.setWallpaper(BitMap) did not throw SecurityException as expected.");
  /cts/tests/tests/text/src/android/text/cts/
MyanmarTest.java 21 import android.graphics.Bitmap;
47 Bitmap bitmapA = cviewA.capture(textA);
49 Bitmap bitmapB = cviewB.capture(textB);
54 Bitmap bitmapC = cviewC.capture(textC);
57 Bitmap bitmapD = Bitmap.createBitmap(bitmapC.getWidth(), bitmapC.getHeight(),
70 Bitmap capture(String text) {
80 Bitmap bitmap = Bitmap.createBitmap(getDrawingCache()) local
    [all...]
  /cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
ColorFilterAlphaTest.java 18 import android.graphics.Bitmap;
102 private static Bitmap createMultiRectBitmap() {
103 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); local
104 Canvas canvas = new Canvas(bitmap);
113 return bitmap;
118 private final Bitmap mBitmap = createMultiRectBitmap();
  /development/samples/ApiDemos/src/com/example/android/apis/view/
LivePointerIconButton.java 20 import android.graphics.Bitmap;
51 Bitmap bitmap = Bitmap.createBitmap(cursorSize, cursorSize, Bitmap.Config.ARGB_8888); local
52 Canvas canvas = new Canvas(bitmap);
60 // Draw a large circle filling the bitmap.
81 final int hotSpotX = bitmap.getWidth() / 2;
82 final int hotSpotY = bitmap.getHeight() / 2;
83 return PointerIcon.create(bitmap, hotSpotX, hotSpotY)
    [all...]
  /development/samples/Snake/src/com/example/android/snake/
TileView.java 21 import android.graphics.Bitmap;
54 private Bitmap[] mTileArray;
100 Bitmap bitmap = Bitmap.createBitmap(mTileSize, mTileSize, Bitmap.Config.ARGB_8888); local
101 Canvas canvas = new Canvas(bitmap);
105 mTileArray[key] = bitmap;
130 mTileArray = new Bitmap[tilecount];

Completed in 2168 milliseconds

1 2 3 4 56 7 8 91011>>