| /packages/apps/UnifiedEmail/src/com/android/mail/bitmap/ |
| AbstractAvatarDrawable.java | 16 package com.android.mail.bitmap; 19 import android.graphics.Bitmap; 30 import com.android.bitmap.BitmapCache; 31 import com.android.bitmap.RequestKey; 32 import com.android.bitmap.ReusableBitmap; 35 import com.android.mail.bitmap.ContactResolver.ContactDrawableInterface; 108 * Draw the bitmap onto the canvas at the current bounds taking into account the current scale. 110 protected void drawBitmap(final Bitmap bitmap, final int width, final int height, 113 // Draw bitmap through shader first [all...] |
| FlipDrawable.java | 16 package com.android.mail.bitmap;
|
| /packages/apps/UnifiedEmail/src/com/android/mail/widget/ |
| WidgetConversationListItemViewBuilder.java | 21 import android.graphics.Bitmap; 47 // Static bitmap 48 private static Bitmap ATTACHMENT; 97 Bitmap bitmap = Bitmap.createBitmap(color, 1, 1, Bitmap.Config.RGB_565); local 98 remoteViews.setImageViewBitmap(viewId, bitmap); 124 // Initialize Bitmap 182 Bitmap paperclipBitmap = null [all...] |
| /packages/apps/WallpaperPicker/src/com/android/gallery3d/glrenderer/ |
| UploadedTexture.java | 19 import android.graphics.Bitmap; 20 import android.graphics.Bitmap.Config; 28 // UploadedTextures use a Bitmap for the content of the texture. 30 // Subclasses should implement onGetBitmap() to provide the Bitmap and 31 // implement onFreeBitmap(mBitmap) which will be called when the Bitmap 46 private static HashMap<BorderKey, Bitmap> sBorderLines = new HashMap<BorderKey, Bitmap>(); 55 protected Bitmap mBitmap; 61 private static Bitmap getBorderLine(boolean vertical, Config config, int length) { 63 Bitmap bitmap = sBorderLines.get(key) local 129 Bitmap bitmap = getBitmap(); local 139 Bitmap bitmap = getBitmap(); local [all...] |
| /packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
| trie_map.cpp | 38 const int TrieMap::TERMINAL_LINKED_ENTRY_COUNT = 2; // Value entry and bitmap entry. 80 // Create a value entry and a bitmap entry. 278 * @param bitmapEntryIndex the index of bitmap entry 306 * @param bitmapEntryIndex the index of bitmap entry 307 * @param bitmapEntry the bitmap entry 314 const uint32_t bitmap = bitmapEntry.getBitmap(); local 316 if (!exists(bitmap, label)) { 318 return addNewEntryByExpandingTable(key, value, mapIndex, bitmap, bitmapEntryIndex, label); 320 const int entryIndex = mapIndex + popCount(bitmap, label); 323 // Bitmap entry is found. Go to the next level [all...] |
| /development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
| CubeMapActivity.java | 34 import android.graphics.Bitmap; 147 Bitmap bitmap; local 149 bitmap = BitmapFactory.decodeStream(is); 158 bitmap, 0); 159 bitmap.recycle();
|
| /external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/service/ |
| TerminalBridge.java | 23 import android.graphics.Bitmap; 28 import android.graphics.Bitmap.Config; 61 * a bitmap that we can use for rendering when available. 89 private Bitmap bitmap = null; field in class:TerminalBridge 419 // refresh any bitmap with new font size 488 // reallocate new bitmap if needed 489 boolean newBitmap = (bitmap == null); 490 if (bitmap != null) { 491 newBitmap = (bitmap.getWidth() != width || bitmap.getHeight() != height) [all...] |
| /external/tensorflow/tensorflow/contrib/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/ |
| Camera2BasicFragment.java | 28 import android.graphics.Bitmap; 662 Bitmap bitmap = local 664 String textToShow = classifier.classifyFrame(bitmap); 665 bitmap.recycle();
|
| /frameworks/base/core/java/com/android/internal/graphics/palette/ |
| Palette.java | 22 import android.graphics.Bitmap; 67 * Palette p = Palette.from(bitmap).generate(); 70 * Palette.from(bitmap).generate(new PaletteAsyncListener() { 80 * Listener to be used with {@link #generateAsync(Bitmap, Palette.PaletteAsyncListener)} or 81 * {@link #generateAsync(Bitmap, int, Palette.PaletteAsyncListener)} 103 public static Palette.Builder from(Bitmap bitmap) { 104 return new Palette.Builder(bitmap); 120 public static Palette generate(Bitmap bitmap) { 815 final Bitmap bitmap = scaleBitmapDown(mBitmap); local [all...] |
| /frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
| GLDepthTestActivity.java | 23 import android.graphics.Bitmap; 243 Bitmap bitmap; local 245 bitmap = BitmapFactory.decodeStream(is); 254 GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0); 255 bitmap.recycle();
|
| /frameworks/support/palette/src/main/java/androidx/palette/graphics/ |
| Palette.java | 19 import android.graphics.Bitmap; 64 * Palette p = Palette.from(bitmap).generate(); 67 * Palette.from(bitmap).generate(new PaletteAsyncListener() { 77 * Listener to be used with {@link #generateAsync(Bitmap, PaletteAsyncListener)} or 78 * {@link #generateAsync(Bitmap, int, PaletteAsyncListener)} 102 public static Builder from(@NonNull Bitmap bitmap) { 103 return new Builder(bitmap); 120 public static Palette generate(Bitmap bitmap) { 797 final Bitmap bitmap = scaleBitmapDown(mBitmap); local [all...] |
| /packages/apps/Email/tests/src/com/android/email/provider/ |
| AttachmentProviderTests.java | 23 import android.graphics.Bitmap; 661 Bitmap bitmap = BitmapFactory.decodeResource(getContext().getResources(), local 664 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out);
|
| /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
| ImageCurves.java | 20 import android.graphics.Bitmap; 335 class ComputeHistogramTask extends AsyncTask<Bitmap, Void, int[]> { 337 protected int[] doInBackground(Bitmap... params) { 339 Bitmap bitmap = params[0]; local 340 int w = bitmap.getWidth(); 341 int h = bitmap.getHeight(); 343 bitmap.getPixels(pixels, 0, w, 0, 0, w, h);
|
| /art/compiler/dex/ |
| dex_to_dex_compiler.cc | 161 BitVector* const bitmap = GetOrAddBitVectorForDex(method_ref.dex_file); local 162 DCHECK(bitmap != nullptr); 163 DCHECK(!bitmap->IsBitSet(method_ref.index)); 164 bitmap->SetBit(method_ref.index);
|
| /art/runtime/gc/collector/ |
| mark_compact.cc | 86 // Set the bit in the bitmap so that we know to restore it later. 101 // Visit all the marked objects in the bitmap. 118 // TODO: I don't think we should need heap bitmap lock to Get the mark bitmap. 165 // Bitmap which describes which objects we have to move. 168 // Bitmap which describes which lock words we need to restore. 361 // No mod union table, so we need to scan the space using bitmap visit. 362 // Scan the space using bitmap visit. 363 accounting::ContinuousSpaceBitmap* bitmap = space->GetLiveBitmap(); local 364 if (bitmap != nullptr) [all...] |
| /art/tools/ahat/src/main/com/android/ahat/ |
| ObjectHandler.java | 258 // Draw the bitmap corresponding to this instance if there is one. 260 AhatInstance bitmap = inst.getAssociatedBitmapInstance(); local 261 if (bitmap != null) { 262 doc.section("Bitmap Image"); 264 DocString.formattedUri("bitmap?id=0x%x", bitmap.getId()), "bitmap image"));
|
| /cts/tests/tests/content/src/android/content/pm/cts/ |
| ComponentInfoTest.java | 23 import android.graphics.Bitmap; 71 private Bitmap createIconBitmap(Drawable d) { 73 Bitmap bitmap = Bitmap.createBitmap(size, size, Bitmap.Config.ARGB_8888); local 75 d.draw(new Canvas(bitmap)); 76 return bitmap;
|
| /cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
| AnimatedVectorDrawableTest.java | 28 import android.graphics.Bitmap; 94 Bitmap bitmap = Bitmap.createBitmap(IMAGE_WIDTH, IMAGE_HEIGHT, Bitmap.Config.ARGB_8888); local 95 Canvas canvas = new Canvas(bitmap); 99 bitmap.eraseColor(0); 101 int sunColor = bitmap.getPixel(IMAGE_WIDTH / 2, IMAGE_HEIGHT / 2); 102 int earthColor = bitmap.getPixel(IMAGE_WIDTH * 3 / 4 + 2, IMAGE_HEIGHT / 2); 107 DrawableTestUtils.saveAutoNamedVectorDrawableIntoPNG(mActivity, bitmap, mResId, null) [all...] |
| DefaultFocusHighlightTest.java | 27 import android.graphics.Bitmap; 28 import android.graphics.Bitmap.Config; 310 Bitmap bitmap = Bitmap.createBitmap(200, 300, Config.ARGB_8888); local 311 BitmapDrawable bitmapDrawable = new BitmapDrawable(context.getResources(), bitmap); 325 Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.ninepatch_0); local 326 NinePatch np = new NinePatch(bitmap, bitmap.getNinePatchChunk(), null) [all...] |
| DrawableTestUtils.java | 23 import android.graphics.Bitmap; 131 * Implements scaling as used by the Bitmap class. Resulting values are 153 * @param expected Expected bitmap 154 * @param actual Actual bitmap 160 public static void compareImages(String message, Bitmap expected, Bitmap actual, 203 final Bitmap b = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888); 214 * Save a bitmap for debugging or golden image (re)generation purpose [all...] |
| /cts/tests/tests/provider/src/android/provider/cts/contacts/ |
| Contacts_PeopleTest.java | 26 import android.graphics.Bitmap; 264 Bitmap bitmap = BitmapFactory.decodeStream(photoStream, null, null); local 265 assertEquals(96, bitmap.getWidth()); 266 assertEquals(64, bitmap.getHeight()); 272 bitmap = People.loadContactPhoto(context, mPeopleRowsAdded.get(0), 274 assertEquals(96, bitmap.getWidth()); 275 assertEquals(64, bitmap.getHeight()); 277 bitmap = People.loadContactPhoto(context, null, 279 assertNotNull(bitmap); [all...] |
| /cts/tests/tests/transition/src/android/transition/cts/ |
| FadeTest.java | 27 import android.graphics.Bitmap; 130 final Bitmap redSquareBitmap = createViewBitmap(redSquare); 150 Bitmap bitmap = bitmapDrawable.getBitmap(); 151 Bitmap copy = bitmap.copy(Bitmap.Config.ARGB_8888, false); 152 Bitmap expected = redSquareBitmap.copy(Bitmap.Config.ARGB_8888, false); 206 private Bitmap createViewBitmap(View view) 209 Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888); local [all...] |
| /cts/tests/tests/view/src/android/view/cts/ |
| TextureViewTest.java | 30 import android.graphics.Bitmap; 111 final Bitmap bitmap = Bitmap.createBitmap(10, 10, Bitmap.Config.ARGB_8888); local 113 activity.getTextureView().getBitmap(bitmap); 115 PixelCopyTest.assertBitmapQuadColor(bitmap, 127 final Bitmap bitmap = Bitmap.createBitmap(10, 10, Bitmap.Config.ARGB_8888) local 257 final Bitmap bitmap = activity.getContents(compareFunction.getConfig(), local [all...] |
| /cts/tests/tests/view/src/android/view/textclassifier/cts/ |
| TextClassifierValueObjectsTest.java | 26 import android.graphics.Bitmap; 313 final Bitmap bitmap = Bitmap.createBitmap(colors, width, height, Bitmap.Config.ARGB_8888); local 314 return Icon.createWithBitmap(bitmap);
|
| /developers/build/prebuilts/gradle/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/ |
| ImageFetcher.java | 20 import android.graphics.Bitmap; 185 * @param data The data to load the bitmap, in this case, a regular http URL 186 * @return The downloaded and resized bitmap 188 private Bitmap processBitmap(String data) { 242 Bitmap bitmap = null; local 244 bitmap = decodeSampledBitmapFromDescriptor(fileDescriptor, mImageWidth, 252 return bitmap; 256 protected Bitmap processBitmap(Object data) { 261 * Download a bitmap from a URL and write the content to an output stream [all...] |