History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/HeadsUpManagerPhone.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
aa9db1f34fe8b4a2d143c1379ec6c0c304bbd40b 28-Feb-2018 Selim Cinek <cinek@google.com> Insetting heads up notifications

Heads up notifications are now corretly respecting insets.
instead of overlapping with any possible notches, we're
insetting heads up notifications and splitting the main
content from the header.

Fixes: 72748440
Test: runtest systemui
Change-Id: Ie53ea31fef4e468239c4346f9d1f192bcb26e11d
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/HeadsUpManagerPhone.java
22af65082cd9faf7bd689097b87626e6929ab5b0 22-Feb-2018 Adrian Roos <roosa@google.com> WM: Split portrait and landscape status bar size

For devices with a display cutout, it is no longer feasible to have the
same status bar size in portrait and landscape.

Special care has to be taken because a lot of third-party apps (and bundled apps)
rely on @dimen/status_bar_height, so we make sure that in -land it is set
to the landscape value.

Note that resource overlays for @dimen/status_bar_height MUST be renamed to
status_bar_height_portrait, otherwise they will only override the portrait
orientation, while landscape will continue to be 24dp!

Bug: 73717865
Test: Enable display cutout, ensure status bar is smaller in landscape.
Change-Id: If2718e53c3a10e3cab092d4b6a0a2a3bdd0cea81
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/HeadsUpManagerPhone.java
4e30e763473859bbe1755e446af08fc7325267b4 05-Feb-2018 yoshiki iguchi <yoshiki@google.com> Split HeadsUpManager implementation to HeadsUpManagerPhone (2nd try)

This CL splits HeadsUpManager with the basic functionality and the
phone (and car) related implementation. The former code leaves in
HeadsUpManager class, and the later code is moved to separated
HeadsUpManagerPhone class.

This contains the following minor changes:
- Move the utility static methods to HeadsUpUtil class.
- Chanege the return types of HeadsUpManager#getAllEntries() and
HeadsUpManager#getTopEntry() from Collection<HeadsUpEntry> to
Stream<NotificationData.Entry>.
- Add a private method: HeadsUpManagerPhone#getTopHeadsUpEntry()
- Make the mPluse propertes boolean instead of Collection in
AmbientState and NotificationStackScrollLayout classes.
- Unify removeAllHeadsUpEntries() and releaseAllImmediately(), since
they do same thing.
- Move getTopHeadsUpPinnedHeight method from HeadsUpManager to
NotificationStackScrollLayout class, since only this class uses it.
- Add simple tests.

Bug: 63874929
Bug: 62602530
Test: Compile and ran "runtest systemui"
Change-Id: I96381bee75894150dae413883c168a67cd4c8267
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/HeadsUpManagerPhone.java
0adf6a6d12df637776cb24bdf29532a6d88be878 01-Feb-2018 yoshiki iguchi <yoshiki@google.com> Revert "Split HeadsUpManager implementation to HeadsUpManagerPhone"

This reverts commit 78db3d0b0fd4bcae0ec92913e2b39491bffa409b.

Reason for revert: Cause crash

Test: none
Change-Id: Iffdad2513158c0856a0d3b56f7667063f4bba91c
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/HeadsUpManagerPhone.java
78db3d0b0fd4bcae0ec92913e2b39491bffa409b 10-Jan-2018 yoshiki iguchi <yoshiki@google.com> Split HeadsUpManager implementation to HeadsUpManagerPhone

This CL splits HeadsUpManager with the basic functionality and the
phone (and car) related implementation. The former code leaves in
HeadsUpManager class, and the later code is moved to separated
HeadsUpManagerPhone class.

This contains the following minor changes:
- Move the utility static methods to HeadsUpUtil class.
- Chanege the return types of HeadsUpManager#getAllEntries() and
HeadsUpManager#getTopEntry() from Collection<HeadsUpEntry> to
Stream<NotificationData.Entry>.
- Add a private method: HeadsUpManagerPhone#getTopHeadsUpEntry()
- Make the mPluse propertes boolean instead of Collection in
AmbientState and NotificationStackScrollLayout classes.
- Unify removeAllHeadsUpEntries() and releaseAllImmediately(), since
they do same thing.
- Move getTopHeadsUpPinnedHeight method from HeadsUpManager to
NotificationStackScrollLayout class, since only this class uses it.
- Add a simple test.

Bug: 63874929
Bug: 62602530
Test: Compile and ran "runtest systemui"
Change-Id: I3e5160803b9cdf1a164339557528ace0d35f8187
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/HeadsUpManagerPhone.java