Commit Graph

67438 Commits

Author SHA1 Message Date
TreeHugger Robot
ecb85a1a60 Merge "Add IME {insets control, IME-WM} target to History" into rvc-dev am: fde28a6f47
Change-Id: Ia024e507ee67d90e7374c14b1ed0f3870acd70fc
2020-05-28 03:57:55 +00:00
TreeHugger Robot
fde28a6f47 Merge "Add IME {insets control, IME-WM} target to History" into rvc-dev 2020-05-28 03:37:29 +00:00
TreeHugger Robot
692af6622f Merge "Do not force seamless rotation with animating rotated recents" into rvc-dev am: 9092277a89
Change-Id: I459fda419e79880a86c83932cd57b45a2d9c3b2b
2020-05-28 03:07:26 +00:00
TreeHugger Robot
824baec046 Merge "Allow finishing activity to transfer starting window" into rvc-dev am: 32223af7cd
Change-Id: Ib5847135a995c171bbc5b0f9e47a130b03565309
2020-05-28 03:06:56 +00:00
TreeHugger Robot
9092277a89 Merge "Do not force seamless rotation with animating rotated recents" into rvc-dev 2020-05-28 02:57:51 +00:00
TreeHugger Robot
32223af7cd Merge "Allow finishing activity to transfer starting window" into rvc-dev 2020-05-28 02:53:26 +00:00
Evan Rosky
7750d998da Merge "Move pip behind home stack on dismiss" into rvc-dev am: 8b13052ddf
Change-Id: I1f2c99452a8e94d14c73a5f82d9a1178c2b3a2c5
2020-05-28 02:21:26 +00:00
Evan Rosky
8b13052ddf Merge "Move pip behind home stack on dismiss" into rvc-dev 2020-05-28 02:08:16 +00:00
Maciej Żenczykowski
a9d97ca7ef Merge "NetworkStatsService - xt_qtaguid non-ebpf - account stacked interface stats" am: 9273b6d980 am: 76bcb1efde
Change-Id: I89254b745961a6372985cc6cc651756d41a9c1b7
2020-05-28 01:11:29 +00:00
Julia Reynolds
51d1949d33 Merge "Allow some non-MessageStyle notifications to be convos" into rvc-dev am: 91cf4501f8
Change-Id: I58679832d178ee04622fe27ff46bfdfc7db6fe30
2020-05-28 01:04:34 +00:00
TreeHugger Robot
926b6b1d17 Merge "Fix app standby bugs." into rvc-dev am: 9d62182591
Change-Id: I93d4e81227b439cdaf21a0eb37605e5cfa63abd7
2020-05-28 01:01:40 +00:00
Hongwei Wang
43e8e01f52 Merge "No onMultiWindowModeChanged callback from split to PiP" into rvc-dev am: 97c4cda831
Change-Id: Ie1e1666e651e175097b08493ef3f9064a2a28c6d
2020-05-28 01:01:24 +00:00
TreeHugger Robot
78021f1890 Merge "Adding permission check for dumping visible windows" into rvc-dev am: 10bee631fd
Change-Id: Icd064c5308b96d5a560b48e2a34a6992021a4587
2020-05-28 01:00:56 +00:00
Maciej Żenczykowski
76bcb1efde Merge "NetworkStatsService - xt_qtaguid non-ebpf - account stacked interface stats" am: 9273b6d980
Change-Id: I66ee156163937fd9dad330a51f73c09eb0fe76b6
2020-05-28 00:58:07 +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
Maciej Żenczykowski
a05899be79 NetworkStatsService - xt_qtaguid non-ebpf - account stacked interface stats
Test: atest bpf_module_test clatd_test libbpf_android_test libnetdbpf_test
  netd_integration_test netd_unit_test netdutils_test
Bug: 150738490
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I297fcad0a83bd8c32c0fa6c6a77d83b42cd8c428
2020-05-27 23:26:26 +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
9a78263105 Merge "Don't do the SAW perm check if there's an invalid UID" into rvc-dev am: 67be1e7ae7
Change-Id: Ie3190f1daaf307037516de2c774172033b96af3d
2020-05-27 21:05:11 +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
f44baa6fdd Merge "Impl. puller for BYTES_TRANSFER_BY_TAG_AND_METERED" into rvc-dev am: d7ec4822a5
Change-Id: I61aeaa9bb52f00a7f0c3ed47dde628fc7add6dc3
2020-05-27 19:26:48 +00:00
Mehdi Alizadeh
8e635202f4 Merge "Adds cacheFlags parameter to cache/uncacheShortcuts() methods" into rvc-dev am: c95be6995a
Change-Id: I4c23457d2dc8ec66499e7121cf6241c24abb73c3
2020-05-27 19:26:19 +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
Evan Rosky
38257988f5 Move pip behind home stack on dismiss
If home stack is nested, it means we're in split or some
other non-fullscreen mode. In these cases, dismissing a pip
task should move it to the back of the home-stack parent
rather than the back of the display.

This behavior is the same as what was done for Activity.moveToBack,
so this CL pulled that functionality into positionTaskBehindHome()
so it could be shared

Bug: 157159929
Test: ActivityStack tests. Or attempt repro in bug.
Change-Id: Icf04f87edf4c00b47e3f1e0a45d80bf9b680ce1c
2020-05-27 10:36:49 -07: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
Riddle Hsu
08bc4ed31b Do not force seamless rotation with animating rotated recents
The animating recents activity (e.g. home) is set as fixed-rotation-
launching-app to reduce extra enable/disable transform because it may
be the real top activity later (e.g. swipe to home or enter overview).
The actual state is only known when finishing the recents animation.
So during animating, it is not really the top activity that will change
the rotation of display.

If auto-rotate is disabled, there will have a rotation button when
device is rotated. And if the device is using gesture navigation, the
touch region of button may overlap with the navigation bar. Then when
pressing the button while device is in landscape, the recents activity
may also be triggered with fixed rotation in portrait, that causes
the rotation type is forced to be seamless. But the actual foreground
app is not rotated and does not declare to use seamless, therefore
the screen looks flickering by updating configuration directly.

Fixes: 157208761
Test: DisplayContentTests#testRotateSeamlesslyWithFixedRotation

Change-Id: If512ad14420ed7956fe888a0ce9f5d5006eb43a8
2020-05-27 22:53:26 +08: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