Commit Graph

66384 Commits

Author SHA1 Message Date
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
Suprabh Shukla
3b02634aba Merge "Added a command to return app_standby_enabled" into pi-dev
am: 7a881c36ad

Change-Id: I3db2ad86b1530057ec7dfac585ed142d7c3b6c93
2018-05-17 13:16:43 -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
TreeHugger Robot
7a881c36ad Merge "Added a command to return app_standby_enabled" into pi-dev 2018-05-17 20:01:46 +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
Suprabh Shukla
5e0fad3ce6 Merge "Adding MANAGE_APP_OPS_MODES to FrameworksServicesTests" into pi-dev
am: 4ac4ef7c9e

Change-Id: I9eeccd25c3d5eb5378a131c8785a67a8f2f44467
2018-05-17 00:08:32 -07:00
TreeHugger Robot
4ac4ef7c9e Merge "Adding MANAGE_APP_OPS_MODES to FrameworksServicesTests" into pi-dev 2018-05-17 06:56:40 +00: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
Suprabh Shukla
9e41b7fd19 Adding MANAGE_APP_OPS_MODES to FrameworksServicesTests
UPDATE_APP_OPS_STATS lost the privilege to change app ops modes, so we
need to add this permission to the tests.

Test: atest com.android.server.job.BackgroundRestrictionsTest

Fixes: 79887147
Change-Id: I085c522cf3969a4cd7de7c47209eb83225b34254
2018-05-16 17:54:47 -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
Suprabh Shukla
d8611ecd36 Added a command to return app_standby_enabled
The only way to know the runtime state was check dumpsys usagestats, and
parse through a lot of output.
This makes it easier to retreive the state.

Test: adb shell settings put global app_standby_enabled 0
adb shell dumpsys usagestats is-app-standby-enabled

Bug: 74336662
Change-Id: Ibe80d27bdf940682b9e4c3c14f93b4871f9f1746
2018-05-16 16:53:58 -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
Winson Chung
ba40d3a107 Fix issues starting recents animation when starting a new activity
- When avoiding moving the stack to the front, skip resuming as well (since
  the recents activity is starting in the back, and this prevents having
  to add more checks to skip moving the task to the front).

  The avoid-move-to-front option is only used for the recents animation,
  and only used when starting a new activity, so the effects of this change
  should only be limited to that logic.
- Also execute the app transition explicitly since it isn't triggered when
  we aren't resuming the newly started activity, which was causing the
  app-transition timeout to occur before launcher was next made visible
  and good to go).

Bug: 77154670
Test: Open app, install launcher in the background to kill the activity,
      then swipe up and ensure that it actually works instead of running
      the normal task-dismiss transition

Change-Id: I8c39d95e7a6ca65a099aba7285e852b2480804ca
2018-05-16 12:29:21 -07:00
Ugo Yu
c1fd065527 Merge "Remove SCO devices if Bluetooth process is dead" into pi-dev
am: 1b43af094e

Change-Id: I2e4f230fd80fbcb4d7db943ba7e712e5a905409a
2018-05-16 11:20:45 -07:00
TreeHugger Robot
1b43af094e Merge "Remove SCO devices if Bluetooth process is dead" into pi-dev 2018-05-16 18:06:46 +00:00
Beverly
a3cb0ae74a Merge "Add metric to log use of hush gesture" into pi-dev
am: 2b0ead73c7

Change-Id: I150d7e7700f935779ec09dc378258be2206fe1f6
2018-05-16 08:24:40 -07:00
TreeHugger Robot
2b0ead73c7 Merge "Add metric to log use of hush gesture" into pi-dev 2018-05-16 15:00:31 +00:00
Daniel Sandler
63257f50b5 Merge "Improved notification interruptiveness calculation." into pi-dev
am: 4da6e1f3b0

Change-Id: Iab0568f6dde4b247480b1fc259d3e65e50074cd9
2018-05-16 07:41:39 -07:00
Daniel Sandler
4da6e1f3b0 Merge "Improved notification interruptiveness calculation." into pi-dev 2018-05-16 14:23:38 +00:00
Beverly
019d6f636e Add metric to log use of hush gesture
Change-Id: I14578149a79b1455267cb6efc6493c596129032d
Bug: 79537757
Bug: 78665512
Test: manual, builds
2018-05-16 13:18:05 +00:00
Amith Yamasani
e3176776b9 Merge "Avoid calling updateOomAdj an extra time" into pi-dev
am: e5c8e375e1

Change-Id: I37d9c6ca73f7151805266caf5b6eec5fa55ab075
2018-05-16 06:04:19 -07:00
Amith Yamasani
e5c8e375e1 Merge "Avoid calling updateOomAdj an extra time" into pi-dev 2018-05-16 12:54:14 +00:00
Dan Sandler
7d67bd4fd7 Improved notification interruptiveness calculation.
Apparently comparing Spannables is dangerous because
the various Span classes do not implement .equals() in any
meaningful way, so all CharSequences must be converted to
flat Strings before being compared.

Lots of additional debug code remains, for the next time we
don't understand why an innocuous notification update
appears to be interruptive.

Test: atest com.android.server.notification.NotificationManagerServiceTest
      atest com.android.server.notification.NotificationTest
Bug: 78643290
Change-Id: I1c282238687f28b5b197e28a4b878dc697049f4d
2018-05-16 08:32:09 -04:00
Winson Chung
11d224f7b4 Merge "Allow recents component to launch non-exported activities" into pi-dev
am: 037834d557

Change-Id: I0696f06e719b62dd79794176f4319b8dc636657a
2018-05-15 21:53:06 -07:00
Winson Chung
037834d557 Merge "Allow recents component to launch non-exported activities" into pi-dev 2018-05-16 04:40:35 +00:00
Winson Chung
985f54daf0 Fix issue with split screen launch bounds
- In O, the fullscreen stack was resized once we enter splitscreen (and
  is updated with the tempOtherTaskBounds as we resize for minimized
  state). However, in P, since we are creating a new stack for each task,
  the launch of a task while in splitscreen now falls into
  TaskStack.updateBoundsForWindowModeChange() which incorrectly calculates
  the bounds of the secondary stack using the minimized bounds of the
  primary stack. Subsequent launches are fine because the stack already
  exists and is just being brought forward.

Bug: 73745166
Test: atest CtsActivityManagerDeviceTestCases:ActivityManagerSplitScreenTests
Test: Enter split screen, launch an app from scratch and ensure it
      animates to the right place

Change-Id: I7da856b9bb88db0db9616d56bb9fefdce918d7c3
2018-05-15 21:32:41 -07:00