/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
D | DragPreviewProvider.java | 132 public final void generateDragOutline(Bitmap preview) { in generateDragOutline() argument 137 mOutlineGeneratorCallback = new OutlineGeneratorCallback(preview); in generateDragOutline() 152 public float getScaleAndPosition(Drawable preview, int[] outPos) { in getScaleAndPosition() argument 162 (preview.getIntrinsicWidth() - scale * mView.getWidth() * mView.getScaleX()) / 2); in getScaleAndPosition() 163 outPos[1] = Math.round(outPos[1] - (1 - scale) * preview.getIntrinsicHeight() / 2 in getScaleAndPosition() 184 protected Bitmap convertPreviewToAlphaBitmap(Bitmap preview) { in convertPreviewToAlphaBitmap() argument 185 return preview.copy(Bitmap.Config.ALPHA_8, true); in convertPreviewToAlphaBitmap() 194 OutlineGeneratorCallback(Bitmap preview) { in OutlineGeneratorCallback() argument 195 mPreviewSnapshot = preview; in OutlineGeneratorCallback() 202 Bitmap preview = convertPreviewToAlphaBitmap(mPreviewSnapshot); in run() local [all …]
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/ |
D | HardwareCameraPreview.java | 38 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 …]
|
D | SoftwareCameraPreview.java | 36 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 …]
|
D | CameraManager.java | 193 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/Launcher3/src/com/android/launcher3/widget/ |
D | DatabaseWidgetPreviewLoader.java | 197 @Thunk void writeToDb(WidgetCacheKey key, long[] versions, Bitmap preview) { in writeToDb() argument 205 values.put(CacheDb.COLUMN_PREVIEW_BITMAP, GraphicsUtils.flattenBitmap(preview)); in writeToDb() 381 int maxPreviewWidth, Bitmap preview, int[] preScaledWidthOut) { in generateWidgetPreview() argument 441 if (preview == null) { in generateWidgetPreview() 443 preview = Bitmap.createBitmap(previewWidth, previewHeight, Config.ARGB_8888); in generateWidgetPreview() 444 c.setBitmap(preview); in generateWidgetPreview() 449 preview.reconfigure(previewWidth, previewHeight, preview.getConfig()); in generateWidgetPreview() 453 preview = Bitmap.createBitmap(previewWidth, previewHeight, Config.ARGB_8888); in generateWidgetPreview() 456 c.setBitmap(preview); in generateWidgetPreview() 522 return new Pair<>(preview, savePreviewImage); in generateWidgetPreview() [all …]
|
D | PendingItemDragHelper.java | 95 Drawable preview = null; in startDrag() local 136 if (preview == null && mAppWidgetHostViewPreview == null) { in startDrag() 144 preview = p; in startDrag() 161 previewWidth = preview.getIntrinsicWidth(); in startDrag() 162 previewHeight = preview.getIntrinsicHeight(); in startDrag() 174 preview = new FastBitmapDrawable( in startDrag() 176 previewWidth = preview.getIntrinsicWidth(); in startDrag() 177 previewHeight = preview.getIntrinsicHeight(); in startDrag() 217 launcher.getDragController().startDrag(preview, draggableView, dragLayerX, dragLayerY, in startDrag() 223 protected Bitmap convertPreviewToAlphaBitmap(Bitmap preview) { in convertPreviewToAlphaBitmap() argument [all …]
|
D | BaseWidgetSheet.java | 162 View preview = v.getAppWidgetHostViewPreview(); in beginDraggingWidget() local 164 getPopupContainer().getLocationInDragLayer(preview, loc); in beginDraggingWidget() 166 Rect r = new Rect(0, 0, preview.getWidth(), preview.getHeight()); in beginDraggingWidget() 167 dragHelper.startDrag(r, preview.getMeasuredWidth(), preview.getMeasuredWidth(), in beginDraggingWidget()
|
D | CachingWidgetPreviewLoader.java | 172 preview -> { in loadPreview() 176 item, previewSize, new CacheResult.Loaded(preview)); in loadPreview() 181 .forEach(c -> c.onPreviewLoaded(preview)); in loadPreview() 186 callback.onPreviewLoaded(preview); in loadPreview()
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | EdgeTypePreference.java | 56 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()
|
D | CaptionAppearanceFragment.java | 141 final SubtitleView preview = mPreviewText; in refreshPreviewText() local 142 if (preview != null) { in refreshPreviewText() 144 applyCaptionProperties(mCaptioningManager, preview, mPreviewViewport, styleId); in refreshPreviewText() 150 preview.setText(localizedText); in refreshPreviewText() 152 preview.setText(R.string.captioning_preview_text); in refreshPreviewText()
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | MediaAnimationController.java | 84 public void attachView(TextureView video, View preview, View playButton) { in attachView() argument 85 updateViewStates(preview, playButton); in attachView() 100 preview.setVisibility(View.VISIBLE); in attachView() 109 if (preview.getVisibility() == View.VISIBLE) { in attachView() 110 preview.setVisibility(View.GONE); in attachView() 124 video.setOnClickListener(v -> updateViewStates(preview, playButton)); in attachView()
|
D | VectorAnimationController.java | 85 public void attachView(TextureView video, View preview, View playButton) { in attachView() argument 86 mPreviewDrawable = preview.getForeground(); in attachView() 88 updateViewStates(preview, playButton); in attachView() 89 preview.setOnClickListener(v -> updateViewStates(preview, playButton)); in attachView()
|
/packages/apps/WallpaperPicker/src/com/android/photos/ |
D | BitmapRegionTileSource.java | 314 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/ |
D | BitmapRegionTileSource.java | 86 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/Launcher3/src/com/android/launcher3/widget/picker/ |
D | WidgetsListTableViewHolderBinder.java | 126 Bitmap preview = mWidgetPreviewLoader.getPreview(widgetItem, previewSize); in bindViewHolder() local 127 if (preview == null) { in bindViewHolder() 130 widget.applyPreview(preview); in bindViewHolder() 170 View preview = widget.findViewById(R.id.widget_preview_container); in recycleTableBeforeBinding() local 171 preview.setOnClickListener(mIconClickListener); in recycleTableBeforeBinding() 172 preview.setOnLongClickListener(mIconLongClickListener); in recycleTableBeforeBinding()
|
/packages/apps/ThemePicker/src/com/android/customization/model/clock/ |
D | Clockface.java | 34 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/ |
D | ColorModePreferenceFragment.java | 103 void configureAndInstallPreview(LayoutPreference preview, PreferenceScreen screen) { in configureAndInstallPreview() argument 104 preview.setSelectable(false); in configureAndInstallPreview() 105 screen.addPreference(preview); in configureAndInstallPreview() 110 final LayoutPreference preview = new LayoutPreference(screen.getContext(), in addStaticPreferences() local 112 configureAndInstallPreview(preview, screen); in addStaticPreferences()
|
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/ |
D | TwoPanelSettingsFragment.java | 240 Fragment preview = getChildFragmentManager().findFragmentById( in onPreferenceStartFragment() local 242 if (preview != null && !(preview instanceof DummyFragment)) { in onPreferenceStartFragment() 243 if (!(preview instanceof InfoFragment)) { in onPreferenceStartFragment() 406 Fragment preview = getChildFragmentManager().findFragmentById( in onPreferenceDisplayDialog() local 408 if (preview != null && !(preview instanceof DummyFragment)) { in onPreferenceDisplayDialog() 409 if (preview instanceof NavigationCallback) { in onPreferenceDisplayDialog() 410 ((NavigationCallback) preview).onNavigateToPreview(); in onPreferenceDisplayDialog() 787 Fragment preview = in back() local 789 if (isA11yOn() && preview instanceof InfoFragment && preview.getView() != null in back() 790 && preview.getView().hasFocus()) { in back()
|
/packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/ |
D | LiveWallpaperActivity.java | 58 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/ |
D | DrawingPreviewPlacerView.java | 48 public void addPreview(final AbstractDrawingPreview preview) { in addPreview() argument 49 if (mPreviews.indexOf(preview) < 0) { in addPreview() 50 mPreviews.add(preview); in addPreview()
|
/packages/providers/TvProvider/tests/src/com/android/providers/tv/ |
D | ParametersTest.java | 72 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/Launcher3/src/com/android/launcher3/shortcuts/ |
D | ShortcutDragPreviewProvider.java | 86 public float getScaleAndPosition(Drawable preview, int[] outPos) { in getScaleAndPosition() argument 97 scale * iconLeft + (scale * iconSize - preview.getIntrinsicWidth()) / 2 in getScaleAndPosition() 99 outPos[1] += Math.round((scale * mView.getHeight() - preview.getIntrinsicHeight()) / 2 in getScaleAndPosition()
|
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/ |
D | LiveWallpaperInfo.java | 45 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/ |
D | ImageSavingTask.java | 148 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/ |
D | TextureViewHelper.java | 77 public TextureViewHelper(TextureView preview, CaptureLayoutHelper helper, in TextureViewHelper() argument 79 mPreview = preview; in TextureViewHelper() 421 Bitmap preview = mPreview.getBitmap(width, height); 422 return Bitmap.createBitmap(preview, 0, 0, width, height, mPreview.getTransform(null), true);
|