Home
last modified time | relevance | path

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

1234

/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 …]
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DPendingItemDragHelper.java102 Drawable preview = null; in startDrag() local
138 if (preview == null && mAppWidgetHostViewPreview == null) { in startDrag()
145 preview = p; in startDrag()
169 previewWidth = preview.getIntrinsicWidth(); in startDrag()
170 previewHeight = preview.getIntrinsicHeight(); in startDrag()
182 preview = new FastBitmapDrawable( in startDrag()
184 previewWidth = preview.getIntrinsicWidth(); in startDrag()
185 previewHeight = preview.getIntrinsicHeight(); in startDrag()
218 launcher.getDragController().startDrag(preview, draggableView, dragLayerX, dragLayerY, in startDrag()
224 protected Bitmap convertPreviewToAlphaBitmap(Bitmap preview) { in convertPreviewToAlphaBitmap() argument
[all …]
DBaseWidgetSheet.java241 NavigableAppWidgetHostView preview = v.getAppWidgetHostViewPreview(); in beginDraggingWidget() local
243 getPopupContainer().getLocationInDragLayer(preview, loc); in beginDraggingWidget()
245 preview.getWorkspaceVisualDragBounds(r); in beginDraggingWidget()
246 dragHelper.startDrag(r, preview.getMeasuredWidth(), preview.getMeasuredWidth(), in beginDraggingWidget()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/customization/ui/viewmodel/
DWallpaperQuickSwitchViewModel.kt72 .map { preview -> preview.wallpaperId + preview.lastUpdated } in <lambda>() method
81 previews.map { preview -> in <lambda>() method
84 selectedWallpaperId.distinctUntilChanged().map { it == preview.wallpaperId } in <lambda>()
88 it == preview.wallpaperId in <lambda>()
92 wallpaperId = preview.wallpaperId, in <lambda>()
93 placeholderColor = preview.placeholderColor, in <lambda>()
96 wallpaperId = preview.wallpaperId, in <lambda>()
97 lastUpdatedTimestamp = preview.lastUpdated in <lambda>()
159 wallpaperId = preview.wallpaperId, in <lambda>()
/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()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/widget/
DScrollableImagePreviewView.kt234 private fun updatePreviewSize(preview: Preview, width: Int, height: Int): Int { in <lambda>()
237 preview.aspectRatioString = "1:1" in <lambda>()
242 preview.aspectRatioString = in <lambda>()
417 preview: Preview, in <lambda>()
424 params.dimensionRatio = preview.aspectRatioString in <lambda>()
432 when (preview.type) { in <lambda>()
448 preview.editAction?.also { onClick -> in <lambda>()
455 loadImage(preview, imageLoader) in <lambda>()
456 if (preview.type == PreviewType.Image) { in <lambda>()
465 private suspend fun loadImage(preview: Preview, imageLoader: CachingImageLoader) { in <lambda>()
[all …]
/packages/apps/Settings/src/com/android/settings/display/
DColorModePreferenceFragment.java141 void configureAndInstallPreview(LayoutPreference preview, PreferenceScreen screen) { in configureAndInstallPreview() argument
142 preview.setSelectable(false); in configureAndInstallPreview()
143 screen.addPreference(preview); in configureAndInstallPreview()
155 void addViewPager(LayoutPreference preview) { in addViewPager() argument
157 mViewPager = preview.findViewById(R.id.viewpager); in addViewPager()
172 mViewArrowPrevious = preview.findViewById(R.id.arrow_previous); in addViewPager()
178 mViewArrowNext = preview.findViewById(R.id.arrow_next); in addViewPager()
186 final ViewGroup viewGroup = (ViewGroup) preview.findViewById(R.id.viewGroup); in addViewPager()
204 final LayoutPreference preview = new LayoutPreference(screen.getContext(), in addStaticPreferences() local
206 configureAndInstallPreview(preview, screen); in addStaticPreferences()
[all …]
/packages/apps/Settings/src/com/android/settings/widget/
DMediaAnimationController.java84 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()
DVectorAnimationController.java85 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/
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/Launcher3/src/com/android/launcher3/graphics/
DDragPreviewProvider.java142 public float getScaleAndPosition(Drawable preview, int[] outPos) { in getScaleAndPosition() argument
152 (preview.getIntrinsicWidth() - scale * mView.getWidth() * mView.getScaleX()) / 2); in getScaleAndPosition()
153 outPos[1] = Math.round(outPos[1] - (1 - scale) * preview.getIntrinsicHeight() / 2 in getScaleAndPosition()
174 protected Bitmap convertPreviewToAlphaBitmap(Bitmap preview) { in convertPreviewToAlphaBitmap() argument
175 return preview.copy(Bitmap.Config.ALPHA_8, true); in convertPreviewToAlphaBitmap()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DTrackpadGestureDialogFragment.java179 private void addViewPager(View preview) { in addViewPager() argument
180 mViewPager = preview.findViewById(R.id.viewpager); in addViewPager()
195 mButtonStartRestart = (Button) preview.findViewById(R.id.button_restart); in addViewPager()
201 mButtonEndDone = (Button) preview.findViewById(R.id.button_done); in addViewPager()
206 mButtonStartSkip = (Button) preview.findViewById(R.id.button_skip); in addViewPager()
211 mButtonEndNext = (Button) preview.findViewById(R.id.button_next); in addViewPager()
218 final ViewGroup viewGroup = (ViewGroup) preview.findViewById(R.id.viewGroup); in addViewPager()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/binder/
DStaticWallpaperPreviewBinder.kt16 package com.android.wallpaper.picker.preview.ui.binder in <lambda>()
31 import com.android.wallpaper.picker.preview.ui.util.FullResImageViewUtil in <lambda>()
32 import com.android.wallpaper.picker.preview.ui.viewmodel.FullResWallpaperViewModel in <lambda>()
33 import com.android.wallpaper.picker.preview.ui.viewmodel.StaticWallpaperPreviewViewModel in <lambda>()
/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/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/
DWallpaperPreviewDemoActivity.kt16 package com.android.wallpaper.picker.preview.ui
25 import com.android.wallpaper.picker.preview.ui.binder.StaticWallpaperPreviewBinder
26 import com.android.wallpaper.picker.preview.ui.viewmodel.StaticWallpaperPreviewViewModel
/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.java65 public float getScaleAndPosition(Drawable preview, int[] outPos) { in getScaleAndPosition() argument
76 scale * iconLeft + (scale * iconSize - preview.getIntrinsicWidth()) / 2 in getScaleAndPosition()
78 outPos[1] += Math.round((scale * mView.getHeight() - preview.getIntrinsicHeight()) / 2 in getScaleAndPosition()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/fragment/
DSmallPreviewFragment.kt16 package com.android.wallpaper.picker.preview.ui.fragment
31 import com.android.wallpaper.picker.preview.ui.viewmodel.WallpaperPreviewViewModel
73 previewView = view.requireViewById(R.id.preview), in bindScreenPreview()
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/
DTwoPanelSettingsFragment.java268 Fragment preview = getChildFragmentManager().findFragmentById( in onPreferenceStartFragment() local
270 if (preview != null && !(preview instanceof DummyFragment)) { in onPreferenceStartFragment()
271 if (!(preview instanceof InfoFragment)) { in onPreferenceStartFragment()
456 Fragment preview = getChildFragmentManager().findFragmentById( in onPreferenceDisplayDialog() local
458 if (preview != null && !(preview instanceof DummyFragment)) { in onPreferenceDisplayDialog()
459 if (preview instanceof NavigationCallback) { in onPreferenceDisplayDialog()
460 ((NavigationCallback) preview).onNavigateToPreview(); in onPreferenceDisplayDialog()
869 Fragment preview = in back() local
871 if (isA11yOn() && preview instanceof InfoFragment && preview.getView() != null in back()
872 && preview.getView().hasFocus()) { in back()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/viewmodel/
DWallpaperPreviewViewModel.kt16 package com.android.wallpaper.picker.preview.ui.viewmodel
20 import com.android.wallpaper.picker.preview.ui.WallpaperPreviewActivity
/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/ThemePicker/src/com/android/customization/picker/
DWallpaperPreviewer.java175 ImageView preview = homeImageWallpaper; in setUpWallpaperPreview() local
177 preview = mFadeInScrim; in setUpWallpaperPreview()
178 preview.setRenderEffect( in setUpWallpaperPreview()
184 preview, in setUpWallpaperPreview()
/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()

1234