Home
last modified time | relevance | path

Searched refs:parentSurface (Results 1 – 2 of 2) sorted by relevance

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DWallpaperConnection.java423 private void reparentWallpaperSurface(SurfaceView parentSurface) { in reparentWallpaperSurface() argument
424 if (parentSurface == null) { in reparentWallpaperSurface()
433 if (parentSurface.getSurfaceControl() != null) { in reparentWallpaperSurface()
434 mirrorAndReparent(parentSurface); in reparentWallpaperSurface()
437 parentSurface.getHolder().addCallback(new Callback() { in reparentWallpaperSurface()
445 mirrorAndReparent(parentSurface); in reparentWallpaperSurface()
446 parentSurface.getHolder().removeCallback(this); in reparentWallpaperSurface()
457 private void mirrorAndReparent(SurfaceView parentSurface) { in mirrorAndReparent() argument
467 SurfaceControl parentSC = parentSurface.getSurfaceControl(); in mirrorAndReparent()
472 float[] values = getScale(parentSurface); in mirrorAndReparent()
[all …]
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/wallpaperconnection/
DWallpaperConnectionUtils.kt282 parentSurface: SurfaceView, in <lambda>()
291 val parentSurfaceControl = parentSurface.surfaceControl in <lambda>()
296 val values = getScale(parentSurface, displayMetrics) in <lambda>()
333 private fun getScale(parentSurface: SurfaceView, displayMetrics: Point): FloatArray { in <lambda>()
336 val surfacePosition = parentSurface.holder.surfaceFrame in <lambda>()