/aosp12/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/ |
H A 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 …]
|
H A 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 …]
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
H A D | DragPreviewProvider.java | 132 public final void generateDragOutline(Bitmap preview) { in generateDragOutline() argument 185 return preview.copy(Bitmap.Config.ALPHA_8, true); in convertPreviewToAlphaBitmap() 194 OutlineGeneratorCallback(Bitmap preview) { in OutlineGeneratorCallback() argument 195 mPreviewSnapshot = preview; in OutlineGeneratorCallback() 205 preview = Bitmap.createScaledBitmap(preview, size, size, false); in run() 211 byte[] pixels = new byte[preview.getWidth() * preview.getHeight()]; in run() 214 preview.copyPixelsToBuffer(buffer); in run() 223 preview.copyPixelsFromBuffer(buffer); in run() 240 canvas.setBitmap(preview); in run() 257 canvas.setBitmap(preview); in run() [all …]
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
H A D | PendingItemDragHelper.java | 105 Drawable preview = null; in startDrag() local 154 preview = p; in startDrag() 171 previewWidth = preview.getIntrinsicWidth(); in startDrag() 172 previewHeight = preview.getIntrinsicHeight(); in startDrag() 184 preview = new FastBitmapDrawable( in startDrag() 186 previewWidth = preview.getIntrinsicWidth(); in startDrag() 187 previewHeight = preview.getIntrinsicHeight(); in startDrag() 229 protected Bitmap convertPreviewToAlphaBitmap(Bitmap preview) { in convertPreviewToAlphaBitmap() argument 231 return super.convertPreviewToAlphaBitmap(preview); in convertPreviewToAlphaBitmap() 237 Rect src = new Rect(0, 0, preview.getWidth(), preview.getHeight()); in convertPreviewToAlphaBitmap() [all …]
|
H A D | BaseWidgetSheet.java | 210 NavigableAppWidgetHostView preview = v.getAppWidgetHostViewPreview(); in beginDraggingWidget() local 212 getPopupContainer().getLocationInDragLayer(preview, loc); in beginDraggingWidget() 214 preview.getWorkspaceVisualDragBounds(r); in beginDraggingWidget() 215 dragHelper.startDrag(r, preview.getMeasuredWidth(), preview.getMeasuredWidth(), in beginDraggingWidget()
|
/aosp12/hardware/interfaces/camera/device/1.0/ |
H A D | ICameraDevicePreviewCallback.hal | 23 * Camera device HAL@1.0 preview stream operation interface. 28 * Acquire a buffer to write a preview buffer into. 41 * Send a filled preview buffer to its consumer. 43 * @param bufferId The bufferId of the preview buffer 53 * @param bufferId The bufferId of the preview buffer 59 * Set the number of preview buffers needed by the HAL. 61 * @param count The maximum number of preview buffers to allocate. 67 * Set the dimensions and format of future preview buffers. 94 * Set the expected buffering mode for the preview output. 112 * preview stream. They do not need to be comparable between [all …]
|
/aosp12/packages/apps/Settings/src/com/android/settings/accessibility/ |
H A 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()
|
/aosp12/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
H A D | RGBZ.java | 42 private Bitmap preview; field in RGBZ 54 preview = BitmapFactory.decodeStream(contentResolver.openInputStream(uri)); in RGBZ() 55 if (preview == null) { in RGBZ() 61 bitmap = setAlphaChannel(preview, depthBitmap); in RGBZ() 74 preview = BitmapFactory.decodeStream(contentResolver.openInputStream(uriImage)); in RGBZ() 75 if (preview == null) { in RGBZ() 80 bitmap = setAlphaChannel(preview, depthBitmap); in RGBZ() 86 preview = image; in RGBZ() 89 bitmap = setAlphaChannel(preview, depthBitmap); in RGBZ()
|
/aosp12/packages/apps/Settings/src/com/android/settings/widget/ |
H A 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()
|
H A 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()
|
/aosp12/packages/apps/Settings/src/com/android/settings/display/ |
H A D | ColorModePreferenceFragment.java | 141 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 …]
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/keyguard/clock/ |
H A D | ClockInfo.java | 34 Supplier<Bitmap> thumbnail, Supplier<Bitmap> preview) { in ClockInfo() argument 39 mPreview = preview; in ClockInfo() 112 public Builder setPreview(Supplier<Bitmap> preview) { in setPreview() argument 113 mPreview = preview; in setPreview()
|
/aosp12/packages/apps/WallpaperPicker/src/com/android/photos/ |
H A 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()
|
/aosp12/packages/apps/ThemePicker/src/com/android/customization/model/clock/ |
H A 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()
|
/aosp12/packages/apps/Gallery2/src/com/android/photos/ |
H A 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()
|
/aosp12/packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/ |
H A 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()
|
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A 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()
|
/aosp12/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/ |
H A D | RemotePrintDocument.java | 207 public boolean update(PrintAttributes attributes, PageRange[] pages, boolean preview) { in update() argument 229 || !mUpdateSpec.hasSameConstraints(attributes, preview)) { in update() 243 mDocumentInfo, oldAttributes, attributes, preview, mCommandResultCallback); in update() 277 mUpdateSpec.update(attributes, preview, pages); in update() 514 boolean preview; field in RemotePrintDocument.UpdateSpec 517 public void update(PrintAttributes attributes, boolean preview, in update() argument 520 this.preview = preview; in update() 526 preview = false; in reset() 530 public boolean hasSameConstraints(PrintAttributes attributes, boolean preview) { in hasSameConstraints() argument 531 return this.attributes.equals(attributes) && this.preview == preview; in hasSameConstraints() [all …]
|
/aosp12/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | SingleFrameTextureViewTestActivity.java | 52 TextView preview = new TextView(this); in onCreate() local 53 preview.setText("This is a preview"); in onCreate() 54 preview.setBackgroundColor(Color.WHITE); in onCreate() 55 mPreview = preview; in onCreate()
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/ |
H A 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()
|
/aosp12/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/ |
H A 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()
|
/aosp12/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/ |
H A 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()
|
/aosp12/build/soong/android/ |
H A D | api_levels.go | 223 for _, preview := range ctx.Config().PreviewApiLevels() { 224 if raw == preview.String() { 225 return preview, nil
|
/aosp12/packages/providers/TvProvider/tests/src/com/android/providers/tv/ |
H A 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()
|
/aosp12/build/make/tools/droiddoc/templates-pdk/ |
H A D | sdkpage.cs | 215 <?cs if:sdk.preview ?><?cs # it's preview offline docs ?> in onDownload() 216 <p>Welcome developers! We are pleased to provide you with a preview SDK for the upcoming in onDownload() 222 about how to set up the preview SDK and get started.</p> in onDownload() 224 .non-preview { display:none; } in onDownload()
|