| /frameworks/rs/ |
| rsFont.cpp | 113 uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH) { 133 bitmap[bY * bitmapW + bX] = tempCol; 163 uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH) { 206 case BITMAP: 207 drawCachedGlyph(cachedGlyph, penX, penY, bitmap, bitmapW, bitmapH); 251 FT_Bitmap *bitmap = &mFace->glyph->bitmap; local 253 // Now copy the bitmap into the cache texture 257 // Let the font state figure out where to put the bitmap 259 glyph->mIsValid = state->cacheBitmap(bitmap, &startX, &startY) [all...] |
| /packages/apps/Contacts/src/com/android/contacts/ |
| DynamicShortcuts.java | 34 import android.graphics.Bitmap; 339 Bitmap bitmap = getContactPhoto(id); local 340 if (bitmap == null) { 341 bitmap = getFallbackAvatar(displayName, lookupKey); 345 icon = Icon.createWithAdaptiveBitmap(bitmap); 347 icon = Icon.createWithBitmap(bitmap); 353 private Bitmap getContactPhoto(long id) { 360 final Bitmap bitmap = decodeStreamForShortcut(photoStream) local 404 final Bitmap bitmap = bitmapDecoder.decodeRegion(new Rect( local [all...] |
| ContactPhotoManager.java | 27 import android.graphics.Bitmap; 266 * takes the form of a letter or bitmap drawn on top of a colored tile. 294 * The amount to scale the letter or bitmap to, as a ratio of its default size (from a 400 // display name so that a default bitmap will be used instead of a 554 * Stores the given bitmap directly in the LRU bitmap cache. 556 * @param bitmap The bitmap. 557 * @param photoBytes The bytes that were parsed to create the bitmap. 559 public abstract void cacheBitmap(Uri photoUri, Bitmap bitmap, byte[] photoBytes) 623 Bitmap bitmap; field in class:ContactPhotoManagerImpl.BitmapHolder 1034 Bitmap bitmap = BitmapUtil.decodeBitmapFromBytes(bytes, sampleSize); local 1231 mBitmapCache.put(request.getKey(), bitmap); local [all...] |
| /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/ |
| ImagePreset.java | 19 import android.graphics.Bitmap; 439 public Bitmap apply(Bitmap original, FilterEnvironment environment) { 440 Bitmap bitmap = original; local 441 bitmap = applyFilters(bitmap, -1, -1, environment); 442 return applyBorder(bitmap, environment); 470 public Bitmap applyGeometry(Bitmap bitmap, FilterEnvironment environment) [all...] |
| /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
| SaveImage.java | 24 import android.graphics.Bitmap; 85 private final Bitmap mPreviewImage; 133 File destination, Bitmap previewImage, Callback callback) { 266 public boolean putExifData(File file, ExifInterface exif, Bitmap image, 272 image.compress(Bitmap.CompressFormat.JPEG, 372 // If we succeed in writing the bitmap as a jpeg, return a uri. 395 // Try to do bitmap operations, downsample if low-memory 396 Bitmap bitmap = ImageLoader.loadOrientedBitmapWithBackouts(mContext, newSourceUri, local 398 if (bitmap == null) [all...] |
| /packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
| AlbumSetSlidingWindow.java | 19 import android.graphics.Bitmap; 388 Bitmap bitmap = mLabelMaker.requestLabel( local 391 mLoadingLabel = new BitmapTexture(bitmap); 430 protected Future<Bitmap> submitBitmapTask(FutureListener<Bitmap> l) { 436 protected void onLoadComplete(Bitmap bitmap) { 442 Bitmap bitmap = getBitmap() local 506 Bitmap bitmap = getBitmap(); local [all...] |
| /packages/apps/Launcher2/src/com/android/launcher2/ |
| DragController.java | 21 import android.graphics.Bitmap; 169 * @param bmp The bitmap that represents the view being dragged 174 * @param dragRegion Coordinates within the bitmap b for the position of item being dragged. 177 public void startDrag(View v, Bitmap bmp, DragSource source, Object dragInfo, int dragAction, 199 * @param b The bitmap to display as the drag image. It will be re-scaled to the 201 * @param dragLayerX The x position in the DragLayer of the left-top of the bitmap. 202 * @param dragLayerY The y position in the DragLayer of the left-top of the bitmap. 207 * @param dragRegion Coordinates within the bitmap b for the position of item being dragged. 210 public void startDrag(Bitmap b, int dragLayerX, int dragLayerY, 261 * Draw the view into a bitmap 287 Bitmap bitmap = Bitmap.createBitmap(cacheBitmap); local [all...] |
| /packages/apps/Launcher3/src/com/android/launcher3/ |
| Utilities.java | 30 import android.graphics.Bitmap; 327 * Compresses the bitmap to a byte array for serialization. 329 public static byte[] flattenBitmap(Bitmap bitmap) { 332 int size = bitmap.getWidth() * bitmap.getHeight() * 4; 335 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out); 340 Log.w(TAG, "Could not write bitmap");
|
| /packages/apps/Messaging/src/com/android/messaging/sms/ |
| DatabaseMessages.java | 24 import android.graphics.Bitmap; 742 final Bitmap bitmap = retriever.getFrameAtTime(-1); local 743 if (bitmap != null) { 744 mWidth = bitmap.getWidth(); 745 mHeight = bitmap.getHeight(); 748 LogUtil.i(LogUtil.BUGLE_TAG, "loadVideo: Got null bitmap from " + uri); [all...] |
| /packages/apps/Messaging/src/com/android/messaging/util/ |
| ImageUtils.java | 22 import android.graphics.Bitmap; 86 * Transforms a bitmap into a byte array. 90 * @param bitmap Bitmap to convert into bytes 91 * @return byte array of bitmap 93 public static byte[] bitmapToBytes(final Bitmap bitmap, final int quality) 101 bitmap.compress(Bitmap.CompressFormat.JPEG, quality, os); 105 LogUtil.w(TAG, "OutOfMemory converting bitmap to bytes.") [all...] |
| /packages/apps/Music/src/com/android/music/utils/ |
| MusicProvider.java | 27 import android.graphics.Bitmap; 410 Bitmap bitmap; local 412 bitmap = BitmapFactory.decodeByteArray(albumArtData, 0, albumArtData.length); 413 bitmap = MusicUtils.resizeBitmap(bitmap, getDefaultAlbumArt()); 414 metadataBuilder.putBitmap(MediaMetadata.METADATA_KEY_ALBUM_ART, bitmap); 420 private Bitmap getDefaultAlbumArt() { 422 opts.inPreferredConfig = Bitmap.Config.ARGB_8888; 454 Bitmap thisAlbumArt = metadata.getBitmap(MediaMetadata.METADATA_KEY_ALBUM_ART) [all...] |
| /packages/apps/Settings/src/com/android/settings/ |
| SettingsActivity.java | 35 import android.graphics.Bitmap; 509 final Bitmap icon = getBitmapFromXmlResource(R.drawable.ic_launcher_settings); 804 Bitmap bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(), local [all...] |
| /packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/ |
| SecurityFragment.java | 30 import android.graphics.Bitmap; 541 Bitmap bitmap = createBitmapFromDrawable(R.drawable.ic_avatar_default); local 542 mUserManager.setUserIcon(userId, bitmap); 561 private Bitmap createBitmapFromDrawable(@DrawableRes int resId) { 567 Bitmap bitmap = Bitmap.createBitmap(icon.getIntrinsicWidth(), icon.getIntrinsicHeight(), local 568 Bitmap.Config.ARGB_8888); 569 icon.draw(new Canvas(bitmap)); [all...] |
| /packages/services/Telephony/src/com/android/services/telephony/ |
| TelecomAccountRegistry.java | 26 import android.graphics.Bitmap; 276 Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); local 277 Canvas canvas = new Canvas(bitmap); 281 icon = Icon.createWithBitmap(bitmap); [all...] |
| /cts/tests/tests/security/src/android/security/cts/ |
| StagefrightTest.java | 30 import android.graphics.Bitmap; 842 Bitmap bitmap = BitmapFactory.decodeResource( local 845 if (bitmap != null) { 846 bitmap.recycle(); [all...] |
| /frameworks/base/packages/Shell/src/com/android/shell/ |
| BugreportProgressService.java | 70 import android.graphics.Bitmap; 1375 final Bitmap bitmap = Screenshooter.takeScreenshot(); local [all...] |
| /packages/providers/TvProvider/src/com/android/providers/tv/ |
| TvProvider.java | 38 import android.graphics.Bitmap; 2101 Bitmap bitmap = BitmapFactory.decodeStream(is); local [all...] |
| /prebuilts/tools/common/m2/repository/com/github/bumptech/glide/glide/3.6.1/ |
| glide-3.6.1.jar | |
| /cts/tests/tests/media/src/android/media/cts/ |
| DecodeAccuracyTestBase.java | 34 import android.graphics.Bitmap; 35 import android.graphics.Bitmap.Config; 603 public Bitmap generateBitmapFromImageResourceId(int resourceId) { 646 public Bitmap generateBitmapFromVideoViewSnapshot(VideoViewSnapshot snapshot) { 1324 private Bitmap bitmap = null; field in class:TextureViewSnapshot 1372 private Bitmap bitmap; field in class:SurfaceViewSnapshot 1486 private Bitmap bitmap = null; field in class:GLSurfaceViewSnapshot [all...] |
| /frameworks/base/services/core/java/com/android/server/wallpaper/ |
| WallpaperManagerService.java | 55 import android.graphics.Bitmap; 537 * We can easily extract colors from an ImageWallpaper since it's only a bitmap. 558 Bitmap bitmap = BitmapFactory.decodeFile(cropFile); local 559 if (bitmap != null) { 560 colors = WallpaperColors.fromBitmap(bitmap); 561 bitmap.recycle(); 717 Bitmap cropped = decoder.decodeRegion(cropHint, scaler); 734 final Bitmap finalCrop = Bitmap.createScaledBitmap(cropped [all...] |
| /art/runtime/gc/collector/ |
| mark_sweep.cc | 135 // TODO: I don't think we should need heap bitmap lock to Get the mark bitmap. 334 // Recursively mark all the non-image bits set in the mark bitmap. 366 accounting::ContinuousSpaceBitmap* bitmap = space->GetMarkBitmap(); local 368 if (bitmap != nullptr && 370 current_space_bitmap_ = bitmap; 377 CHECK(current_space_bitmap_ != nullptr) << "Could not find a default mark bitmap\n" 609 // See if the root is on any space bitmap. 831 accounting::ContinuousSpaceBitmap* bitmap, 839 bitmap_(bitmap), [all...] |
| /art/runtime/gc/space/ |
| image_space.cc | 623 "Image file size does not equal end of bitmap: size=%" PRIu64 " vs. %zu.", image_file_size, 669 *error_msg = StringPrintf("Failed to map image bitmap: %s", error_msg->c_str()); 676 std::string bitmap_name(StringPrintf("imagespace %s live-bitmap %u", 679 // Bitmap only needs to cover until the end of the mirror objects section. 683 std::unique_ptr<accounting::ContinuousSpaceBitmap> bitmap; local 686 bitmap.reset( 691 // Make sure the bitmap is aligned to card size instead of just bitmap word size. 693 if (bitmap == nullptr) { 694 *error_msg = StringPrintf("Could not create bitmap '%s'", bitmap_name.c_str()) [all...] |
| /cts/tests/tests/graphics/src/android/graphics/cts/ |
| BitmapRegionDecoderTest.java | 27 import android.graphics.Bitmap; 28 import android.graphics.Bitmap.Config; 214 Bitmap wholeImage = BitmapFactory.decodeStream(is2, null, opts); 242 Bitmap wholeImage = BitmapFactory.decodeStream(is2, null, opts); 245 opts.inBitmap = Bitmap.createBitmap( 273 Bitmap wholeImage = BitmapFactory.decodeByteArray(imageData, 301 Bitmap wholeImage = BitmapFactory.decodeFile(filepath, opts); 354 // bitmap, "the provided Bitmap's width, height, and Bitmap.Config will no 613 Bitmap bitmap = Bitmap.createBitmap(TILE_SIZE, TILE_SIZE, Config.ARGB_8888) local [all...] |
| PaintTest.java | 25 import android.graphics.Bitmap; 291 Bitmap bitmap = Bitmap.createBitmap(color, width, height, Bitmap.Config.RGB_565); local 295 Shader s = new BitmapShader(bitmap, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT); [all...] |
| /cts/tests/tests/widget/src/android/widget/cts/ |
| RemoteViewsTest.java | 33 import android.graphics.Bitmap; 290 Bitmap imageViewBitmap = ((BitmapDrawable) image.getDrawable()).getBitmap(); 291 Bitmap expectedBitmap = WidgetTestUtils.getUnscaledAndDitheredBitmap( 486 Bitmap bitmap = local 488 mRemoteViews.setImageViewBitmap(R.id.remoteView_image, bitmap); 491 WidgetTestUtils.assertEquals(bitmap, ((BitmapDrawable) image.getDrawable()).getBitmap()); 494 mRemoteViews.setImageViewBitmap(R.id.remoteView_absolute, bitmap); 503 Bitmap bitmap local [all...] |