/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;
|
/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...] |
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/ |
ThumbnailData.java | 27 * Data for a single thumbnail. 31 public final Bitmap thumbnail; field in class:ThumbnailData 42 thumbnail = null; 54 thumbnail = Bitmap.createHardwareBitmap(snapshot.getSnapshot());
|
HighResThumbnailLoader.java | 122 if ((t.thumbnail == null || t.thumbnail.reducedResolution) 145 if ((t.thumbnail == null || t.thumbnail.reducedResolution) && mLoading) { 224 ThumbnailData thumbnail = mActivityManager.getTaskThumbnail(t.key.id, 231 t.notifyTaskDataLoaded(thumbnail, t.icon);
|
Task.java | 135 public ThumbnailData thumbnail; field in class:Task 182 public Task(TaskKey key, Drawable icon, ThumbnailData thumbnail, String title, 189 this.thumbnail = thumbnail; 212 this.thumbnail = o.thumbnail; 256 this.thumbnail = thumbnailData; 266 thumbnail = null;
|
/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...] |
/device/google/cuttlefish_common/guest/hals/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...] |
/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);
|
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/ |
HeaderView.java | 45 * Organizes and displays the title and thumbnail for a given document 96 public void accept(Bitmap thumbnail) { 97 showImage(doc, thumbnail); 100 // load the thumbnail async. 111 private void showImage(DocumentInfo info, @Nullable Bitmap thumbnail) { 112 if (thumbnail != null) { 115 mThumbnail.setImageBitmap(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/Launcher3/quickstep/src/com/android/quickstep/ |
TaskOverlayFactory.java | 51 public void setTaskInfo(Task task, ThumbnailData thumbnail, Matrix matrix) { }
|
/frameworks/av/media/libstagefright/include/ |
StagefrightMetadataRetriever.h | 48 int index, int colorFormat, bool metaOnly, bool thumbnail); 76 int index, int colorFormat, bool metaOnly, bool thumbnail, FrameRect* rect);
|
/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);
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/ |
TaskThumbnailView.java | 61 public void setValue(TaskThumbnailView thumbnail, float dimAlphaMultiplier) { 62 thumbnail.setDimAlphaMultipler(dimAlphaMultiplier); 113 * Updates this thumbnail. 121 if (thumbnailData != null && thumbnailData.thumbnail != null) { 122 Bitmap bm = thumbnailData.thumbnail; 145 * If dimAlpha is 0, no dimming is applied; if dimAlpha is 1, the thumbnail will be black. 184 // Draw the background in all cases, except when the thumbnail data is opaque 223 final float thumbnailWidth = mThumbnailData.thumbnail.getWidth() - 225 final float thumbnailHeight = mThumbnailData.thumbnail.getHeight() - 232 // If we haven't measured , skip the thumbnail drawing and only draw the backgroun [all...] |
/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...] |