BLUR_BEHIND flag is not supported anymore
Bug: 5185650 Change-Id: I56541d4967b90b150a734be1bbeff696eb6a4fb3
This commit is contained in:
@@ -163,7 +163,9 @@ public class Surface implements Parcelable {
|
|||||||
* It is an error to lock a Blur surface, since it doesn't have
|
* It is an error to lock a Blur surface, since it doesn't have
|
||||||
* a backing store.
|
* a backing store.
|
||||||
* @hide
|
* @hide
|
||||||
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public static final int FX_SURFACE_BLUR = 0x00010000;
|
public static final int FX_SURFACE_BLUR = 0x00010000;
|
||||||
|
|
||||||
/** Creates a Dim surface. Everything behind this surface is dimmed
|
/** Creates a Dim surface. Everything behind this surface is dimmed
|
||||||
|
|||||||
@@ -122,10 +122,6 @@ public final class ShutdownThread extends Thread {
|
|||||||
closer.dialog = dialog;
|
closer.dialog = dialog;
|
||||||
dialog.setOnDismissListener(closer);
|
dialog.setOnDismissListener(closer);
|
||||||
dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG);
|
dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG);
|
||||||
if (!context.getResources().getBoolean(
|
|
||||||
com.android.internal.R.bool.config_sf_slowBlur)) {
|
|
||||||
dialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND);
|
|
||||||
}
|
|
||||||
dialog.show();
|
dialog.show();
|
||||||
} else {
|
} else {
|
||||||
beginShutdownSequence(context);
|
beginShutdownSequence(context);
|
||||||
@@ -185,10 +181,6 @@ public final class ShutdownThread extends Thread {
|
|||||||
pd.setIndeterminate(true);
|
pd.setIndeterminate(true);
|
||||||
pd.setCancelable(false);
|
pd.setCancelable(false);
|
||||||
pd.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG);
|
pd.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG);
|
||||||
if (!context.getResources().getBoolean(
|
|
||||||
com.android.internal.R.bool.config_sf_slowBlur)) {
|
|
||||||
pd.getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND);
|
|
||||||
}
|
|
||||||
|
|
||||||
pd.show();
|
pd.show();
|
||||||
|
|
||||||
|
|||||||
@@ -57,8 +57,9 @@
|
|||||||
|
|
||||||
<!-- Flag indicating whether the surface flinger is inefficient
|
<!-- Flag indicating whether the surface flinger is inefficient
|
||||||
at performing a blur. Used by parts of the UI to turn off
|
at performing a blur. Used by parts of the UI to turn off
|
||||||
the blur effect where it isn't worth the performance hit. -->
|
the blur effect where it isn't worth the performance hit.
|
||||||
<bool name="config_sf_slowBlur">false</bool>
|
As of Honeycomb, blurring is not supported anymore. -->
|
||||||
|
<bool name="config_sf_slowBlur">true</bool>
|
||||||
|
|
||||||
<!-- The duration (in milliseconds) of a short animation. -->
|
<!-- The duration (in milliseconds) of a short animation. -->
|
||||||
<integer name="config_shortAnimTime">200</integer>
|
<integer name="config_shortAnimTime">200</integer>
|
||||||
|
|||||||
@@ -311,12 +311,6 @@ public class AccountUnlockScreen extends RelativeLayout implements KeyguardScree
|
|||||||
mCheckingDialog.setCancelable(false);
|
mCheckingDialog.setCancelable(false);
|
||||||
mCheckingDialog.getWindow().setType(
|
mCheckingDialog.getWindow().setType(
|
||||||
WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG);
|
WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG);
|
||||||
if (!mContext.getResources().getBoolean(
|
|
||||||
com.android.internal.R.bool.config_sf_slowBlur)) {
|
|
||||||
mCheckingDialog.getWindow().setFlags(
|
|
||||||
WindowManager.LayoutParams.FLAG_BLUR_BEHIND,
|
|
||||||
WindowManager.LayoutParams.FLAG_BLUR_BEHIND);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return mCheckingDialog;
|
return mCheckingDialog;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -226,11 +226,6 @@ class GlobalActions implements DialogInterface.OnDismissListener, DialogInterfac
|
|||||||
|
|
||||||
final AlertDialog dialog = ab.create();
|
final AlertDialog dialog = ab.create();
|
||||||
dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_DIALOG);
|
dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_DIALOG);
|
||||||
if (!mContext.getResources().getBoolean(
|
|
||||||
com.android.internal.R.bool.config_sf_slowBlur)) {
|
|
||||||
dialog.getWindow().setFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND,
|
|
||||||
WindowManager.LayoutParams.FLAG_BLUR_BEHIND);
|
|
||||||
}
|
|
||||||
|
|
||||||
dialog.setOnDismissListener(this);
|
dialog.setOnDismissListener(this);
|
||||||
|
|
||||||
|
|||||||
@@ -760,12 +760,6 @@ public class LockPatternKeyguardView extends KeyguardViewBase {
|
|||||||
.setNeutralButton(R.string.ok, null)
|
.setNeutralButton(R.string.ok, null)
|
||||||
.create();
|
.create();
|
||||||
dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG);
|
dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG);
|
||||||
if (!mContext.getResources().getBoolean(
|
|
||||||
com.android.internal.R.bool.config_sf_slowBlur)) {
|
|
||||||
dialog.getWindow().setFlags(
|
|
||||||
WindowManager.LayoutParams.FLAG_BLUR_BEHIND,
|
|
||||||
WindowManager.LayoutParams.FLAG_BLUR_BEHIND);
|
|
||||||
}
|
|
||||||
dialog.show();
|
dialog.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -782,6 +776,7 @@ public class LockPatternKeyguardView extends KeyguardViewBase {
|
|||||||
}
|
}
|
||||||
String message = mContext.getString(messageId, mUpdateMonitor.getFailedAttempts(),
|
String message = mContext.getString(messageId, mUpdateMonitor.getFailedAttempts(),
|
||||||
timeoutInSeconds);
|
timeoutInSeconds);
|
||||||
|
|
||||||
showDialog(null, message);
|
showDialog(null, message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -226,12 +226,6 @@ public class SimPukUnlockScreen extends LinearLayout implements KeyguardScreen,
|
|||||||
mSimUnlockProgressDialog.setCancelable(false);
|
mSimUnlockProgressDialog.setCancelable(false);
|
||||||
mSimUnlockProgressDialog.getWindow().setType(
|
mSimUnlockProgressDialog.getWindow().setType(
|
||||||
WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG);
|
WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG);
|
||||||
if (!mContext.getResources().getBoolean(
|
|
||||||
com.android.internal.R.bool.config_sf_slowBlur)) {
|
|
||||||
mSimUnlockProgressDialog.getWindow().setFlags(
|
|
||||||
WindowManager.LayoutParams.FLAG_BLUR_BEHIND,
|
|
||||||
WindowManager.LayoutParams.FLAG_BLUR_BEHIND);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return mSimUnlockProgressDialog;
|
return mSimUnlockProgressDialog;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -196,12 +196,6 @@ public class SimUnlockScreen extends LinearLayout implements KeyguardScreen, Vie
|
|||||||
mSimUnlockProgressDialog.setCancelable(false);
|
mSimUnlockProgressDialog.setCancelable(false);
|
||||||
mSimUnlockProgressDialog.getWindow().setType(
|
mSimUnlockProgressDialog.getWindow().setType(
|
||||||
WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG);
|
WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG);
|
||||||
if (!mContext.getResources().getBoolean(
|
|
||||||
com.android.internal.R.bool.config_sf_slowBlur)) {
|
|
||||||
mSimUnlockProgressDialog.getWindow().setFlags(
|
|
||||||
WindowManager.LayoutParams.FLAG_BLUR_BEHIND,
|
|
||||||
WindowManager.LayoutParams.FLAG_BLUR_BEHIND);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return mSimUnlockProgressDialog;
|
return mSimUnlockProgressDialog;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user