Loading core/java/android/service/wallpaper/WallpaperService.java +2 −3 Original line number Original line Diff line number Diff line Loading @@ -154,7 +154,6 @@ public abstract class WallpaperService extends Service { int mCurWindowPrivateFlags = mWindowPrivateFlags; int mCurWindowPrivateFlags = mWindowPrivateFlags; final Rect mVisibleInsets = new Rect(); final Rect mVisibleInsets = new Rect(); final Rect mWinFrame = new Rect(); final Rect mWinFrame = new Rect(); final Rect mSystemInsets = new Rect(); final Rect mContentInsets = new Rect(); final Rect mContentInsets = new Rect(); final Configuration mConfiguration = new Configuration(); final Configuration mConfiguration = new Configuration(); Loading Loading @@ -254,7 +253,7 @@ public abstract class WallpaperService extends Service { final BaseIWindow mWindow = new BaseIWindow() { final BaseIWindow mWindow = new BaseIWindow() { @Override @Override public void resized(int w, int h, Rect systemInsets, Rect contentInsets, public void resized(int w, int h, Rect contentInsets, Rect visibleInsets, boolean reportDraw, Configuration newConfig) { Rect visibleInsets, boolean reportDraw, Configuration newConfig) { Message msg = mCaller.obtainMessageI(MSG_WINDOW_RESIZED, Message msg = mCaller.obtainMessageI(MSG_WINDOW_RESIZED, reportDraw ? 1 : 0); reportDraw ? 1 : 0); Loading Loading @@ -621,7 +620,7 @@ public abstract class WallpaperService extends Service { final int relayoutResult = mSession.relayout( final int relayoutResult = mSession.relayout( mWindow, mWindow.mSeq, mLayout, mWidth, mHeight, mWindow, mWindow.mSeq, mLayout, mWidth, mHeight, View.VISIBLE, 0, mWinFrame, mSystemInsets, mContentInsets, View.VISIBLE, 0, mWinFrame, mContentInsets, mVisibleInsets, mConfiguration, mSurfaceHolder.mSurface); mVisibleInsets, mConfiguration, mSurfaceHolder.mSurface); if (DEBUG) Log.v(TAG, "New surface: " + mSurfaceHolder.mSurface if (DEBUG) Log.v(TAG, "New surface: " + mSurfaceHolder.mSurface Loading core/java/android/view/IWindow.aidl +1 −1 Original line number Original line Diff line number Diff line Loading @@ -45,7 +45,7 @@ oneway interface IWindow { */ */ void executeCommand(String command, String parameters, in ParcelFileDescriptor descriptor); void executeCommand(String command, String parameters, in ParcelFileDescriptor descriptor); void resized(int w, int h, in Rect systemInsets, in Rect contentInsets, void resized(int w, int h, in Rect contentInsets, in Rect visibleInsets, boolean reportDraw, in Configuration newConfig); in Rect visibleInsets, boolean reportDraw, in Configuration newConfig); void dispatchAppVisibility(boolean visible); void dispatchAppVisibility(boolean visible); void dispatchGetNewSurface(); void dispatchGetNewSurface(); Loading core/java/android/view/IWindowSession.aidl +1 −5 Original line number Original line Diff line number Diff line Loading @@ -58,10 +58,6 @@ interface IWindowSession { * {@link WindowManagerImpl#RELAYOUT_DEFER_SURFACE_DESTROY}. * {@link WindowManagerImpl#RELAYOUT_DEFER_SURFACE_DESTROY}. * @param outFrame Rect in which is placed the new position/size on * @param outFrame Rect in which is placed the new position/size on * screen. * screen. * @param outSystemInsets Rect in which is placed the offsets from * <var>outFrame</var> over which any core system UI elements are * currently covering the window. This is not generally used for * layout, but just to know where the window is obscured. * @param outContentInsets Rect in which is placed the offsets from * @param outContentInsets Rect in which is placed the offsets from * <var>outFrame</var> in which the content of the window should be * <var>outFrame</var> in which the content of the window should be * placed. This can be used to modify the window layout to ensure its * placed. This can be used to modify the window layout to ensure its Loading @@ -83,7 +79,7 @@ interface IWindowSession { */ */ int relayout(IWindow window, int seq, in WindowManager.LayoutParams attrs, int relayout(IWindow window, int seq, in WindowManager.LayoutParams attrs, int requestedWidth, int requestedHeight, int viewVisibility, int requestedWidth, int requestedHeight, int viewVisibility, int flags, out Rect outFrame, out Rect outSystemInsets, int flags, out Rect outFrame, out Rect outContentInsets, out Rect outVisibleInsets, out Rect outContentInsets, out Rect outVisibleInsets, out Configuration outConfig, out Surface outSurface); out Configuration outConfig, out Surface outSurface); Loading core/java/android/view/SurfaceView.java +2 −3 Original line number Original line Diff line number Diff line Loading @@ -98,7 +98,6 @@ public class SurfaceView extends View { MyWindow mWindow; MyWindow mWindow; final Rect mVisibleInsets = new Rect(); final Rect mVisibleInsets = new Rect(); final Rect mWinFrame = new Rect(); final Rect mWinFrame = new Rect(); final Rect mSystemInsets = new Rect(); final Rect mContentInsets = new Rect(); final Rect mContentInsets = new Rect(); final Configuration mConfiguration = new Configuration(); final Configuration mConfiguration = new Configuration(); Loading Loading @@ -472,7 +471,7 @@ public class SurfaceView extends View { mWindow, mWindow.mSeq, mLayout, mWidth, mHeight, mWindow, mWindow.mSeq, mLayout, mWidth, mHeight, visible ? VISIBLE : GONE, visible ? VISIBLE : GONE, WindowManagerImpl.RELAYOUT_DEFER_SURFACE_DESTROY, WindowManagerImpl.RELAYOUT_DEFER_SURFACE_DESTROY, mWinFrame, mSystemInsets, mContentInsets, mWinFrame, mContentInsets, mVisibleInsets, mConfiguration, mNewSurface); mVisibleInsets, mConfiguration, mNewSurface); if ((relayoutResult&WindowManagerImpl.RELAYOUT_RES_FIRST_TIME) != 0) { if ((relayoutResult&WindowManagerImpl.RELAYOUT_RES_FIRST_TIME) != 0) { mReportDrawNeeded = true; mReportDrawNeeded = true; Loading Loading @@ -606,7 +605,7 @@ public class SurfaceView extends View { mSurfaceView = new WeakReference<SurfaceView>(surfaceView); mSurfaceView = new WeakReference<SurfaceView>(surfaceView); } } public void resized(int w, int h, Rect systemInsets, Rect contentInsets, public void resized(int w, int h, Rect contentInsets, Rect visibleInsets, boolean reportDraw, Configuration newConfig) { Rect visibleInsets, boolean reportDraw, Configuration newConfig) { SurfaceView surfaceView = mSurfaceView.get(); SurfaceView surfaceView = mSurfaceView.get(); if (surfaceView != null) { if (surfaceView != null) { Loading core/java/android/view/View.java +0 −6 Original line number Original line Diff line number Diff line Loading @@ -17189,12 +17189,6 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal */ */ boolean mUse32BitDrawingCache; boolean mUse32BitDrawingCache; /** * Describes the parts of the window that are currently completely * obscured by system UI elements. */ final Rect mSystemInsets = new Rect(); /** /** * For windows that are full-screen but using insets to layout inside * For windows that are full-screen but using insets to layout inside * of the screen decorations, these are the current insets for the * of the screen decorations, these are the current insets for the Loading
core/java/android/service/wallpaper/WallpaperService.java +2 −3 Original line number Original line Diff line number Diff line Loading @@ -154,7 +154,6 @@ public abstract class WallpaperService extends Service { int mCurWindowPrivateFlags = mWindowPrivateFlags; int mCurWindowPrivateFlags = mWindowPrivateFlags; final Rect mVisibleInsets = new Rect(); final Rect mVisibleInsets = new Rect(); final Rect mWinFrame = new Rect(); final Rect mWinFrame = new Rect(); final Rect mSystemInsets = new Rect(); final Rect mContentInsets = new Rect(); final Rect mContentInsets = new Rect(); final Configuration mConfiguration = new Configuration(); final Configuration mConfiguration = new Configuration(); Loading Loading @@ -254,7 +253,7 @@ public abstract class WallpaperService extends Service { final BaseIWindow mWindow = new BaseIWindow() { final BaseIWindow mWindow = new BaseIWindow() { @Override @Override public void resized(int w, int h, Rect systemInsets, Rect contentInsets, public void resized(int w, int h, Rect contentInsets, Rect visibleInsets, boolean reportDraw, Configuration newConfig) { Rect visibleInsets, boolean reportDraw, Configuration newConfig) { Message msg = mCaller.obtainMessageI(MSG_WINDOW_RESIZED, Message msg = mCaller.obtainMessageI(MSG_WINDOW_RESIZED, reportDraw ? 1 : 0); reportDraw ? 1 : 0); Loading Loading @@ -621,7 +620,7 @@ public abstract class WallpaperService extends Service { final int relayoutResult = mSession.relayout( final int relayoutResult = mSession.relayout( mWindow, mWindow.mSeq, mLayout, mWidth, mHeight, mWindow, mWindow.mSeq, mLayout, mWidth, mHeight, View.VISIBLE, 0, mWinFrame, mSystemInsets, mContentInsets, View.VISIBLE, 0, mWinFrame, mContentInsets, mVisibleInsets, mConfiguration, mSurfaceHolder.mSurface); mVisibleInsets, mConfiguration, mSurfaceHolder.mSurface); if (DEBUG) Log.v(TAG, "New surface: " + mSurfaceHolder.mSurface if (DEBUG) Log.v(TAG, "New surface: " + mSurfaceHolder.mSurface Loading
core/java/android/view/IWindow.aidl +1 −1 Original line number Original line Diff line number Diff line Loading @@ -45,7 +45,7 @@ oneway interface IWindow { */ */ void executeCommand(String command, String parameters, in ParcelFileDescriptor descriptor); void executeCommand(String command, String parameters, in ParcelFileDescriptor descriptor); void resized(int w, int h, in Rect systemInsets, in Rect contentInsets, void resized(int w, int h, in Rect contentInsets, in Rect visibleInsets, boolean reportDraw, in Configuration newConfig); in Rect visibleInsets, boolean reportDraw, in Configuration newConfig); void dispatchAppVisibility(boolean visible); void dispatchAppVisibility(boolean visible); void dispatchGetNewSurface(); void dispatchGetNewSurface(); Loading
core/java/android/view/IWindowSession.aidl +1 −5 Original line number Original line Diff line number Diff line Loading @@ -58,10 +58,6 @@ interface IWindowSession { * {@link WindowManagerImpl#RELAYOUT_DEFER_SURFACE_DESTROY}. * {@link WindowManagerImpl#RELAYOUT_DEFER_SURFACE_DESTROY}. * @param outFrame Rect in which is placed the new position/size on * @param outFrame Rect in which is placed the new position/size on * screen. * screen. * @param outSystemInsets Rect in which is placed the offsets from * <var>outFrame</var> over which any core system UI elements are * currently covering the window. This is not generally used for * layout, but just to know where the window is obscured. * @param outContentInsets Rect in which is placed the offsets from * @param outContentInsets Rect in which is placed the offsets from * <var>outFrame</var> in which the content of the window should be * <var>outFrame</var> in which the content of the window should be * placed. This can be used to modify the window layout to ensure its * placed. This can be used to modify the window layout to ensure its Loading @@ -83,7 +79,7 @@ interface IWindowSession { */ */ int relayout(IWindow window, int seq, in WindowManager.LayoutParams attrs, int relayout(IWindow window, int seq, in WindowManager.LayoutParams attrs, int requestedWidth, int requestedHeight, int viewVisibility, int requestedWidth, int requestedHeight, int viewVisibility, int flags, out Rect outFrame, out Rect outSystemInsets, int flags, out Rect outFrame, out Rect outContentInsets, out Rect outVisibleInsets, out Rect outContentInsets, out Rect outVisibleInsets, out Configuration outConfig, out Surface outSurface); out Configuration outConfig, out Surface outSurface); Loading
core/java/android/view/SurfaceView.java +2 −3 Original line number Original line Diff line number Diff line Loading @@ -98,7 +98,6 @@ public class SurfaceView extends View { MyWindow mWindow; MyWindow mWindow; final Rect mVisibleInsets = new Rect(); final Rect mVisibleInsets = new Rect(); final Rect mWinFrame = new Rect(); final Rect mWinFrame = new Rect(); final Rect mSystemInsets = new Rect(); final Rect mContentInsets = new Rect(); final Rect mContentInsets = new Rect(); final Configuration mConfiguration = new Configuration(); final Configuration mConfiguration = new Configuration(); Loading Loading @@ -472,7 +471,7 @@ public class SurfaceView extends View { mWindow, mWindow.mSeq, mLayout, mWidth, mHeight, mWindow, mWindow.mSeq, mLayout, mWidth, mHeight, visible ? VISIBLE : GONE, visible ? VISIBLE : GONE, WindowManagerImpl.RELAYOUT_DEFER_SURFACE_DESTROY, WindowManagerImpl.RELAYOUT_DEFER_SURFACE_DESTROY, mWinFrame, mSystemInsets, mContentInsets, mWinFrame, mContentInsets, mVisibleInsets, mConfiguration, mNewSurface); mVisibleInsets, mConfiguration, mNewSurface); if ((relayoutResult&WindowManagerImpl.RELAYOUT_RES_FIRST_TIME) != 0) { if ((relayoutResult&WindowManagerImpl.RELAYOUT_RES_FIRST_TIME) != 0) { mReportDrawNeeded = true; mReportDrawNeeded = true; Loading Loading @@ -606,7 +605,7 @@ public class SurfaceView extends View { mSurfaceView = new WeakReference<SurfaceView>(surfaceView); mSurfaceView = new WeakReference<SurfaceView>(surfaceView); } } public void resized(int w, int h, Rect systemInsets, Rect contentInsets, public void resized(int w, int h, Rect contentInsets, Rect visibleInsets, boolean reportDraw, Configuration newConfig) { Rect visibleInsets, boolean reportDraw, Configuration newConfig) { SurfaceView surfaceView = mSurfaceView.get(); SurfaceView surfaceView = mSurfaceView.get(); if (surfaceView != null) { if (surfaceView != null) { Loading
core/java/android/view/View.java +0 −6 Original line number Original line Diff line number Diff line Loading @@ -17189,12 +17189,6 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal */ */ boolean mUse32BitDrawingCache; boolean mUse32BitDrawingCache; /** * Describes the parts of the window that are currently completely * obscured by system UI elements. */ final Rect mSystemInsets = new Rect(); /** /** * For windows that are full-screen but using insets to layout inside * For windows that are full-screen but using insets to layout inside * of the screen decorations, these are the current insets for the * of the screen decorations, these are the current insets for the