/packages/apps/Launcher2/src/com/android/launcher2/ |
D | WidgetPreviewLoader.java | 232 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 …]
|
D | PagedViewWidget.java | 97 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()
|
D | AppsCustomizePagedView.java | 703 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/ |
D | WidgetPreviewLoader.java | 248 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 …]
|
D | PagedViewWidget.java | 110 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()
|
D | AppsCustomizePagedView.java | 622 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()
|
D | LauncherBackupHelper.java | 918 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/ |
D | EdgeTypePreference.java | 56 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()
|
D | CaptionPropertiesFragment.java | 177 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()
|
D | PresetPreference.java | 53 final SubtitleView previewText = (SubtitleView) view.findViewById(R.id.preview); in onBindListItem()
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | AttachmentTile.java | 246 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
|
D | AttachmentTileGrid.java | 243 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/ |
D | BitmapRegionTileSource.java | 86 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/ |
D | BitmapRegionTileSource.java | 396 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/ |
D | LiveWallpaperPreview.java | 66 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/ |
D | VideoCallFragment.java | 518 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/ |
D | TextureViewHelper.java | 72 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/ |
D | DrawingPreviewPlacerView.java | 48 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/ |
D | ImageSavingTask.java | 148 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/ |
D | LiveWallpaperListAdapter.java | 122 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/ |
D | CameraAppUI.java | 598 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/ |
D | TinyPlanetPreview.java | 66 public void setBitmap(Bitmap preview, Lock lock) { in setBitmap() argument 67 mPreview = preview; in setBitmap()
|
/packages/apps/Camera/src/com/android/camera/ |
D | CaptureAnimManager.java | 103 public boolean drawAnimation(GLCanvas canvas, CameraScreenNail preview, in drawAnimation() argument 136 preview.directDraw(canvas, (int) mX, (int) mY, in drawAnimation()
|
D | SwitchAnimManager.java | 73 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/ |
D | DecoderRing.java | 223 if (widget.preview != null) { in main() 224 writeImageData(widget.preview.data, prefix + "_preview.png"); in main()
|