Orion Hodson
d93230975f
Merge "Use updated NetworkEventDispatcher API" into sc-dev am: 2869d5a8c8 am: f74e79928c am: b5de623232
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14722570
Change-Id: Iaa6863a9213c771b66ac03947a3486581a2625cd
2021-05-26 14:08:36 +00:00
Orion Hodson
b5de623232
Merge "Use updated NetworkEventDispatcher API" into sc-dev am: 2869d5a8c8 am: f74e79928c
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14722570
Change-Id: Ieea443c819a1ce179626ab2281245340fa17d158
2021-05-26 14:02:04 +00:00
Orion Hodson
f74e79928c
Merge "Use updated NetworkEventDispatcher API" into sc-dev am: 2869d5a8c8
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14722570
Change-Id: I5a935fb91eb9282e308b3fa87f6e021d1b364042
2021-05-26 13:53:44 +00:00
Orion Hodson
2869d5a8c8
Merge "Use updated NetworkEventDispatcher API" into sc-dev
2021-05-26 13:34:07 +00:00
Wei Sheng Shih
3be1e2b579
Merge "Fix setApplicationNightMode crash due to permission denial." into sc-dev am: d42b8e2c73
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14702762
Change-Id: I77d5eb3f3e71b0b4f6a55b054d2b937fc81fb60f
2021-05-26 11:31:21 +00:00
Li Li
56f795a97e
Merge "Freezer kill reason in App Process Kill Stats" into sc-dev am: a80340f9c6
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14359202
Change-Id: I8f51c1b7ddfa36e86d273d0c39b29e7ade353d88
2021-05-26 11:09:04 +00:00
Jeff DeCew
4e19c0f201
Merge "Resolve Notification.Colors once, instead of lazily." into sc-dev am: f294d0ba5f
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14140988
Change-Id: Icaeb16f0e3fbb114c4de551e75adaa948c312ce6
2021-05-26 11:05:23 +00:00
Vadim Caen
847c9f75ae
Merge changes from topic "splashscreen-surface" into sc-dev am: fc1efcb428
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14186656
Change-Id: I7c295f6f285fdd54f5be77d26eaaddeba9194bed
2021-05-26 11:04:14 +00:00
Jeff Sharkey
a1d0580e40
Merge "Retire preliminary FGS deferral control API" into sc-dev am: 023570d056
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14703963
Change-Id: Id165b46a61acffae36ee8fa71618226049e9c0e9
2021-05-26 11:02:35 +00:00
Shan Huang
6aa4481153
Merge "Tweak dark area thresholds." into sc-dev am: 35a187904c
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14700835
Change-Id: I113b70fba2c36243754201afc64fc2929ea1eede
2021-05-26 10:51:18 +00:00
Victor Chang
ad227b1cab
Merge "Refactor ddm ChunkHandler utility methods from libcore to framework" into sc-dev
2021-05-26 08:27:06 +00:00
Wei Sheng Shih
313380dad7
Merge "Fix setApplicationNightMode crash due to permission denial." into sc-dev am: d42b8e2c73 am: 6805730be1 am: 587172d7fa
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14702762
Change-Id: I4aaeb0de74a5901f648cc63dcd2c8c75907e8838
2021-05-26 02:43:41 +00:00
Wei Sheng Shih
587172d7fa
Merge "Fix setApplicationNightMode crash due to permission denial." into sc-dev am: d42b8e2c73 am: 6805730be1
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14702762
Change-Id: I5165e78e0f6f534671598c493e7bdd3c0d32fd6c
2021-05-26 02:28:55 +00:00
Wei Sheng Shih
6805730be1
Merge "Fix setApplicationNightMode crash due to permission denial." into sc-dev am: d42b8e2c73
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14702762
Change-Id: If69e153e70ece1a8cd3f72551e90cce056d4c47e
2021-05-26 02:05:05 +00:00
vichang
f28c1d1ca2
Merge "Refactor ddm ChunkHandler utility methods from libcore to framework" am: efc3806b1c am: 2d170271ea am: 7da86d8d3e am: 2e3c0875f7
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1686655
Change-Id: Ia53b47a520c6f5458cc3516ec8bdeaca71151b69
2021-05-26 02:03:33 +00:00
Wei Sheng Shih
d42b8e2c73
Merge "Fix setApplicationNightMode crash due to permission denial." into sc-dev
2021-05-26 01:56:30 +00:00
vichang
2e3c0875f7
Merge "Refactor ddm ChunkHandler utility methods from libcore to framework" am: efc3806b1c am: 2d170271ea am: 7da86d8d3e
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1686655
Change-Id: Id8366338726907fd7a7ad1248f4482906ed235dc
2021-05-26 01:30:40 +00:00
vichang
7da86d8d3e
Merge "Refactor ddm ChunkHandler utility methods from libcore to framework" am: efc3806b1c am: 2d170271ea
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1686655
Change-Id: I23ef95bb40a210baebd22343dca0757675551069
2021-05-26 01:07:30 +00:00
Nikita Iashchenko
3938aac8a6
Refactor ddm ChunkHandler utility methods from libcore to framework
...
As a part of internal libcore cleanup three utility methods for ddm
chunks (de)serialization were removed from the CorePlatformApi set and
moved to framework.
As a part of API council review made following changes:
* Renamed connected/disconnected callback methods to
onConnected/onDisconnected, respectively
* Made unregisterHandler method a part of core api
* Renamed threadNotify/enableRecentAllocations setters
Bug: 154796679
Bug: 184654804
Test: m droid
Merged-In: I1d43f12aaf70c7c079577d3f3248248ed39f9865
Change-Id: I1d43f12aaf70c7c079577d3f3248248ed39f9865
2021-05-26 01:36:53 +01:00
vichang
efc3806b1c
Merge "Refactor ddm ChunkHandler utility methods from libcore to framework"
2021-05-26 00:26:20 +00:00
Treehugger Robot
394caebaa4
Merge "Add OWNERS for StorageStats related code." am: 1050f27b56 am: fc716dbc8b am: 4c2e19766f am: d0b6abbfa8
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1716368
Change-Id: Iecda649c7f940cd21123b9e4963364cc36ee80a2
2021-05-26 00:20:37 +00:00
Treehugger Robot
d0b6abbfa8
Merge "Add OWNERS for StorageStats related code." am: 1050f27b56 am: fc716dbc8b am: 4c2e19766f
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1716368
Change-Id: Iad6f38cbb994cab81fe142cd6a620a763cab799c
2021-05-26 00:00:59 +00:00
Treehugger Robot
4c2e19766f
Merge "Add OWNERS for StorageStats related code." am: 1050f27b56 am: fc716dbc8b
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1716368
Change-Id: Ib34358f3baae6a233475f83f2db3770d91c849e4
2021-05-25 23:39:02 +00:00
Li Li
5447df61a0
Merge "Freezer kill reason in App Process Kill Stats" into sc-dev am: a80340f9c6 am: 74bafb831e am: b0a14c1af1
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14359202
Change-Id: I8ad5b088b4eca16672587d41c08aad4e8a32ec4a
2021-05-25 20:36:54 +00:00
Orion Hodson
a0ce8ac42c
Use updated NetworkEventDispatcher API
...
Bug: 185153775
Test: m
Change-Id: Ib5ea04b0bae0dce9783c4017f1dd0db0efd49976
2021-05-25 21:05:55 +01:00
Li Li
74bafb831e
Merge "Freezer kill reason in App Process Kill Stats" into sc-dev am: a80340f9c6
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14359202
Change-Id: I48d7b7ce9126f899a70931de9dd7af83887403be
2021-05-25 19:53:38 +00:00
Li Li
a80340f9c6
Merge "Freezer kill reason in App Process Kill Stats" into sc-dev
2021-05-25 19:34:49 +00:00
Jeff DeCew
f62c474b77
Merge "Resolve Notification.Colors once, instead of lazily." into sc-dev am: f294d0ba5f am: 8d6af97d2b am: 9dc3fc72de
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14140988
Change-Id: Ife1e9a14027a89c2f2c11865d897adda5c809abb
2021-05-25 17:33:27 +00:00
Jeff DeCew
8d6af97d2b
Merge "Resolve Notification.Colors once, instead of lazily." into sc-dev am: f294d0ba5f
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14140988
Change-Id: I3beac51a74ec5eec5348f01e0b71ae73925ef035
2021-05-25 16:56:58 +00:00
Jeff DeCew
f294d0ba5f
Merge "Resolve Notification.Colors once, instead of lazily." into sc-dev
2021-05-25 16:44:59 +00:00
Vadim Caen
b42455b969
Merge changes from topic "splashscreen-surface" into sc-dev am: fc1efcb428 am: be2ac213fe am: edf6bbea58
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14186656
Change-Id: If12039cd518709d54df21eeabdaedf2dc30bbbcf
2021-05-25 15:58:41 +00:00
Vadim Caen
be2ac213fe
Merge changes from topic "splashscreen-surface" into sc-dev am: fc1efcb428
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14186656
Change-Id: Ie0e17006e404de22c20cce84cf7a43fdf0eb85e7
2021-05-25 15:24:45 +00:00
Vadim Caen
fc1efcb428
Merge changes from topic "splashscreen-surface" into sc-dev
...
* changes:
Do not reparent the SC when package is already realeased
Display Splashscreen AVD in a SurfaceView
2021-05-25 15:24:08 +00:00
Jeff Sharkey
554d83dae9
Merge "Retire preliminary FGS deferral control API" into sc-dev am: 023570d056 am: 11f386e9e8 am: 741c0ca2fe
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14703963
Change-Id: Ib60ef0b86d12d7e5656002c38aa1d0d86c9aa230
2021-05-25 14:58:14 +00:00
Jeff Sharkey
11f386e9e8
Merge "Retire preliminary FGS deferral control API" into sc-dev am: 023570d056
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14703963
Change-Id: I2b413742e88115d143a13b3caeefcdb231402a6b
2021-05-25 14:36:36 +00:00
Jeff Sharkey
023570d056
Merge "Retire preliminary FGS deferral control API" into sc-dev
2021-05-25 14:27:07 +00:00
Jeff DeCew
cab7d8e011
Resolve Notification.Colors once, instead of lazily.
...
* Instead of resolving colors as-needed, resolve the entire palette potentially used by the notification at the start.
* Centralize color logic and palette storage into Notification.Colors for easier unit testing.
* Adds unit tests for the Notification.Colors, including validating color contrast ratios for various colors.
* Fix a bug with ColorContrastUtil where the luminosity for dark/light font cutoff was 0.5, which resulted in a max contrast ratio of 1.9 for some colors. Now contrast ratios of 4.5:1 can be achieved for all colors.
* Removes a few of the color accessors in Notification.Builder which were infrequently used, and replaces them with direct use of Notification.Colors.
* Notification specific colors (primary, secondary, default) have only been used by colorized notifications for a few months. Remove the dark mode overrides of these, ensuring that colorized notifications have the same exact appearance in light and dark themes.
* Replace the use of the "default" color with the "secondary text color"; this practically only affects the alerted bell icon, is more consistent, and reduces complexity.
Fixes: 187881776
Test: manual
Test: atest android.app.NotificationTest
Change-Id: Ib8840d04093094c324d8bdce5b2e84c93a94db8d
2021-05-25 09:57:11 -04:00
Nikita Iashchenko
77f6bbff3c
Refactor ddm ChunkHandler utility methods from libcore to framework
...
As a part of internal libcore cleanup three utility methods for ddm
chunks (de)serialization were removed from the CorePlatformApi set and
moved to framework.
As a part of API council review made following changes:
* Renamed connected/disconnected callback methods to
onConnected/onDisconnected, respectively
* Made unregisterHandler method a part of core api
* Renamed threadNotify/enableRecentAllocations setters
Bug: 154796679
Bug: 184654804
Test: m droid
Change-Id: I1d43f12aaf70c7c079577d3f3248248ed39f9865
2021-05-25 14:29:21 +01:00
Jerry Chang
94d87c64a3
Merge "Do not dismiss split if stages are not visible due to screen is sleeping" into sc-v2-dev am: c200310e02 am: 467aa9197b
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14613435
Change-Id: Ie0bfc001de218d0bcd4a560a8abd30692d19958c
2021-05-25 13:19:28 +00:00
wilsonshih
d22e8b1403
Fix setApplicationNightMode crash due to permission denial.
...
Test activity crash when calling UiModeManager#setApplicationNightMode.
There should call clearCallingIdentity before updating configuration in
system server.
Also clear some code around those methods.
Fixes: 189166288
Test: atest SplashscreenTests#testSetApplicationNightMode
Change-Id: I163919927030f81739aa3d9520e2012a92028793
2021-05-25 19:09:58 +08:00
Jerry Chang
c200310e02
Merge "Do not dismiss split if stages are not visible due to screen is sleeping" into sc-v2-dev
2021-05-25 10:48:07 +00:00
Jerry Chang
c04541c053
Do not dismiss split if stages are not visible due to screen is sleeping
...
Pass isSleeping information in TaskInfo to determine whether the task is
sleeping due to display state. Prevent to dismiss staged split when
both stages is not visible due to the display is sleeping, like keyguard
showing or screen off.
Bug: 188010345
Test: atest WMShellUnitTests
Test: verified staged split won't be dismissed while keyguard showing
and screen off.
Change-Id: I0ee8943b035a9e9f937c22d2a228913e597ac79f
2021-05-25 07:09:57 +00:00
Shan Huang
ed75b5db62
Merge "Tweak dark area thresholds." into sc-dev am: 35a187904c am: 028c8bd001 am: 7fceebbb04
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14700835
Change-Id: Icf3300e103a92a2319825e4deab9306ae4551ed7
2021-05-25 07:06:56 +00:00
Shan Huang
028c8bd001
Merge "Tweak dark area thresholds." into sc-dev am: 35a187904c
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14700835
Change-Id: I30988838e9a4f0f563a46327d26eb78742890892
2021-05-25 06:35:56 +00:00
Shan Huang
35a187904c
Merge "Tweak dark area thresholds." into sc-dev
2021-05-25 06:07:39 +00:00
Li Li
71fd3dc694
Freezer kill reason in App Process Kill Stats
...
The reason code is helpful for developers to understand why an app is
killed. It is also valuable to better quantify the benefit and impact
of App Freezer.
Bug: 183714099
Bug: 179715791
Test: dumpsys activity exit-info shows subreasons.
Change-Id: Iea808cdc8adbe9d84663071dc849d00ea28a9f7d
2021-05-24 22:17:42 -07:00
Sudheer Shanka
2910735d59
Add OWNERS for StorageStats related code.
...
Test: n/a
Change-Id: Idc16f09a5aa3b56af232c12f267614eaad94d9e4
2021-05-25 00:14:23 +00:00
Hyunyoung Song
69b35897b2
Merge "ApiCouncil review round3 / setHidden, Query.getExtras" into sc-dev am: 46d6e25d25 am: 0a0aa9d7e5 am: 5c67dc96a6
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14683051
Change-Id: I57d2fb2367ef424ff1173c9cd5a4beeda6dc4c3a
2021-05-24 21:57:20 +00:00
Hyunyoung Song
5c67dc96a6
Merge "ApiCouncil review round3 / setHidden, Query.getExtras" into sc-dev am: 46d6e25d25 am: 0a0aa9d7e5
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14683051
Change-Id: Icb10cc457a852205e6fc635e8dc70ecc539c9a67
2021-05-24 21:42:01 +00:00
Christopher Tate
baf1aad78e
Retire preliminary FGS deferral control API
...
Now that we've settled the final API for this mechanism, retire the
preliminary one.
Bug: 186475652
Test: atest CtsAppTestCases:ServiceTest
Test: atest CtsAppTestCases:NotificationManagerTest
Change-Id: Ibe911627ad59b991f2e498689f7fa3019c19dc36
2021-05-24 14:28:16 -07:00