/frameworks/support/v4/jellybean/android/support/v4/app/ |
H A D | ActivityOptionsCompatJB.java | 40 Bitmap thumbnail, int startX, int startY) { 42 ActivityOptions.makeThumbnailScaleUpAnimation(source, thumbnail, startX, startY)); 39 makeThumbnailScaleUpAnimation(View source, Bitmap thumbnail, int startX, int startY) argument
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | AppWindowAnimator.java | 61 // Special surface for thumbnail animation. If deferThumbnailDestruction is enabled, then we 62 // will make sure that the thumbnail is destroyed after the other surface is completed. This 64 SurfaceControl thumbnail; field in class:AppWindowAnimator 72 // This flag indicates that the destruction of the thumbnail surface is synchronized with 73 // another animation, so defer the destruction of this thumbnail surface for a single frame 146 if (thumbnail != null) { 147 thumbnail.destroy(); 148 thumbnail = null; 190 if (WindowManagerService.SHOW_TRANSACTIONS) WindowManagerService.logSurface(thumbnail, 191 "thumbnail", "PO [all...] |
H A D | WindowAnimator.java | 443 if (appAnimator != null && appAnimator.thumbnail != null) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/ |
H A D | TaskDescription.java | 91 public void setThumbnail(Drawable thumbnail) { argument 92 mThumbnail = thumbnail;
|
H A D | RecentsPanelView.java | 153 // If we set the default thumbnail now, we avoid an onLayout when we update 154 // the thumbnail later (if they both have the same dimensions) 484 private void updateThumbnail(ViewHolder h, Drawable thumbnail, boolean show, boolean anim) { argument 485 if (thumbnail != null) { 489 h.thumbnailViewImage.setImageDrawable(thumbnail); 494 h.thumbnailViewDrawable.getIntrinsicWidth() != thumbnail.getIntrinsicWidth() || 495 h.thumbnailViewDrawable.getIntrinsicHeight() != thumbnail.getIntrinsicHeight()) { 500 float scale = mThumbnailWidth / (float) thumbnail.getIntrinsicWidth(); 513 h.thumbnailViewDrawable = thumbnail; 525 // Look for a view showing this thumbnail, t [all...] |
H A D | RecentTasksLoader.java | 109 // Render the default thumbnail background 202 final Bitmap thumbnail = SystemServicesProxy.getThumbnail(am, td.persistentTaskId); 209 + td + ": " + thumbnail); 211 if (thumbnail != null) { 212 td.setThumbnail(new BitmapDrawable(mContext.getResources(), thumbnail));
|
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/ |
H A D | ObjectBrowser.java | 94 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 D | ObjectViewer.java | 152 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/src/com/android/systemui/recents/model/ |
H A D | Task.java | 123 public Bitmap thumbnail; field in class:Task 184 public void notifyTaskDataLoaded(Bitmap thumbnail, Drawable applicationIcon) { argument 186 this.thumbnail = thumbnail; 195 thumbnail = defaultThumbnail;
|
H A D | RecentsTaskLoader.java | 204 // Load the thumbnail if it is stale or we haven't cached one yet 207 if (DEBUG) Log.d(TAG, "Loading thumbnail: " + t.key); 403 // Return the cached thumbnail if it exists 404 Bitmap thumbnail = mThumbnailCache.getAndInvalidateIfModified(taskKey); 405 if (thumbnail != null) { 406 return thumbnail; 411 // Load the thumbnail from the system 412 thumbnail = ssp.getTaskThumbnail(taskKey.id); 413 if (thumbnail != null) { 414 mThumbnailCache.put(taskKey, thumbnail); [all...] |
H A D | RecentsTaskLoadPlan.java | 144 task.thumbnail = loader.getAndUpdateThumbnail(taskKey, mSystemServicesProxy, false); 145 if (DEBUG) Log.d(TAG, "\tthumbnail: " + taskKey + ", " + task.thumbnail); 204 if (task.thumbnail == null || isRunningTask) { 205 if (DEBUG) Log.d(TAG, "\tLoading thumbnail: " + taskKey); 207 task.thumbnail = loader.getAndUpdateThumbnail(taskKey, mSystemServicesProxy,
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/ |
H A D | SystemServicesProxy.java | 117 // Get the dummy thumbnail width/heights 265 /** Returns the top task thumbnail for the given task id */ 269 // If we are mocking, then just return a dummy thumbnail 271 Bitmap thumbnail = Bitmap.createBitmap(mDummyThumbnailWidth, mDummyThumbnailHeight, 273 thumbnail.eraseColor(0xff333333); 274 return thumbnail; 277 Bitmap thumbnail = SystemServicesProxy.getThumbnail(mAm, taskId); 278 if (thumbnail != null) { 279 thumbnail.setHasAlpha(false); 280 // We use a dumb heuristic for now, if the thumbnail i [all...] |
/frameworks/base/core/java/android/app/ |
H A D | ActivityOptions.java | 72 * Bitmap for thumbnail animation. 78 * Start X position of thumbnail animation. 84 * Start Y position of thumbnail animation. 294 * Create an ActivityOptions specifying an animation where a thumbnail 301 * thumbnail location and size provided here. 303 * @param source The View that this thumbnail is animating from. This 305 * @param thumbnail The bitmap that will be shown as the initial thumbnail 313 Bitmap thumbnail, int startX, int startY) { 314 return makeThumbnailScaleUpAnimation(source, thumbnail, start 312 makeThumbnailScaleUpAnimation(View source, Bitmap thumbnail, int startX, int startY) argument 335 makeThumbnailScaleUpAnimation(View source, Bitmap thumbnail, int startX, int startY, OnAnimationStartedListener listener) argument 357 makeThumbnailScaleDownAnimation(View source, Bitmap thumbnail, int startX, int startY, OnAnimationStartedListener listener) argument 362 makeThumbnailAnimation(View source, Bitmap thumbnail, int startX, int startY, OnAnimationStartedListener listener, boolean scaleUp) argument 396 makeThumbnailAspectScaleUpAnimation(View source, Bitmap thumbnail, int startX, int startY, int targetWidth, int targetHeight, Handler handler, OnAnimationStartedListener listener) argument 422 makeThumbnailAspectScaleDownAnimation(View source, Bitmap thumbnail, int startX, int startY, int targetWidth, int targetHeight, Handler handler, OnAnimationStartedListener listener) argument 429 makeAspectScaledThumbnailAnimation(View source, Bitmap thumbnail, int startX, int startY, int targetWidth, int targetHeight, Handler handler, OnAnimationStartedListener listener, boolean scaleUp) argument [all...] |
H A D | ActivityManager.java | 1026 public Bitmap thumbnail; field in class:ActivityManager.RunningTaskInfo 1061 if (thumbnail != null) { 1063 thumbnail.writeToParcel(dest, 0); 1078 thumbnail = Bitmap.CREATOR.createFromParcel(source); 1080 thumbnail = null; 1158 * @param thumbnail Thumbnail to use for the recents entry. Should be the size given by 1167 @Nullable TaskDescription description, @NonNull Bitmap thumbnail) { 1173 final int tw = thumbnail.getWidth(); 1174 final int th = thumbnail.getHeight(); 1176 Bitmap bm = Bitmap.createBitmap(size.x, size.y, thumbnail 1166 addAppTask(@onNull Activity activity, @NonNull Intent intent, @Nullable TaskDescription description, @NonNull Bitmap thumbnail) argument [all...] |
H A D | ActivityThread.java | 3134 Bitmap thumbnail = mAvailThumbnailBitmap; 3136 if (thumbnail == null) { 3151 thumbnail = Bitmap.createBitmap(r.activity.getResources().getDisplayMetrics(), 3153 thumbnail.eraseColor(0); 3157 if (thumbnail != null) { 3163 cv.setBitmap(thumbnail); 3164 if (!r.activity.onCreateThumbnail(thumbnail, cv)) { 3165 mAvailThumbnailBitmap = thumbnail; 3166 thumbnail = null; 3174 "Unable to create thumbnail o [all...] |
/frameworks/support/v4/java/android/support/v4/app/ |
H A D | ActivityOptionsCompat.java | 85 * Create an ActivityOptions specifying an animation where a thumbnail is 91 * those bounds will be filled in for you based on the initial thumbnail 94 * @param source The View that this thumbnail is animating from. This 96 * @param thumbnail The bitmap that will be shown as the initial thumbnail 104 Bitmap thumbnail, int startX, int startY) { 107 ActivityOptionsCompatJB.makeThumbnailScaleUpAnimation(source, thumbnail, 103 makeThumbnailScaleUpAnimation(View source, Bitmap thumbnail, int startX, int startY) argument
|
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/ |
H A D | ImageUtils.java | 50 * 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); 79 assertImageSimilar(relativePath, goldenImage, thumbnail, MAX_PERCENT_DIFFERENCE); 229 // When creating a thumbnail, using the above code doesn't work very well; 248 // So, now we *start* the thumbnail operation by resizing from width 1000 to 313 * Saves the generated thumbnail image and appends the info message to an initial message
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | TaskViewThumbnail.java | 41 * The task thumbnail view. It implements an image view that allows for animating the dim and 42 * alpha of the thumbnail image. 69 // Task bar clipping, the top of this thumbnail can be clipped against the opaque header 70 // bar that overlaps this thumbnail 74 // Visibility optimization, if the thumbnail height is less than the height of the header 75 // bar for the task view, then just mark this thumbnail view as invisible 118 // Draw the thumbnail with the rounded corners 124 /** Sets the thumbnail to a given bitmap. */ 139 /** Updates the paint to draw the thumbnail. */ 159 /** Updates the thumbnail shade [all...] |
H A D | RecentsView.java | 411 // Upfront the processing of the thumbnail 430 // Compute the thumbnail to scale up from 434 if (task.thumbnail != null && task.thumbnail.getWidth() > 0 && 435 task.thumbnail.getHeight() > 0) { 457 // Notify the system to skip the thumbnail layer by using an ALPHA_8 bitmap
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
H A D | ExifData.java | 56 * 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.
|
H A D | ExifInterface.java | 1750 * Returns the thumbnail from IFD1 as a bitmap, or null if none exists. 1752 * @return the thumbnail as a bitmap. 1765 * Returns the thumbnail from IFD1 as a byte array, or null if none exists. 1769 * @return the thumbnail as a byte array. 1781 * Returns the thumbnail if it is jpeg compressed, or null if none exists. 1783 * @return the thumbnail as a byte array. 1790 * Check if thumbnail is compressed. 1792 * @return true if the thumbnail is compressed. 1799 * Check if thumbnail exists. 1801 * @return true if a compressed thumbnail exist [all...] |
/frameworks/base/media/jni/ |
H A D | android_mtp_MtpDevice.cpp | 345 void* thumbnail = device->getThumbnail(objectID, length); local 346 if (! thumbnail) 349 env->SetByteArrayRegion(array, 0, length, (const jbyte *)thumbnail); 351 free(thumbnail);
|
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | TaskRecord.java | 150 private Bitmap mLastThumbnail; // Last thumbnail captured for this item. 151 private final File mLastThumbnailFile; // File containing last thumbnail. 423 * Sets the last thumbnail. 424 * @return whether the thumbnail was set 426 boolean setLastThumbnail(Bitmap thumbnail) { argument 427 if (mLastThumbnail != thumbnail) { 428 mLastThumbnail = thumbnail; 429 if (thumbnail == null) { 434 mService.mTaskPersister.saveImage(thumbnail, mFilename); 447 // Only load the thumbnail fil [all...] |
/frameworks/base/media/java/android/media/ |
H A D | ThumbnailUtils.java | 59 * 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. 137 // now we make it a "square thumbnail" for MICRO_KIND thumbnail 146 * Create a video thumbnail for a video. May return null if the video is 210 * @param options options used during thumbnail extractio [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/ |
H A D | AlternateRecentsComponent.java | 123 // so ignore the current activity and try and preload the thumbnail for the 469 // have the right thumbnail bounds to animate to. 560 Bitmap thumbnail = Bitmap.createBitmap(toHeaderWidth, toHeaderHeight, 563 thumbnail.eraseColor(0xFFff0000); 565 Canvas c = new Canvas(thumbnail); 574 thumbnail, toTaskRect.left, toTaskRect.top, toTaskRect.width(), 578 // If both the screenshot and thumbnail fails, then just fall back to the default transition 639 // Try starting with a thumbnail transition 646 // Fall through below to the non-thumbnail transition 652 // If there is no thumbnail transitio [all...] |