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

/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/
H A DShortcutDragPreviewProvider.java61 public float getScaleAndPosition(Bitmap preview, int[] outPos) { argument
71 outPos[0] += Math.round(scale * iconLeft + (scale * iconSize - preview.getWidth()) / 2 +
73 outPos[1] += Math.round((scale * mView.getHeight() - preview.getHeight()) / 2
/packages/apps/Launcher3/src/com/android/launcher3/widget/
H A DPendingItemDragHelper.java57 public void setPreview(RemoteViews preview) { argument
58 mPreview = preview;
67 * @param previewViewWidth The width of {@link WidgetImageView} displaying the preview
75 Bitmap preview = null;
90 preview = LivePreviewWidgetCell.generateFromRemoteViews(launcher, mPreview,
93 if (preview == null) {
94 preview = app.getWidgetCache().generateWidgetPreview(
108 scale = previewBounds.width() / (float) preview.getWidth();
117 preview = li.createScaledBitmapWithoutShadow(icon, 0);
119 scale = ((float) launcher.getDeviceProfile().iconSizePx) / preview
156 convertPreviewToAlphaBitmap(Bitmap preview) argument
[all...]
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/
H A DHardwareCameraPreview.java29 * A hardware accelerated preview texture for the camera. This is the preferred CameraPreview
38 private CameraPreview preview; field in class:HardwareCameraPreview
42 preview = new CameraPreview(this);
48 CameraManager.get().setSurface(preview);
54 CameraManager.get().setSurface(preview);
65 CameraManager.get().setSurface(preview);
72 preview.setShown();
78 preview.onVisibilityChanged(visibility);
84 preview.onDetachedFromWindow();
90 preview
[all...]
H A DSoftwareCameraPreview.java28 * A software rendered preview surface for the camera. This renders slower and causes more jank, so
36 private final CameraPreview preview; field in class:SoftwareCameraPreview
40 preview = new CameraPreview(this);
46 CameraManager.get().setSurface(preview);
55 CameraManager.get().setSurface(preview);
67 preview.setShown();
73 preview.onVisibilityChanged(visibility);
79 preview.onDetachedFromWindow();
85 preview.onAttachedToWindow();
91 preview
[all...]
H A DCameraManager.java52 * <li>Call setSurface to control where the preview is shown
53 * <li>Call openCamera to request the camera start preview
110 /** The preview view to show the preview on */
116 /** Tracks whether the preview has hardware acceleration */
188 * Sets the surface to use to display the preview This must only be called AFTER the CameraPreview
191 * @param preview The preview surface view
193 void setSurface(final CameraPreview preview) { argument
194 if (preview
[all...]
/packages/apps/Dialer/java/com/android/incallui/video/protocol/
H A DVideoCallScreenDelegate.java48 void setSurfaceViews(SurfaceView preview, SurfaceView remote); argument
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
H A DDragPreviewProvider.java42 * A utility class to generate preview bitmap for dragging.
50 // The padding added to the drag view during the preview generation.
142 public final void generateDragOutline(Bitmap preview) { argument
147 mOutlineGeneratorCallback = new OutlineGeneratorCallback(preview);
162 public float getScaleAndPosition(Bitmap preview, int[] outPos) { argument
167 // app widget scale should not affect the scale of the preview.
172 (preview.getWidth() - scale * mView.getWidth() * mView.getScaleX()) / 2);
173 outPos[1] = Math.round(outPos[1] - (1 - scale) * preview.getHeight() / 2
178 protected Bitmap convertPreviewToAlphaBitmap(Bitmap preview) { argument
179 return preview
187 OutlineGeneratorCallback(Bitmap preview) argument
[all...]
/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/Settings/src/com/android/settings/display/
H A DColorModePreferenceFragment.java69 void configureAndInstallPreview(LayoutPreference preview, PreferenceScreen screen) { argument
70 preview.setSelectable(false);
71 screen.addPreference(preview);
76 final LayoutPreference preview = new LayoutPreference(screen.getContext(),
78 configureAndInstallPreview(preview, screen);
/packages/providers/TvProvider/tests/src/com/android/providers/tv/
H A DParametersTest.java72 private ContentValues createDummyChannelValues(int searchable, boolean preview) { argument
76 values.put(Channels.COLUMN_TYPE, preview ? Channels.TYPE_PREVIEW : Channels.TYPE_OTHER);
85 private void verifyChannelCountWithPreview(int expectedCount, boolean preview) { argument
87 .appendQueryParameter(TvContract.PARAM_PREVIEW, String.valueOf(preview)).build();
149 // Check if there is not any preview and non-preview channels.
152 // Insert one preview channel and then check if the count of preview channels is 0 and the
153 // count of non-preview channels is 0.
158 // Insert one non-preview channe
[all...]
/packages/apps/Dialer/java/com/android/dialer/callcomposer/
H A DCameraComposerFragment.java71 private CameraPreviewHost preview; field in class:CameraComposerFragment
100 preview = cameraView.findViewById(R.id.camera_preview);
138 preview.setShown();
170 heightPercent = Math.min((float) cameraView.getHeight() / preview.getView().getHeight(), 1);
/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/Dialer/java/com/android/incallui/
H A DVideoCallPresenter.java64 * <li>{@code VideoCallPresenter} creates the preview surface.
68 * <li>{@code VideoCallPresenter} adjusts size of the preview surface to match the aspect ratio of
70 * <li>{@code VideoCallPresenter} informs telephony of the new preview surface.
106 /** Tracks the state of the preview surface negotiation with the telephony layer. */
409 public void setSurfaceViews(SurfaceView preview, SurfaceView remote) { argument
769 * Adjusts the current video mode by setting up the preview and display surfaces as necessary.
772 * to adjust size and orientation of preview surface here.
962 // Check if the preview surface is ready yet; if it is, set it on the {@code VideoCall}.
972 * Changes the dimensions of the preview surface.
982 // Resize the surface used to display the preview vide
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/
H A DWidgetPreviewLoader.java89 * Generates the widget preview on {@link AsyncTask#THREAD_POOL_EXECUTOR}. Must be
142 @Thunk void writeToDb(WidgetCacheKey key, long[] versions, Bitmap preview) { argument
150 values.put(CacheDb.COLUMN_PREVIEW_BITMAP, Utilities.flattenBitmap(preview));
170 * 1. Any preview generated for an old package version is removed
171 * 2. Any preview for an absent package is removed
210 // This preview is associated with a different package/user, no need to remove.
249 * Reads the preview bitmap from the DB or null if the preview is not in the DB.
280 Log.w(TAG, "Error loading preview from DB", e);
301 * Generates the widget preview fro
311 generateWidgetPreview(BaseActivity launcher, LauncherAppWidgetProviderInfo info, int maxPreviewWidth, Bitmap preview, int[] preScaledWidthOut) argument
448 generateShortcutPreview(BaseActivity launcher, ShortcutConfigActivityInfo info, int maxWidth, int maxHeight, Bitmap preview) argument
598 onPostExecute(final Bitmap preview) argument
628 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 473 milliseconds