Home
last modified time | relevance | path

Searched refs:preview (Results 1 – 25 of 37) sorted by relevance

12

/packages/apps/Launcher2/src/com/android/launcher2/
DWidgetPreviewLoader.java232 Bitmap preview = null; in getPreview() local
235 preview = readFromDb(name, unusedBitmap); in getPreview()
238 if (preview != null) { in getPreview()
240 mLoadedPreviews.put(name, new WeakReference<Bitmap>(preview)); in getPreview()
242 return preview; in getPreview()
246 preview = generatedPreview; in getPreview()
247 if (preview != unusedBitmap) { in getPreview()
252 mLoadedPreviews.put(name, new WeakReference<Bitmap>(preview)); in getPreview()
264 return preview; in getPreview()
357 private void writeToDb(Object o, Bitmap preview) { in writeToDb() argument
[all …]
DPagedViewWidget.java97 FastBitmapDrawable preview = (FastBitmapDrawable) image.getDrawable(); in onDetachedFromWindow() local
99 mInfo != null && preview != null && preview.getBitmap() != null) { in onDetachedFromWindow()
100 mWidgetPreviewLoader.recycleBitmap(mInfo, preview.getBitmap()); in onDetachedFromWindow()
148 void applyPreview(FastBitmapDrawable preview, int index) { in applyPreview() argument
151 if (preview != null) { in applyPreview()
153 image.setImageDrawable(preview); in applyPreview()
157 int centerAmount = (imageSize[0] - preview.getIntrinsicWidth()) / 2; in applyPreview()
DAppsCustomizePagedView.java703 Bitmap preview; in beginDraggingWidget() local
730 preview = mWidgetPreviewLoader.generateWidgetPreview(createWidgetInfo.info, spanX, in beginDraggingWidget()
736 scale = previewWidthInAppsCustomize / (float) preview.getWidth(); in beginDraggingWidget()
751 preview = Bitmap.createBitmap(icon.getIntrinsicWidth(), in beginDraggingWidget()
754 mCanvas.setBitmap(preview); in beginDraggingWidget()
756 WidgetPreviewLoader.renderDrawableToBitmap(icon, preview, 0, 0, in beginDraggingWidget()
768 outline = Bitmap.createScaledBitmap(preview, preview.getWidth(), preview.getHeight(), in beginDraggingWidget()
774 mDragController.startDrag(image, preview, this, createItemInfo, in beginDraggingWidget()
777 preview.recycle(); in beginDraggingWidget()
1311 Bitmap preview = data.generatedImages.get(i); in onSyncWidgetPageItems() local
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DWidgetPreviewLoader.java248 Bitmap preview = readFromDb(name, unusedBitmap); in getPreview() local
250 if (preview != null) { in getPreview()
252 mLoadedPreviews.put(name, new WeakReference<Bitmap>(preview)); in getPreview()
254 return preview; in getPreview()
258 preview = generatedPreview; in getPreview()
259 if (preview != unusedBitmap) { in getPreview()
264 mLoadedPreviews.put(name, new WeakReference<Bitmap>(preview)); in getPreview()
276 return preview; in getPreview()
366 private void writeToDb(Object o, Bitmap preview) { in writeToDb() argument
373 preview.compress(Bitmap.CompressFormat.PNG, 100, stream); in writeToDb()
[all …]
DPagedViewWidget.java110 FastBitmapDrawable preview = (FastBitmapDrawable) image.getDrawable(); in onDetachedFromWindow() local
112 mInfo != null && preview != null && preview.getBitmap() != null) { in onDetachedFromWindow()
113 mWidgetPreviewLoader.recycleBitmap(mInfo, preview.getBitmap()); in onDetachedFromWindow()
164 void applyPreview(FastBitmapDrawable preview, int index) { in applyPreview() argument
167 if (preview != null) { in applyPreview()
169 image.setImageDrawable(preview); in applyPreview()
173 int centerAmount = (imageSize[0] - preview.getIntrinsicWidth()) / 2; in applyPreview()
DAppsCustomizePagedView.java622 Bitmap preview; in beginDraggingWidget() local
649 preview = getWidgetPreviewLoader().generateWidgetPreview(createWidgetInfo.info, in beginDraggingWidget()
655 scale = previewWidthInAppsCustomize / (float) preview.getWidth(); in beginDraggingWidget()
667 preview = Utilities.createIconBitmap(icon, mLauncher); in beginDraggingWidget()
676 outline = Bitmap.createScaledBitmap(preview, preview.getWidth(), preview.getHeight(), in beginDraggingWidget()
682 mDragController.startDrag(image, preview, this, createItemInfo, in beginDraggingWidget()
685 preview.recycle(); in beginDraggingWidget()
1255 Bitmap preview = data.generatedImages.get(i); in onSyncWidgetPageItems() local
1256 widget.applyPreview(new FastBitmapDrawable(preview), i); in onSyncWidgetPageItems()
DLauncherBackupHelper.java918 widget.preview = new Resource(); in packWidget()
919 Bitmap preview = previewLoader.generateWidgetPreview(info, null); in packWidget() local
921 if (preview.compress(IMAGE_FORMAT, IMAGE_COMPRESSION_QUALITY, os)) { in packWidget()
922 widget.preview.data = os.toByteArray(); in packWidget()
923 widget.preview.dpi = dpi; in packWidget()
/packages/apps/Settings/src/com/android/settings/accessibility/
DEdgeTypePreference.java56 final SubtitleView preview = (SubtitleView) view.findViewById(R.id.preview); in onBindListItem() local
58 preview.setForegroundColor(DEFAULT_FOREGROUND_COLOR); in onBindListItem()
59 preview.setBackgroundColor(DEFAULT_BACKGROUND_COLOR); in onBindListItem()
62 preview.setTextSize(DEFAULT_FONT_SIZE * density); in onBindListItem()
65 preview.setEdgeType(value); in onBindListItem()
66 preview.setEdgeColor(DEFAULT_EDGE_COLOR); in onBindListItem()
DCaptionPropertiesFragment.java177 final SubtitleView preview = mPreviewText; in refreshPreviewText() local
178 if (preview != null) { in refreshPreviewText()
180 applyCaptionProperties(mCaptioningManager, preview, mPreviewViewport, styleId); in refreshPreviewText()
186 preview.setText(localizedText); in refreshPreviewText()
188 preview.setText(R.string.captioning_preview_text); in refreshPreviewText()
DPresetPreference.java53 final SubtitleView previewText = (SubtitleView) view.findViewById(R.id.preview); in onBindListItem()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DAttachmentTile.java246 public Bitmap preview; field in AttachmentTile.AttachmentPreview
256 dest.writeParcelable(preview, 0); in writeToParcel()
274 preview = in.readParcelable(null); in AttachmentPreview()
277 public AttachmentPreview(Attachment attachment, Bitmap preview) { in AttachmentPreview() argument
279 this.preview = preview; in AttachmentPreview()
284 void set(Attachment attachment, Bitmap preview); in set() argument
DAttachmentTileGrid.java243 for (AttachmentPreview preview : previews) { in setAttachmentPreviews()
244 mAttachmentPreviews.put(preview.attachmentIdentifier, preview); in setAttachmentPreviews()
253 public void set(Attachment attachment, Bitmap preview) { in set() argument
257 attachmentIdentifier, new AttachmentPreview(attachment, preview)); in set()
271 return attachmentPreview.preview; in get()
/packages/apps/Gallery2/src/com/android/photos/
DBitmapRegionTileSource.java86 Bitmap preview = decodePreview(path, previewSize); in BitmapRegionTileSource() local
87 if (preview.getWidth() <= GL_SIZE_LIMIT && preview.getHeight() <= GL_SIZE_LIMIT) { in BitmapRegionTileSource()
88 mPreview = new BitmapTexture(preview); in BitmapRegionTileSource()
94 preview.getWidth(), preview.getHeight())); in BitmapRegionTileSource()
/packages/apps/Launcher3/WallpaperPicker/src/com/android/photos/
DBitmapRegionTileSource.java396 Bitmap preview = decodePreview(source, previewSize); in BitmapRegionTileSource() local
397 if (preview.getWidth() <= GL_SIZE_LIMIT && preview.getHeight() <= GL_SIZE_LIMIT) { in BitmapRegionTileSource()
398 mPreview = new BitmapTexture(preview); in BitmapRegionTileSource()
404 preview.getWidth(), preview.getHeight())); in BitmapRegionTileSource()
/packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/
DLiveWallpaperPreview.java66 Intent preview = new Intent(activity, LiveWallpaperPreview.class); in showPreview() local
67 preview.putExtra(EXTRA_LIVE_WALLPAPER_INTENT, intent); in showPreview()
68 preview.putExtra(EXTRA_LIVE_WALLPAPER_SETTINGS, info.getSettingsActivity()); in showPreview()
69 preview.putExtra(EXTRA_LIVE_WALLPAPER_PACKAGE, info.getPackageName()); in showPreview()
70 activity.startActivityForResult(preview, code); in showPreview()
/packages/apps/InCallUI/src/com/android/incallui/
DVideoCallFragment.java518 TextureView preview = sPreviewSurface.getTextureView(); in setPreviewSize() local
520 if (preview == null ) { in setPreviewSize()
524 ViewGroup.LayoutParams params = preview.getLayoutParams(); in setPreviewSize()
527 preview.setLayoutParams(params); in setPreviewSize()
/packages/apps/Camera2/src/com/android/camera/
DTextureViewHelper.java72 public TextureViewHelper(TextureView preview, CaptureLayoutHelper helper, in TextureViewHelper() argument
74 mPreview = preview; in TextureViewHelper()
313 Bitmap preview = mPreview.getBitmap(width, height);
314 return Bitmap.createBitmap(preview, 0, 0, width, height, mPreview.getTransform(null), true);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DDrawingPreviewPlacerView.java48 public void addPreview(final AbstractDrawingPreview preview) { in addPreview() argument
49 if (mPreviews.indexOf(preview) < 0) { in addPreview()
50 mPreviews.add(preview); in addPreview()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
DImageSavingTask.java148 private Bitmap createNotificationBitmap(Bitmap preview, Uri sourceUri, ImagePreset preset) { in createNotificationBitmap() argument
151 if (preview != null) { in createNotificationBitmap()
152 return Bitmap.createScaledBitmap(preview, in createNotificationBitmap()
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/
DLiveWallpaperListAdapter.java122 Intent preview = new Intent(WallpaperManager.ACTION_CHANGE_LIVE_WALLPAPER); in onClick() local
123 preview.putExtra(WallpaperManager.EXTRA_LIVE_WALLPAPER_COMPONENT, in onClick()
126 a.startActivityForResultSafely(preview, WallpaperPickerActivity.PICK_LIVE_WALLPAPER); in onClick()
/packages/apps/Camera2/src/com/android/camera/app/
DCameraAppUI.java598 Bitmap preview = mTextureViewHelper.getPreviewBitmap(downSampleFactor);
599 return preview;
617 Bitmap preview = mTextureViewHelper.getPreviewBitmap(previewDownSampleFactor);
618 if (preview != null) {
619 canvas.drawBitmap(preview, null, mTextureViewHelper.getPreviewArea(), null);
/packages/apps/Camera2/src/com/android/camera/tinyplanet/
DTinyPlanetPreview.java66 public void setBitmap(Bitmap preview, Lock lock) { in setBitmap() argument
67 mPreview = preview; in setBitmap()
/packages/apps/Camera/src/com/android/camera/
DCaptureAnimManager.java103 public boolean drawAnimation(GLCanvas canvas, CameraScreenNail preview, in drawAnimation() argument
136 preview.directDraw(canvas, (int) mX, (int) mY, in drawAnimation()
DSwitchAnimManager.java73 int height, CameraScreenNail preview, RawTexture review) { in drawAnimation() argument
110 preview.directDraw(canvas, previewX, previewY, Math.round(previewWidth), in drawAnimation()
/packages/apps/Launcher3/util/com/android/launcher3/
DDecoderRing.java223 if (widget.preview != null) { in main()
224 writeImageData(widget.preview.data, prefix + "_preview.png"); in main()

12