Home
last modified time | relevance | path

Searched refs:image (Results 1 – 25 of 206) sorted by relevance

123456789

/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DImageUtils.java42 public static Bitmap blur(Context context, @NonNull Bitmap image, Size bitmapTargetSize, in blur() argument
44 image = maybeResize(image, bitmapTargetSize); in blur()
45 float blurRadius = bitmapBlurPercent * getBitmapDimension(image); in blur()
47 if (blurRadius <= MIN_BLUR) return image; in blur()
50 if (image.getConfig() != Bitmap.Config.ARGB_8888) { in blur()
51 image = image.copy(Bitmap.Config.ARGB_8888, true); in blur()
54 Bitmap outputBitmap = Bitmap.createBitmap(image); in blur()
58 Allocation tmpIn = Allocation.createFromBitmap(rs, image); in blur()
68 private static Bitmap maybeResize(@NonNull Bitmap image, Size bitmapTargetSize) { in maybeResize() argument
69 if (image.getWidth() > bitmapTargetSize.getWidth() in maybeResize()
[all …]
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoSource.java131 Bitmap image = null; in next() local
135 while (image == null && tries < mBadImageSkipLimit) { in next()
143 image = load(imageData, options, longSide, shortSide); in next()
144 mImageMap.put(image, imageData); in next()
151 if (image == null && mFallbackSource != null) { in next()
152 image = load((ImageData) mFallbackSource.findImages(1).toArray()[0], in next()
156 return image; in next()
163 Bitmap image = null; in load() local
170 image = BitmapFactory.decodeStream(new BufferedInputStream(bis), null, options); in load()
199 image = BitmapFactory.decodeStream(bis, null, options); in load()
[all …]
/packages/apps/Gallery/src/com/android/camera/
DMenuHelper.java106 public void gettingReadyToOpen(Menu menu, IImage image); in gettingReadyToOpen() argument
107 public void aboutToCall(MenuItem item, IImage image); in aboutToCall() argument
115 public void run(Uri uri, IImage image); in run() argument
128 public static long getImageFileSize(IImage image) { in getImageFileSize() argument
129 java.io.InputStream data = image.fullSizeImageData(); in getImageFileSize()
174 public static boolean hasLatLngData(IImage image) { in hasLatLngData() argument
175 ExifInterface exif = getExif(image); in hasLatLngData()
246 private static ExifInterface getExif(IImage image) { in getExif() argument
247 if (!JPEG_MIME_TYPE.equals(image.getMimeType())) { in getExif()
252 return new ExifInterface(image.getDataPath()); in getExif()
[all …]
DImageGallery.java227 IImage image = getCurrentImage();
228 if (image != null) {
229 return image.fullSizeImageUri();
261 IImage image = getCurrentImage();
262 if (image != null) {
543 IImage image = getCurrentImage();
544 return (image != null) && ImageManager.isVideo(image);
619 private void toggleMultiSelected(IImage image) {
621 if (!mMultiSelected.add(image)) {
622 mMultiSelected.remove(image);
[all …]
DViewImage.java212 IImage image = mAllImages.getImageAt(mCurrentPosition);
213 if (image instanceof VideoObject) {
405 IImage image = mAllImages.getImageAt(mCurrentPosition); in onCreateOptionsMenu()
406 Uri uri = image.fullSizeImageUri(); in onCreateOptionsMenu()
407 cb.run(uri, image); in onCreateOptionsMenu()
459 IImage image = mAllImages.getImageAt(mCurrentPosition); in onPrepareOptionsMenu() local
462 mImageMenuRunnable.gettingReadyToOpen(menu, image); in onPrepareOptionsMenu()
468 MenuHelper.enableShowOnMapMenuItem(menu, MenuHelper.hasLatLngData(image)); in onPrepareOptionsMenu()
488 IImage image = mAllImages.getImageAt(pos); in setImage() local
490 new RotateBitmap(b, image.getDegreesRotated()), true); in setImage()
[all …]
DImageLoader.java48 public void getBitmap(IImage image, in getBitmap() argument
55 WorkItem w = new WorkItem(image, imageLoadedRunnable, tag); in getBitmap()
61 public boolean cancel(final IImage image) { in cancel() argument
63 int index = findItem(image); in cancel()
74 private int findItem(IImage image) { in findItem() argument
76 if (mQueue.get(i).mImage == image) { in findItem()
101 WorkItem(IImage image, LoadedCallback onLoadedRunnable, int tag) { in WorkItem() argument
102 mImage = image; in WorkItem()
DImageGetter.java169 IImage image = mImageList.getImageAt(imageNumber);
170 if (image == null) continue;
173 Bitmap b = image.thumbBitmap(IImage.NO_ROTATE);
182 new RotateBitmap(b, image.getDegreesRotated()),
197 IImage image = mImageList.getImageAt(imageNumber);
198 if (image == null) continue;
199 if (image instanceof VideoObject) continue;
204 Bitmap b = image.fullSizeBitmap(sizeToUse, 3 * 1024 * 1024,
214 image.getDegreesRotated());
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DImageUtils.cpp34 ImageType image = in; in rgba2yvu() local
38 r = (*image++); in rgba2yvu()
39 g = (*image++); in rgba2yvu()
40 b = (*image++); in rgba2yvu()
41 a = (*image++); in rgba2yvu()
79 ImageType image = in; in rgb2yvu() local
83 r = (*image++); in rgb2yvu()
84 g = (*image++); in rgb2yvu()
85 b = (*image++); in rgb2yvu()
120 ImageType image = in; in rgb2gray() local
[all …]
DMosaicTypes.h70 ImageType image;
84 image = ImageUtils::allocateImage(width, height, ImageUtils::IMAGE_TYPE_NUM_CHANNELS);
91 if (image) in ~MosaicFrame()
92 free(image); in ~MosaicFrame()
100 return (image + (width*height)); in getV()
108 return (image + (width*height*2)); in getU()
116 ImageType U = image + (width*height); in getV()
125 ImageType U = image + (width*height*2); in getU()
/packages/apps/Camera2/src/com/android/camera/one/v2/photo/zsl/
DZslImageCaptureCommand.java96 for (ImageProxy image : images) { in getAllAvailableImages()
97 image.close(); in getAllAvailableImages()
111 for (ImageProxy image : images) { in filterImagesWithinMaxLookBack()
112 if (image.getTimestamp() > timestampThreshold) { in filterImagesWithinMaxLookBack()
113 filtered.add(image); in filterImagesWithinMaxLookBack()
115 image.close(); in filterImagesWithinMaxLookBack()
128 for (ImageProxy image : images) { in tryGetZslImage()
130 mZslMetadataPool.removeMetadataFuture(image.getTimestamp()); in tryGetZslImage()
133 imageToSave = image; in tryGetZslImage()
147 for (ImageProxy image : images) { in tryGetZslImage()
[all …]
/packages/apps/Gallery/src/com/android/camera/gallery/
DImageListUber.java163 IImage image = sublist.getImageForUri(uri); in getImageForUri() local
164 if (image != null) return image; in getImageForUri()
188 private boolean removeImage(IImage image, int index) { in removeImage() argument
189 IImageList list = image.getContainer(); in removeImage()
190 if (list != null && list.removeImage(image)) { in removeImage()
197 public boolean removeImage(IImage image) { in removeImage() argument
198 return removeImage(image, getImageIndex(image)); in removeImage()
202 IImage image = getImageAt(index); in removeImageAt() local
203 if (image == null) return false; in removeImageAt()
204 return removeImage(image, index); in removeImageAt()
[all …]
DBaseImageList.java133 public boolean removeImage(IImage image) { in removeImage() argument
135 if (mContentResolver.delete(image.fullSizeImageUri(), null, null) > 0) { in removeImage()
136 ((BaseImage) image).onRemove(); in removeImage()
203 BaseImage image = mCache.get(i); in getImageForUri() local
204 if (image == null) { in getImageForUri()
205 image = loadImageFromCursor(cursor); in getImageForUri()
206 mCache.put(i, image); in getImageForUri()
208 return image; in getImageForUri()
215 public int getImageIndex(IImage image) { in getImageIndex() argument
216 return ((BaseImage) image).mIndex; in getImageIndex()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/
DBipImageTest.java59 BipImage image = new BipImage(sImageHandle, imageInputStream); in testParseImage_200by200() local
65 Assert.assertEquals(sImageHandle, image.getImageHandle()); in testParseImage_200by200()
66 Assert.assertTrue(bitmap.sameAs(image.getImage())); in testParseImage_200by200()
73 BipImage image = new BipImage(sImageHandle, imageInputStream); in testParseImage_600by600() local
79 Assert.assertEquals(sImageHandle, image.getImageHandle()); in testParseImage_600by600()
80 Assert.assertTrue(bitmap.sameAs(image.getImage())); in testParseImage_600by600()
88 BipImage image = new BipImage(sImageHandle, bitmap); in testMakeFromImage_200by200() local
89 Assert.assertEquals(sImageHandle, image.getImageHandle()); in testMakeFromImage_200by200()
90 Assert.assertTrue(bitmap.sameAs(image.getImage())); in testMakeFromImage_200by200()
98 BipImage image = new BipImage(sImageHandle, bitmap); in testMakeFromImage_600by600() local
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcp/
DCoverArtTest.java136 private boolean isThumbnailFormat(Bitmap image) { in isThumbnailFormat() argument
137 if (image == null) return false; in isThumbnailFormat()
138 return (200 == image.getHeight() && 200 == image.getWidth()); in isThumbnailFormat()
208 byte[] image = artwork.getImage(); in testGetNativeImage()
209 assertThat(image).isNotNull(); in testGetNativeImage()
220 Bitmap image = toBitmap(imageBytes); in testGetThumbnailImage() local
221 assertThat(isThumbnailFormat(image)).isTrue(); in testGetThumbnailImage()
255 byte[] image = artwork.getImage(descriptor); in testGetImageWithValidDescriptor()
256 assertThat(image).isNotNull(); in testGetImageWithValidDescriptor()
268 Bitmap image = toBitmap(imageBytes); in testGetImageWithThumbnailDescriptor() local
[all …]
/packages/apps/Dialer/java/com/android/dialer/historyitemactions/
DIntentModule.java40 private final @DrawableRes int image; field in IntentModule
48 public IntentModule(Context context, Intent intent, @StringRes int text, @DrawableRes int image) { in IntentModule() argument
49 this(context, intent, text, image, /* impressions = */ ImmutableList.of()); in IntentModule()
56 @DrawableRes int image, in IntentModule() argument
61 this.image = image; in IntentModule()
72 return image; in getDrawableId()
94 @DrawableRes int image; in newCallModule() local
98 image = R.drawable.quantum_ic_videocam_vd_white_24; in newCallModule()
101 image = R.drawable.quantum_ic_call_white_24; in newCallModule()
105 context, PreCall.getIntent(context, callIntentBuilder), text, image, impressions); in newCallModule()
/packages/apps/Gallery2/src_pd/com/android/gallery3d/picasasource/
DPicasaSource.java92 public static String getImageTitle(MediaObject image) { in getImageTitle() argument
96 public static int getImageSize(MediaObject image) { in getImageSize() argument
100 public static String getContentType(MediaObject image) { in getContentType() argument
104 public static long getDateTaken(MediaObject image) { in getDateTaken() argument
108 public static double getLatitude(MediaObject image) { in getLatitude() argument
112 public static double getLongitude(MediaObject image) { in getLongitude() argument
116 public static int getRotation(MediaObject image) { in getRotation() argument
120 public static long getPicasaId(MediaObject image) { in getPicasaId() argument
124 public static String getUserAccount(Context context, MediaObject image) { in getUserAccount() argument
128 public static ParcelFileDescriptor openFile(Context context, MediaObject image, String mode) in openFile() argument
/packages/apps/Camera2/src/com/android/camera/one/v2/
DImageCaptureManager.java114 public void onImageCaptured(Image image, TotalCaptureResult captureResult); in onImageCaptured() argument
181 public void addImage(Image image) { in addImage() argument
186 mImage = image; in addImage()
467 CapturedImage image = new CapturedImage();
468 image.addMetadata(newMetadata);
469 return image;
496 CapturedImage image = new CapturedImage();
497 image.addImage(newImage);
498 return image;
504 CapturedImage image = new CapturedImage();
[all …]
/packages/apps/Camera2/src/com/android/camera/one/v2/imagesaver/
DMostRecentImageSaver.java87 for (ImageProxy image : mThumbnails.values()) { in closeAllImages()
88 image.close(); in closeAllImages()
91 for (ImageProxy image : mFullSizeImages.values()) { in closeAllImages()
92 image.close(); in closeAllImages()
123 for (ImageProxy image : mFullSizeImages.values()) { in getMostRecentFullSizeImageTimestamp()
124 long timestamp = image.getTimestamp(); in getMostRecentFullSizeImageTimestamp()
143 for (MetadataImage image : mFullSizeImages.values()) { in getLastImage()
144 if (lastImage == null || image.getTimestamp() > lastImage.getTimestamp()) { in getLastImage()
145 lastImage = image; in getLastImage()
/packages/apps/Bluetooth/src/com/android/bluetooth/audio_util/helpers/
DImage.java134 public Image(Context context, Bitmap image) { in Image() argument
136 setImage(image); in Image()
153 Bitmap image = getImageFromUri(uri); in setImage()
154 if (image == null) return; in setImage()
155 setImage(image); in setImage()
162 private void setImage(Bitmap image) { in setImage() argument
163 if (image == null) return; in setImage()
164 mImage = image; in setImage()
246 final Image image = (Image) o; in equals()
247 final Bitmap bmp = image.getImage(); in equals()
DMetadata.java37 public Image image; field in Metadata
50 data.image = image; in clone()
65 if (!Objects.equals(image, m.image)) return false; in equals()
73 + " trackPosition=" + trackNum + "/" + numTracks + " image=" + image + " }"; in toString()
140 mMetadata.image = new Image(mContext, data); in fromMediaMetadata()
166 mMetadata.image = new Image(mContext, desc.getIconBitmap()); in fromMediaDescription()
169 mMetadata.image = new Image(mContext, desc.getIconUri()); in fromMediaDescription()
221 mMetadata.image = new Image(mContext, bundle); in fromBundle()
/packages/apps/Gallery/tests/src/com/android/camera/gallery/
DMockImageList.java36 public int getImageIndex(IImage image) { in getImageIndex() argument
37 return mList.indexOf(image); in getImageIndex()
44 public boolean removeImage(IImage image) { in removeImage() argument
45 return mList.remove(image); in removeImage()
52 public void addImage(MockImage image) { in addImage() argument
53 mList.add(image); in addImage()
54 image.setContainer(this); in addImage()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/
DGalleryGridItemView.java37 private ImageView image; field in GalleryGridItemView
50 image = (ImageView) findViewById(R.id.image); in onFinishInflate()
54 image.setClipToOutline(true); in onFinishInflate()
99 image.setScaleType(ScaleType.CENTER_CROP); in updateImageView()
112 .into(image); in updateImageView()
116 image.setContentDescription( in updateImageView()
122 image.setContentDescription( in updateImageView()
/packages/apps/Camera2/src/com/android/camera/burst/
DRingBuffer.java53 public synchronized void insertImage(T image) { in insertImage() argument
54 long timestamp = image.getTimestamp(); in insertImage()
56 image.close(); in insertImage()
61 addImage(image); in insertImage()
98 private synchronized void addImage(T image) { in addImage() argument
99 mImages.put(image.getTimestamp(), image); in addImage() local
/packages/apps/Gallery2/src/com/android/gallery3d/provider/
DGalleryProvider.java135 private Cursor queryPicasaItem(MediaObject image, String[] projection, in queryPicasaItem() argument
139 double latitude = PicasaSource.getLatitude(image); in queryPicasaItem()
140 double longitude = PicasaSource.getLongitude(image); in queryPicasaItem()
146 columnValues[i] = PicasaSource.getUserAccount(getContext(), image); in queryPicasaItem()
148 columnValues[i] = PicasaSource.getPicasaId(image); in queryPicasaItem()
150 columnValues[i] = PicasaSource.getImageTitle(image); in queryPicasaItem()
152 columnValues[i] = PicasaSource.getImageSize(image); in queryPicasaItem()
154 columnValues[i] = PicasaSource.getContentType(image); in queryPicasaItem()
156 columnValues[i] = PicasaSource.getDateTaken(image); in queryPicasaItem()
162 columnValues[i] = PicasaSource.getRotation(image); in queryPicasaItem()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DAvrcpBipObexServer.java216 CoverArt image = mAvrcpCoverArtService.getImage(imageHandle); in handleGetImageThumbnail() local
217 if (image == null) { in handleGetImageThumbnail()
222 byte[] thumbnail = image.getThumbnail(); in handleGetImageThumbnail()
248 CoverArt image = mAvrcpCoverArtService.getImage(imageHandle); in handleGetImageProperties() local
249 if (image == null) { in handleGetImageProperties()
253 BipImageProperties properties = image.getImageProperties(); in handleGetImageProperties()
292 CoverArt image = mAvrcpCoverArtService.getImage(imageHandle); in handleGetImage() local
293 if (image == null) { in handleGetImage()
301 imageBytes = image.getImage(); in handleGetImage()
303 imageBytes = image.getImage(descriptor); in handleGetImage()

123456789