Commit Graph

67423 Commits

Author SHA1 Message Date
Julia Reynolds
ce4b7cce83 Merge "Allow some non-MessageStyle notifications to be convos" into rvc-dev am: 91cf4501f8 am: 899a718ebe am: b261e9d49e
Change-Id: I31b1c3f6e353d9298f1c9290ff410e2c1cc5b4cb
2020-05-28 01:09:25 +00:00
TreeHugger Robot
a70197e492 Merge "Fix app standby bugs." into rvc-dev am: 9d62182591 am: 433ee0894e am: f39bd8ed75
Change-Id: I0922a71bbea64f25b0c2ccd8ff12b1350827efb4
2020-05-28 01:09:14 +00:00
Hongwei Wang
eec6b98e44 Merge "No onMultiWindowModeChanged callback from split to PiP" into rvc-dev am: 97c4cda831 am: 883c5320aa am: 807ffff5cc
Change-Id: I7aefab3ca0270d6aa8171ee5121c2885473177ad
2020-05-28 01:08:52 +00:00
TreeHugger Robot
bca03797e1 Merge "Adding permission check for dumping visible windows" into rvc-dev am: 10bee631fd am: acfb372f56 am: c171518ff6
Change-Id: I1f2b1e195696f9163923f1045d9c15608dfe9bd8
2020-05-28 01:08:16 +00:00
Julia Reynolds
91cf4501f8 Merge "Allow some non-MessageStyle notifications to be convos" into rvc-dev 2020-05-27 23:40:24 +00:00
TreeHugger Robot
9d62182591 Merge "Fix app standby bugs." into rvc-dev 2020-05-27 23:38:37 +00:00
Hongwei Wang
97c4cda831 Merge "No onMultiWindowModeChanged callback from split to PiP" into rvc-dev 2020-05-27 23:30:19 +00:00
TreeHugger Robot
10bee631fd Merge "Adding permission check for dumping visible windows" into rvc-dev 2020-05-27 23:03:40 +00:00
Kweku Adams
52b52a6016 Fix app standby bugs.
1. Don't set app standby buckets when app idle is disabled. When the
bucket is set when app idle is disabled, AppStandbyController notifies
listeners, which then puts the listeners in an invalid state where
they think some apps are exempted from things like battery saver.

2. Remove uninstalled packages from AppStateTracker's exempted package
cache.

Bug: 156868557
Test: make cts -j 64 && cts-tradefed run commandAndExit cts -m CtsBatterySavingTestCases -t android.os.cts.batterysaving.BatterySaverAlarmTest
Test: make cts -j 64 && cts-tradefed run commandAndExit cts-on-gsi -m CtsBatterySavingTestCases -t android.os.cts.batterysaving.BatterySaverAlarmTest
Change-Id: If62c75eff0bc56ef1750e109335ba7e47832c128
Merged-In: 2a94051c04
2020-05-27 21:48:50 +00:00
Hongwei Wang
95c307f8ad No onMultiWindowModeChanged callback from split to PiP
When entering PiP from split-screen, there should be exact one
onPictureInPictureModeChanged  callback with zero
onMultiWindowModeChanged since the multi-window mode is not changed.

When the stack is nested, we reparent the to-be-pinned stack to the
display area and later on set the stack windowing mode onto
ActivityRecord, which ends up WINDOWING_MODE_FULLSCREEN in this case.

Therefore, the windowing mode changes from split-screen-secondary to
fullscreen and then pinned. And client receives
onMultiWindowModeChanged(false), onPictureInPictureModeChanged(true),
onMultiWindowModeChanged(true) in sequence.

Fixes this by setting the windowing mode prior to re-parenting within
RootWindowContainer#moveActivityToPinnedStack

Bug: 157172491
Test: manually enter PiP from split screen and verifies lifecycle
Change-Id: Idf57235349ed6b78db96a632af9665b6e39edb78
2020-05-27 14:25:20 -07:00
Mady Mellor
b9409b46f1 Merge "Don't do the SAW perm check if there's an invalid UID" into rvc-dev am: 67be1e7ae7 am: 391f175c1c
Change-Id: If0439a09516d0fe16130dd79a81e9a643cc4ad0a
2020-05-27 21:11:07 +00:00
Mady Mellor
67be1e7ae7 Merge "Don't do the SAW perm check if there's an invalid UID" into rvc-dev 2020-05-27 21:02:30 +00:00
Julia Reynolds
4f73a7f02f Allow some non-MessageStyle notifications to be convos
Test: atest
Fixes: 157481581
Change-Id: Ieaecbed03ef5bce4b52d50d4c63ed261bbf36833
2020-05-27 20:19:20 +00:00
Ruchir Rastogi
f874f99b96 Merge "Impl. puller for BYTES_TRANSFER_BY_TAG_AND_METERED" into rvc-dev am: d7ec4822a5 am: 34a2d4e9e3
Change-Id: I6bf60a68d11f196d448e63fda038d60118ace6ce
2020-05-27 19:32:13 +00:00
Mehdi Alizadeh
1b6371be77 Merge "Adds cacheFlags parameter to cache/uncacheShortcuts() methods" into rvc-dev am: c95be6995a am: 366d6c10f1
Change-Id: I222c375a4909814db90ae00f7e036c21a068ba1f
2020-05-27 19:31:41 +00:00
Ruchir Rastogi
d7ec4822a5 Merge "Impl. puller for BYTES_TRANSFER_BY_TAG_AND_METERED" into rvc-dev 2020-05-27 19:24:39 +00:00
Sunny Goyal
2ffca5a0de Adding permission check for dumping visible windows
Bug: 157010495
Test: Verfied that 3P apps cant call this API
Change-Id: I0dee93c82d33152fc54b6784970103c82a8ba6ef
2020-05-27 19:24:38 +00:00
Mehdi Alizadeh
c95be6995a Merge "Adds cacheFlags parameter to cache/uncacheShortcuts() methods" into rvc-dev 2020-05-27 19:23:39 +00:00
Mady Mellor
bccdf45c13 Don't do the SAW perm check if there's an invalid UID
Bug: 157451684
Test: atest PreferencesHelperTest
Change-Id: I1b9eb9dd60ad91b60a059bdee56af67ad53706ea
2020-05-27 11:57:36 -07:00
Cody Kesting
98c797a2ab Merge "Comment reason for simulateDataStall structure." am: b130258393 am: ed52034ba3
Change-Id: Ie236cb45cb2192702df4ce9aaa4e3db7fa1e007c
2020-05-27 17:55:03 +00:00
Adam Bookatz
4440fc60bf Merge "Unify multiuser switcher enabled setting" into rvc-dev am: 203a17d955
Change-Id: If70ef74c9dcaf1071324cf093aeec1db7196786b
2020-05-27 17:32:20 +00:00
Benedict Wong
8f29769362 Merge "Add methods for IKEv2/IPsec test mode profiles" into rvc-dev 2020-05-27 17:31:00 +00:00
Cody Kesting
ed52034ba3 Merge "Comment reason for simulateDataStall structure." am: b130258393
Change-Id: I4ef90859ba5a9b4a829016f7b20711d8734492e4
2020-05-27 17:24:20 +00:00
Adam Bookatz
203a17d955 Merge "Unify multiuser switcher enabled setting" into rvc-dev 2020-05-27 17:15:33 +00:00
Cody Kesting
b130258393 Merge "Comment reason for simulateDataStall structure." 2020-05-27 17:11:57 +00:00
Fiona Campbell
f074b5fb84 Merge "Fix Walleye dim brightness curves" into rvc-dev am: 0f8da63140
Change-Id: I945202a660b74988a39c36b09607b003611ee0ba
2020-05-27 16:42:45 +00:00
Ruchir Rastogi
e3cd20f80d Impl. puller for BYTES_TRANSFER_BY_TAG_AND_METERED
+ refactor puller implementation for NetworkStats pullers in order to
support arbitrary slicing of NetworkStats data

Test: adb shell cmd stats pull-source 10000~10003
Test: adb shell cmd stats pull-source 10083
Test: atest CtsStatsdHostTestCases
Bug: 144771940
Change-Id: I92809f9f8d5d14742e8ba323eb8c7792dadb802f
2020-05-27 09:36:49 -07:00
Fiona Campbell
0f8da63140 Merge "Fix Walleye dim brightness curves" into rvc-dev 2020-05-27 16:25:51 +00:00
Gavin Corkery
ae2684c8b6 Merge "Ensure that health check controller is unbound correctly" into rvc-dev am: 6a459b2b35
Change-Id: Ic90f58f4710cb8f58a35a079e922b57b4c0b74ac
2020-05-27 16:18:36 +00:00
TreeHugger Robot
904aa252f9 Merge "Trigger app transition explicitly when nothing gets resumed" into rvc-dev am: 44fb3a97ff
Change-Id: I409f75abcbf0a4ee9864bb2271f303b8153eae97
2020-05-27 16:14:08 +00:00
Gavin Corkery
6a459b2b35 Merge "Ensure that health check controller is unbound correctly" into rvc-dev 2020-05-27 16:08:13 +00:00
Cody Kesting
9e09e8a7fa Merge "Forward unknown Data Stall types to Connectivity Diagnostics." into rvc-dev 2020-05-27 16:03:38 +00:00
TreeHugger Robot
44fb3a97ff Merge "Trigger app transition explicitly when nothing gets resumed" into rvc-dev 2020-05-27 15:57:23 +00:00
Taran Singh
816b9c374c Merge "Add Insets dumps and IME debug logs" into rvc-dev am: e20c25ddc6
Change-Id: Ic644e48d41209ce171c568e87358a86090249b3f
2020-05-27 15:24:27 +00:00
Taran Singh
e20c25ddc6 Merge "Add Insets dumps and IME debug logs" into rvc-dev 2020-05-27 15:12:30 +00:00
Taran Singh
85661e3f9e Add Insets dumps and IME debug logs
Add more dumps and logs to better help debug IME insets better
Logging can be enabled by setting InsetsController.DEBUG to true.

Bug: 154348613
Test: manually build and flash.
      Verify showing and hiding IME shows logs.
      verify adb shell dumpsys window windows has new dumps

Change-Id: Iad0a21d81a22d6acfaaf5c5ca8b5131eec411e79
2020-05-27 15:12:07 +00:00
Fiona Campbell
270ea4155a Fix Walleye dim brightness curves
This fixes the issue that cause -1.0f to be added to the brightness
curves when a devices had 0 in the backlight configuration
(config_screenBrightnessBacklight) in config.xml.

This code is the same as it originally was before the float brightness changes.

Bug: 153290107

Test: manual, check values in `adb shell dumpsys display | grep -i
"spline\|mconfig\|mambientlux"`

Change-Id: I332fc09565b26bfc5f108fe32bf109f9584c60a2
2020-05-27 15:51:30 +01:00
Alex Johnston
5abed10363 Merge "Per-profile user restrictions in org-owned managed profile" into rvc-dev am: 155d909a08
Change-Id: I93687c3754b13bd72a53de49ce058211266bca64
2020-05-27 13:25:39 +00:00
Alex Johnston
155d909a08 Merge "Per-profile user restrictions in org-owned managed profile" into rvc-dev 2020-05-27 13:12:43 +00:00
Gavin Corkery
553c94bcab Ensure that health check controller is unbound correctly
Explicitly call into the health check controller if there are
no more packages to check. This is due to the fact that
the ExplicitHealthCheckController will unbind itself in this
case. If this call is not made, the controller will continue
running in the foreground and will not be killed by lmkd.

Test: atest PackageWatchdogTest
Test: check logcat to see that the service is unbound
Bug: 156323728
Change-Id: I0044d0832178ee90043d5e64e406df07ee2c36a2
2020-05-27 13:16:52 +01:00
TreeHugger Robot
7c18024dfa Merge "System Bars animation for fixed rotation transform" into rvc-dev am: 148fb0e8c2
Change-Id: I9caca2e3a65ec64048500f79a0623753ed912af4
2020-05-27 06:32:33 +00:00
TreeHugger Robot
148fb0e8c2 Merge "System Bars animation for fixed rotation transform" into rvc-dev 2020-05-27 06:19:51 +00:00
TreeHugger Robot
629cac54f6 Merge "Add support for TvInputManager.acquireTvInputHardware CTS" into rvc-dev am: f49fa1a9ea
Change-Id: I5a4cbbb4bda0e975129108ee32dd3c1965bed24f
2020-05-27 04:48:53 +00:00
TreeHugger Robot
f49fa1a9ea Merge "Add support for TvInputManager.acquireTvInputHardware CTS" into rvc-dev 2020-05-27 04:39:45 +00:00
Alex Buynytskyy
53ea003df2 Merge "Lifecycle: detecting blocked and unhealthy." into rvc-dev am: 4e5ff2eb7d
Change-Id: If0f24b8549fbf78aecf4586551528606064ecfe7
2020-05-27 04:17:10 +00:00
Alex Buynytskyy
4e5ff2eb7d Merge "Lifecycle: detecting blocked and unhealthy." into rvc-dev 2020-05-27 04:15:54 +00:00
TreeHugger Robot
9f43fb0a09 Merge "Dump UidRecord's capability and list of ProcessRecord." into rvc-dev am: d7d14eb420
Change-Id: Id18a143cb1e1529f4b873203f83f08dac82bf805
2020-05-27 01:52:28 +00:00
TreeHugger Robot
d7d14eb420 Merge "Dump UidRecord's capability and list of ProcessRecord." into rvc-dev 2020-05-27 01:28:45 +00:00
Mady Mellor
add4a72a21 Merge changes from topic "canBubble_isBubble_nuances" into rvc-dev am: 82e64ff476
Change-Id: I6c5cca60641dc2fc06d58259b432d18b5669cd75
2020-05-27 00:18:09 +00:00
Mady Mellor
82e64ff476 Merge changes from topic "canBubble_isBubble_nuances" into rvc-dev
* changes:
  Always open bubble for bubble notifs + fix issue
  canBubble only true when it can actually bubble
2020-05-27 00:06:58 +00:00