/packages/apps/Settings/src/com/android/settings/accessibility/ |
H A D | EdgeTypePreference.java | 56 final SubtitleView preview = (SubtitleView) view.findViewById(R.id.preview); 58 preview.setForegroundColor(DEFAULT_FOREGROUND_COLOR); 59 preview.setBackgroundColor(DEFAULT_BACKGROUND_COLOR); 60 preview.setTextSize(DEFAULT_FONT_SIZE); 63 preview.setEdgeType(value); 64 preview.setEdgeColor(DEFAULT_EDGE_COLOR);
|
H A D | PresetPreference.java | 52 final SubtitleView previewText = (SubtitleView) view.findViewById(R.id.preview);
|
H A D | CaptionPropertiesFragment.java | 135 final SubtitleView preview = mPreviewText; 136 if (preview != null) { 138 applyCaptionProperties(mCaptioningManager, preview, styleId); 144 preview.setText(localizedText); 146 preview.setText(R.string.captioning_preview_text);
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | WidgetPreviewLoader.java | 217 Bitmap preview = null; 220 preview = readFromDb(name, unusedBitmap); 223 if (preview != null) { 225 mLoadedPreviews.put(name, new WeakReference<Bitmap>(preview)); 227 return preview; 231 preview = generatedPreview; 232 if (preview != unusedBitmap) { 237 mLoadedPreviews.put(name, new WeakReference<Bitmap>(preview)); 249 return preview; 339 private void writeToDb(Object o, Bitmap preview) { argument 409 generatePreview(Object info, Bitmap preview) argument 423 generateWidgetPreview(AppWidgetProviderInfo info, Bitmap preview) argument 441 generateWidgetPreview(ComponentName provider, int previewImage, int iconId, int cellHSpan, int cellVSpan, int maxPreviewWidth, int maxPreviewHeight, Bitmap preview, int[] preScaledWidthOut) argument 556 generateShortcutPreview( ResolveInfo info, int maxWidth, int maxHeight, Bitmap preview) argument [all...] |
H A D | PagedViewWidget.java | 97 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 D | AppsCustomizePagedView.java | 256 // Save the default widget preview background 271 // The padding on the non-matched dimension for the default widget preview icons 698 // Get the widget preview as the drag representation 702 // If the ImageView doesn't have a drawable yet, the widget preview hasn't been loaded and 710 Bitmap preview; 737 preview = mWidgetPreviewLoader.generateWidgetPreview(createWidgetInfo.componentName, 741 // Compare the size of the drag preview to the preview in the AppsCustomize tray 744 scale = previewWidthInAppsCustomize / (float) preview.getWidth(); 747 // might be extra pixels around the preview itsel [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | WidgetPreviewLoader.java | 225 Bitmap preview = null; 228 preview = readFromDb(name, unusedBitmap); 231 if (preview != null) { 233 mLoadedPreviews.put(name, new WeakReference<Bitmap>(preview)); 235 return preview; 239 preview = generatedPreview; 240 if (preview != unusedBitmap) { 245 mLoadedPreviews.put(name, new WeakReference<Bitmap>(preview)); 257 return preview; 347 private void writeToDb(Object o, Bitmap preview) { argument 453 generatePreview(Object info, Bitmap preview) argument 467 generateWidgetPreview(AppWidgetProviderInfo info, Bitmap preview) argument 485 generateWidgetPreview(ComponentName provider, int previewImage, int iconId, int cellHSpan, int cellVSpan, int maxPreviewWidth, int maxPreviewHeight, Bitmap preview, int[] preScaledWidthOut) argument 600 generateShortcutPreview( ResolveInfo info, int maxWidth, int maxHeight, Bitmap preview) argument [all...] |
H A D | PagedViewWidget.java | 108 FastBitmapDrawable preview = (FastBitmapDrawable) image.getDrawable(); 110 mInfo != null && preview != null && preview.getBitmap() != null) { 111 mWidgetPreviewLoader.recycleBitmap(mInfo, preview.getBitmap()); 162 void applyPreview(FastBitmapDrawable preview, int index) { argument 165 if (preview != null) { 167 image.setImageDrawable(preview); 171 int centerAmount = (imageSize[0] - preview.getIntrinsicWidth()) / 2;
|
H A D | AppsCustomizePagedView.java | 254 // Save the default widget preview background 266 // The padding on the non-matched dimension for the default widget preview icons 694 // Get the widget preview as the drag representation 698 // If the ImageView doesn't have a drawable yet, the widget preview hasn't been loaded and 706 Bitmap preview; 733 preview = getWidgetPreviewLoader().generateWidgetPreview(createWidgetInfo.componentName, 737 // Compare the size of the drag preview to the preview in the AppsCustomize tray 740 scale = previewWidthInAppsCustomize / (float) preview.getWidth(); 743 // might be extra pixels around the preview itsel [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
H A D | AttachmentTile.java | 65 * Returns true if the attachment should be rendered as a tile. with a large image preview. 193 // preview fills up at least 1 dimension 204 // preview is small. just center 235 public Bitmap preview; field in class:AttachmentTile.AttachmentPreview 245 dest.writeParcelable(preview, 0); 263 preview = in.readParcelable(null); 266 public AttachmentPreview(Attachment attachment, Bitmap preview) { argument 268 this.preview = preview; 273 void set(Attachment attachment, Bitmap preview); argument [all...] |
H A D | AttachmentTileGrid.java | 211 for (AttachmentPreview preview : previews) { 212 mAttachmentPreviews.put(preview.attachmentIdentifier, preview); 218 * Save the preview for an attachment 221 public void set(Attachment attachment, Bitmap preview) { argument 225 attachmentIdentifier, new AttachmentPreview(attachment, preview)); 230 * Returns a saved preview that was previously set 239 return attachmentPreview.preview;
|
/packages/apps/Camera2/src/com/android/camera/tinyplanet/ |
H A D | TinyPlanetPreview.java | 29 * 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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | PreviewPlacerView.java | 49 public void addPreview(final AbstractDrawingPreview preview) { argument 50 mPreviews.add(preview);
|
H A D | GestureTrailsPreview.java | 37 * Draw gesture trail preview graphics during gesture. 68 final GestureTrailsPreview preview = getOuterInstance(); 69 if (preview == null) return; 72 preview.getDrawingView().invalidate(); 158 * Draws the preview 159 * @param canvas The canvas where the preview is drawn. 184 * Set the position of the preview. 185 * @param tracker The new location of the preview is based on the points in PointerTracker.
|
/packages/apps/Gallery2/src/com/android/photos/ |
H A D | BitmapRegionTileSource.java | 86 Bitmap preview = decodePreview(path, previewSize); 87 if (preview.getWidth() <= GL_SIZE_LIMIT && preview.getHeight() <= GL_SIZE_LIMIT) { 88 mPreview = new BitmapTexture(preview); 91 "Failed to create preview of apropriate size! " 94 preview.getWidth(), preview.getHeight()));
|
/packages/apps/Camera/src/com/android/camera/ |
H A D | CaptureAnimManager.java | 45 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 D | SwitchAnimManager.java | 27 * 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 D | LiveWallpaperPreview.java | 62 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/apps/Launcher3/protos/ |
H A D | backup.proto | 84 optional Resource preview = 5;
|
/packages/experimental/BugReportSender/src/com/android/bugreportsender/ |
H A D | BugReportPreviewActivity.java | 29 mText = (TextView) findViewById(R.id.preview);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/ |
H A D | ImageSavingTask.java | 148 private Bitmap createNotificationBitmap(Bitmap preview, Uri sourceUri, ImagePreset preset) { argument 151 if (preview != null) { 152 return Bitmap.createScaledBitmap(preview,
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/ |
H A D | LiveWallpaperListAdapter.java | 122 Intent preview = new Intent(WallpaperManager.ACTION_CHANGE_LIVE_WALLPAPER); 123 preview.putExtra(WallpaperManager.EXTRA_LIVE_WALLPAPER_COMPONENT, 126 a.startActivityForResultSafely(preview, WallpaperPickerActivity.PICK_LIVE_WALLPAPER);
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/photos/ |
H A D | BitmapRegionTileSource.java | 399 Bitmap preview = decodePreview(source, previewSize); 400 if (preview.getWidth() <= GL_SIZE_LIMIT && preview.getHeight() <= GL_SIZE_LIMIT) { 401 mPreview = new BitmapTexture(preview); 404 "Failed to create preview of apropriate size! " 407 preview.getWidth(), preview.getHeight()));
|
/packages/apps/Settings/src/com/android/settings/ |
H A D | Display.java | 55 mPreview = (TextView) findViewById(R.id.preview);
|
H A D | KeyguardAppWidgetPickActivity.java | 302 // Load the preview image if possible 314 Log.w(TAG, "Can't load widget preview drawable 0x" + 327 // Generate a preview image if we couldn't load one 345 // Scale to fit width only - let the widget preview be clipped in the 357 Bitmap preview = Bitmap.createBitmap(bitmapWidth, bitmapHeight, 360 // Draw the scaled preview into the final bitmap 362 renderDrawableToBitmap(drawable, preview, 0, 0, finalPreviewWidth, 368 c.setBitmap(preview); 381 return preview;
|