diff options
| author | Tiger Huang <tigerhuang@google.com> | 2019-10-29 23:21:27 +0800 |
|---|---|---|
| committer | Tiger Huang <tigerhuang@google.com> | 2019-11-18 17:31:42 +0800 |
| commit | 332793ba05e286dec2ba83bc0ccd8bb2e4162099 (patch) | |
| tree | de80d723a96c767386c925e0865f1bcce7c2078a /core/java/android/view/InsetsFlags.java | |
| parent | b61af00a0e2f3456df8811dbefa3cd6bf24ff32f (diff) | |
Window Manager Flag Migration (6/n)
Refactor the insets APIs:
- Remove top/side in the names of types
- Add a type for the caption bar
- Rename InsetSide to InternalInsetsSide which is a enumeration, so that
we can have a public @InsetsSide which is a bit-wise variable
- Fix the naming about insets: inset --> insets
Bug: 118118435
Test: atest InsetsSourceProviderTest InsetsStateControllerTest
InsetsPolicyTest WindowStateTests CommandQueueTest
RegisterStatusBarResultTest InsetsFlagsTest
LightBarControllerTest RegisterStatusBarResultTest
Change-Id: I27a066299eea9927ce61f6cb5d489ad79bca42ba
Diffstat (limited to 'core/java/android/view/InsetsFlags.java')
| -rw-r--r-- | core/java/android/view/InsetsFlags.java | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/core/java/android/view/InsetsFlags.java b/core/java/android/view/InsetsFlags.java index 6e459b22e657..385b0bf960ef 100644 --- a/core/java/android/view/InsetsFlags.java +++ b/core/java/android/view/InsetsFlags.java @@ -23,11 +23,11 @@ import static android.view.View.STATUS_BAR_TRANSPARENT; import static android.view.View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR; import static android.view.View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR; import static android.view.View.SYSTEM_UI_FLAG_LOW_PROFILE; -import static android.view.WindowInsetsController.APPEARANCE_LIGHT_SIDE_BARS; -import static android.view.WindowInsetsController.APPEARANCE_LIGHT_TOP_BAR; +import static android.view.WindowInsetsController.APPEARANCE_LIGHT_NAVIGATION_BARS; +import static android.view.WindowInsetsController.APPEARANCE_LIGHT_STATUS_BARS; import static android.view.WindowInsetsController.APPEARANCE_LOW_PROFILE_BARS; -import static android.view.WindowInsetsController.APPEARANCE_OPAQUE_SIDE_BARS; -import static android.view.WindowInsetsController.APPEARANCE_OPAQUE_TOP_BAR; +import static android.view.WindowInsetsController.APPEARANCE_OPAQUE_NAVIGATION_BARS; +import static android.view.WindowInsetsController.APPEARANCE_OPAQUE_STATUS_BARS; import static android.view.WindowInsetsController.BEHAVIOR_SHOW_BARS_BY_SWIPE; import static android.view.WindowInsetsController.BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE; @@ -43,25 +43,25 @@ public class InsetsFlags { @ViewDebug.ExportedProperty(flagMapping = { @ViewDebug.FlagToString( - mask = APPEARANCE_OPAQUE_TOP_BAR, - equals = APPEARANCE_OPAQUE_TOP_BAR, - name = "OPAQUE_TOP_BAR"), + mask = APPEARANCE_OPAQUE_STATUS_BARS, + equals = APPEARANCE_OPAQUE_STATUS_BARS, + name = "OPAQUE_STATUS_BARS"), @ViewDebug.FlagToString( - mask = APPEARANCE_OPAQUE_SIDE_BARS, - equals = APPEARANCE_OPAQUE_SIDE_BARS, - name = "OPAQUE_SIDE_BARS"), + mask = APPEARANCE_OPAQUE_NAVIGATION_BARS, + equals = APPEARANCE_OPAQUE_NAVIGATION_BARS, + name = "OPAQUE_NAVIGATION_BARS"), @ViewDebug.FlagToString( mask = APPEARANCE_LOW_PROFILE_BARS, equals = APPEARANCE_LOW_PROFILE_BARS, name = "LOW_PROFILE_BARS"), @ViewDebug.FlagToString( - mask = APPEARANCE_LIGHT_TOP_BAR, - equals = APPEARANCE_LIGHT_TOP_BAR, - name = "LIGHT_TOP_BAR"), + mask = APPEARANCE_LIGHT_STATUS_BARS, + equals = APPEARANCE_LIGHT_STATUS_BARS, + name = "LIGHT_STATUS_BARS"), @ViewDebug.FlagToString( - mask = APPEARANCE_LIGHT_SIDE_BARS, - equals = APPEARANCE_LIGHT_SIDE_BARS, - name = "LIGHT_SIDE_BARS") + mask = APPEARANCE_LIGHT_NAVIGATION_BARS, + equals = APPEARANCE_LIGHT_NAVIGATION_BARS, + name = "LIGHT_NAVIGATION_BARS") }) public @Appearance int appearance; @@ -88,14 +88,14 @@ public class InsetsFlags { appearance |= convertFlag(systemUiVisibility, SYSTEM_UI_FLAG_LOW_PROFILE, APPEARANCE_LOW_PROFILE_BARS); appearance |= convertFlag(systemUiVisibility, SYSTEM_UI_FLAG_LIGHT_STATUS_BAR, - APPEARANCE_LIGHT_TOP_BAR); + APPEARANCE_LIGHT_STATUS_BARS); appearance |= convertFlag(systemUiVisibility, SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR, - APPEARANCE_LIGHT_SIDE_BARS); + APPEARANCE_LIGHT_NAVIGATION_BARS); appearance |= convertNoFlag(systemUiVisibility, - STATUS_BAR_TRANSLUCENT | STATUS_BAR_TRANSPARENT, APPEARANCE_OPAQUE_TOP_BAR); + STATUS_BAR_TRANSLUCENT | STATUS_BAR_TRANSPARENT, APPEARANCE_OPAQUE_STATUS_BARS); appearance |= convertNoFlag(systemUiVisibility, NAVIGATION_BAR_TRANSLUCENT | NAVIGATION_BAR_TRANSPARENT, - APPEARANCE_OPAQUE_SIDE_BARS); + APPEARANCE_OPAQUE_NAVIGATION_BARS); return appearance; } |
