Lines Matching refs:thumbnail
329 // Get the dummy thumbnail width/heights
696 * Cancels the current thumbnail transtion to/from Recents for the given task id.
708 /** Returns the top task thumbnail for the given task id */
712 // If we are mocking, then just return a dummy thumbnail
715 thumbnailData.thumbnail = Bitmap.createBitmap(mDummyThumbnailWidth,
717 thumbnailData.thumbnail.eraseColor(0xff333333);
722 if (thumbnailData.thumbnail != null && !ActivityManager.ENABLE_TASK_SNAPSHOTS) {
723 thumbnailData.thumbnail.setHasAlpha(false);
724 // We use a dumb heuristic for now, if the thumbnail is purely transparent in the top
725 // left pixel, then assume the whole thumbnail is transparent. Generally, proper
727 if (Color.alpha(thumbnailData.thumbnail.getPixel(0, 0)) == 0) {
728 mBgProtectionCanvas.setBitmap(thumbnailData.thumbnail);
729 mBgProtectionCanvas.drawRect(0, 0, thumbnailData.thumbnail.getWidth(),
730 thumbnailData.thumbnail.getHeight(), mBgProtectionPaint);
739 * Returns a task thumbnail from the activity manager
765 Bitmap thumbnail = taskThumbnail.mainThumbnail;
767 if (thumbnail == null && descriptor != null) {
768 thumbnail = BitmapFactory.decodeFileDescriptor(descriptor.getFileDescriptor(),
778 thumbnailData.thumbnail = thumbnail;
1191 // bitmap for the thumbnail) while AM is busy starting our activity.