Searched defs:preview (Results 1 - 13 of 13) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/
H A DShortcutDragPreviewProvider.java82 public float getScaleAndPosition(Bitmap preview, int[] outPos) { argument
92 outPos[0] += Math.round(scale * iconLeft + (scale * iconSize - preview.getWidth()) / 2 +
94 outPos[1] += Math.round((scale * mView.getHeight() - preview.getHeight()) / 2
/packages/apps/Launcher3/src/com/android/launcher3/widget/
H A DPendingItemPreviewProvider.java39 public PendingItemPreviewProvider(View view, PendingAddItemInfo addInfo, Bitmap preview) { argument
42 mPreviewBitmap = preview;
67 // Don't clip alpha values for the drag outline if we're using the default widget preview
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
H A DDragPreviewProvider.java35 * A utility class to generate preview bitmap for dragging.
45 // The padding added to the drag view during the preview generation.
161 public float getScaleAndPosition(Bitmap preview, int[] outPos) { argument
164 outPos[0] = Math.round(outPos[0] - (preview.getWidth() - scale * mView.getWidth()) / 2);
165 outPos[1] = Math.round(outPos[1] - (1 - scale) * preview.getHeight() / 2 - previewPadding / 2);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DDrawingPreviewPlacerView.java48 public void addPreview(final AbstractDrawingPreview preview) { argument
49 if (mPreviews.indexOf(preview) < 0) {
50 mPreviews.add(preview);
/packages/apps/Camera2/src/com/android/camera/tinyplanet/
H A DTinyPlanetPreview.java29 * Shows a preview of the TinyPlanet on the screen while editing.
34 * preview size.
38 * Called when the preview size has changed.
40 * @param sizePx the size in pixels of the square preview area
66 public void setBitmap(Bitmap preview, Lock lock) { argument
67 mPreview = preview;
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
H A DImageSavingTask.java148 private Bitmap createNotificationBitmap(Bitmap preview, Uri sourceUri, ImagePreset preset) { argument
151 if (preview != null) {
152 return Bitmap.createScaledBitmap(preview,
/packages/apps/Launcher2/src/com/android/launcher2/
H A DPagedViewWidget.java97 FastBitmapDrawable preview = (FastBitmapDrawable) image.getDrawable();
99 mInfo != null && preview != null && preview.getBitmap() != null) {
100 mWidgetPreviewLoader.recycleBitmap(mInfo, preview.getBitmap());
148 void applyPreview(FastBitmapDrawable preview, int index) { argument
151 if (preview != null) {
153 image.setImageDrawable(preview);
157 int centerAmount = (imageSize[0] - preview.getIntrinsicWidth()) / 2;
H A DWidgetPreviewLoader.java232 Bitmap preview = null;
235 preview = readFromDb(name, unusedBitmap);
238 if (preview != null) {
240 mLoadedPreviews.put(name, new WeakReference<Bitmap>(preview));
242 return preview;
246 preview = generatedPreview;
247 if (preview != unusedBitmap) {
252 mLoadedPreviews.put(name, new WeakReference<Bitmap>(preview));
264 return preview;
357 private void writeToDb(Object o, Bitmap preview) { argument
443 generatePreview(Object info, Bitmap preview) argument
457 generateWidgetPreview(AppWidgetProviderInfo info, Bitmap preview) argument
475 generateWidgetPreview(AppWidgetProviderInfo info, int cellHSpan, int cellVSpan, int maxPreviewWidth, int maxPreviewHeight, Bitmap preview, int[] preScaledWidthOut) argument
619 generateShortcutPreview( ResolveInfo info, int maxWidth, int maxHeight, Bitmap preview) argument
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DAttachmentTile.java65 * Returns true if the attachment should be rendered as a tile. with a large image preview.
204 // preview fills up at least 1 dimension
215 // preview is small. just center
246 public Bitmap preview; field in class:AttachmentTile.AttachmentPreview
256 dest.writeParcelable(preview, 0);
274 preview = in.readParcelable(null);
277 public AttachmentPreview(Attachment attachment, Bitmap preview) { argument
279 this.preview = preview;
284 void set(Attachment attachment, Bitmap preview); argument
[all...]
H A DAttachmentTileGrid.java243 for (AttachmentPreview preview : previews) {
244 mAttachmentPreviews.put(preview.attachmentIdentifier, preview);
250 * Save the preview for an attachment
253 public void set(Attachment attachment, Bitmap preview) { argument
257 attachmentIdentifier, new AttachmentPreview(attachment, preview));
262 * Returns a saved preview that was previously set
271 return attachmentPreview.preview;
/packages/apps/Camera2/src/com/android/camera/
H A DTextureViewHelper.java43 * (e.g. bottom bar) of the preview size change.
76 public TextureViewHelper(TextureView preview, CaptureLayoutHelper helper, argument
78 mPreview = preview;
92 * transform matrix will be automatically adjusted based on the preview
123 * Transforms the preview with the identity matrix, ensuring there is no
124 * scaling on the preview. It also calls onPreviewSizeChanged, to trigger
125 * any necessary preview size changing callbacks.
172 * This returns the rect that is available to display the preview, and
186 * @param aspectRatio the aspectRatio that the preview should be
207 Log.e(TAG, "Invalid preview siz
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/
H A DWidgetPreviewLoader.java90 * Generates the widget preview on {@link AsyncTask#THREAD_POOL_EXECUTOR}. Must be
140 @Thunk void writeToDb(WidgetCacheKey key, long[] versions, Bitmap preview) { argument
148 values.put(CacheDb.COLUMN_PREVIEW_BITMAP, Utilities.flattenBitmap(preview));
168 * 1. Any preview generated for an old package version is removed
169 * 2. Any preview for an absent package is removed
235 * Reads the preview bitmap from the DB or null if the preview is not in the DB.
266 Log.w(TAG, "Error loading preview from DB", e);
287 * Generates the widget preview from either the {@link AppWidgetManagerCompat} or cache
292 * @param maxPreviewWidth width of the preview o
297 generateWidgetPreview(Launcher launcher, LauncherAppWidgetProviderInfo info, int maxPreviewWidth, Bitmap preview, int[] preScaledWidthOut) argument
410 generateShortcutPreview( Launcher launcher, ActivityInfo info, int maxWidth, int maxHeight, Bitmap preview) argument
596 onPostExecute(final Bitmap preview) argument
626 onCancelled(final Bitmap preview) argument
[all...]
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
H A DCameraManager.java69 * <li>Call setSurface to control where the preview is shown
70 * <li>Call openCamera to request the camera start preview
170 /** The preview view to show the preview on */
176 /** Tracks whether the preview has hardware acceleration */
259 * Sets the surface to use to display the preview
261 * @param preview The preview surface view
263 void setSurface(final CameraPreview preview) { argument
264 if (preview
[all...]

Completed in 229 milliseconds