Loading core/java/android/provider/Settings.java +0 −9 Original line number Original line Diff line number Diff line Loading @@ -12816,15 +12816,6 @@ public final class Settings { public static final String DEVELOPMENT_RENDER_SHADOWS_IN_COMPOSITOR = public static final String DEVELOPMENT_RENDER_SHADOWS_IN_COMPOSITOR = "render_shadows_in_compositor"; "render_shadows_in_compositor"; /** * If true, submit buffers using blast in ViewRootImpl. * (0 = false, 1 = true) * @hide */ @Readable public static final String DEVELOPMENT_USE_BLAST_ADAPTER_VR = "use_blast_adapter_vr"; /** /** * Path to the WindowManager display settings file. If unset, the default file path will * Path to the WindowManager display settings file. If unset, the default file path will * be used. * be used. Loading core/java/android/service/wallpaper/WallpaperService.java +2 −2 Original line number Original line Diff line number Diff line Loading @@ -273,8 +273,8 @@ public abstract class WallpaperService extends Service { int mCurHeight; int mCurHeight; float mZoom = 0f; float mZoom = 0f; int mWindowFlags = WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE; int mWindowFlags = WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE; int mWindowPrivateFlags = WindowManager.LayoutParams.PRIVATE_FLAG_WANTS_OFFSET_NOTIFICATIONS int mWindowPrivateFlags = | WindowManager.LayoutParams.PRIVATE_FLAG_USE_BLAST; WindowManager.LayoutParams.PRIVATE_FLAG_WANTS_OFFSET_NOTIFICATIONS; int mCurWindowFlags = mWindowFlags; int mCurWindowFlags = mWindowFlags; int mCurWindowPrivateFlags = mWindowPrivateFlags; int mCurWindowPrivateFlags = mWindowPrivateFlags; Rect mPreviewSurfacePosition; Rect mPreviewSurfacePosition; Loading core/java/android/view/IWindowManager.aidl +0 −2 Original line number Original line Diff line number Diff line Loading @@ -114,8 +114,6 @@ interface IWindowManager IWindowSession openSession(in IWindowSessionCallback callback); IWindowSession openSession(in IWindowSessionCallback callback); boolean useBLAST(); @UnsupportedAppUsage @UnsupportedAppUsage void getInitialDisplaySize(int displayId, out Point size); void getInitialDisplaySize(int displayId, out Point size); @UnsupportedAppUsage @UnsupportedAppUsage Loading core/java/android/view/ViewRootImpl.java +3 −28 Original line number Original line Diff line number Diff line Loading @@ -442,9 +442,6 @@ public final class ViewRootImpl implements ViewParent, */ */ private boolean mForceNextConfigUpdate; private boolean mForceNextConfigUpdate; private boolean mUseBLASTAdapter; private boolean mForceDisableBLAST; /** lazily-initialized in getAudioManager() */ /** lazily-initialized in getAudioManager() */ private boolean mFastScrollSoundEffectsEnabled = false; private boolean mFastScrollSoundEffectsEnabled = false; Loading Loading @@ -1290,8 +1287,6 @@ public final class ViewRootImpl implements ViewParent, if (mWindowAttributes.packageName == null) { if (mWindowAttributes.packageName == null) { mWindowAttributes.packageName = mBasePackageName; mWindowAttributes.packageName = mBasePackageName; } } mWindowAttributes.privateFlags |= WindowManager.LayoutParams.PRIVATE_FLAG_USE_BLAST; attrs = mWindowAttributes; attrs = mWindowAttributes; setTag(); setTag(); Loading Loading @@ -1502,9 +1497,6 @@ public final class ViewRootImpl implements ViewParent, Slog.i(mTag, "(" + mBasePackageName + ") Initial DisplayState: " Slog.i(mTag, "(" + mBasePackageName + ") Initial DisplayState: " + mAttachInfo.mDisplayState, new Throwable()); + mAttachInfo.mDisplayState, new Throwable()); } } if ((res & WindowManagerGlobal.ADD_FLAG_USE_BLAST) != 0) { mUseBLASTAdapter = true; } if (view instanceof RootViewSurfaceTaker) { if (view instanceof RootViewSurfaceTaker) { mInputQueueCallback = mInputQueueCallback = Loading Loading @@ -1901,8 +1893,7 @@ public final class ViewRootImpl implements ViewParent, mWindowAttributes.insetsFlags.appearance = appearance; mWindowAttributes.insetsFlags.appearance = appearance; mWindowAttributes.insetsFlags.behavior = behavior; mWindowAttributes.insetsFlags.behavior = behavior; mWindowAttributes.privateFlags |= compatibleWindowFlag mWindowAttributes.privateFlags |= compatibleWindowFlag | appearanceAndBehaviorPrivateFlags | appearanceAndBehaviorPrivateFlags; | WindowManager.LayoutParams.PRIVATE_FLAG_USE_BLAST; if (mWindowAttributes.preservePreviousSurfaceInsets) { if (mWindowAttributes.preservePreviousSurfaceInsets) { // Restore old surface insets. // Restore old surface insets. Loading Loading @@ -8692,11 +8683,7 @@ public final class ViewRootImpl implements ViewParent, } } if (mSurfaceControl.isValid()) { if (mSurfaceControl.isValid()) { if (!useBLAST()) { mSurface.copyFrom(mSurfaceControl); } else { updateBlastSurfaceIfNeeded(); updateBlastSurfaceIfNeeded(); } if (mAttachInfo.mThreadedRenderer != null) { if (mAttachInfo.mThreadedRenderer != null) { mAttachInfo.mThreadedRenderer.setSurfaceControl(mSurfaceControl, mBlastBufferQueue); mAttachInfo.mThreadedRenderer.setSurfaceControl(mSurfaceControl, mBlastBufferQueue); } } Loading Loading @@ -11533,7 +11520,7 @@ public final class ViewRootImpl implements ViewParent, SurfaceControl.Transaction transaction = new SurfaceControl.Transaction(); SurfaceControl.Transaction transaction = new SurfaceControl.Transaction(); transaction.setBlurRegions(surfaceControl, regionCopy); transaction.setBlurRegions(surfaceControl, regionCopy); if (useBLAST() && mBlastBufferQueue != null) { if (mBlastBufferQueue != null) { mBlastBufferQueue.mergeWithNextTransaction(transaction, frameNumber); mBlastBufferQueue.mergeWithNextTransaction(transaction, frameNumber); } } } } Loading @@ -11550,18 +11537,6 @@ public final class ViewRootImpl implements ViewParent, mUnbufferedInputSource = mView.mUnbufferedInputSource; mUnbufferedInputSource = mView.mUnbufferedInputSource; } } /** * Force disabling use of the BLAST adapter regardless of the system * flag. Needs to be called before addView. */ void forceDisableBLAST() { mForceDisableBLAST = true; } boolean useBLAST() { return mUseBLASTAdapter && !mForceDisableBLAST; } int getSurfaceSequenceId() { int getSurfaceSequenceId() { return mSurfaceSequenceId; return mSurfaceSequenceId; } } Loading core/java/android/view/WindowManager.java +0 −12 Original line number Original line Diff line number Diff line Loading @@ -3250,13 +3250,6 @@ public interface WindowManager extends ViewManager { */ */ public static final int PRIVATE_FLAG_COLOR_SPACE_AGNOSTIC = 1 << 24; public static final int PRIVATE_FLAG_COLOR_SPACE_AGNOSTIC = 1 << 24; /** * Flag to request creation of a BLAST (Buffer as LayerState) Layer. * If not specified the client will receive a BufferQueue layer. * @hide */ public static final int PRIVATE_FLAG_USE_BLAST = 1 << 25; /** /** * Flag to indicate that the window is controlling the appearance of system bars. So we * Flag to indicate that the window is controlling the appearance of system bars. So we * don't need to adjust it by reading its system UI flags for compatibility. * don't need to adjust it by reading its system UI flags for compatibility. Loading Loading @@ -3342,7 +3335,6 @@ public interface WindowManager extends ViewManager { PRIVATE_FLAG_EXCLUDE_FROM_SCREEN_MAGNIFICATION, PRIVATE_FLAG_EXCLUDE_FROM_SCREEN_MAGNIFICATION, PRIVATE_FLAG_NOT_MAGNIFIABLE, PRIVATE_FLAG_NOT_MAGNIFIABLE, PRIVATE_FLAG_COLOR_SPACE_AGNOSTIC, PRIVATE_FLAG_COLOR_SPACE_AGNOSTIC, PRIVATE_FLAG_USE_BLAST, PRIVATE_FLAG_APPEARANCE_CONTROLLED, PRIVATE_FLAG_APPEARANCE_CONTROLLED, PRIVATE_FLAG_BEHAVIOR_CONTROLLED, PRIVATE_FLAG_BEHAVIOR_CONTROLLED, PRIVATE_FLAG_FIT_INSETS_CONTROLLED, PRIVATE_FLAG_FIT_INSETS_CONTROLLED, Loading Loading @@ -3440,10 +3432,6 @@ public interface WindowManager extends ViewManager { mask = PRIVATE_FLAG_COLOR_SPACE_AGNOSTIC, mask = PRIVATE_FLAG_COLOR_SPACE_AGNOSTIC, equals = PRIVATE_FLAG_COLOR_SPACE_AGNOSTIC, equals = PRIVATE_FLAG_COLOR_SPACE_AGNOSTIC, name = "COLOR_SPACE_AGNOSTIC"), name = "COLOR_SPACE_AGNOSTIC"), @ViewDebug.FlagToString( mask = PRIVATE_FLAG_USE_BLAST, equals = PRIVATE_FLAG_USE_BLAST, name = "USE_BLAST"), @ViewDebug.FlagToString( @ViewDebug.FlagToString( mask = PRIVATE_FLAG_APPEARANCE_CONTROLLED, mask = PRIVATE_FLAG_APPEARANCE_CONTROLLED, equals = PRIVATE_FLAG_APPEARANCE_CONTROLLED, equals = PRIVATE_FLAG_APPEARANCE_CONTROLLED, Loading Loading
core/java/android/provider/Settings.java +0 −9 Original line number Original line Diff line number Diff line Loading @@ -12816,15 +12816,6 @@ public final class Settings { public static final String DEVELOPMENT_RENDER_SHADOWS_IN_COMPOSITOR = public static final String DEVELOPMENT_RENDER_SHADOWS_IN_COMPOSITOR = "render_shadows_in_compositor"; "render_shadows_in_compositor"; /** * If true, submit buffers using blast in ViewRootImpl. * (0 = false, 1 = true) * @hide */ @Readable public static final String DEVELOPMENT_USE_BLAST_ADAPTER_VR = "use_blast_adapter_vr"; /** /** * Path to the WindowManager display settings file. If unset, the default file path will * Path to the WindowManager display settings file. If unset, the default file path will * be used. * be used. Loading
core/java/android/service/wallpaper/WallpaperService.java +2 −2 Original line number Original line Diff line number Diff line Loading @@ -273,8 +273,8 @@ public abstract class WallpaperService extends Service { int mCurHeight; int mCurHeight; float mZoom = 0f; float mZoom = 0f; int mWindowFlags = WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE; int mWindowFlags = WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE; int mWindowPrivateFlags = WindowManager.LayoutParams.PRIVATE_FLAG_WANTS_OFFSET_NOTIFICATIONS int mWindowPrivateFlags = | WindowManager.LayoutParams.PRIVATE_FLAG_USE_BLAST; WindowManager.LayoutParams.PRIVATE_FLAG_WANTS_OFFSET_NOTIFICATIONS; int mCurWindowFlags = mWindowFlags; int mCurWindowFlags = mWindowFlags; int mCurWindowPrivateFlags = mWindowPrivateFlags; int mCurWindowPrivateFlags = mWindowPrivateFlags; Rect mPreviewSurfacePosition; Rect mPreviewSurfacePosition; Loading
core/java/android/view/IWindowManager.aidl +0 −2 Original line number Original line Diff line number Diff line Loading @@ -114,8 +114,6 @@ interface IWindowManager IWindowSession openSession(in IWindowSessionCallback callback); IWindowSession openSession(in IWindowSessionCallback callback); boolean useBLAST(); @UnsupportedAppUsage @UnsupportedAppUsage void getInitialDisplaySize(int displayId, out Point size); void getInitialDisplaySize(int displayId, out Point size); @UnsupportedAppUsage @UnsupportedAppUsage Loading
core/java/android/view/ViewRootImpl.java +3 −28 Original line number Original line Diff line number Diff line Loading @@ -442,9 +442,6 @@ public final class ViewRootImpl implements ViewParent, */ */ private boolean mForceNextConfigUpdate; private boolean mForceNextConfigUpdate; private boolean mUseBLASTAdapter; private boolean mForceDisableBLAST; /** lazily-initialized in getAudioManager() */ /** lazily-initialized in getAudioManager() */ private boolean mFastScrollSoundEffectsEnabled = false; private boolean mFastScrollSoundEffectsEnabled = false; Loading Loading @@ -1290,8 +1287,6 @@ public final class ViewRootImpl implements ViewParent, if (mWindowAttributes.packageName == null) { if (mWindowAttributes.packageName == null) { mWindowAttributes.packageName = mBasePackageName; mWindowAttributes.packageName = mBasePackageName; } } mWindowAttributes.privateFlags |= WindowManager.LayoutParams.PRIVATE_FLAG_USE_BLAST; attrs = mWindowAttributes; attrs = mWindowAttributes; setTag(); setTag(); Loading Loading @@ -1502,9 +1497,6 @@ public final class ViewRootImpl implements ViewParent, Slog.i(mTag, "(" + mBasePackageName + ") Initial DisplayState: " Slog.i(mTag, "(" + mBasePackageName + ") Initial DisplayState: " + mAttachInfo.mDisplayState, new Throwable()); + mAttachInfo.mDisplayState, new Throwable()); } } if ((res & WindowManagerGlobal.ADD_FLAG_USE_BLAST) != 0) { mUseBLASTAdapter = true; } if (view instanceof RootViewSurfaceTaker) { if (view instanceof RootViewSurfaceTaker) { mInputQueueCallback = mInputQueueCallback = Loading Loading @@ -1901,8 +1893,7 @@ public final class ViewRootImpl implements ViewParent, mWindowAttributes.insetsFlags.appearance = appearance; mWindowAttributes.insetsFlags.appearance = appearance; mWindowAttributes.insetsFlags.behavior = behavior; mWindowAttributes.insetsFlags.behavior = behavior; mWindowAttributes.privateFlags |= compatibleWindowFlag mWindowAttributes.privateFlags |= compatibleWindowFlag | appearanceAndBehaviorPrivateFlags | appearanceAndBehaviorPrivateFlags; | WindowManager.LayoutParams.PRIVATE_FLAG_USE_BLAST; if (mWindowAttributes.preservePreviousSurfaceInsets) { if (mWindowAttributes.preservePreviousSurfaceInsets) { // Restore old surface insets. // Restore old surface insets. Loading Loading @@ -8692,11 +8683,7 @@ public final class ViewRootImpl implements ViewParent, } } if (mSurfaceControl.isValid()) { if (mSurfaceControl.isValid()) { if (!useBLAST()) { mSurface.copyFrom(mSurfaceControl); } else { updateBlastSurfaceIfNeeded(); updateBlastSurfaceIfNeeded(); } if (mAttachInfo.mThreadedRenderer != null) { if (mAttachInfo.mThreadedRenderer != null) { mAttachInfo.mThreadedRenderer.setSurfaceControl(mSurfaceControl, mBlastBufferQueue); mAttachInfo.mThreadedRenderer.setSurfaceControl(mSurfaceControl, mBlastBufferQueue); } } Loading Loading @@ -11533,7 +11520,7 @@ public final class ViewRootImpl implements ViewParent, SurfaceControl.Transaction transaction = new SurfaceControl.Transaction(); SurfaceControl.Transaction transaction = new SurfaceControl.Transaction(); transaction.setBlurRegions(surfaceControl, regionCopy); transaction.setBlurRegions(surfaceControl, regionCopy); if (useBLAST() && mBlastBufferQueue != null) { if (mBlastBufferQueue != null) { mBlastBufferQueue.mergeWithNextTransaction(transaction, frameNumber); mBlastBufferQueue.mergeWithNextTransaction(transaction, frameNumber); } } } } Loading @@ -11550,18 +11537,6 @@ public final class ViewRootImpl implements ViewParent, mUnbufferedInputSource = mView.mUnbufferedInputSource; mUnbufferedInputSource = mView.mUnbufferedInputSource; } } /** * Force disabling use of the BLAST adapter regardless of the system * flag. Needs to be called before addView. */ void forceDisableBLAST() { mForceDisableBLAST = true; } boolean useBLAST() { return mUseBLASTAdapter && !mForceDisableBLAST; } int getSurfaceSequenceId() { int getSurfaceSequenceId() { return mSurfaceSequenceId; return mSurfaceSequenceId; } } Loading
core/java/android/view/WindowManager.java +0 −12 Original line number Original line Diff line number Diff line Loading @@ -3250,13 +3250,6 @@ public interface WindowManager extends ViewManager { */ */ public static final int PRIVATE_FLAG_COLOR_SPACE_AGNOSTIC = 1 << 24; public static final int PRIVATE_FLAG_COLOR_SPACE_AGNOSTIC = 1 << 24; /** * Flag to request creation of a BLAST (Buffer as LayerState) Layer. * If not specified the client will receive a BufferQueue layer. * @hide */ public static final int PRIVATE_FLAG_USE_BLAST = 1 << 25; /** /** * Flag to indicate that the window is controlling the appearance of system bars. So we * Flag to indicate that the window is controlling the appearance of system bars. So we * don't need to adjust it by reading its system UI flags for compatibility. * don't need to adjust it by reading its system UI flags for compatibility. Loading Loading @@ -3342,7 +3335,6 @@ public interface WindowManager extends ViewManager { PRIVATE_FLAG_EXCLUDE_FROM_SCREEN_MAGNIFICATION, PRIVATE_FLAG_EXCLUDE_FROM_SCREEN_MAGNIFICATION, PRIVATE_FLAG_NOT_MAGNIFIABLE, PRIVATE_FLAG_NOT_MAGNIFIABLE, PRIVATE_FLAG_COLOR_SPACE_AGNOSTIC, PRIVATE_FLAG_COLOR_SPACE_AGNOSTIC, PRIVATE_FLAG_USE_BLAST, PRIVATE_FLAG_APPEARANCE_CONTROLLED, PRIVATE_FLAG_APPEARANCE_CONTROLLED, PRIVATE_FLAG_BEHAVIOR_CONTROLLED, PRIVATE_FLAG_BEHAVIOR_CONTROLLED, PRIVATE_FLAG_FIT_INSETS_CONTROLLED, PRIVATE_FLAG_FIT_INSETS_CONTROLLED, Loading Loading @@ -3440,10 +3432,6 @@ public interface WindowManager extends ViewManager { mask = PRIVATE_FLAG_COLOR_SPACE_AGNOSTIC, mask = PRIVATE_FLAG_COLOR_SPACE_AGNOSTIC, equals = PRIVATE_FLAG_COLOR_SPACE_AGNOSTIC, equals = PRIVATE_FLAG_COLOR_SPACE_AGNOSTIC, name = "COLOR_SPACE_AGNOSTIC"), name = "COLOR_SPACE_AGNOSTIC"), @ViewDebug.FlagToString( mask = PRIVATE_FLAG_USE_BLAST, equals = PRIVATE_FLAG_USE_BLAST, name = "USE_BLAST"), @ViewDebug.FlagToString( @ViewDebug.FlagToString( mask = PRIVATE_FLAG_APPEARANCE_CONTROLLED, mask = PRIVATE_FLAG_APPEARANCE_CONTROLLED, equals = PRIVATE_FLAG_APPEARANCE_CONTROLLED, equals = PRIVATE_FLAG_APPEARANCE_CONTROLLED, Loading