Commit Graph

245299 Commits

Author SHA1 Message Date
Dan Sandler
04f8cc2bb3 Fix SuperNotCalledException.
Q. Dan, how did you make such a basic newbie mistake?
A. new phone who dis

Bug: 29779845
Change-Id: Iecba53effcf6252df228afd2cc80df43b2afaa59
2016-06-27 22:59:24 -04:00
Svetoslav Ganov
b2cd9c95bf Merge "Mark app pending intents in notification extras" into nyc-dev 2016-06-28 00:42:24 +00:00
Svet Ganov
ddb948896c Mark app pending intents in notification extras
We need to make every peniding intent that went in the notification
system to allow special handling of such intents when fired by a
notification listener. If a pending intent from a notification
is sent from a notification listener, we white-list the source app
to run in data saver mode for a short period of time. The problem is
that actions and the notificaion can have extras which bundles may
contain pending intents but the system cannot look into the bundles
as they may contain custom parcelable objects. To address this we
keep a list of all pending intents in the notification allowing
the system to access them without touching the bundle. Currently
the pending intents are written to the parcel twice, once in the
bundle and once as the explicit list. We can come up with a scheme
to optimize this but since pending itents are just a binder pointer
it is not worth the excecise.

bug:29480440

Change-Id: I7328a47017ca226117adf7054900836619f5679b
2016-06-27 17:32:25 -07:00
Dianne Hackborn
a39d380651 Merge "Fix bug where process whitelist manager state would not be correct." into nyc-dev 2016-06-27 23:52:01 +00:00
Andre Eisenbach
4d6be6b308 Merge "Add extra waiting when switching users" into nyc-dev 2016-06-27 23:42:17 +00:00
Chris Tate
f480698298 Merge "Fix #29737133 : content-trigger jobs not running properly" into nyc-dev 2016-06-27 23:18:31 +00:00
Christopher Tate
4b425712c6 Fix #29737133 : content-trigger jobs not running properly
When removing the ContentObserver wrapper from our internal
bookkeeping we were using the wrong key.  That led to future
re-registrations thinking they were reusing a currently-
registered observers, but instead never getting onChange()
notifications.

Change-Id: Id3111db057ae63194049d7d48d45b75be6bb0000
2016-06-27 16:12:41 -07:00
Pavlin Radoslavov
4140111167 Add extra waiting when switching users
If disabling Bluetooth times out, wait for an additional amount of time
to ensure the process is shut down completely before attempting to restart.

Bug: 29738770
Change-Id: I43dec35a1e03d12cb07863babea97d55baa32528
2016-06-27 23:09:09 +00:00
Dianne Hackborn
a590d2be93 Fix bug where process whitelist manager state would not be correct.
We can't update this in updateOomAdjLocked(), because we very
deliberately only iterate through services in there as needed.
The correct thing to do is update the process as services/connections
are associated with it, so do that.

Now basically all of the logic for tracking the state is in
ActiveServices, as we bind and unbind services and add and removing
them from process records.  It's a little messy because we don't
have a central place for removing them from process records, which
should be cleaned up in the future.

Part of fixes for issue #29480440

Change-Id: Iac96f002a5b4e3b0277df244ff7b90f59a6e8440
2016-06-27 15:40:38 -07:00
John Reck
48cde353eb Merge "Add missing roundOut for layer damage" into nyc-dev 2016-06-27 22:22:41 +00:00
John Reck
ac046387be Add missing roundOut for layer damage
fixes: 29771171

This is a regression from HWUI_NEW_OPS, a roundOut
was missing in the new path that was in the old one

Change-Id: Ibf223d550bb5525781864dd9b7f7cd6d73adb98b
2016-06-27 15:18:26 -07:00
Chris Craik
45e83338e5 Round unclipped saveLayers
fixes: 29456451

Change-Id: I2be8b47c46936e75071ad0819a718f72b96cbd2b
(cherry picked from commit d5a9011412)
2016-06-27 21:06:35 +00:00
Andrii Kulian
06b1d786e9 Merge "Resume only activities in focused stack" into nyc-dev 2016-06-27 20:50:02 +00:00
TreeHugger Robot
e858432241 Merge "Fix smooth panel deceleration" into nyc-dev 2016-06-27 20:44:56 +00:00
TreeHugger Robot
95fbc2de1b Merge "Fix mistranslation from the NDK changelog." into nyc-dev 2016-06-27 20:13:53 +00:00
Jorim Jaggi
0fdf574bc8 Fix smooth panel deceleration
State of dismiss view was wrong when the panel was closed, thus, we didn't
apply our logic for smooth panel deceleration anymore.

Bug: 29579394
Change-Id: I79718517e776adad092457aba6db18219998fde1
2016-06-27 18:54:34 +00:00
Dan Albert
cb76aad0c4 Fix mistranslation from the NDK changelog.
Gingerbread begins at API level 9, not 10.

Bug: https://github.com/android-ndk/ndk/issues/136
Change-Id: Ie65e543c06bed925f33e2cac92a27d6b83934a88
2016-06-27 11:19:11 -07:00
Dan Albert
17d0ccb1a9 Remove reference to obsolete installation step.
Bug: https://github.com/android-ndk/ndk/issues/136
Change-Id: Idd08b009fefd69053675545bf94fda2147e01318
2016-06-27 11:16:42 -07:00
Cheryl Potter
5836c9e658 Merge "Add redirect for new Run/Debug Config doc b/29615014" into nyc-dev 2016-06-27 18:02:54 +00:00
Andrii Kulian
c11ce7b1cd Resume only activities in focused stack
While performing ensureActivitiesVisibleLocked we should only
resume activity in focused stack. Otherwise we can get several
resumed activities at the same time.

Bug: 29619461
Change-Id: Id65fe1a29841ee3166694bfb6a8236151b9fc7ec
2016-06-27 10:58:13 -07:00
TreeHugger Robot
cc67847367 Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-06-27 17:34:25 +00:00
Daniel Sandler
d9069f8c9e Merge "Most cats would prefer chicken." into nyc-dev 2016-06-27 16:56:30 +00:00
John Reck
02e391585d Merge "Add missing null checks" into nyc-dev 2016-06-27 16:55:30 +00:00
Dan Sandler
9a9e673bc5 Most cats would prefer chicken.
Bug: 27376882
Change-Id: I2c6d04c2515fd23e44120a3f9ffd6b1668d521ff
2016-06-27 16:34:33 +00:00
Cheryl Potter
2403ac1089 Add redirect for new Run/Debug Config doc
b/29615014

Change-Id: Iff3d896d5f3788d0d20be0bfb6f305a77e094721
2016-06-27 09:23:14 -07:00
TreeHugger Robot
5059e65fec Merge "media: document format keys for MediaMuxer" into nyc-dev 2016-06-27 16:10:39 +00:00
TreeHugger Robot
939484b8ab Merge "media: document output image crop and layout for MediaCodec" into nyc-dev 2016-06-27 16:09:52 +00:00
John Reck
474659ccc4 Add missing null checks
Bug: 29743482
Change-Id: Ic4bc5b9d5718eabd41e09a108a765b01aef4e3c8
2016-06-27 07:56:37 -07:00
Bill Yi
09aaab1c6d Import translations. DO NOT MERGE
Change-Id: I284d2545fccfcb6c0d5dbab92090a6dd6d749b64
Auto-generated-cl: translation import
2016-06-27 02:31:14 -07:00
Dirk Dougherty
61ae65f260 Merge "Update finding success page to feature playbook." into nyc-dev 2016-06-27 02:49:26 +00:00
Dan Sandler
27a9fcc618 Cats are not, technically, tasty treats.
Bug: 27376882
Change-Id: I97183339e51c5d07fe6e9404bbcc5178ca605c05
Copilot: Jason Monk <jmonk@google.com>
2016-06-26 15:00:11 +00:00
Dirk Dougherty
4f58324a43 Update finding success page to feature playbook.
Bug: 29207942
Change-Id: Ia8be8fa45bf9e37bb31627bdba042c7b3cfbe8c0
2016-06-24 18:10:48 -07:00
Lajos Molnar
2c35fd0eba media: document output image crop and layout for MediaCodec
These use hidden, now deprecated MediaFormat keys.

Bug: 14127601
Change-Id: Ib51e4ef41204c9be34ad571300fcb7860feb504e
2016-06-24 17:03:02 -07:00
Lajos Molnar
5495adca3a media: document format keys for MediaMuxer
Bug: 19461810
Change-Id: Iee4396aa6f00b3f580c02fa99f0b9291700f5738
2016-06-24 16:56:53 -07:00
TreeHugger Robot
34ccbe035a Merge "Update DisplayMetrics when resizing" into nyc-dev 2016-06-24 23:35:13 +00:00
TreeHugger Robot
119f1715b3 Merge "Fix layout issue after insets changed" into nyc-dev 2016-06-24 23:21:29 +00:00
TreeHugger Robot
8afc1f70f0 Merge "PopupWindow: Use DISPLAY_CLIP_VERTICAL/HORIZONTAL." into nyc-dev 2016-06-24 22:43:32 +00:00
Adam Lesinski
ac3e0e590a Update DisplayMetrics when resizing
Previously the DisplayMetrics passed to a new ResourcesImpl
object would be generated from the default DisplayAdjustments.
We now use the correct DisplayAdjustments for the ResourcesImpl
and make sure to update them for things like rotation changes.

Bug:29619314
Change-Id: If2ba0d7670a4554dcd3fde9766e2337f20a191fd
(cherry picked from commit 8e8d23214a)
2016-06-24 22:11:27 +00:00
Yorke Lee
c63710ea48 Merge "Update documentation for View.startDragAndDrop" into nyc-dev 2016-06-24 22:10:47 +00:00
Adam Powell
76fdbb72c9 Fix layout issue after insets changed
Fix a regression where a change in insets would forceLayout on the
view hierarchy but not run the measure/layout as a result. This would
cause layout requests to become stalled until a window-level relayout
event.

Bug 29634368

Change-Id: Ia3f32f5891c8b32c06c13f95ebd0572233572b04
2016-06-24 14:47:06 -07:00
Robert Carr
489c39d2db PopupWindow: Use DISPLAY_CLIP_VERTICAL/HORIZONTAL.
When we want the WindowManager to clip our requested width/height
to the display frame, we need to pass DISPLAY_CLIP_VERTICAL/HORIZONTAL.
It seems this behavior was unintentionally applied without this flag
in previous releases.

Bug: 29602363
Change-Id: Ib98060e36efde0dbaabb59a758da5374035dbb62
2016-06-24 14:07:20 -07:00
Min Yun
de383c75eb Reapply more strings for "more settings"
Fixes: 29620816

Change-Id: Iabfcb3b762e1d7d105d2b4c417fc0902d7e7ca16
2016-06-24 18:28:17 +00:00
Bill Yi
34f5924ca6 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 29578243
Change-Id: Ibfcaf1dcbb2cc51dcec359edb8525a2a56ab1231
2016-06-24 08:33:56 -07:00
Julia Reynolds
9c0c3d8d8b Always reapply strings.
Change-Id: Icc66d1e23048d2676b5776c3eec76345963228d0
Fixes: 29620816
2016-06-24 12:49:29 +00:00
TreeHugger Robot
f1dc57ea63 Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-06-24 05:44:42 +00:00
TreeHugger Robot
2bc13bcdad Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-06-24 05:44:10 +00:00
Adrian Roos
594c9cb356 Merge "Improve ANR dropbox reports" into nyc-dev 2016-06-24 01:57:43 +00:00
Adrian Roos
73d1ce85ac Improve ANR dropbox reports
Work towards better diagnosing b/29501073. Adds logic to ensure that the dropbox
entry generated for ANRs fits at least some part of the logcat before the MAX_DROPBOX_SIZE
mark. Also reduces the MAX_DROPBOX_SIZE to be better match size restrictions.

Bug: 29501073
Change-Id: Ice5599582cbb536b7d81aa0c0340ff753ca86ebf
2016-06-23 18:28:37 -07:00
Brad Ebinger
dcbdc0df43 Access internal ringer mode to properly vibrate in DND
Currently, an incoming call will not vibrate properly in certain cases
in DND mode. Specifically, if Priority Only mode is set, but Calls from
anyone are allowed. We now get the internal ringer mode to detect if the
incoming call is ringing while in DND mode.

Bug: 29184073
Change-Id: I1e0e7cf384a2bc1df1378043cd3f7e9dec57a94c
2016-06-24 00:48:14 +00:00
Bill Yi
267c1c6260 Import translations. DO NOT MERGE
Change-Id: If580d6129a5e7b06ee111f866e42b708ebdc7c00
Auto-generated-cl: translation import
2016-06-23 17:07:49 -07:00