Loading services/core/java/com/android/server/wm/EventLogTags.logtags +2 −0 Original line number Diff line number Diff line Loading @@ -65,3 +65,5 @@ option java_package com.android.server.wm # bootanim finished: 31007 wm_boot_animation_done (time|2|3) # Request surface flinger to show / hide the wallpaper surface. 33001 wm_wallpaper_surface (Display Id|1|5),(visible|1) services/core/java/com/android/server/wm/WindowSurfaceController.java +9 −0 Original line number Diff line number Diff line Loading @@ -33,6 +33,7 @@ import static com.android.server.wm.WindowSurfaceControllerProto.SHOWN; import android.os.Debug; import android.os.Trace; import android.util.EventLog; import android.util.Slog; import android.util.proto.ProtoOutputStream; import android.view.SurfaceControl; Loading Loading @@ -124,6 +125,10 @@ class WindowSurfaceController { setShown(false); try { transaction.hide(mSurfaceControl); if (mAnimator.mIsWallpaper) { EventLog.writeEvent(EventLogTags.WM_WALLPAPER_SURFACE, mAnimator.mWin.getDisplayId(), 0 /* request hidden */); } } catch (RuntimeException e) { Slog.w(TAG, "Exception hiding surface in " + this); } Loading Loading @@ -249,6 +254,10 @@ class WindowSurfaceController { setShown(true); t.show(mSurfaceControl); if (mAnimator.mIsWallpaper) { EventLog.writeEvent(EventLogTags.WM_WALLPAPER_SURFACE, mAnimator.mWin.getDisplayId(), 1 /* request shown */); } return true; } Loading Loading
services/core/java/com/android/server/wm/EventLogTags.logtags +2 −0 Original line number Diff line number Diff line Loading @@ -65,3 +65,5 @@ option java_package com.android.server.wm # bootanim finished: 31007 wm_boot_animation_done (time|2|3) # Request surface flinger to show / hide the wallpaper surface. 33001 wm_wallpaper_surface (Display Id|1|5),(visible|1)
services/core/java/com/android/server/wm/WindowSurfaceController.java +9 −0 Original line number Diff line number Diff line Loading @@ -33,6 +33,7 @@ import static com.android.server.wm.WindowSurfaceControllerProto.SHOWN; import android.os.Debug; import android.os.Trace; import android.util.EventLog; import android.util.Slog; import android.util.proto.ProtoOutputStream; import android.view.SurfaceControl; Loading Loading @@ -124,6 +125,10 @@ class WindowSurfaceController { setShown(false); try { transaction.hide(mSurfaceControl); if (mAnimator.mIsWallpaper) { EventLog.writeEvent(EventLogTags.WM_WALLPAPER_SURFACE, mAnimator.mWin.getDisplayId(), 0 /* request hidden */); } } catch (RuntimeException e) { Slog.w(TAG, "Exception hiding surface in " + this); } Loading Loading @@ -249,6 +254,10 @@ class WindowSurfaceController { setShown(true); t.show(mSurfaceControl); if (mAnimator.mIsWallpaper) { EventLog.writeEvent(EventLogTags.WM_WALLPAPER_SURFACE, mAnimator.mWin.getDisplayId(), 1 /* request shown */); } return true; } Loading