Home
last modified time | relevance | path

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

1234567

/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/Car/libs/car-apps-common/src/com/android/car/apps/common/
DImageUtils.java41 public static Bitmap blur(Context context, @NonNull Bitmap image, Size bitmapTargetSize, in blur() argument
43 image = maybeResize(image, bitmapTargetSize); in blur()
44 float blurRadius = bitmapBlurPercent * getBitmapDimension(image); in blur()
46 if (blurRadius <= MIN_BLUR) return image; in blur()
49 if (image.getConfig() != Bitmap.Config.ARGB_8888) { in blur()
50 image = image.copy(Bitmap.Config.ARGB_8888, true); in blur()
53 Bitmap outputBitmap = Bitmap.createBitmap(image); in blur()
57 Allocation tmpIn = Allocation.createFromBitmap(rs, image); in blur()
67 private static Bitmap maybeResize(@NonNull Bitmap image, Size bitmapTargetSize) { in maybeResize() argument
68 if (image.getWidth() > bitmapTargetSize.getWidth() in maybeResize()
[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/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/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/
DTransitionAnimationHelper.java155 if (!(mAnimationComponents.image.getDrawable() instanceof AnimatedVectorDrawable)) {
159 (AnimatedVectorDrawable) mAnimationComponents.image.getDrawable();
169 if (!(mAnimationComponents.image.getDrawable() instanceof AnimatedVectorDrawable)) {
183 final ImageView image = mAnimationComponents.image;
185 image.setImageResource(transition.drawable);
187 image.setVisibility(View.GONE);
263 private final ImageView image;
267 TextView header, TextView subHeader, ImageView image, TextView providerInfo) {
270 this.image = checkNotNull(image);
275 return Arrays.asList(header, subHeader, image, providerInfo);
/packages/services/Car/car-lib/src/android/car/navigation/
Dnavigation_state.proto24 // A reference to an image. This consists of a 'content://' style URI plus
25 // attributes describing the image.
27 // Sizing: The aspect ratio of the image is given in aspect_ratio.
28 // When requesting the image using this URI a 'w' and 'h' parameter
29 // must be added to the URI parameter list to request an image size.
32 // Margins: The referenced image does not have internal margins.
34 // 'image/png', 'image/jpeg' or 'image/bmp'.
35 // Color: Images can be either "tintable" or not. A "tintable" image is such that
40 // Caching: Given the same image reference and the same requested size,
41 // it is assumed that the exact same image will always be returned.
[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/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/Camera2/src/com/android/camera/processing/imagebackend/
DTaskImageContainer.java181 public TaskImageContainer(ImageToProcess image, @Nullable Executor Executor, in TaskImageContainer() argument
184 mImage = image; in TaskImageContainer()
225 public Rect guaranteedSafeCrop(ImageProxy image, @Nullable Rect crop) { in guaranteedSafeCrop() argument
226 return guaranteedSafeCrop(image.getWidth(), image.getHeight(), crop); in guaranteedSafeCrop()
274 public boolean requiresCropOperation(ImageProxy image, @Nullable Rect crop) { in requiresCropOperation() argument
279 return !(crop.equals(new Rect(0, 0, image.getWidth(), image.getHeight()))); in requiresCropOperation()
/packages/apps/WallpaperPicker/src/com/android/photos/views/
DTiledImageView.java52 TiledImageRenderer image; field in TiledImageView.ImageRendererWrapper
70 mRenderer.image = new TiledImageRenderer(this); in TiledImageView()
95 mRenderer.image.freeTextures();
172 mRenderer.image.setModel(mRenderer.source, mRenderer.rotation); in onSurfaceCreated()
178 mRenderer.image.setViewSize(width, height); in onSurfaceChanged()
187 mRenderer.image.setModel(mRenderer.source, mRenderer.rotation); in onDrawFrame()
188 mRenderer.image.setPosition(mRenderer.centerX, mRenderer.centerY, in onDrawFrame()
191 boolean complete = mRenderer.image.draw(mCanvas); in onDrawFrame()

1234567