HomeSort by relevance Sort by last modified time
    Searched defs:bitmap (Results 401 - 425 of 1029) sorted by null

<<11121314151617181920>>

  /developers/samples/android/wearable/wear/AgendaData/Application/src/main/java/com/example/android/wearable/agendadata/
CalendarQueryService.java 40 import android.graphics.Bitmap;
194 Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.nobody); local
195 return Asset.createFromBytes(toByteArray(bitmap));
208 Bitmap bitmap = BitmapFactory.decodeStream(inputStream); local
209 if (bitmap != null) {
210 return Asset.createFromBytes(toByteArray(bitmap));
223 private static byte[] toByteArray(Bitmap bitmap) {
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
MatrixPaletteRenderer.java 33 import android.graphics.Bitmap;
281 Bitmap bitmap; local
283 bitmap = BitmapFactory.decodeStream(is);
292 GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);
293 bitmap.recycle();
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
SpriteTextRenderer.java 30 import android.graphics.Bitmap;
100 Bitmap bitmap; local
102 bitmap = BitmapFactory.decodeStream(is);
111 GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);
112 bitmap.recycle();
  /development/samples/browseable/AgendaData/Application/src/com.example.android.wearable.agendadata/
CalendarQueryService.java 40 import android.graphics.Bitmap;
194 Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.nobody); local
195 return Asset.createFromBytes(toByteArray(bitmap));
208 Bitmap bitmap = BitmapFactory.decodeStream(inputStream); local
209 if (bitmap != null) {
210 return Asset.createFromBytes(toByteArray(bitmap));
223 private static byte[] toByteArray(Bitmap bitmap) {
    [all...]
  /frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
NekoLand.java 26 import android.graphics.Bitmap;
284 Bitmap bitmap = cat.createBitmap(EXPORT_BITMAP_SIZE, EXPORT_BITMAP_SIZE); local
285 if (bitmap != null) {
288 bitmap.compress(Bitmap.CompressFormat.PNG, 0, os);
  /frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
TestDocumentsProvider.java 26 import android.graphics.Bitmap;
27 import android.graphics.Bitmap.CompressFormat;
325 final Bitmap bitmap = Bitmap.createBitmap(32, 32, Bitmap.Config.ARGB_8888); local
326 final Canvas canvas = new Canvas(bitmap);
333 bitmap.compress(CompressFormat.JPEG, 50, bos);
  /frameworks/base/packages/WallpaperCropper/src/com/android/photos/
BitmapRegionTileSource.java 22 import android.graphics.Bitmap;
23 import android.graphics.Bitmap.Config;
49 Bitmap decodeRegion(Rect wantRegion, BitmapFactory.Options options);
89 public Bitmap decodeRegion(Rect wantRegion, BitmapFactory.Options options) {
95 Bitmap mBuffer;
98 private DumbBitmapRegionDecoder(Bitmap b) {
102 Bitmap b = BitmapFactory.decodeFile(pathName);
109 Bitmap b = BitmapFactory.decodeStream(is);
121 public Bitmap decodeRegion(Rect wantRegion, BitmapFactory.Options options) {
128 Bitmap newBitmap = Bitmap.createBitmap
475 Bitmap bitmap = mDecoder.decodeRegion(mOverlapRegion, mOptions); local
    [all...]
  /frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
GLTextureViewActivity.java 23 import android.graphics.Bitmap;
67 Bitmap b = mTextureView.getBitmap(800, 800);
72 b.compress(Bitmap.CompressFormat.PNG, 100, out);
270 Bitmap bitmap = BitmapFactory.decodeResource(mResources, resource); local
272 GLUtils.texImage2D(GL_TEXTURE_2D, 0, GL_RGBA, bitmap, GL_UNSIGNED_BYTE, 0);
275 bitmap.recycle();
  /frameworks/opt/bitmap/src/com/android/bitmap/
DecodeTask.java 17 package com.android.bitmap;
19 import android.graphics.Bitmap;
28 import com.android.bitmap.RequestKey.FileDescriptorFactory;
29 import com.android.bitmap.util.BitmapUtils;
30 import com.android.bitmap.util.Exif;
31 import com.android.bitmap.util.RectUtils;
32 import com.android.bitmap.util.Trace;
43 * and allow bitmap reuse on Jellybean 4.1 and later.
143 Trace.beginSection("poll for reusable bitmap");
187 // disable inBitmap-- bitmap reuse doesn't work with different decode regions du
318 final Bitmap bitmap; local
    [all...]
  /packages/apps/Dialer/java/com/android/dialer/dialpadview/
SpecialCharSequenceMgr.java 32 import android.graphics.Bitmap;
33 import android.graphics.Bitmap.Config;
405 // do this by adding a layout listener and setting the bitmap after getting the callback.
413 Bitmap barcodeBitmap =
462 * This method generates a 2d barcode using the zxing library. Each pixel of the bitmap is either
466 private static Bitmap generateBarcode(String hex, int width, int height) {
472 Bitmap bitmap = Bitmap.createBitmap(bitMatrix.getWidth(), height, Config.RGB_565); local
478 bitmap.setPixels(column, 0, 1, i, 0, 1, height)
    [all...]
  /packages/apps/Nfc/src/com/android/nfc/beam/
FireflyRenderer.java 21 import android.graphics.Bitmap;
259 Bitmap bitmap = BitmapFactory.decodeStream(in); local
265 GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);
267 bitmap.recycle();
  /art/tools/ahat/src/main/com/android/ahat/heapdump/
AhatClassInstance.java 205 * Return bitmap info for this object, or null if no appropriate bitmap
209 if (!isInstanceOfClass("android.graphics.Bitmap")) {
253 BufferedImage bitmap = new BufferedImage( local
255 bitmap.setRGB(0, 0, info.width, info.height, abgr, 0, info.width);
256 return bitmap;
  /cts/tests/inputmethod/src/android/view/inputmethod/cts/
NavigationBarColorTest.java 40 import android.graphics.Bitmap;
241 private Bitmap getNavigationBarBitmap(@NonNull ImeSettings.Builder builder,
274 final Bitmap bitmap = uiAutomation.takeScreenshot(); local
275 return Bitmap.createBitmap(bitmap, 0, bitmap.getHeight() - navigationBarHeight,
276 bitmap.getWidth(), navigationBarHeight);
  /cts/tests/inputmethod/src/android/view/inputmethod/cts/util/
LightNavigationBarVerifier.java 21 import android.graphics.Bitmap;
47 Bitmap takeScreenshot(@ColorInt int navigationBarColor, boolean lightMode) throws Exception;
92 * @param screenshotSupplier callback to provide {@link Bitmap} of the navigation bar region
104 * @param screenshotSupplier callback to provide {@link Bitmap} of the navigation bar region
129 private static int[] getPixels(@NonNull Bitmap bitmap) {
130 final int width = bitmap.getWidth();
131 final int height = bitmap.getHeight();
133 bitmap.getPixels(pixels, 0 /* offset */, width /* stride */, 0 /* x */, 0 /* y */,
NavigationBarColorVerifier.java 22 import android.graphics.Bitmap;
41 ScreenShot(@ColorInt int backgroundColor, @NonNull Bitmap bitmap) {
43 final int width = bitmap.getWidth();
44 final int height = bitmap.getHeight();
46 bitmap.getPixels(mPixels, 0 /* offset */, width /* stride */, 0 /* x */, 0 /* y */,
87 Bitmap takeScreenshot(@ColorInt int navigationBarColor) throws Exception;
104 * @param screenshotSupplier callback to provide {@link Bitmap} of the navigation bar region
116 * @param screenshotSupplier callback to provide {@link Bitmap} of the navigation bar region
  /cts/tests/tests/graphics/src/android/graphics/cts/
SweepGradientTest.java 21 import android.graphics.Bitmap;
22 import android.graphics.Bitmap.Config;
51 private Bitmap mBitmap;
56 mBitmap = Bitmap.createBitmap(SIZE, SIZE, Config.ARGB_8888);
157 Bitmap bitmap = Bitmap.createBitmap(2, 1, Config.ARGB_8888); local
158 bitmap.eraseColor(Color.BLACK);
159 Canvas canvas = new Canvas(bitmap);
166 ColorUtils.verifyColor(Color.BLACK, bitmap.getPixel(0, 0), 1)
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/
PathShapeTest.java 23 import android.graphics.Bitmap;
24 import android.graphics.Bitmap.Config;
66 Bitmap bitmap = Bitmap.createBitmap(SHAPE_SIZE, SHAPE_SIZE, Config.ARGB_8888); local
67 Canvas canvas = new Canvas(bitmap);
75 assertEquals(TEST_COLOR_1, bitmap.getPixel(50, 50));
86 if (bitmap.getPixel(25, i) == TEST_COLOR_2) {
89 if (bitmap.getPixel(i, 25) == TEST_COLOR_2) {
92 if (bitmap.getPixel(i, i) == TEST_COLOR_2)
    [all...]
RectShapeTest.java 24 import android.graphics.Bitmap;
25 import android.graphics.Bitmap.Config;
53 private void verifyDrawSuccessfully(Bitmap bitmap, int width, int height, int color) {
56 assertEquals(color, bitmap.getPixel(i, j));
64 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); local
65 Canvas canvas = new Canvas(bitmap);
72 verifyDrawSuccessfully(bitmap, TEST_WIDTH, TEST_HEIGHT, TEST_COLOR_1)
    [all...]
RoundRectShapeTest.java 24 import android.graphics.Bitmap;
25 import android.graphics.Bitmap.Config;
78 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); local
79 Canvas canvas = new Canvas(bitmap);
86 assertEquals(0, bitmap.getPixel(0, 0));
87 assertEquals(TEST_COLOR_1, bitmap.getPixel(TEST_WIDTH / 2, 0));
91 assertEquals(0, bitmap.getPixel(0, 0));
92 assertEquals(TEST_COLOR_2, bitmap.getPixel(TEST_WIDTH / 2, 0))
    [all...]
ShapeTest.java 24 import android.graphics.Bitmap;
25 import android.graphics.Bitmap.Config;
110 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); local
111 Canvas canvas = new Canvas(bitmap);
118 assertEquals(0, bitmap.getPixel(0, 0));
122 assertEquals(0, bitmap.getPixel(0, 0));
  /cts/tests/tests/media/src/android/media/cts/
CodecUtils.java 19 import android.graphics.Bitmap;
154 * This method reads the binarybar code on the top row of a bitmap. Each 16x16
157 public static int readBinaryCounterFromBitmap(Bitmap bitmap) {
158 int numDigits = bitmap.getWidth() / 16;
161 int rgb = bitmap.getPixel(i * 16 + 8, 8);
169 public static void saveBitmapToFile(Bitmap bitmap, String filename) {
173 Log.d(TAG, "Saving bitmap to: " + outputFile);
175 bitmap.compress(Bitmap.CompressFormat.JPEG, 90, outputStream)
    [all...]
  /cts/tests/tests/text/src/android/text/cts/
EmojiTest.java 24 import android.graphics.Bitmap;
73 private String describeBitmap(final Bitmap bmp) {
78 if (bmp.getConfig() == Bitmap.Config.ALPHA_8) {
80 } else if (bmp.getConfig() == Bitmap.Config.RGB_565) {
82 } else if (bmp.getConfig() == Bitmap.Config.ARGB_4444) {
84 } else if (bmp.getConfig() == Bitmap.Config.ARGB_8888) {
102 Bitmap mBitmapA, mBitmapB; // Emoji displayed Bitmaps to compare
203 Bitmap capture(char c[]) {
212 Bitmap bitmap = Bitmap.createBitmap(getDrawingCache()) local
236 Bitmap bitmap = Bitmap.createBitmap(getDrawingCache()); local
260 Bitmap bitmap = Bitmap.createBitmap(getDrawingCache()); local
271 Bitmap bitmap; field in class:EmojiTest.CaptureWebView
    [all...]
  /cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
BitmapTests.java 24 import android.graphics.Bitmap;
56 private Bitmap mBitmap;
61 mBitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888);
81 * The following test verifies that bitmap changes during render thread animation won't
82 * be visible: we changed a bitmap from blue to red during circular reveal (an RT animation),
154 * The following test verifies that bitmap changes during UI thread animation are
155 * visible: we keep changing a bitmap's color between red and blue in sync with the
162 public boolean verify(int[] bitmap, int offset, int stride, int width, int height) {
168 boolean isRed = comparer.verifySame(red, bitmap, offset, stride, width, height)
235 Bitmap bitmap = Bitmap.createBitmap(picture, picture.getWidth(), local
    [all...]
EdgeEffectTests.java 28 import android.graphics.Bitmap;
99 Bitmap bitmap = Bitmap.createBitmap(WIDTH, HEIGHT, Bitmap.Config.ARGB_8888); local
100 Canvas canvas = new Canvas(bitmap);
110 mBitmapAsserter.assertBitmapIsVerified(bitmap, verifier,
HardwareBitmapTests.java 26 import android.graphics.Bitmap;
66 options.inPreferredConfig = Bitmap.Config.HARDWARE;
78 Bitmap hardwareBitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot,
97 Bitmap hardwareBitmap = Bitmap.createBitmap(picture);
100 assertEquals(Bitmap.Config.HARDWARE, hardwareBitmap.getConfig());
108 Bitmap hardwareBitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot,
110 assertEquals(Bitmap.Config.HARDWARE, hardwareBitmap.getConfig());
119 Bitmap result = Bitmap.createBitmap(picture, picture.getWidth(), picture.getHeight()
150 Bitmap bitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, HARDWARE_OPTIONS); local
300 Bitmap bitmap = Bitmap.createBitmap(50, 50, Bitmap.Config.ARGB_8888); local
315 Bitmap bitmap = BitmapFactory.decodeResource(getActivity().getResources(), id, options); local
    [all...]

Completed in 1037 milliseconds

<<11121314151617181920>>