Searched refs:preview (Results 1 - 11 of 11) sorted by relevance

/packages/apps/Launcher2/src/com/android/launcher2/
H A DPagedViewWidget.java90 FastBitmapDrawable preview = (FastBitmapDrawable) image.getDrawable();
91 if (preview != null && preview.getBitmap() != null) {
92 preview.getBitmap().recycle();
138 void applyPreview(FastBitmapDrawable preview, int index) { argument
141 if (preview != null) {
143 image.setImageDrawable(preview);
147 int centerAmount = (imageSize[0] - preview.getIntrinsicWidth()) / 2;
H A DAppsCustomizePagedView.java337 // Save the default widget preview background
355 // The padding on the non-matched dimension for the default widget preview icons
757 // Get the widget preview as the drag representation
761 // If the ImageView doesn't have a drawable yet, the widget preview hasn't been loaded and
769 Bitmap preview;
791 preview = getWidgetPreview(createWidgetInfo.componentName, createWidgetInfo.previewImage,
794 // Determine the image view drawable scale relative to the preview
798 new RectF(0f, 0f, (float) preview.getWidth(), (float) preview.getHeight()),
807 preview
[all...]
/packages/apps/Camera/src/com/android/camera/
H A DCaptureAnimManager.java45 private float mX; // The center of the whole view including preview and review.
52 /* preview: camera preview view.
103 public boolean drawAnimation(GLCanvas canvas, CameraScreenNail preview, argument
136 preview.directDraw(canvas, (int) mX, (int) mY,
H A DSwitchAnimManager.java27 * An image of the previous camera zooms in and fades out. The preview of the
45 // know how much the preview is scaled and scale the review the same amount.
46 // For example, the preview is not full screen in film strip mode.
70 // preview: camera preview view.
71 // review: snapshot of the preview before switching the camera.
73 int height, CameraScreenNail preview, RawTexture review) {
78 // Calculate the position and the size of the preview.
90 // Calculate how much preview is scaled.
107 // Draw the preview
72 drawAnimation(GLCanvas canvas, int x, int y, int width, int height, CameraScreenNail preview, RawTexture review) argument
[all...]
/packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/
H A DLiveWallpaperPreview.java62 Log.w(LOG_TAG, "Failure showing preview", new Throwable());
65 Intent preview = new Intent(activity, LiveWallpaperPreview.class);
66 preview.putExtra(EXTRA_LIVE_WALLPAPER_INTENT, intent);
67 preview.putExtra(EXTRA_LIVE_WALLPAPER_SETTINGS, info.getSettingsActivity());
68 preview.putExtra(EXTRA_LIVE_WALLPAPER_PACKAGE, info.getPackageName());
69 activity.startActivityForResult(preview, code);
/packages/experimental/BugReportSender/src/com/android/bugreportsender/
H A DBugReportPreviewActivity.java29 mText = (TextView) findViewById(R.id.preview);
/packages/apps/Settings/src/com/android/settings/
H A DDisplay.java55 mPreview = (TextView) findViewById(R.id.preview);
H A DKeyguardAppWidgetPickActivity.java298 // Load the preview image if possible
310 Log.w(TAG, "Can't load widget preview drawable 0x" +
323 // Generate a preview image if we couldn't load one
341 // Scale to fit width only - let the widget preview be clipped in the
353 Bitmap preview = Bitmap.createBitmap(bitmapWidth, bitmapHeight,
356 // Draw the scaled preview into the final bitmap
358 renderDrawableToBitmap(drawable, preview, 0, 0, finalPreviewWidth,
364 c.setBitmap(preview);
377 return preview;
H A DDreamBackend.java211 public void preview(DreamInfo dreamInfo) { method in class:DreamBackend
212 logd("preview(%s)", dreamInfo);
218 Log.w(TAG, "Failed to preview " + dreamInfo, e);
/packages/apps/LegacyCamera/src/com/android/camera/
H A DCamera.java86 /** The Camera activity which can preview and take pictures. */
218 private static final int IDLE = 1; // preview is active
352 // make preview screen appear as soon as possible.
560 // Let popup window, indicator control or preview frame handle the
1008 // that of the preview.
1125 * To reduce startup time, we start the camera open and preview threads.
1126 * We make sure the preview is started at the end of onCreate.
1150 // we need to reset exposure for the preview
1158 SurfaceView preview = (SurfaceView) findViewById(R.id.camera_preview);
1159 SurfaceHolder holder = preview
[all...]
H A DVideoCamera.java158 // An review image having same size as preview. It is displayed when
229 boolean mPreviewing = false; // True if preview is started.
293 // Restart the preview if display rotation has changed.
382 * To reduce startup time, we start the preview in another thread.
383 * We make sure the preview is started at the end of onCreate.
428 SurfaceView preview = (SurfaceView) findViewById(R.id.camera_preview);
429 SurfaceHolder holder = preview.getHolder();
441 // a little more time for the effects preview to be ready. We do not
444 // the preview is running. This becomes critical when the camera is
463 // Make sure preview i
[all...]

Completed in 653 milliseconds