Merge "Replace TYPE_STATUS_BAR_PANEL with TYPE_STATUS_BAR_ADDITIONAL" into rvc-dev am: d1bbc14732 am: d4896aafa0
Change-Id: I3b2689713e880604cdd9963db59e946a7e178636
This commit is contained in:
@@ -55730,7 +55730,7 @@ package android.view {
|
|||||||
field public static final int TYPE_PRIVATE_PRESENTATION = 2030; // 0x7ee
|
field public static final int TYPE_PRIVATE_PRESENTATION = 2030; // 0x7ee
|
||||||
field public static final int TYPE_SEARCH_BAR = 2001; // 0x7d1
|
field public static final int TYPE_SEARCH_BAR = 2001; // 0x7d1
|
||||||
field public static final int TYPE_STATUS_BAR = 2000; // 0x7d0
|
field public static final int TYPE_STATUS_BAR = 2000; // 0x7d0
|
||||||
field public static final int TYPE_STATUS_BAR_PANEL = 2014; // 0x7de
|
field @Deprecated public static final int TYPE_STATUS_BAR_PANEL = 2014; // 0x7de
|
||||||
field @Deprecated public static final int TYPE_SYSTEM_ALERT = 2003; // 0x7d3
|
field @Deprecated public static final int TYPE_SYSTEM_ALERT = 2003; // 0x7d3
|
||||||
field public static final int TYPE_SYSTEM_DIALOG = 2008; // 0x7d8
|
field public static final int TYPE_SYSTEM_DIALOG = 2008; // 0x7d8
|
||||||
field @Deprecated public static final int TYPE_SYSTEM_ERROR = 2010; // 0x7da
|
field @Deprecated public static final int TYPE_SYSTEM_ERROR = 2010; // 0x7da
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ import static android.view.WindowManager.LayoutParams.PRIVATE_FLAG_BEHAVIOR_CONT
|
|||||||
import static android.view.WindowManager.LayoutParams.PRIVATE_FLAG_FIT_INSETS_CONTROLLED;
|
import static android.view.WindowManager.LayoutParams.PRIVATE_FLAG_FIT_INSETS_CONTROLLED;
|
||||||
import static android.view.WindowManager.LayoutParams.PRIVATE_FLAG_FORCE_DECOR_VIEW_VISIBILITY;
|
import static android.view.WindowManager.LayoutParams.PRIVATE_FLAG_FORCE_DECOR_VIEW_VISIBILITY;
|
||||||
import static android.view.WindowManager.LayoutParams.TYPE_INPUT_METHOD;
|
import static android.view.WindowManager.LayoutParams.TYPE_INPUT_METHOD;
|
||||||
import static android.view.WindowManager.LayoutParams.TYPE_STATUS_BAR_PANEL;
|
import static android.view.WindowManager.LayoutParams.TYPE_STATUS_BAR_ADDITIONAL;
|
||||||
import static android.view.WindowManager.LayoutParams.TYPE_SYSTEM_ALERT;
|
import static android.view.WindowManager.LayoutParams.TYPE_SYSTEM_ALERT;
|
||||||
import static android.view.WindowManager.LayoutParams.TYPE_TOAST;
|
import static android.view.WindowManager.LayoutParams.TYPE_TOAST;
|
||||||
import static android.view.WindowManager.LayoutParams.TYPE_VOLUME_OVERLAY;
|
import static android.view.WindowManager.LayoutParams.TYPE_VOLUME_OVERLAY;
|
||||||
@@ -2276,7 +2276,7 @@ public final class ViewRootImpl implements ViewParent,
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static boolean shouldUseDisplaySize(final WindowManager.LayoutParams lp) {
|
private static boolean shouldUseDisplaySize(final WindowManager.LayoutParams lp) {
|
||||||
return lp.type == TYPE_STATUS_BAR_PANEL
|
return lp.type == TYPE_STATUS_BAR_ADDITIONAL
|
||||||
|| lp.type == TYPE_INPUT_METHOD
|
|| lp.type == TYPE_INPUT_METHOD
|
||||||
|| lp.type == TYPE_VOLUME_OVERLAY;
|
|| lp.type == TYPE_VOLUME_OVERLAY;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1026,7 +1026,11 @@ public interface WindowManager extends ViewManager {
|
|||||||
/**
|
/**
|
||||||
* Window type: panel that slides out from over the status bar
|
* Window type: panel that slides out from over the status bar
|
||||||
* In multiuser systems shows on all users' windows.
|
* In multiuser systems shows on all users' windows.
|
||||||
|
*
|
||||||
|
* @deprecated This became API by accident and was never intended to be used for
|
||||||
|
* applications.
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public static final int TYPE_STATUS_BAR_PANEL = FIRST_SYSTEM_WINDOW+14;
|
public static final int TYPE_STATUS_BAR_PANEL = FIRST_SYSTEM_WINDOW+14;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1220,6 +1224,14 @@ public interface WindowManager extends ViewManager {
|
|||||||
*/
|
*/
|
||||||
public static final int TYPE_NOTIFICATION_SHADE = FIRST_SYSTEM_WINDOW + 40;
|
public static final int TYPE_NOTIFICATION_SHADE = FIRST_SYSTEM_WINDOW + 40;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Window type: used to show the status bar in non conventional parts of the screen (i.e.
|
||||||
|
* the left or the bottom of the screen).
|
||||||
|
* In multiuser systems shows on all users' windows.
|
||||||
|
* @hide
|
||||||
|
*/
|
||||||
|
public static final int TYPE_STATUS_BAR_ADDITIONAL = FIRST_SYSTEM_WINDOW + 41;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* End of types of system windows.
|
* End of types of system windows.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -595,7 +595,7 @@ public class AuthContainerView extends LinearLayout
|
|||||||
final WindowManager.LayoutParams lp = new WindowManager.LayoutParams(
|
final WindowManager.LayoutParams lp = new WindowManager.LayoutParams(
|
||||||
ViewGroup.LayoutParams.MATCH_PARENT,
|
ViewGroup.LayoutParams.MATCH_PARENT,
|
||||||
ViewGroup.LayoutParams.MATCH_PARENT,
|
ViewGroup.LayoutParams.MATCH_PARENT,
|
||||||
WindowManager.LayoutParams.TYPE_STATUS_BAR_PANEL,
|
WindowManager.LayoutParams.TYPE_STATUS_BAR_SUB_PANEL,
|
||||||
windowFlags,
|
windowFlags,
|
||||||
PixelFormat.TRANSLUCENT);
|
PixelFormat.TRANSLUCENT);
|
||||||
lp.privateFlags |= WindowManager.LayoutParams.SYSTEM_FLAG_SHOW_FOR_ALL_USERS;
|
lp.privateFlags |= WindowManager.LayoutParams.SYSTEM_FLAG_SHOW_FOR_ALL_USERS;
|
||||||
|
|||||||
@@ -285,7 +285,7 @@ class ChannelEditorDialogController @Inject constructor(
|
|||||||
window?.apply {
|
window?.apply {
|
||||||
setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT))
|
setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT))
|
||||||
addFlags(wmFlags)
|
addFlags(wmFlags)
|
||||||
setType(WindowManager.LayoutParams.TYPE_STATUS_BAR_PANEL)
|
setType(WindowManager.LayoutParams.TYPE_STATUS_BAR_SUB_PANEL)
|
||||||
setWindowAnimations(com.android.internal.R.style.Animation_InputMethod)
|
setWindowAnimations(com.android.internal.R.style.Animation_InputMethod)
|
||||||
|
|
||||||
attributes = attributes.apply {
|
attributes = attributes.apply {
|
||||||
|
|||||||
@@ -103,19 +103,17 @@ public class SystemUIDialog extends AlertDialog {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void setWindowOnTop(Dialog dialog) {
|
public static void setWindowOnTop(Dialog dialog) {
|
||||||
|
final Window window = dialog.getWindow();
|
||||||
|
window.setType(LayoutParams.TYPE_STATUS_BAR_SUB_PANEL);
|
||||||
if (Dependency.get(KeyguardStateController.class).isShowing()) {
|
if (Dependency.get(KeyguardStateController.class).isShowing()) {
|
||||||
final Window window = dialog.getWindow();
|
|
||||||
window.setType(LayoutParams.TYPE_STATUS_BAR_PANEL);
|
|
||||||
window.getAttributes().setFitInsetsTypes(
|
window.getAttributes().setFitInsetsTypes(
|
||||||
window.getAttributes().getFitInsetsTypes() & ~Type.statusBars());
|
window.getAttributes().getFitInsetsTypes() & ~Type.statusBars());
|
||||||
} else {
|
|
||||||
dialog.getWindow().setType(LayoutParams.TYPE_STATUS_BAR_SUB_PANEL);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static AlertDialog applyFlags(AlertDialog dialog) {
|
public static AlertDialog applyFlags(AlertDialog dialog) {
|
||||||
final Window window = dialog.getWindow();
|
final Window window = dialog.getWindow();
|
||||||
window.setType(WindowManager.LayoutParams.TYPE_STATUS_BAR_PANEL);
|
window.setType(WindowManager.LayoutParams.TYPE_STATUS_BAR_SUB_PANEL);
|
||||||
window.addFlags(WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM
|
window.addFlags(WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM
|
||||||
| WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);
|
| WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);
|
||||||
window.getAttributes().setFitInsetsTypes(
|
window.getAttributes().setFitInsetsTypes(
|
||||||
|
|||||||
@@ -717,7 +717,7 @@ public class AccessibilityWindowManager {
|
|||||||
case WindowManager.LayoutParams.TYPE_SEARCH_BAR:
|
case WindowManager.LayoutParams.TYPE_SEARCH_BAR:
|
||||||
case WindowManager.LayoutParams.TYPE_STATUS_BAR:
|
case WindowManager.LayoutParams.TYPE_STATUS_BAR:
|
||||||
case WindowManager.LayoutParams.TYPE_NOTIFICATION_SHADE:
|
case WindowManager.LayoutParams.TYPE_NOTIFICATION_SHADE:
|
||||||
case WindowManager.LayoutParams.TYPE_STATUS_BAR_PANEL:
|
case WindowManager.LayoutParams.TYPE_STATUS_BAR_ADDITIONAL:
|
||||||
case WindowManager.LayoutParams.TYPE_STATUS_BAR_SUB_PANEL:
|
case WindowManager.LayoutParams.TYPE_STATUS_BAR_SUB_PANEL:
|
||||||
case WindowManager.LayoutParams.TYPE_VOLUME_OVERLAY:
|
case WindowManager.LayoutParams.TYPE_VOLUME_OVERLAY:
|
||||||
case WindowManager.LayoutParams.TYPE_SYSTEM_ALERT:
|
case WindowManager.LayoutParams.TYPE_SYSTEM_ALERT:
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ import static android.view.WindowManager.LayoutParams.TYPE_SCREENSHOT;
|
|||||||
import static android.view.WindowManager.LayoutParams.TYPE_SEARCH_BAR;
|
import static android.view.WindowManager.LayoutParams.TYPE_SEARCH_BAR;
|
||||||
import static android.view.WindowManager.LayoutParams.TYPE_SECURE_SYSTEM_OVERLAY;
|
import static android.view.WindowManager.LayoutParams.TYPE_SECURE_SYSTEM_OVERLAY;
|
||||||
import static android.view.WindowManager.LayoutParams.TYPE_STATUS_BAR;
|
import static android.view.WindowManager.LayoutParams.TYPE_STATUS_BAR;
|
||||||
import static android.view.WindowManager.LayoutParams.TYPE_STATUS_BAR_PANEL;
|
import static android.view.WindowManager.LayoutParams.TYPE_STATUS_BAR_ADDITIONAL;
|
||||||
import static android.view.WindowManager.LayoutParams.TYPE_STATUS_BAR_SUB_PANEL;
|
import static android.view.WindowManager.LayoutParams.TYPE_STATUS_BAR_SUB_PANEL;
|
||||||
import static android.view.WindowManager.LayoutParams.TYPE_SYSTEM_ALERT;
|
import static android.view.WindowManager.LayoutParams.TYPE_SYSTEM_ALERT;
|
||||||
import static android.view.WindowManager.LayoutParams.TYPE_SYSTEM_DIALOG;
|
import static android.view.WindowManager.LayoutParams.TYPE_SYSTEM_DIALOG;
|
||||||
@@ -817,9 +817,9 @@ public interface WindowManagerPolicy extends WindowManagerPolicyConstants {
|
|||||||
return 16;
|
return 16;
|
||||||
case TYPE_STATUS_BAR:
|
case TYPE_STATUS_BAR:
|
||||||
return 17;
|
return 17;
|
||||||
case TYPE_NOTIFICATION_SHADE:
|
case TYPE_STATUS_BAR_ADDITIONAL:
|
||||||
return 18;
|
return 18;
|
||||||
case TYPE_STATUS_BAR_PANEL:
|
case TYPE_NOTIFICATION_SHADE:
|
||||||
return 19;
|
return 19;
|
||||||
case TYPE_STATUS_BAR_SUB_PANEL:
|
case TYPE_STATUS_BAR_SUB_PANEL:
|
||||||
return 20;
|
return 20;
|
||||||
|
|||||||
@@ -84,6 +84,7 @@ import static android.view.WindowManager.LayoutParams.TYPE_NOTIFICATION_SHADE;
|
|||||||
import static android.view.WindowManager.LayoutParams.TYPE_SCREENSHOT;
|
import static android.view.WindowManager.LayoutParams.TYPE_SCREENSHOT;
|
||||||
import static android.view.WindowManager.LayoutParams.TYPE_SECURE_SYSTEM_OVERLAY;
|
import static android.view.WindowManager.LayoutParams.TYPE_SECURE_SYSTEM_OVERLAY;
|
||||||
import static android.view.WindowManager.LayoutParams.TYPE_STATUS_BAR;
|
import static android.view.WindowManager.LayoutParams.TYPE_STATUS_BAR;
|
||||||
|
import static android.view.WindowManager.LayoutParams.TYPE_STATUS_BAR_ADDITIONAL;
|
||||||
import static android.view.WindowManager.LayoutParams.TYPE_STATUS_BAR_PANEL;
|
import static android.view.WindowManager.LayoutParams.TYPE_STATUS_BAR_PANEL;
|
||||||
import static android.view.WindowManager.LayoutParams.TYPE_STATUS_BAR_SUB_PANEL;
|
import static android.view.WindowManager.LayoutParams.TYPE_STATUS_BAR_SUB_PANEL;
|
||||||
import static android.view.WindowManager.LayoutParams.TYPE_SYSTEM_ALERT;
|
import static android.view.WindowManager.LayoutParams.TYPE_SYSTEM_ALERT;
|
||||||
@@ -985,13 +986,15 @@ public class DisplayPolicy {
|
|||||||
"DisplayPolicy");
|
"DisplayPolicy");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case TYPE_STATUS_BAR_PANEL:
|
case TYPE_STATUS_BAR_ADDITIONAL:
|
||||||
case TYPE_STATUS_BAR_SUB_PANEL:
|
case TYPE_STATUS_BAR_SUB_PANEL:
|
||||||
case TYPE_VOICE_INTERACTION_STARTING:
|
case TYPE_VOICE_INTERACTION_STARTING:
|
||||||
mContext.enforcePermission(
|
mContext.enforcePermission(
|
||||||
android.Manifest.permission.STATUS_BAR_SERVICE, callingPid, callingUid,
|
android.Manifest.permission.STATUS_BAR_SERVICE, callingPid, callingUid,
|
||||||
"DisplayPolicy");
|
"DisplayPolicy");
|
||||||
break;
|
break;
|
||||||
|
case TYPE_STATUS_BAR_PANEL:
|
||||||
|
return WindowManagerGlobal.ADD_INVALID_TYPE;
|
||||||
}
|
}
|
||||||
return ADD_OKAY;
|
return ADD_OKAY;
|
||||||
}
|
}
|
||||||
@@ -2103,7 +2106,7 @@ public class DisplayPolicy {
|
|||||||
setAttachedWindowFrames(win, fl, adjust, attached, true, pf, df, cf, vf,
|
setAttachedWindowFrames(win, fl, adjust, attached, true, pf, df, cf, vf,
|
||||||
displayFrames);
|
displayFrames);
|
||||||
} else {
|
} else {
|
||||||
if (type == TYPE_STATUS_BAR_PANEL || type == TYPE_STATUS_BAR_SUB_PANEL) {
|
if (type == TYPE_STATUS_BAR_ADDITIONAL || type == TYPE_STATUS_BAR_SUB_PANEL) {
|
||||||
// Status bar panels are the only windows who can go on top of the status
|
// Status bar panels are the only windows who can go on top of the status
|
||||||
// bar. They are protected by the STATUS_BAR_SERVICE permission, so they
|
// bar. They are protected by the STATUS_BAR_SERVICE permission, so they
|
||||||
// have the same privileges as the status bar itself.
|
// have the same privileges as the status bar itself.
|
||||||
@@ -2170,7 +2173,7 @@ public class DisplayPolicy {
|
|||||||
+ "): IN_SCREEN");
|
+ "): IN_SCREEN");
|
||||||
// A window that has requested to fill the entire screen just
|
// A window that has requested to fill the entire screen just
|
||||||
// gets everything, period.
|
// gets everything, period.
|
||||||
if (type == TYPE_STATUS_BAR_PANEL || type == TYPE_STATUS_BAR_SUB_PANEL) {
|
if (type == TYPE_STATUS_BAR_ADDITIONAL || type == TYPE_STATUS_BAR_SUB_PANEL) {
|
||||||
cf.set(displayFrames.mUnrestricted);
|
cf.set(displayFrames.mUnrestricted);
|
||||||
df.set(displayFrames.mUnrestricted);
|
df.set(displayFrames.mUnrestricted);
|
||||||
pf.set(displayFrames.mUnrestricted);
|
pf.set(displayFrames.mUnrestricted);
|
||||||
@@ -2252,7 +2255,7 @@ public class DisplayPolicy {
|
|||||||
+ "): normal window");
|
+ "): normal window");
|
||||||
// Otherwise, a normal window must be placed inside the content
|
// Otherwise, a normal window must be placed inside the content
|
||||||
// of all screen decorations.
|
// of all screen decorations.
|
||||||
if (type == TYPE_STATUS_BAR_PANEL) {
|
if (type == TYPE_STATUS_BAR_ADDITIONAL) {
|
||||||
// Status bar panels can go on
|
// Status bar panels can go on
|
||||||
// top of the status bar. They are protected by the STATUS_BAR_SERVICE
|
// top of the status bar. They are protected by the STATUS_BAR_SERVICE
|
||||||
// permission, so they have the same privileges as the status bar itself.
|
// permission, so they have the same privileges as the status bar itself.
|
||||||
|
|||||||
@@ -185,7 +185,7 @@ public class ImmersiveModeConfirmation {
|
|||||||
final WindowManager.LayoutParams lp = new WindowManager.LayoutParams(
|
final WindowManager.LayoutParams lp = new WindowManager.LayoutParams(
|
||||||
ViewGroup.LayoutParams.MATCH_PARENT,
|
ViewGroup.LayoutParams.MATCH_PARENT,
|
||||||
ViewGroup.LayoutParams.MATCH_PARENT,
|
ViewGroup.LayoutParams.MATCH_PARENT,
|
||||||
WindowManager.LayoutParams.TYPE_STATUS_BAR_PANEL,
|
WindowManager.LayoutParams.TYPE_STATUS_BAR_SUB_PANEL,
|
||||||
WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN
|
WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN
|
||||||
| WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED
|
| WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED
|
||||||
| WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL,
|
| WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL,
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ import static android.view.WindowManager.LayoutParams.TYPE_PRIORITY_PHONE;
|
|||||||
import static android.view.WindowManager.LayoutParams.TYPE_PRIVATE_PRESENTATION;
|
import static android.view.WindowManager.LayoutParams.TYPE_PRIVATE_PRESENTATION;
|
||||||
import static android.view.WindowManager.LayoutParams.TYPE_SEARCH_BAR;
|
import static android.view.WindowManager.LayoutParams.TYPE_SEARCH_BAR;
|
||||||
import static android.view.WindowManager.LayoutParams.TYPE_STATUS_BAR;
|
import static android.view.WindowManager.LayoutParams.TYPE_STATUS_BAR;
|
||||||
import static android.view.WindowManager.LayoutParams.TYPE_STATUS_BAR_PANEL;
|
import static android.view.WindowManager.LayoutParams.TYPE_STATUS_BAR_ADDITIONAL;
|
||||||
import static android.view.WindowManager.LayoutParams.TYPE_STATUS_BAR_SUB_PANEL;
|
import static android.view.WindowManager.LayoutParams.TYPE_STATUS_BAR_SUB_PANEL;
|
||||||
import static android.view.WindowManager.LayoutParams.TYPE_SYSTEM_DIALOG;
|
import static android.view.WindowManager.LayoutParams.TYPE_SYSTEM_DIALOG;
|
||||||
import static android.view.WindowManager.LayoutParams.TYPE_TOAST;
|
import static android.view.WindowManager.LayoutParams.TYPE_TOAST;
|
||||||
@@ -3209,7 +3209,7 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
|
|||||||
case TYPE_SEARCH_BAR:
|
case TYPE_SEARCH_BAR:
|
||||||
case TYPE_STATUS_BAR:
|
case TYPE_STATUS_BAR:
|
||||||
case TYPE_NOTIFICATION_SHADE:
|
case TYPE_NOTIFICATION_SHADE:
|
||||||
case TYPE_STATUS_BAR_PANEL:
|
case TYPE_STATUS_BAR_ADDITIONAL:
|
||||||
case TYPE_STATUS_BAR_SUB_PANEL:
|
case TYPE_STATUS_BAR_SUB_PANEL:
|
||||||
case TYPE_SYSTEM_DIALOG:
|
case TYPE_SYSTEM_DIALOG:
|
||||||
case TYPE_VOLUME_OVERLAY:
|
case TYPE_VOLUME_OVERLAY:
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ import static android.view.WindowManager.LayoutParams.TYPE_APPLICATION_PANEL;
|
|||||||
import static android.view.WindowManager.LayoutParams.TYPE_APPLICATION_SUB_PANEL;
|
import static android.view.WindowManager.LayoutParams.TYPE_APPLICATION_SUB_PANEL;
|
||||||
import static android.view.WindowManager.LayoutParams.TYPE_BASE_APPLICATION;
|
import static android.view.WindowManager.LayoutParams.TYPE_BASE_APPLICATION;
|
||||||
import static android.view.WindowManager.LayoutParams.TYPE_NAVIGATION_BAR_PANEL;
|
import static android.view.WindowManager.LayoutParams.TYPE_NAVIGATION_BAR_PANEL;
|
||||||
import static android.view.WindowManager.LayoutParams.TYPE_STATUS_BAR_PANEL;
|
import static android.view.WindowManager.LayoutParams.TYPE_STATUS_BAR_ADDITIONAL;
|
||||||
import static android.view.WindowManager.LayoutParams.TYPE_STATUS_BAR_SUB_PANEL;
|
import static android.view.WindowManager.LayoutParams.TYPE_STATUS_BAR_SUB_PANEL;
|
||||||
import static android.view.WindowManager.LayoutParams.TYPE_SYSTEM_OVERLAY;
|
import static android.view.WindowManager.LayoutParams.TYPE_SYSTEM_OVERLAY;
|
||||||
|
|
||||||
@@ -376,7 +376,8 @@ public class ZOrderingTests extends WindowTestsBase {
|
|||||||
final WindowState navBarPanel =
|
final WindowState navBarPanel =
|
||||||
createWindow(null, TYPE_NAVIGATION_BAR_PANEL, mDisplayContent, "NavBarPanel");
|
createWindow(null, TYPE_NAVIGATION_BAR_PANEL, mDisplayContent, "NavBarPanel");
|
||||||
final WindowState statusBarPanel =
|
final WindowState statusBarPanel =
|
||||||
createWindow(null, TYPE_STATUS_BAR_PANEL, mDisplayContent, "StatusBarPanel");
|
createWindow(null, TYPE_STATUS_BAR_ADDITIONAL, mDisplayContent,
|
||||||
|
"StatusBarAdditional");
|
||||||
final WindowState statusBarSubPanel =
|
final WindowState statusBarSubPanel =
|
||||||
createWindow(null, TYPE_STATUS_BAR_SUB_PANEL, mDisplayContent, "StatusBarSubPanel");
|
createWindow(null, TYPE_STATUS_BAR_SUB_PANEL, mDisplayContent, "StatusBarSubPanel");
|
||||||
mDisplayContent.assignChildLayers(mTransaction);
|
mDisplayContent.assignChildLayers(mTransaction);
|
||||||
|
|||||||
Reference in New Issue
Block a user