/development/samples/devbytes/animation/ActivityAnimations/src/com/example/android/activityanim/ |
PictureData.java | 24 Bitmap thumbnail; field in class:PictureData 26 public PictureData(int resourceId, String description, Bitmap thumbnail) { 29 this.thumbnail = thumbnail;
|
BitmapUtils.java | 64 Bitmap thumbnail = getThumbnail(bitmap, 200); local 66 pictures.add(new PictureData(resourceId, description, thumbnail)); 85 * Create and return a thumbnail image given the original source bitmap and a max 101 Bitmap thumbnail = Bitmap.createScaledBitmap(original, scaledWidth, scaledHeight, true); local 103 return thumbnail;
|
/external/ImageMagick/PerlMagick/demo/ |
composite.pl | 17 my ($thumbnail); 20 $thumbnail=Image::Magick->new(size=>"600x600",pointsize=>24,font=>$font, 22 $thumbnail->Read("xc:white"); 23 $thumbnail->Draw(primitive=>'line',points=>"300,100 300,500",stroke=>'#600'); 24 $thumbnail->Draw(primitive=>'line',points=>"100,300 500,300",stroke=>'#600'); 25 $thumbnail->Draw(primitive=>'rectangle',points=>"100,100 500,500", 27 $thumbnail->Composite(image=>$smile,gravity=>"NorthWest",x=>$x,y=>$y, 29 $thumbnail->Composite(image=>$smile,gravity=>"North",y=>$y,rotate=>$angle); 30 $thumbnail->Composite(image=>$smile,gravity=>"NorthEast",x=>$x,y=>$y, 32 $thumbnail->Composite(image=>$smile,gravity=>"West",x=>$x,rotate=>$angle) [all...] |
/cts/tests/app/src/android/app/cts/ |
ActivityManagerRunningTaskInfoTest.java | 34 mRunningTaskInfo.thumbnail = null; 58 assertNull(values.thumbnail); 61 // test thumbnail is not null 62 mRunningTaskInfo.thumbnail = Bitmap.createBitmap(480, 320, 69 assertNotNull(values.thumbnail); 70 assertEquals(320, values.thumbnail.getHeight()); 71 assertEquals(480, values.thumbnail.getWidth()); 72 assertEquals(Bitmap.Config.RGB_565, values.thumbnail.getConfig()); 86 assertNull(values.thumbnail); 89 // test thumbnail is not nul [all...] |
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
FileImageRequest.java | 48 // Before using the FileInputStream, check if the Exif has a thumbnail that we can use. 50 byte[] thumbnail = null; 54 thumbnail = exif.getThumbnail(); 60 if (thumbnail != null) { 65 BitmapFactory.decodeByteArray(thumbnail, 0, thumbnail.length, options); 76 // the thumbnail itself but at least on some phones, the thumbnail 88 return BitmapFactory.decodeByteArray(thumbnail, 0, thumbnail.length [all...] |
/packages/apps/Gallery2/src/com/android/photos/drawables/ |
DataUriThumbnailDrawable.java | 31 byte[] thumbnail = null; 35 thumbnail = exif.getThumbnail(); 38 return thumbnail;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/ |
ThumbnailData.java | 24 * Data for a single thumbnail. 29 public Bitmap thumbnail; field in class:ThumbnailData 37 out.thumbnail = Bitmap.createHardwareBitmap(snapshot.getSnapshot());
|
HighResThumbnailLoader.java | 111 if ((t.thumbnail == null || t.thumbnail.reducedResolution) 134 if ((t.thumbnail == null || t.thumbnail.reducedResolution) && mLoading) { 213 ThumbnailData thumbnail = mSystemServicesProxy.getTaskThumbnail(t.key.id, 220 t.notifyTaskDataLoaded(thumbnail, t.icon);
|
Task.java | 145 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;
|
/packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/ |
LiveWallpaperListAdapter.java | 105 holder.thumbnail = (ImageView) convertView.findViewById(R.id.thumbnail); 112 if (holder.thumbnail != null) { 113 holder.thumbnail.setImageDrawable(wallpaperInfo.thumbnail); 118 if (holder.thumbnail == null) { 119 holder.title.setCompoundDrawablesWithIntrinsicBounds(null, wallpaperInfo.thumbnail, 128 public Drawable thumbnail; field in class:LiveWallpaperListAdapter.LiveWallpaperInfo 134 ImageView thumbnail; field in class:LiveWallpaperListAdapter.ViewHolder 196 Bitmap thumbnail = Bitmap.createBitmap(thumbWidth, thumbHeight local [all...] |
/development/samples/devbytes/animation/WindowAnimations/src/com/example/android/windowanimations/ |
WindowAnimations.java | 46 final ImageView thumbnail = (ImageView) findViewById(R.id.thumbnail); local 90 // representations. Here, we scale up from a thumbnail image of the final sub-activity 91 thumbnail.setOnClickListener(new View.OnClickListener() { 94 BitmapDrawable drawable = (BitmapDrawable) thumbnail.getDrawable(); 98 thumbnail, bm, 0, 0).toBundle();
|
/device/generic/goldfish/camera/ |
Thumbnail.cpp | 17 #include "Thumbnail.h" 71 std::vector<unsigned char>* thumbnail) { 88 thumbnail->resize((thumbnailWidth * thumbnailHeight * 12) / 8); 94 unsigned char* yDestPlane = &(*thumbnail)[0]; 110 ALOGE("Unable to create thumbnail, downscaling failed with error: %d", 119 (*thumbnail)[uvPlanesOffset + i * 2 + 0] = vDestPlane[i]; 120 (*thumbnail)[uvPlanesOffset + i * 2 + 1] = uDestPlane[i]; 131 ALOGE("%s: Invalid thumbnail width=%d or height=%d, must be > 0", 136 // First downscale the source image into a thumbnail-sized raw image 140 // The thumbnail function will log an appropriate error if neede [all...] |
/frameworks/base/services/core/java/com/android/server/wm/ |
AppWindowAnimator.java | 76 // 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 210 if (thumbnail != null) { 211 thumbnail.hide(); 212 mService.mWindowPlacerLocked.destroyAfterTransaction(thumbnail); 213 thumbnail = null [all...] |
/packages/apps/Camera2/src/com/android/camera/one/v2/imagesaver/ |
SingleImageSaver.java | 29 * Implementations should save and close the image and thumbnail (if 34 public void saveAndCloseImage(ImageProxy fullSize, Optional<ImageProxy> thumbnail,
|
MostRecentImageSaver.java | 72 ImageProxy thumbnail = getThumbnail(fullSize.getTimestamp()); local 73 if (thumbnail != null) { 76 mThumbnails.remove(thumbnail.getTimestamp()); 79 mSingleImageSaver.saveAndCloseImage(fullSize, Optional.fromNullable(thumbnail),
|
/packages/apps/Camera2/src/com/android/camera/session/ |
SessionNotifier.java | 53 /** Notify that the full size thumbnail is available. */ 54 public void notifySessionThumbnailAvailable(final Bitmap thumbnail);
|
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/ |
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);
|
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);
|
/external/piex/src/ |
piex.cc | 123 // Reads the jpeg compressed thumbnail information. 133 preview_image_data->thumbnail = thumbnail_data.thumbnail; 253 &preview_image_data->thumbnail.offset, 254 &preview_image_data->thumbnail.length)) { 435 // Find the jpeg compressed thumbnail and preview image. 437 Image thumbnail; local 443 thumbnail = temp_image; 452 // Try to find the largest thumbnail/preview. 454 if (temp_image > thumbnail) { [all...] |
/packages/apps/DocumentsUI/perf-tests/src/com/android/documentsui/ |
StressProvider.java | 168 return getContext().getResources().openRawResourceFd(document.thumbnail); 193 document.thumbnail != -1 ? Document.FLAG_SUPPORTS_THUMBNAIL : 0); 206 final int thumbnail; field in class:StressProvider.StubDocument 209 int thumbnail) { 214 this.thumbnail = thumbnail; 227 public static StubDocument createFile(Context context, String mimeType, int thumbnail, 231 createRandomTime(index), thumbnail);
|
/external/glide/library/src/main/java/com/bumptech/glide/ |
DrawableRequestBuilder.java | 54 * Loads and displays the {@link GlideDrawable} retrieved by the given thumbnail request if it finishes before this 55 * request. Best used for loading thumbnail {@link GlideDrawable}s that are smaller and will be loaded more quickly 60 * @see #thumbnail(float) 63 * Note - Any options on the main request will not be passed on to the thumbnail request. For example, if 64 * you want an animation to occur when either the full {@link GlideDrawable} loads or the thumbnail loads, 65 * you need to call {@link #animate(int)} on both the thumb and the full request. For a simpler thumbnail 66 * option where these options are applied to the humbnail as well, see {@link #thumbnail(float)}. 70 * Only the thumbnail call on the main request will be obeyed, recursive calls to this method are ignored. 73 * @param thumbnailRequest The request to use to load the thumbnail. 76 public DrawableRequestBuilder<ModelType> thumbnail( method in class:DrawableRequestBuilder 86 public DrawableRequestBuilder<ModelType> thumbnail( method in class:DrawableRequestBuilder 96 public DrawableRequestBuilder<ModelType> thumbnail(float sizeMultiplier) { method in class:DrawableRequestBuilder [all...] |
GifRequestBuilder.java | 48 public GifRequestBuilder<ModelType> thumbnail(GenericRequestBuilder<?, ?, ?, GifDrawable> thumbnailRequest) { method in class:GifRequestBuilder 49 super.thumbnail(thumbnailRequest); 54 * Loads and displays the GIF retrieved by the given thumbnail request if it finishes before this 55 * request. Best used for loading thumbnail GIFs that are smaller and will be loaded more quickly 60 * @see #thumbnail(float) 63 * Note - Any options on the main request will not be passed on to the thumbnail request. For example, if 64 * you want an animation to occur when either the full GIF loads or the thumbnail loads, 65 * you need to call {@link #animate(int)} on both the thumb and the full request. For a simpler thumbnail 66 * option where these options are applied to the humbnail as well, see {@link #thumbnail(float)}. 70 * Only the thumbnail call on the main request will be obeyed, recursive calls to this method are ignored 76 public GifRequestBuilder<ModelType> thumbnail(GifRequestBuilder<?> thumbnailRequest) { method in class:GifRequestBuilder 85 public GifRequestBuilder<ModelType> thumbnail(float sizeMultiplier) { method in class:GifRequestBuilder [all...] |
BitmapRequestBuilder.java | 121 public BitmapRequestBuilder<ModelType, TranscodeType> thumbnail(float sizeMultiplier) { method in class:BitmapRequestBuilder 122 super.thumbnail(sizeMultiplier); 127 * Loads and displays the {@link android.graphics.Bitmap} retrieved by the given thumbnail request if it finishes 128 * before this request. Best used for loading thumbnail {@link Bitmap}s that are smaller and will be loaded more 133 * @see #thumbnail(float) 136 * Note - Any options on the main request will not be passed on to the thumbnail request. For example, if 137 * you want an animation to occur when either the full {@link android.graphics.Bitmap} loads or the thumbnail 138 * loads, you need to call {@link #animate(int)} on both the thumb and the full request. For a simpler thumbnail 139 * option where these options are applied to the humbnail as well, see {@link #thumbnail(float)}. 143 * Only the thumbnail call on the main request will be obeyed, recursive calls to this method are ignored 149 public BitmapRequestBuilder<ModelType, TranscodeType> thumbnail(BitmapRequestBuilder<?, TranscodeType> method in class:BitmapRequestBuilder 431 public BitmapRequestBuilder<ModelType, TranscodeType> thumbnail( method in class:BitmapRequestBuilder [all...] |
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
ThumbnailCache.java | 38 * An LRU cache that supports finding the thumbnail of the requested uri with a different size than 53 * Creates a thumbnail LRU cache. 63 * Obtains thumbnail given a uri and a size. 65 * @param uri the uri of the thumbnail in need 66 * @param size the desired size of the thumbnail 67 * @return the thumbnail result 73 // There is not any thumbnail for this uri. 77 // Look for thumbnail of the same size. 86 // Look for thumbnail of bigger sizes. 99 // Look for thumbnail of smaller sizes [all...] |
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/ |
DownloadsDeletionPreferenceGroup.java | 174 Bitmap thumbnail = mDeletionType.getCachedThumbnail(file); local 175 if (thumbnail != null) { 176 filePreference.setIcon(new BitmapDrawable(res, thumbnail));
|