Home
last modified time | relevance | path

Searched refs:preview (Results 1 – 25 of 49) sorted by relevance

12

/packages/apps/Launcher3/src/com/android/launcher3/widget/
DPendingItemDragHelper.java57 public void setPreview(RemoteViews preview) { in setPreview() argument
58 mPreview = preview; in setPreview()
75 Bitmap preview = null; in startDrag() local
90 preview = LivePreviewWidgetCell.generateFromRemoteViews(launcher, mPreview, in startDrag()
93 if (preview == null) { in startDrag()
94 preview = app.getWidgetCache().generateWidgetPreview( in startDrag()
108 scale = previewBounds.width() / (float) preview.getWidth(); in startDrag()
117 preview = li.createScaledBitmapWithoutShadow(icon, 0); in startDrag()
119 scale = ((float) launcher.getDeviceProfile().iconSizePx) / preview.getWidth(); in startDrag()
146 + (int) ((scale * preview.getWidth() - preview.getWidth()) / 2); in startDrag()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DWidgetPreviewLoader.java145 @Thunk void writeToDb(WidgetCacheKey key, long[] versions, Bitmap preview) { in writeToDb() argument
153 values.put(CacheDb.COLUMN_PREVIEW_BITMAP, GraphicsUtils.flattenBitmap(preview)); in writeToDb()
315 int maxPreviewWidth, Bitmap preview, int[] preScaledWidthOut) { in generateWidgetPreview() argument
371 if (preview == null) { in generateWidgetPreview()
372 preview = Bitmap.createBitmap(previewWidth, previewHeight, Config.ARGB_8888); in generateWidgetPreview()
373 c.setBitmap(preview); in generateWidgetPreview()
378 if (preview.getHeight() > previewHeight) { in generateWidgetPreview()
379 preview.reconfigure(preview.getWidth(), previewHeight, preview.getConfig()); in generateWidgetPreview()
382 c.setBitmap(preview); in generateWidgetPreview()
387 int x = (preview.getWidth() - previewWidth) / 2; in generateWidgetPreview()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DDragPreviewProvider.java154 public final void generateDragOutline(Bitmap preview) { in generateDragOutline() argument
159 mOutlineGeneratorCallback = new OutlineGeneratorCallback(preview); in generateDragOutline()
174 public float getScaleAndPosition(Bitmap preview, int[] outPos) { in getScaleAndPosition() argument
184 (preview.getWidth() - scale * mView.getWidth() * mView.getScaleX()) / 2); in getScaleAndPosition()
185 outPos[1] = Math.round(outPos[1] - (1 - scale) * preview.getHeight() / 2 in getScaleAndPosition()
190 protected Bitmap convertPreviewToAlphaBitmap(Bitmap preview) { in convertPreviewToAlphaBitmap() argument
191 return preview.copy(Bitmap.Config.ALPHA_8, true); in convertPreviewToAlphaBitmap()
200 OutlineGeneratorCallback(Bitmap preview) { in OutlineGeneratorCallback() argument
201 mPreviewSnapshot = preview; in OutlineGeneratorCallback()
208 Bitmap preview = convertPreviewToAlphaBitmap(mPreviewSnapshot); in run() local
[all …]
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/
DHardwareCameraPreview.java38 private CameraPreview preview; field in HardwareCameraPreview
42 preview = new CameraPreview(this); in HardwareCameraPreview()
48 CameraManager.get().setSurface(preview); in HardwareCameraPreview()
54 CameraManager.get().setSurface(preview); in HardwareCameraPreview()
65 CameraManager.get().setSurface(preview); in HardwareCameraPreview()
72 preview.setShown(); in setShown()
78 preview.onVisibilityChanged(visibility); in onVisibilityChanged()
84 preview.onDetachedFromWindow(); in onDetachedFromWindow()
90 preview.onAttachedToWindow(); in onAttachedToWindow()
96 preview.onRestoreInstanceState(); in onRestoreInstanceState()
[all …]
DSoftwareCameraPreview.java36 private final CameraPreview preview; field in SoftwareCameraPreview
40 preview = new CameraPreview(this); in SoftwareCameraPreview()
46 CameraManager.get().setSurface(preview); in SoftwareCameraPreview()
55 CameraManager.get().setSurface(preview); in SoftwareCameraPreview()
67 preview.setShown(); in setShown()
73 preview.onVisibilityChanged(visibility); in onVisibilityChanged()
79 preview.onDetachedFromWindow(); in onDetachedFromWindow()
85 preview.onAttachedToWindow(); in onAttachedToWindow()
91 preview.onRestoreInstanceState(); in onRestoreInstanceState()
96 widthMeasureSpec = preview.getWidthMeasureSpec(widthMeasureSpec, heightMeasureSpec); in onMeasure()
[all …]
DCameraManager.java193 void setSurface(final CameraPreview preview) { in setSurface() argument
194 if (preview == cameraPreview) { in setSurface()
198 if (preview != null) { in setSurface()
199 Assert.checkArgument(preview.isValid()); in setSurface()
200 preview.setOnTouchListener( in setSurface()
216 cameraPreview = preview; in setSurface()
/packages/apps/Settings/src/com/android/settings/accessibility/
DEdgeTypePreference.java56 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()
DCaptionPropertiesFragment.java146 final SubtitleView preview = mPreviewText; in refreshPreviewText() local
147 if (preview != null) { in refreshPreviewText()
149 applyCaptionProperties(mCaptioningManager, preview, mPreviewViewport, styleId); in refreshPreviewText()
155 preview.setText(localizedText); in refreshPreviewText()
157 preview.setText(R.string.captioning_preview_text); in refreshPreviewText()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accessibility/
DEdgeTypePreference.java56 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()
DCaptionPropertiesFragment.java187 final SubtitleView preview = mPreviewText; in refreshPreviewText() local
188 if (preview != null) { in refreshPreviewText()
190 applyCaptionProperties(mCaptioningManager, preview, mPreviewViewport, styleId); in refreshPreviewText()
196 preview.setText(localizedText); in refreshPreviewText()
198 preview.setText(R.string.captioning_preview_text); in refreshPreviewText()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DLivePreviewWidgetCell.java42 Bitmap preview = generateFromRemoteViews( in ensurePreview() local
44 if (preview != null) { in ensurePreview()
45 applyPreview(preview); in ensurePreview()
91 Bitmap preview = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888); in generateFromRemoteViews() local
92 Canvas c = new Canvas(preview); in generateFromRemoteViews()
96 return preview; in generateFromRemoteViews()
/packages/apps/WallpaperPicker/src/com/android/photos/
DBitmapRegionTileSource.java314 Bitmap preview = source.getPreviewBitmap(); in BitmapRegionTileSource() local
315 if (preview != null && in BitmapRegionTileSource()
316 preview.getWidth() <= GL_SIZE_LIMIT && preview.getHeight() <= GL_SIZE_LIMIT) { in BitmapRegionTileSource()
317 mPreview = new BitmapTexture(preview); in BitmapRegionTileSource()
323 preview == null ? -1 : preview.getWidth(), in BitmapRegionTileSource()
324 preview == null ? -1 : preview.getHeight())); in BitmapRegionTileSource()
/packages/apps/Gallery2/src/com/android/photos/
DBitmapRegionTileSource.java86 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/ThemePicker/src/com/android/customization/model/clock/
DClockface.java34 private Clockface(String title, String id, Asset preview, Asset thumbnail) { in Clockface() argument
37 mPreview = preview; in Clockface()
94 public Builder setPreview(Asset preview) { in setPreview() argument
95 mPreview = preview; in setPreview()
/packages/apps/Settings/src/com/android/settings/display/
DColorModePreferenceFragment.java100 void configureAndInstallPreview(LayoutPreference preview, PreferenceScreen screen) { in configureAndInstallPreview() argument
101 preview.setSelectable(false); in configureAndInstallPreview()
102 screen.addPreference(preview); in configureAndInstallPreview()
107 final LayoutPreference preview = new LayoutPreference(screen.getContext(), in addStaticPreferences() local
109 configureAndInstallPreview(preview, screen); in addStaticPreferences()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/
DColorModePreferenceFragment.java100 void configureAndInstallPreview(LayoutPreference preview, PreferenceScreen screen) { in configureAndInstallPreview() argument
101 preview.setSelectable(false); in configureAndInstallPreview()
102 screen.addPreference(preview); in configureAndInstallPreview()
107 final LayoutPreference preview = new LayoutPreference(screen.getContext(), in addStaticPreferences() local
109 configureAndInstallPreview(preview, screen); in addStaticPreferences()
/packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/
DLiveWallpaperActivity.java58 Intent preview = new Intent(this, LiveWallpaperPreview.class); in onListItemClick() local
59 preview.putExtra(LiveWallpaperPreview.EXTRA_LIVE_WALLPAPER_INFO, info); in onListItemClick()
60 startActivityForResult(preview, REQUEST_PREVIEW); in onListItemClick()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DDrawingPreviewPlacerView.java48 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/Launcher3/src/com/android/launcher3/shortcuts/
DShortcutDragPreviewProvider.java61 public float getScaleAndPosition(Bitmap preview, int[] outPos) { in getScaleAndPosition() argument
71 outPos[0] += Math.round(scale * iconLeft + (scale * iconSize - preview.getWidth()) / 2 + in getScaleAndPosition()
73 outPos[1] += Math.round((scale * mView.getHeight() - preview.getHeight()) / 2 in getScaleAndPosition()
/packages/providers/TvProvider/tests/src/com/android/providers/tv/
DParametersTest.java72 private ContentValues createDummyChannelValues(int searchable, boolean preview) { in createDummyChannelValues() argument
76 values.put(Channels.COLUMN_TYPE, preview ? Channels.TYPE_PREVIEW : Channels.TYPE_OTHER); in createDummyChannelValues()
85 private void verifyChannelCountWithPreview(int expectedCount, boolean preview) { in verifyChannelCountWithPreview() argument
87 .appendQueryParameter(TvContract.PARAM_PREVIEW, String.valueOf(preview)).build(); in verifyChannelCountWithPreview()
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/
DLiveWallpaperInfo.java45 Intent preview = new Intent(WallpaperManager.ACTION_CHANGE_LIVE_WALLPAPER); in onClick() local
46 preview.putExtra(WallpaperManager.EXTRA_LIVE_WALLPAPER_COMPONENT, in onClick()
48 a.startActivityForResultSafely(preview, in onClick()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
DImageSavingTask.java148 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/Camera2/src/com/android/camera/
DTextureViewHelper.java76 public TextureViewHelper(TextureView preview, CaptureLayoutHelper helper, in TextureViewHelper() argument
78 mPreview = preview; in TextureViewHelper()
420 Bitmap preview = mPreview.getBitmap(width, height);
421 return Bitmap.createBitmap(preview, 0, 0, width, height, mPreview.getTransform(null), true);
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/
DWallpaperCropActivity.java247 Bitmap preview = ((BitmapRegionTileSource) src).getBitmap(); in addReusableBitmap() local
248 if (preview != null && preview.isMutable()) { in addReusableBitmap()
249 mReusableBitmaps.add(preview); in addReusableBitmap()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/
DCameraComposerFragment.java71 private CameraPreviewHost preview; field in CameraComposerFragment
100 preview = cameraView.findViewById(R.id.camera_preview); in onCreateView()
137 preview.setShown(); in setupCamera()
169 heightPercent = Math.min((float) cameraView.getHeight() / preview.getView().getHeight(), 1); in onClick()

12