Commit Graph

42085 Commits

Author SHA1 Message Date
Yifan Hong
8a2befbe22 Merge "fix fingerprint condition on sdk level logic" into pi-dev
am: 69e88693d8

Change-Id: Ie587e46c28e81c051103fb5a8d5053d5a4ebd583
2018-05-18 12:16:10 -07:00
TreeHugger Robot
69e88693d8 Merge "fix fingerprint condition on sdk level logic" into pi-dev 2018-05-18 19:01:00 +00:00
Dmitry Dementyev
a8c63c90aa Merge "Check the return values after updating Recoverable KeyStore Database." into pi-dev
am: 6f67f7d89a

Change-Id: Ica0b656e207e6a46ec9c54d1e23fcc3241369673
2018-05-18 11:21:02 -07:00
Dmitry Dementyev
6f67f7d89a Merge "Check the return values after updating Recoverable KeyStore Database." into pi-dev 2018-05-18 17:56:25 +00:00
Makoto Onuki
4c7cb790df Merge "Suppress service start timeout for services within system server," into pi-dev
am: f9491caf4b

Change-Id: Iada45b0a0d434a9dea5bc5261ab87b886cfc0592
2018-05-18 08:33:36 -07:00
Makoto Onuki
f9491caf4b Merge "Suppress service start timeout for services within system server," into pi-dev 2018-05-18 15:13:27 +00:00
Adrian Roos
4d26aa4bfe Merge "WM: Perform layout based on the requested flags" into pi-dev
am: 10755b8a1c

Change-Id: I5cffd5adf88067a44adf16c1a60904d1050bd272
2018-05-18 07:38:13 -07:00
Adrian Roos
10755b8a1c Merge "WM: Perform layout based on the requested flags" into pi-dev 2018-05-18 14:22:11 +00:00
Adrian Roos
ce877ef63b Merge "PIP: Fix transition to and from PiP when letterboxed" into pi-dev
am: e839902298

Change-Id: Iaf71472d1d4619e954f14821307aed16c644806b
2018-05-18 07:18:32 -07:00
TreeHugger Robot
e839902298 Merge "PIP: Fix transition to and from PiP when letterboxed" into pi-dev 2018-05-18 14:06:18 +00:00
Adrian Roos
d63b3c4673 Merge "WM: Prevent unminimizing docked stack on AOD" into pi-dev
am: 1f6e5dce9f

Change-Id: I068ad6e417bc430b2bceacfbae2750cc966931da
2018-05-18 06:38:08 -07:00
TreeHugger Robot
1f6e5dce9f Merge "WM: Prevent unminimizing docked stack on AOD" into pi-dev 2018-05-18 13:30:29 +00:00
Adrian Roos
604ef951ce PIP: Fix transition to and from PiP when letterboxed
When an app is letterboxed, it cannot always take up the full
task bounds, and we need to constrain the PIP animations to
the constraints imposed by the layout.

Change-Id: If238ddfb4462c7e1e5c975f76666ad1d4ec3b076
Fixes: 77802617
Test: Enable cutout emulation, enter landscape, verify transitions both into and out of pip work as intended.
Test: atest ActivityManagerPinnedStackTests
2018-05-18 12:38:07 +00:00
Adrian Roos
b56b3c3c85 WM: Prevent unminimizing docked stack on AOD
When we go to AOD, we hide Home's app token - which causes
the docked stack to unminimize. There was some protection against
that because the same thing happens on the keyguard, but that did
not work because the keyguard state is not aware of AOD. Instead,
we pipe the source of truth from AM down to WM and use this instead.

Change-Id: I68d1079a6bbd9080816ee52c1b5650623a661421
Fixes: 79267409
Test: Enter split screen, go to home, turn of screen, turn on screen. Verify docked stack stays minimized and there is no janky transition
2018-05-18 12:19:33 +00:00
Adrian Roos
4bb17ec37b WM: Perform layout based on the requested flags
When the global system ui visibility changes,
this clears certain sysui flags from windows. However,
if we then use this value to perform layout, we might
lay out the window in a way the app did not expect and
that is not stable during transitions in and out of
full screen.

To fix this, always use the sysUiFl that the app provided
in its window attributes, instead of using the window state's
changing state.

Change-Id: I5f9b3ed37be84553e9e2d912a102675beb6fc11a
Fixes: 76084813
Test: Open Video in browser, enter full screen, play, press home. Verify transition into PiP is smooth.
2018-05-18 13:38:05 +02:00
Erik Kline
413d00c1c0 Merge "Add explicit override for default Private DNS mode" into pi-dev
am: 2b3c858296

Change-Id: If480ab40c7cf9ab75c52feafc28338a049cbceef
2018-05-18 01:08:26 -07:00
TreeHugger Robot
2b3c858296 Merge "Add explicit override for default Private DNS mode" into pi-dev 2018-05-18 07:59:58 +00:00
Yifan Hong
5670247168 fix fingerprint condition on sdk level logic
Change-Id: Icf83c62090943adb32972f08fa4335130ef68291
Fixes: 79950359
Test: fingerprint works
2018-05-17 18:51:05 -07:00
Calin Juravle
5e38cbb831 Merge "Allow adb to pull profile snapshots" into pi-dev
am: b7aea6d3e2

Change-Id: Ib2c9610a392281bececffc925e5102dfc4b48209
2018-05-17 18:39:56 -07:00
Calin Juravle
b7aea6d3e2 Merge "Allow adb to pull profile snapshots" into pi-dev 2018-05-18 00:45:14 +00:00
Kristian Monsen
f3e74530e9 Merge "Taking full bug report to get screenshot" into pi-dev
am: 57532a220c

Change-Id: I2b57b5f2db14e1023bdc89c3a3590b82c11c7704
2018-05-17 16:48:06 -07:00
TreeHugger Robot
57532a220c Merge "Taking full bug report to get screenshot" into pi-dev 2018-05-17 23:37:48 +00:00
Matthew Ng
40a36f83ae Merge "Fixes docked stack from being invisible from assistant stack over" into pi-dev
am: 505267f103

Change-Id: Ia16db36f9fe5ff396eb0c0258a87c4e5d0748139
2018-05-17 13:24:06 -07:00
TreeHugger Robot
505267f103 Merge "Fixes docked stack from being invisible from assistant stack over" into pi-dev 2018-05-17 20:02:50 +00:00
Calin Juravle
bdd94d9979 Allow adb to pull profile snapshots
The snapshot profile produced with `adb cmd package snapshot-profile`
needs to be readable by the others group so that adb can pull it.

Test: adb shell cmd package snapshot-profile pkg;
      adb pull /data/misc/profman/pkg.prof
Bug: 74081010

Change-Id: Ibef8551704116e0b695f725e95f1671acbb82b5d
2018-05-17 18:19:08 +00:00
Winson Chung
9403eb637c Merge "Disable recents/remote animation logging" into pi-dev
am: e9e5cb3ff4

Change-Id: Ic4268a897dfbcf6ab92c462892abd35d18d9fc95
2018-05-17 09:45:34 -07:00
Winson Chung
e9e5cb3ff4 Merge "Disable recents/remote animation logging" into pi-dev 2018-05-17 16:31:44 +00:00
Dianne Hackborn
b5c2ed867b Merge "Fix dump formatting." into pi-dev
am: da224ff2cf

Change-Id: I9ccba1ac5a1b8aa13d4ead52988a6aed1a3bb042
2018-05-17 08:25:15 -07:00
TreeHugger Robot
da224ff2cf Merge "Fix dump formatting." into pi-dev 2018-05-17 15:11:53 +00:00
Erik Kline
1984179409 Add explicit override for default Private DNS mode
Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net passes
Bug: 79719289
Change-Id: I943c5476666e47d04690626e2133f501cb875b46
2018-05-17 17:41:12 +09:00
lpeter
2fdc1b8b13 Merge "[IdleController] Support dock scenario on idle or active judgement" into pi-dev
am: 86b2581c16

Change-Id: I11655b619b9ac5bce4819d20f550eb75769d5630
2018-05-16 20:16:38 -07:00
lpeter
318abc9324 [IdleController] Support dock scenario on idle or active judgement
In the current design, IdleController of Job service considers devices as ‘idle’ after 71 minutes of screen off. But under docking use scenario, devices screen might remain on for a very long time and it’s not necessary implying the device being interactive with users.
So create a mechanism for device to enter the ‘idle’ state that JobScheduler can kick off idle tasks.

Bug: 79183658
Test: atest DeviceStatesTest
Change-Id: I5b307ca51e28ffca63f79a9c43984c3b76e51629
2018-05-17 02:23:02 +00:00
Jorim Jaggi
fcabe1c2a0 Merge "Track launch time per windowingMode" into pi-dev
am: db712bec4a

Change-Id: I5ec7d45a01e4b076f75d47d7459ad5d380d5e608
2018-05-16 19:20:45 -07:00
Jorim Jaggi
30f325cfa6 Only WTF when trying to use remote animation in ActivityOptions
am: 084c7064d8

Change-Id: I263b92034312d2afc28315af298b97ba86f3bfd0
2018-05-16 19:14:27 -07:00
Jorim Jaggi
db712bec4a Merge "Track launch time per windowingMode" into pi-dev 2018-05-17 01:59:17 +00:00
Jorim Jaggi
084c7064d8 Only WTF when trying to use remote animation in ActivityOptions
There is a legitimate use case when sending a PendingIntent from
within system_server, for example AlarmManager. However, we used
to WTF always in this case.

To fix this, we only WTF when trying to use a remote animation
that originates from within system_server.

Test: Boots, open apps
Change-Id: I7bafae9f899cbb8966cf22166270000ce887baba
Fixes: 79417917
2018-05-17 01:58:32 +00:00
Christopher Tate
711b58695d Merge "Don't crash apps unfairly under FAS" into pi-dev
am: 7450f0c0b2

Change-Id: I6ebb5a5e53cd614c0111d556dde8930028c264f0
2018-05-16 18:05:45 -07:00
Winson Chung
c4f70a36fc Merge "Fix issues starting recents animation when starting a new activity" into pi-dev
am: bd46f3f9d1

Change-Id: I78ad43a962affe60e04ae50513843aa9b4374176
2018-05-16 17:54:40 -07:00
TreeHugger Robot
7450f0c0b2 Merge "Don't crash apps unfairly under FAS" into pi-dev 2018-05-17 00:41:24 +00:00
TreeHugger Robot
bd46f3f9d1 Merge "Fix issues starting recents animation when starting a new activity" into pi-dev 2018-05-17 00:40:49 +00:00
Dianne Hackborn
b94d82f415 Fix dump formatting.
Bug: 78480444
Test: manual
Change-Id: Ic16411458f952ed101be72997e48a86afe2a03b2
2018-05-16 17:03:01 -07:00
Fyodor Kupolov
608e8a395d Merge "Update service map when application info is updated" into pi-dev
am: 1147ae1205

Change-Id: Ib093df30b32af937cb1f90363c87f51222e2d482
2018-05-16 16:25:07 -07:00
Fyodor Kupolov
1147ae1205 Merge "Update service map when application info is updated" into pi-dev 2018-05-16 23:12:52 +00:00
Jorim Jaggi
de8305a566 Track launch time per windowingMode
Some app launches go through different stacks. However, in P we
have one stack per task, which broke launch time tracking for
certain apps.

We fix this by tracking launch time per windowingMode, like we
do in ActivityMetricsLogger.

Test: Delete Chrome app data (to ensure FirstRunActivity gets
invoked, am start -n com.android.chrome/com.google.android.apps.chrome.Main -W
Fixes: 78302265
Change-Id: I739e63aeaf04d6336621e3d61f065259e518d9b4
2018-05-16 15:36:36 -07:00
Winson Chung
bbc587cf32 Merge "Fix issue with split screen launch bounds" into pi-dev
am: 08900edb09

Change-Id: Ifb21380fc8ef32dbad9a48a97d08323fa65cf563
2018-05-16 15:33:32 -07:00
TreeHugger Robot
08900edb09 Merge "Fix issue with split screen launch bounds" into pi-dev 2018-05-16 22:02:56 +00:00
Christopher Tate
e84ffd94e2 Don't crash apps unfairly under FAS
When an app calls startForegroundService() from a bg state (e.g. from a
broadcast receiver) but the user has placed it under FAS, it's incorrect
to crash the app:  it hasn't actually violated the fg/bg restrictions
contract.  Fail quietly instead, just like the legacy-app case when O+
restrictions are imposed on it.

Change-Id: I3e8ed2ea6bdbf4167249132ddf9b7c549b9a8062
Fixes: 79235311
Test: ApiDemos [before and after changing target sdk to O+]
Test: atest android.app.cts.ServiceTest
2018-05-16 14:36:12 -07:00
Dianne Hackborn
863d2a46db Merge "More app ops fg/bg tuning" into pi-dev
am: cd835ba418

Change-Id: Id6a026dabee96a175aac5b40b80487c8ed1ab511
2018-05-16 13:06:47 -07:00
Dianne Hackborn
cd835ba418 Merge "More app ops fg/bg tuning" into pi-dev 2018-05-16 19:48:54 +00:00
Makoto Onuki
7ce98ac839 Suppress service start timeout for services within system server,
until PHASE_THIRD_PARTY_APPS_CAN_START, to avoid TelecomService
triggering an (superficial) ANR.

Bug: 34123235
Test: 1) Boot 2) Add Thread.sleep(30_0000) before Looper.loop() in SystemServer and make sure
telecom won't trigger the ANR

Change-Id: Ic49535f3edb4225a27a708550f9e5325f03170fb
2018-05-16 12:34:53 -07:00