Commit Graph

4475 Commits

Author SHA1 Message Date
Bryce Lee
d57bc3d666 Merge "Properly remove activity from task on start failure." into pi-dev am: 65317bac02
am: 59ff2a431b

Change-Id: I89fbd9b85353dc308f56185f8c0a6837e48c2341
2018-04-10 15:20:57 -07:00
Bryce Lee
65317bac02 Merge "Properly remove activity from task on start failure." into pi-dev 2018-04-10 21:56:08 +00:00
Suprabh Shukla
040bf34479 Merge "setPackagesSuspended now overwrites all the state" into pi-dev am: e901d69ea6
am: f283b41a63

Change-Id: I39ec00edf07095ae63d28dfd2fb69cd6a11f89c9
2018-04-10 13:46:14 -07:00
Jason Monk
c181afacdf Merge "Slice permissions++" into pi-dev am: 964631d1a7
am: a68c3352f8

Change-Id: I63e8240c59aa8c5c2699cb9293a3a3030e24a0c7
2018-04-10 13:20:53 -07:00
TreeHugger Robot
e901d69ea6 Merge "setPackagesSuspended now overwrites all the state" into pi-dev 2018-04-10 20:15:24 +00:00
TreeHugger Robot
964631d1a7 Merge "Slice permissions++" into pi-dev 2018-04-10 19:41:41 +00:00
Adrian Roos
11ed037950 Merge "WindowLayout: Layout IN_SCREEN floating windows in screen" into pi-dev am: 0767375727
am: 8bebcef2bb

Change-Id: I178f198d336949a8b1def181fffa7e306435fee6
2018-04-10 11:39:01 -07:00
Adrian Roos
0767375727 Merge "WindowLayout: Layout IN_SCREEN floating windows in screen" into pi-dev 2018-04-10 17:53:32 +00:00
Nicolas Geoffray
b19c2e7451 Merge "Exempt tests for hidden APIs." into pi-dev am: 0e675bd901
am: 03ba2d9241

Change-Id: I0e4517312cac9b37537eee55eafd811aff531ea8
2018-04-10 10:11:10 -07:00
TreeHugger Robot
0e675bd901 Merge "Exempt tests for hidden APIs." into pi-dev 2018-04-10 16:34:05 +00:00
Jason Monk
bf3eedcc6b Slice permissions++
New permissions system for slices. Its up a little disk space at the
optimization of CPU/Mem usage, and most importantly doesn't have a
limit on the number that can exist.

Test: runtest --path frameworks/base/services/tests/uiservicestests
Test: runtest --path cts/tests/tests/slices
Test: manual grant through SliceBrowser
Bug: 77323760
Change-Id: Ie601bca042a7b28113a511383ca7e3a35c7c8c71
2018-04-10 10:50:42 -04:00
Dan Gittik
8e7231bccf Merge "Added system-wide minimum brightness curve." into pi-dev am: 082147cfe1
am: 746256b546

Change-Id: I457cfa2b9c4eec3606e2520446644a07ec2a8397
2018-04-10 04:52:34 -07:00
TreeHugger Robot
082147cfe1 Merge "Added system-wide minimum brightness curve." into pi-dev 2018-04-10 11:28:44 +00:00
Remi NGUYEN VAN
1c56e0cba0 Merge "Clamp multipath quota to 0 if roaming." into pi-dev am: ed0da5189c
am: 24c7814fcf

Change-Id: Ifa7b53043ef2ea1d65b5d00a4fe7ca4683974db5
2018-04-10 03:34:06 -07:00
Remi NGUYEN VAN
ed0da5189c Merge "Clamp multipath quota to 0 if roaming." into pi-dev 2018-04-10 10:12:56 +00:00
Remi NGUYEN VAN
ed6d2ca369 Clamp multipath quota to 0 if roaming.
Also adding tests for getSubscriptionOppportunisticQuota.

Bug: b/72631572
Change-Id: Iafc1ae1e0c0d58c027b5a42fa04b841a2739cff9
Fixes: b/72631572
Test: atest com.android.server.NetworkPolicyManagerServiceTest
2018-04-10 15:15:38 +09:00
Winson Chung
c6dec56b0c Merge "Fix regression in removing recent tasks by package name." into pi-dev am: d4a95a1689
am: dc94888f4c

Change-Id: Ibfb0eea9b01f280645ff81564ef78e0b5e5d80ff
2018-04-09 21:42:51 -07:00
Winson Chung
d4a95a1689 Merge "Fix regression in removing recent tasks by package name." into pi-dev 2018-04-10 03:23:39 +00:00
Jean-Michel Trivi
fbb05ff5c5 Merge "AudioAttributes: handle unknown usage like media" into pi-dev am: 9dbe4d8e6b
am: 3a8ddbcc8a

Change-Id: Ib46af5746bce8d8cfb1150ccd3e792d3bde6db73
2018-04-09 18:42:50 -07:00
Jeff Sharkey
f35b79c609 Merge "API council requested tweaks to SubscriptionPlan." into pi-dev am: 5e0d360411
am: 4cd485f8e5

Change-Id: I5f3f1b04573a8a2286cf4d6456d7196fc5ed417d
2018-04-09 18:09:12 -07:00
Suprabh Shukla
45b9e40a4f setPackagesSuspended now overwrites all the state
Earlier setPackagesSuspended ignored the rest of the paramters when
suspend state did not change. This was a problem because then there was
no good way to update the other parameters without unsuspending the app,
which is not desirable.
Removed setSuspendedPackageAppExtras as now they can be update with this
api.
Also sending broadcasts when packages get unsuspended due to suspending
package removed.

Test: Existing tests pass:
atest com.android.server.pm.PackageUserStateTest
atest com.android.server.pm.SuspendPackagesTest
atest com.android.server.pm.PackageManagerSettingsTests

Bug: 77522553
Change-Id: I72a3c228d3d65c430e242da97b2bc6997ec6a135
2018-04-09 17:49:54 -07:00
Jean-Michel Trivi
9dbe4d8e6b Merge "AudioAttributes: handle unknown usage like media" into pi-dev 2018-04-09 23:21:51 +00:00
Jeff Sharkey
5e0d360411 Merge "API council requested tweaks to SubscriptionPlan." into pi-dev 2018-04-09 23:20:43 +00:00
Adrian Roos
c8045bf7e1 WindowLayout: Layout IN_SCREEN floating windows in screen
Uses screen coordinates when placing floating LAYOUT_IN_SCREEN
windows, even when there is a cutout. Making sure that the window
does not overlap the cutout area is instead made sure by the
clip/shift-to-displayFrame logic in WindowState.

Change-Id: Ic485b8f191db737bb7a10b1694a489111afd5f2c
Fixes: 76199703
Test: Run CalcyIV, make sure that the expanded window is properly attached to the non-expanded window.
2018-04-09 23:02:19 +00:00
Jean-Michel Trivi
6d38a1b260 AudioAttributes: handle unknown usage like media
In the native audio policy management, the default stream type
  for volume is STREAM_MUSIC, i.e. any player by default is
  considered a "media" player. Do the same for audio attributes
  with regards to suppressible behaviors.

Bug: 74052135
Test: ZenModeHelperTest + see bug
Change-Id: I8f65044807fd3e745f21e031a0aa01a5e6f74cd2
2018-04-09 21:24:25 +00:00
Winson Chung
99720d48dc Fix regression in removing recent tasks by package name.
- When this method was pulled out into its own method, the break out
  logic was not updated, causing this logic to immediately return when we
  didn't match the first task package name.

Bug: 74130768
Test: atest FrameworksServicesTests:RecentTasksTest
Change-Id: I8dbaa84400f4dff9542f0096121a60ee60d5710f
2018-04-09 11:28:46 -07:00
Jeff Sharkey
d2120e09a0 Merge "More knobs for connectivity experiments." into pi-dev am: 70df722321
am: 4f431f42cd

Change-Id: Ib5c3d10b1480220738c0972edcca65d8fdd62cba
2018-04-09 11:01:37 -07:00
TreeHugger Robot
70df722321 Merge "More knobs for connectivity experiments." into pi-dev 2018-04-09 17:33:15 +00:00
Winson Chung
8353da6a55 Merge "Tighten up pending animations list." into pi-dev am: 80e87e4d2d
am: f0bda17a3f

Change-Id: Ida2146ac2dbca4051747f2f96717ca7069022d4b
2018-04-09 10:22:33 -07:00
Winson Chung
80e87e4d2d Merge "Tighten up pending animations list." into pi-dev 2018-04-09 16:53:55 +00:00
Adrian Roos
ab55fab9d1 Merge "DisplayContentTests: Mark and improve flaky test" into pi-dev am: deea3b84ab
am: 1c7d761692

Change-Id: Id2aeb409c957eb7e225bba9a7d9c06903df80e4e
2018-04-09 06:45:38 -07:00
Adrian Roos
0f9368cdc6 DisplayContentTests: Mark and improve flaky test
Marks testForAllWindows as flaky. Also improves assertForAllWindowsOrder
to output the actual vs expected output in case the test fails.

Bug: 77772044
Test: atest DisplayContentTests
Change-Id: I975a02621ffb968af24b962fccbe998ded651715
2018-04-08 12:16:12 -07:00
Winson Chung
0db3fd3ecc Merge "Fix regression in recent task list replacement" into pi-dev am: 330f2fb05d
am: 87c1f0e510

Change-Id: I96e541b365d408d10bc105cc8fa01abea2a0b0bf
2018-04-06 17:52:19 -07:00
TreeHugger Robot
330f2fb05d Merge "Fix regression in recent task list replacement" into pi-dev 2018-04-07 00:34:54 +00:00
Jorim Jaggi
0d36292e4e Merge "Early wake-up for transitions (2/2)" into pi-dev am: 4c1453ac45
am: 2e1d841633

Change-Id: Ic0b06664869f6957871f9725c3fe6c90c16e16b9
2018-04-06 15:20:23 -07:00
Jeff Sharkey
08cfc57af1 Merge "Watch all networks for job invalidation signals." into pi-dev am: 915b6c8846
am: ddb30c755b

Change-Id: I261cfeee9797a88e074c91dde6b46a567f625015
2018-04-06 14:47:10 -07:00
Jorim Jaggi
4c1453ac45 Merge "Early wake-up for transitions (2/2)" into pi-dev 2018-04-06 21:44:28 +00:00
Jorim Jaggi
ecdf5cbc4f Merge "Fix another animation leak" into pi-dev am: 8d23a78b40
am: 2eadcc4635

Change-Id: I16eb83c22036f93b94a6aa2fd92b28ad81d3acca
2018-04-06 14:25:41 -07:00
Winson Chung
b766727906 Fix regression in recent task list replacement
- Accidentally removed a user check in ag/3762067 when adding the check for
  compatible activity types :(. Added it back and a test to ensure that we
  don't remove tasks that are otherwise identical except belong to
  different users.

Bug: 77661783
Test: atest FrameworksServicesTests:RecentTasksTest
Change-Id: I9a0ec8f62e85e89f97dce615252b4c7635f505f8
2018-04-06 21:05:00 +00:00
TreeHugger Robot
915b6c8846 Merge "Watch all networks for job invalidation signals." into pi-dev 2018-04-06 20:52:22 +00:00
TreeHugger Robot
8d23a78b40 Merge "Fix another animation leak" into pi-dev 2018-04-06 20:43:40 +00:00
Bryce Lee
2b8e0378ba Properly remove activity from task on start failure.
When we fail to start an activity, it is removed from its parent task
by the starter. We currently directly ask the task to remove the
child activity. This is incorrect as the stack is unaware of the
movement and cannot cleanup the task if necessary.

This changelist addresses the problem by asking the stack instead to
finish the activity.

Change-Id: I41faa2f4e81873601d45a8ccd1bf22fef9e57033
Fixes: 76679042
Test: atest FrameworksServicesTests:ActivityStarterTests#testTaskModeViolation
2018-04-06 13:02:52 -07:00
Daniel Solomon
7c7ebb8abe Merge "Switch to Saturated color mode when Accessibility transforms are active" into pi-dev am: bcccb1aff5
am: d840947454

Change-Id: I6ea692433c265e3db1eb71c7c2294e44b4b3690a
2018-04-06 10:48:24 -07:00
TreeHugger Robot
bcccb1aff5 Merge "Switch to Saturated color mode when Accessibility transforms are active" into pi-dev 2018-04-06 17:12:01 +00:00
Winson Chung
3155d33432 Merge "Generalize the recents animation to work with non-home activity." into pi-dev am: 1b5a0deb81
am: d5b184827f

Change-Id: Icd2c2c89cd589e6a87b3d96974f91140bd3e5b7e
2018-04-06 10:04:52 -07:00
Winson Chung
da876c9438 Tighten up pending animations list.
- When we can't start an animation for a task, preemptively remove the
  task from the animation list so that it does not erroneously report as
  animating, or inherit the affect-sysui-flags behaviour.

Bug: 77223419
Test: atest FrameworksServicesTests:com.android.server.wm.RecentsAnimationControllerTest
Change-Id: I5cbc9e68d182cecacf10932a3220039dda5ebeed
2018-04-06 09:49:47 -07:00
Winson Chung
1b5a0deb81 Merge "Generalize the recents animation to work with non-home activity." into pi-dev 2018-04-06 16:45:02 +00:00
Selim Cinek
108ebd0c4d Merge "Migrated the Person class to its own file" into pi-dev am: cecec7bf5b
am: b1226660f6

Change-Id: I1066f90cf4a5a415dcf35abd9e27fea02073faf4
2018-04-06 09:37:58 -07:00
Dan Gittik
122df86891 Added system-wide minimum brightness curve.
The minimum brightness curve guarantess that any brightness curve
that dips below it is rejected by the system.
This prevent auto-brightness from setting the screen so dark as to
prevent the user from resetting or disabling it, and maps lux to
the absolute minimum nits that are still readable in that ambient
brightness.

Test: atest BrightnessConfigurationTest.

Fixes: 77176207

Change-Id: Ibd1e83e9b147f3849d6c907f828cbe5950c8367f
2018-04-06 17:04:45 +01:00
Selim Cinek
cecec7bf5b Merge "Migrated the Person class to its own file" into pi-dev 2018-04-06 15:59:34 +00:00