Searched refs:thumbnail (Results 1 - 25 of 32) sorted by relevance

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/
H A DThumbnailData.java24 * Data for a single thumbnail.
29 public Bitmap thumbnail; field in class:ThumbnailData
37 out.thumbnail = Bitmap.createHardwareBitmap(snapshot.getSnapshot());
H A DHighResThumbnailLoader.java121 if ((t.thumbnail == null || t.thumbnail.reducedResolution)
144 if ((t.thumbnail == null || t.thumbnail.reducedResolution) && mLoading) {
223 ThumbnailData thumbnail = mSystemServicesProxy.getTaskThumbnail(t.key.id,
230 t.notifyTaskDataLoaded(thumbnail, t.icon);
H A DTask.java145 public ThumbnailData thumbnail; field in class:Task
203 ThumbnailData thumbnail, String title, String titleDescription,
214 this.thumbnail = thumbnail;
243 this.thumbnail = o.thumbnail;
305 this.thumbnail = thumbnailData;
315 thumbnail = null;
202 Task(TaskKey key, int affiliationTaskId, int affiliationColor, Drawable icon, ThumbnailData thumbnail, String title, String titleDescription, String dismissDescription, String appInfoDescription, int colorPrimary, int colorBackground, boolean isLaunchTarget, boolean isStackTask, boolean isSystemApp, boolean isDockable, Rect bounds, ActivityManager.TaskDescription taskDescription, int resizeMode, ComponentName topActivity, boolean isLocked) argument
H A DRecentsTaskLoadPlan.java198 ThumbnailData thumbnail = loader.getAndUpdateThumbnail(taskKey,
211 thumbnail, title, titleDescription, dismissDescription, appInfoDescription,
262 task.thumbnail = loader.getAndUpdateThumbnail(taskKey,
H A DRecentsTaskLoader.java230 if (DEBUG) Log.d(TAG, "Loading thumbnail: " + t.key);
325 /** Returns the size of the thumbnail cache. */
386 t.notifyTaskDataLoaded(t.thumbnail, icon);
543 * Returns the cached thumbnail if the task key is not expired, updating the cache if it is.
563 // Load the thumbnail from the system
566 if (thumbnailData.thumbnail != null) {
575 // We couldn't load any thumbnail
/frameworks/base/services/core/java/com/android/server/wm/
H A DAppWindowAnimator.java76 // Special surface for thumbnail animation. If deferThumbnailDestruction is enabled, then we
77 // will make sure that the thumbnail is destroyed after the other surface is completed. This
79 SurfaceControl thumbnail; field in class:AppWindowAnimator
82 // the thumbnail layer to +1 to the highest layer position and replace all setter instances
88 // This flag indicates that the destruction of the thumbnail surface is synchronized with
89 // another animation, so defer the destruction of this thumbnail surface for a single frame
218 if (thumbnail != null) {
219 thumbnail.hide();
220 mService.mWindowPlacerLocked.destroyAfterTransaction(thumbnail);
221 thumbnail
[all...]
H A DWindowLayersController.java276 // function to set the thumbnail layer for w.AppToken
279 if (w.mAppToken.mAppAnimator.thumbnail != null
282 w.mAppToken.mAppAnimator.thumbnail.setLayer(highestLayer + 1);
H A DAppWindowToken.java1271 if (tAppAnimator.thumbnail != null) {
1272 // The old token is animating with a thumbnail, transfer that to the new token.
1273 if (wAppAnimator.thumbnail != null) {
1274 wAppAnimator.thumbnail.destroy();
1276 wAppAnimator.thumbnail = tAppAnimator.thumbnail;
1279 tAppAnimator.thumbnail = null;
/frameworks/base/core/java/com/android/internal/content/
H A DPdfUtils.java46 * Returns the front page of the pdf as a thumbnail
49 * @return AssetFileDescriptor containing the thumbnail as a bitmap.
59 Bitmap thumbnail = Bitmap.createBitmap(size.x, size.y,
61 frontPage.render(thumbnail, null, null, PdfRenderer.Page.RENDER_MODE_FOR_DISPLAY);
68 // The use of Bitmap.CompressFormat.JPEG leads to a black PDF background on the thumbnail
69 thumbnail.compress(Bitmap.CompressFormat.PNG, quality, out);
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
H A DObjectBrowser.java94 byte[] thumbnail = mClient.getThumbnail(mDeviceName, info.getObjectHandle());
95 if (thumbnail != null) {
96 Bitmap bitmap = BitmapFactory.decodeByteArray(thumbnail, 0, thumbnail.length);
98 ImageView thumbView = (ImageView)view.findViewById(R.id.thumbnail);
H A DObjectViewer.java152 byte[] thumbnail = mClient.getThumbnail(mDeviceName, info.getObjectHandle());
153 if (thumbnail != null) {
154 Bitmap bitmap = BitmapFactory.decodeByteArray(thumbnail, 0, thumbnail.length);
156 ImageView thumbView = (ImageView)findViewById(R.id.thumbnail);
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/recents/model/
H A DHighResThumbnailLoaderTest.java119 mTask.thumbnail = new ThumbnailData();
120 mTask.thumbnail.reducedResolution = false;
/frameworks/support/compat/java/android/support/v4/app/
H A DActivityOptionsCompat.java124 * Create an ActivityOptions specifying an animation where a thumbnail is
130 * those bounds will be filled in for you based on the initial thumbnail
133 * @param source The View that this thumbnail is animating from. This
135 * @param thumbnail The bitmap that will be shown as the initial thumbnail
143 Bitmap thumbnail, int startX, int startY) {
146 source, thumbnail, startX, startY));
142 makeThumbnailScaleUpAnimation(View source, Bitmap thumbnail, int startX, int startY) argument
/frameworks/base/core/java/android/app/
H A DActivityOptions.java112 * Bitmap for thumbnail animation.
118 * Start X position of thumbnail animation.
124 * Start Y position of thumbnail animation.
470 * Create an ActivityOptions specifying an animation where a thumbnail
477 * thumbnail location and size provided here.
479 * @param source The View that this thumbnail is animating from. This
481 * @param thumbnail The bitmap that will be shown as the initial thumbnail
489 Bitmap thumbnail, int startX, int startY) {
490 return makeThumbnailScaleUpAnimation(source, thumbnail, start
488 makeThumbnailScaleUpAnimation(View source, Bitmap thumbnail, int startX, int startY) argument
510 makeThumbnailScaleUpAnimation(View source, Bitmap thumbnail, int startX, int startY, OnAnimationStartedListener listener) argument
515 makeThumbnailAnimation(View source, Bitmap thumbnail, int startX, int startY, OnAnimationStartedListener listener, boolean scaleUp) argument
567 makeThumbnailAspectScaleDownAnimation(View source, Bitmap thumbnail, int startX, int startY, int targetWidth, int targetHeight, Handler handler, OnAnimationStartedListener listener) argument
574 makeAspectScaledThumbnailAnimation(View source, Bitmap thumbnail, int startX, int startY, int targetWidth, int targetHeight, Handler handler, OnAnimationStartedListener listener, boolean scaleUp) argument
[all...]
H A DActivityManager.java1892 public Bitmap thumbnail; field in class:ActivityManager.RunningTaskInfo
1940 if (thumbnail != null) {
1942 thumbnail.writeToParcel(dest, 0);
1960 thumbnail = Bitmap.CREATOR.createFromParcel(source);
1962 thumbnail = null;
2041 * @param thumbnail Thumbnail to use for the recents entry. Should be the size given by
2050 @Nullable TaskDescription description, @NonNull Bitmap thumbnail) {
2056 final int tw = thumbnail.getWidth();
2057 final int th = thumbnail.getHeight();
2059 Bitmap bm = Bitmap.createBitmap(size.x, size.y, thumbnail
2049 addAppTask(@onNull Activity activity, @NonNull Intent intent, @Nullable TaskDescription description, @NonNull Bitmap thumbnail) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/
H A DSystemServicesProxy.java329 // 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 i
[all...]
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/
H A DImageUtils.java50 * Normally, this test will fail when there is a missing thumbnail. However, when
53 * the test repeatedly to get to each new render assertion generating its thumbnail.
65 BufferedImage thumbnail = scale(image, scale, scale);
69 String message = "Unable to load golden thumbnail: " + relativePath + "\n";
70 message = saveImageAndAppendMessage(thumbnail, message, relativePath);
80 assertImageSimilar(relativePath, goldenImage, thumbnail, MAX_PERCENT_DIFFERENCE);
233 // When creating a thumbnail, using the above code doesn't work very well;
252 // So, now we *start* the thumbnail operation by resizing from width 1000 to
318 * Saves the generated thumbnail image and appends the info message to an initial message
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
H A DExifData.java56 * Gets the compressed thumbnail. Returns null if there is no compressed
57 * thumbnail.
66 * Sets the compressed thumbnail.
68 protected void setCompressedThumbnail(byte[] thumbnail) { argument
69 mThumbnail = thumbnail;
73 * Returns true it this header contains a compressed thumbnail.
194 * Removes the thumbnail and its related tags. IFD1 will be removed.
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DTaskViewThumbnail.java47 * The task thumbnail view. It implements an image view that allows for animating the dim and
48 * alpha of the thumbnail image.
85 // Clip the top of the thumbnail against the opaque header bar that overlaps this view
88 // Visibility optimization, if the thumbnail height is less than the height of the header
89 // bar for the task view, then just mark this thumbnail view as invisible
157 // Draw the background, there will be some small overdraw with the thumbnail
159 // Portrait thumbnail on a landscape task view
165 // Landscape thumbnail on a portrait task view
171 // Draw the thumbnail
180 /** Sets the thumbnail t
[all...]
/frameworks/av/media/libstagefright/
H A DItemTable.cpp497 ALOGV("Image item id %d uses thumbnail item id %d", mRefs[i], mItemId);
1426 const ImageItem &thumbnail = mItemIdToImageMap[thumbnailIndex]; local
1428 meta->setInt32(kKeyThumbnailWidth, thumbnail.width);
1429 meta->setInt32(kKeyThumbnailHeight, thumbnail.height);
1431 thumbnail.hvcc->data(), thumbnail.hvcc->size());
1432 ALOGV("thumbnail meta: %dx%d, index %zd",
1433 thumbnail.width, thumbnail.height, thumbnailIndex);
1435 ALOGW("Referenced thumbnail doe
[all...]
/frameworks/base/media/java/android/media/
H A DThumbnailUtils.java59 * Constant used to indicate the dimension of mini thumbnail.
65 * Constant used to indicate the dimension of micro thumbnail.
71 * This method first examines if the thumbnail embedded in EXIF is bigger than our target
72 * size. If not, then it'll create a thumbnail from original image. Due to efficiency
76 * This method always returns a "square thumbnail" for MICRO_KIND thumbnail.
138 // now we make it a "square thumbnail" for MICRO_KIND thumbnail
147 * Create a video thumbnail for a video. May return null if the video is
211 * @param options options used during thumbnail extractio
[all...]
/frameworks/base/media/jni/
H A Dandroid_mtp_MtpDevice.cpp518 void* thumbnail = device->getThumbnail(objectID, length); local
519 if (! thumbnail)
522 env->SetByteArrayRegion(array, 0, length, (const jbyte *)thumbnail);
524 free(thumbnail);
H A Dandroid_mtp_MtpDatabase.cpp849 // read EXIF data for thumbnail information
887 info.mThumbCompressedSize = image_data.thumbnail.length;
938 if (image_data.thumbnail.length == 0
939 || image_data.thumbnail.format != ::piex::Image::kJpegCompressed) {
940 // No thumbnail or non jpeg thumbnail.
944 result = malloc(image_data.thumbnail.length);
947 image_data.thumbnail.offset,
948 image_data.thumbnail.length,
951 outThumbSize = image_data.thumbnail
[all...]
/frameworks/base/services/core/java/com/android/server/am/
H A DTaskRecord.java284 private Bitmap mLastThumbnail; // Last thumbnail captured for this item.
285 private final File mLastThumbnailFile; // File containing last thumbnail.
1028 * Sets the last thumbnail with the current task bounds and the system orientation.
1029 * @return whether the thumbnail was set
1031 boolean setLastThumbnailLocked(Bitmap thumbnail) { argument
1050 return setLastThumbnailLocked(thumbnail, taskWidth, taskHeight, orientation);
1054 * Sets the last thumbnail with the current task bounds.
1055 * @return whether the thumbnail was set
1057 private boolean setLastThumbnailLocked(Bitmap thumbnail, int taskWidth, int taskHeight, argument
1059 if (mLastThumbnail != thumbnail) {
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
H A DRecentsImpl.java152 // paused so ignore the current activity and try and preload the thumbnail for
488 // Only preload the icon (but not the thumbnail since it may not have been taken
493 // calculate the dimensions of the thumbnail that we need for the transition
890 GraphicBuffer thumbnail = drawThumbnailTransitionBitmap(task, mTmpTransform);
893 specs.add(new AppTransitionAnimationSpec(task.key.id, thumbnail, toTaskRect));
916 GraphicBuffer thumbnail = drawThumbnailTransitionBitmap(toTask,
919 toTask.key.id, thumbnail, rect));
1062 // Try starting with a thumbnail transition
1065 // If there is no thumbnail transition, but is launching from home into recents, then

Completed in 579 milliseconds

12