Commit Graph

32253 Commits

Author SHA1 Message Date
Wale Ogunwale
f026f82fb5 Merge "Move focus to visible behind activity when we move the home task back" 2015-12-12 01:03:49 +00:00
Andreas Gampe
556718dbb2 Frameworks/base: Avoid useless array allocation
Don't allocate an unused array.

Bug: 19797138
Change-Id: I40539e7659a21a34a7d49c48bbeb51acf9bfe235
2015-12-11 16:08:16 -08:00
Wale Ogunwale
285ccef697 Move focus to visible behind activity when we move the home task back
Bug: 26118045
Change-Id: I106c698260b8215723ea1e50c654061464a1305f
2015-12-11 14:59:25 -08:00
Chris Wren
de4b2645d9 unbreak the build,
plus some followon patches from Id3b0a074

Change-Id: I9f667a8d68a68d90c0d7f2fed3f28efcc6720533
2015-12-11 16:56:40 -05:00
Julia Reynolds
41c264bae1 Merge "Add importance to notification guts." 2015-12-11 21:41:32 +00:00
Julia Reynolds
72be84fd8c Merge "use importance instead of score" 2015-12-11 21:21:50 +00:00
Chris Wren
bdf3376616 use importance instead of score
Change-Id: Id3b0a074671943b4fcabb63fe990cbfd1e46bdfd
2015-12-11 16:09:18 -05:00
Wale Ogunwale
c2b16e14a6 Merge "Make fullscreen stack visible if it has visible behind activity" 2015-12-11 20:43:39 +00:00
Rob Carr
2fa2791583 Merge "Apply cropping to resizing surfaces." 2015-12-11 20:23:07 +00:00
Andy Hung
1aba5230c5 Merge "Add Android permissions for audioserver" 2015-12-11 20:08:49 +00:00
Julia Reynolds
ead00aac15 Add importance to notification guts.
Note: the guts are still trucated to the height of the notification.
The slider initially shows the importance of the individual notification,
but changing the slider changes the importance for the whole group
of notifications.

Bug: 22451710

Change-Id: Id6de3aaace2bdb88a8cc5db517002dc7f0e349ae
2015-12-11 14:57:47 -05:00
Wale Ogunwale
cff4aa354e Make fullscreen stack visible if it has visible behind activity
Bug: 26118045
Change-Id: I76cfe0f0c08eb6b830a48143bc19479e71f78538
2015-12-11 10:44:25 -08:00
Makoto Onuki
055d8396ef Merge "Allow PO to set DO restrictions if it's on user 0" 2015-12-11 18:14:19 +00:00
Makoto Onuki
714391771f Merge "Clean up DPM/DPMS to reduce code size." 2015-12-11 18:13:05 +00:00
Filip Gruszczynski
ee15241aaf Merge "Move tasks to fullscreen stack when dismissing docked stack." 2015-12-11 16:05:04 +00:00
Filip Gruszczynski
b3da834a91 Move tasks to fullscreen stack when dismissing docked stack.
When we dismissing a docked stack we don't want to get rid of it,
but instead make it available in the full screen stack. We need to
make sure that it goes into the bottom of the stack and prevent it
from taking focus or running any animation, so the operation is
invisible to the user.

Bug: 25840497
Bug: 25823213
Change-Id: Ibd08d7b723a2847d98c435f79541d5eb43587064
2015-12-11 08:03:13 -08:00
Shreyas Basarge
752b070e32 Merge "Scheduling fix for JobScheduler" 2015-12-11 12:25:30 +00:00
Yohei Yukawa
026688070c Merge changes If80df0bc,I4e91b2d7,If3aef820
* changes:
  Apply Java 7 diamond operator.
  Remove a redundant method overload.
  Remove unnecessary parameter that is always true.
2015-12-11 04:43:05 +00:00
Filip Gruszczynski
1c7de3737c Merge "Fix activity not launching from recents after it was dismissed." 2015-12-11 00:31:16 +00:00
Christopher Tate
2fcbe218a6 Use direct alarm callbacks instead of broadcasts in the job scheduler
No more broadcasts needed for deadline/delay tracking!

Bug 26114467

Change-Id: Ie5b1cc8eecfe9caf7d82ec6b84ac56057e4586c6
2015-12-11 00:14:53 +00:00
Makoto Onuki
5485ed46ff Allow PO to set DO restrictions if it's on user 0
Bug 26091525

Change-Id: Ie6d2cd4ade076d8d2ec47243ff1280b95b7c9044
2015-12-10 15:54:26 -08:00
Makoto Onuki
55c46f291d Clean up DPM/DPMS to reduce code size.
Change-Id: Id6c1666ef4cdba795e3b6e4ddcb9c32e6ee90665
2015-12-10 15:38:32 -08:00
Shreyas Basarge
4cff8ac60d Scheduling fix for JobScheduler
All ready jobs are now queued for execution when
a job completes execution or when a job becomes ready
and some other job is being executed.

Also fixes reporting of idle state.

Bug: 26131545
Change-Id: Ibadd95a31869e610c63fc147f9b10866a7439ac6
2015-12-10 22:47:51 +00:00
Matthew Williams
605b869a36 Merge "Merge commit '1db19fc70e24bc5e3c6d77f2b9a5374c372e46cd' into manual_merge_1db19fc70e" 2015-12-10 21:28:02 +00:00
Matthew Williams
a474554fe6 Merge commit '1db19fc70e24bc5e3c6d77f2b9a5374c372e46cd' into manual_merge_1db19fc70e
Change-Id: I8f997804d17ac7635b0dd4aa9cad79334c19eb61
2015-12-10 20:33:36 +00:00
Dianne Hackborn
0c6cc308cf Merge "Add new target SDK filtering feature to BroadcastOptions." 2015-12-10 20:13:29 +00:00
Dianne Hackborn
e0e413e2b1 Add new target SDK filtering feature to BroadcastOptions.
You can now control the range of target SDKs that receivers
will be need to have in order to receive your broadcast.

Use this for CONNECTIVITY_ACTION to not allow N+ applications
to receive these broadcasts through their manifest.

Also tweak the broadcast debug output code to now include the
disposition of each receiver in the list.  This is becoming
important as skipping receivers is becoming a more common
thing to have happen.

Change-Id: I251daf68575c07cbb447536286ab4e68b7015148
2015-12-10 12:12:00 -08:00
Filip Gruszczynski
3d82ed6be6 Fix activity not launching from recents after it was dismissed.
When activity was launched from recents and started at the same time, we
would first try resuming activities and then focus on the started
activity. That is wrong odering, as the previously focused activity will
be resumed (in this case recents). We need to first focus on the start
activity and then request resuming.

The CL also flag protects some logging that is being very frequently
printed from activity manager.

Bug: 25823213
Change-Id: I5311fb2bf316ce3d298b30fa90fb257978bacdca
2015-12-10 10:41:39 -08:00
Matthew Williams
1db19fc70e Merge "ConcurrentModificationException in SyncManager"
am: 7e4d92fbc7

* commit '7e4d92fbc7761d561c1bc61dc5cf55b69d3a54f3':
  ConcurrentModificationException in SyncManager
2015-12-10 10:16:19 -08:00
Matthew Williams
7e4d92fbc7 Merge "ConcurrentModificationException in SyncManager" 2015-12-10 18:04:44 +00:00
Yohei Yukawa
ac0ec1b020 Merge "Use BCP-47 LanguageTag in IME/Spell-Checker." 2015-12-10 17:45:18 +00:00
Lorenzo Colitti
bda01cc5e3 Fix canceling renew alarms.
1. Entering DhcpBoundState cancels the renew alarm, but at that
   point the renew alarm is guaranteed not to have been scheduled.
   This is harmless, but results in an "unknown listener" message
   in the AlarmManager logs.
2. We don't cancel the renew alarm when exiting DhcpBoundState.
   This is also harmless, because that alarm does nothing except
   in DhcpBoundState, and we cancel it whenever we enter
   DhcpBoundState. But canceling it on exit is more correct.

Change-Id: I60dfcf00f243253b81b8906540e0a6218a7a489c
2015-12-10 12:58:27 +00:00
Yohei Yukawa
5f8e731f18 Remove unnecessary parameter that is always true.
This is a mechanical refactoring that removes an unnecessary parameter
that is always specified to 'true'.

No behavior change is intended.

Bug: 22859862
Change-Id: If3aef8209a355af1432ca2600bcc3a0027a6c24c
2015-12-10 01:05:49 -08:00
Svetoslav Ganov
1030ca69a2 Merge "Avoid caller NPE if callback null in AppOpsService" 2015-12-10 02:26:33 +00:00
Svetoslav Ganov
8de5971ac6 Avoid caller NPE if callback null in AppOpsService
bug:25863432

Change-Id: Ib0386ed4c1637ff8b084f32592ba316b65498005
2015-12-09 18:25:18 -08:00
Chris Tate
1353bdbdd5 Merge "Allow direct-callback alarms for non-wakeup alarms" 2015-12-10 01:18:14 +00:00
Christopher Tate
ff6390cda4 Allow direct-callback alarms for non-wakeup alarms
Turns out there are known use cases for it, in particular to avoid
interfering with doze/idle type optimizations.  In addition, it is
not reliably possible to aim for a specific *wall-clock* trigger time
when posting work to a Handler, since the time base used there is
uptime rather than elapsed.

Bug 26114467

Change-Id: I7cede733fc7e09704b63dfe3e98b00365bbdff35
2015-12-09 17:12:37 -08:00
Selim Cinek
6c24afe4b0 Merge changes from topic 'more_groups'
* changes:
  Fixed a bug where the heads up had the wrong size
  Adapted the appear animation for notification children
  Added darkmode for notification groups
  And suddenly notification children appeared
2015-12-10 00:58:21 +00:00
Dianne Hackborn
76e800928f Fix issue #26102692: Unable to create secondary user...
...device restarts while adding account or password in SUW

Change-Id: Ibcacb034720133359509b1be1b289abe68be44b4
2015-12-09 14:15:34 -08:00
Dianne Hackborn
27cf982641 Merge "Add a mechanism for broadcasts to control background dispatching." 2015-12-09 21:50:32 +00:00
Rob Carr
e379251878 Merge "Prevent crash when manipulating hidden SurfaceView." 2015-12-09 20:53:05 +00:00
Robert Carr
51a1b875c2 Apply cropping to resizing surfaces.
Apply crop to surfaces even while we resize them. In the case of
SurfaceView, the SurfaceView will be much slower to resize than the
main window. Without crop, this causes the SurfaceView to jut past
the bounds of the main window as it is shrinking. With crop we can
ensure the crop moves with the border in the same SurfaceFlinger
transaction.

Bug: 26010823
Change-Id: Ifb32422de8d18363bd956a457e9efe8cf26678e5
2015-12-09 12:46:24 -08:00
Robert Carr
0df9b0f4ec Prevent crash when manipulating hidden SurfaceView.
repositionChild was attempting to perform placement
transactions on hidden views (which do not have a Surface)
leading to an exception being thrown. Furthermore lack
of a finally block prevented an open transaction from
being closed while unwinding and rendered the system unuable.
First we avoid performing transactions on windows without services.
Second we correct flow to ensure transactions are closed in case
an exception was thrown for other reasons.

Bug: 25780116
Change-Id: If103158506298c8f5ec1b01d7e1c73e55427804a
2015-12-09 12:29:41 -08:00
Dianne Hackborn
6ac42aeed9 Add a mechanism for broadcasts to control background dispatching.
Right now this is just for the BOOT_COMPLETED broadcast to allow
all apps to receive it.

Also clean up the dumpsys of the broadcast queue to not have
every little detail of ResolveInfo+ActivityInfo+ApplicationInfo,
which is just not useful and makes reading the broadcast queue
debug output a lot harder because of so much noise there is.

And rename the package shell query-intent-* commands to a
shorter query-* form.

Change-Id: I0d01565babb87e68b840c9756a2ea730d699efc7
2015-12-09 11:31:51 -08:00
Jason Monk
58d9cefdd3 Merge "Allow color matrix to be controlled by secure setting" 2015-12-09 18:55:17 +00:00
Roozbeh Pournader
3f74371155 Merge "Revert "Fix Build: Revert "Implement locale matching in LocalesList.""" 2015-12-09 17:06:10 +00:00
Lorenzo Colitti
899d2af1df Merge "Add a new WakeupMessage class and use it in two places." 2015-12-09 13:08:21 +00:00
Roozbeh Pournader
2591cc8630 Revert "Fix Build: Revert "Implement locale matching in LocalesList.""
This reverts commit 9c2f0d751d.

The original commit, 17b2b2d458, had
missed adding api/test-current.txt.

Change-Id: I26a6325b3cee4c2412ee599f002cc6addb35d36f
2015-12-08 22:28:30 -08:00
Daichi Hirono
dc89e079ce Merge "Grant USB device permission by using system permission." 2015-12-09 04:04:47 +00:00
Selim Cinek
4041249f2f And suddenly notification children appeared
Bug: 22760612
Change-Id: I0b708368c9c8e06af36184e736d181b2818d29b8
2015-12-08 19:51:24 -08:00