Commit Graph

250855 Commits

Author SHA1 Message Date
Svetoslav Ganov
fe2462f3a6 Properly close fd backing a MemoryIntArray
Use ParcelFileDescriptor only as an IPC transport
to make sure MemoryIntArray manges its backing fd.

Bug:30310689

Change-Id: Ib3cc13ef4ae2a744e5f7a96099570e0431847bce
2016-08-30 02:26:19 +00:00
Tony Mantler
97231323b7 Merge "Fix AsyncTask to handle exceptions in doInBackground" into nyc-mr1-dev 2016-08-24 17:00:04 +00:00
Tenghui Zhu
3512b0001a Merge "Add an new internal DrawableContainer to handle animation scale == 0 case." into nyc-mr1-dev 2016-08-24 16:22:38 +00:00
Rubin Xu
4d826638ab Merge "Set DeviceLockedForUser state synchronously" into nyc-mr1-dev 2016-08-24 14:23:44 +00:00
Jaewan Kim
473c683ca6 Merge "MediaSessionService: Leave log for media key events" into nyc-mr1-dev 2016-08-24 05:34:29 +00:00
Sungsoo Lim
c23c2771de Merge "ExifInterface: Make saveAttributes throw an exception before change" into nyc-mr1-dev 2016-08-24 01:53:22 +00:00
TreeHugger Robot
e846b18d33 Merge "Fixing issue with toasts not showing for guest users." into nyc-mr1-dev 2016-08-24 01:47:20 +00:00
TreeHugger Robot
6e370d35fe Merge "Don't use fullscreen theme for forced resizable info activity" into nyc-mr1-dev 2016-08-24 01:32:11 +00:00
Jaewan Kim
5e1476ecd7 MediaSessionService: Leave log for media key events
Bug: 30212915
Change-Id: I6eb523bbbce2292b6b51d538d82ef4d0a8ba23b3
2016-08-24 10:24:59 +09:00
TreeHugger Robot
5a10360d7e Merge "Remove swipe-up gesture from Tuner" into nyc-mr1-dev 2016-08-24 01:21:07 +00:00
Winson
675c5d8e5a Fixing issue with toasts not showing for guest users.
Bug: 30001278
Change-Id: I43269da8a6c41f4fec5923aafe5a624ec75ba651
2016-08-23 17:22:32 -07:00
TreeHugger Robot
f50ff35cea Merge "use directory timestamp during OTA" into nyc-mr1-dev 2016-08-24 00:09:20 +00:00
TreeHugger Robot
ee36020457 Merge "Improve logging for NightDisplayService/TwilightService" into nyc-mr1-dev 2016-08-24 00:04:42 +00:00
Winson
c3eedd972d Bump up preloading recents on boot up to user unlocked.
- To fix b/29320695, we moved the initial recents preloading to boot 
  completed.  However, that event happens fairly late in the boot 
  sequence, and preloading can instead be done in response to user 
  unlocked.

Bug: 29879478
Change-Id: I881bd9c4c3b91d73df4947bfd2cc55eb6e615d15
2016-08-23 23:53:41 +00:00
Makoto Onuki
8664df3d76 Merge "Backporting shortcut manager test utils to mr1" into nyc-mr1-dev 2016-08-23 23:44:06 +00:00
TreeHugger Robot
0f7fe17983 Merge "Only sync adapters with access can see an account - framework" into nyc-mr1-dev 2016-08-23 23:26:51 +00:00
TreeHugger Robot
621dcdf9cd Merge "Added error handling to settings suggestions list" into nyc-mr1-dev 2016-08-23 22:52:33 +00:00
Todd Kennedy
095d4125be use directory timestamp during OTA
Previously the timestamp was generated using the directory and not the
APK [see b/29575840 and b/29610181 as to why that's bad]. In MR1, the
timestamp was generated using the most recent time of any of the APK
files.

The timestamp discrepancy causes problems during OTA to N MR1. Most
apps are incorrectly marked as "changed" which means a full parse and
verification pass on all packages. This can be a very lengthy process.

Bug: 30930797
Change-Id: Iaef7b318e1c1effbd74d996f88cbf3d6e77736cd
Test: manually updated the platform and noticed that existing packages were marked as "not changed"
2016-08-23 15:47:02 -07:00
Justin Klaassen
ec8837ae26 Improve logging for NightDisplayService/TwilightService
Bug: 31037341
Change-Id: Id6e5ea55f2fed93f1afdd0f61028e3329c8a43c3
(cherry picked from commit 7fba392090)
2016-08-23 22:23:49 +00:00
TreeHugger Robot
891411aaa5 Merge "Update light mode when battery saver changes" into nyc-mr1-dev 2016-08-23 22:20:40 +00:00
Svetoslav Ganov
5cb2973495 Only sync adapters with access can see an account - framework
It was possible for a sync adapter without accounts access to
see the account which it is supposed to sync which can be used to
identify the user. This change ensures that only sync adapters
with account access can run (which results in seeing the account),
otherwise we involve the user to approve access only to this account.

A sync adapter can access an account if one of these is true:
 - it is signed as the authenticator for this account
 - has the GET_ACCOUNTS permission
 - has an auth token for the account
 - it is a preinstalled app (system or privileged)

The main thing we need to figure out is if the extra prompts
for giving access to a sync adapter to the account create too
much friction.

bug:28163381

Change-Id: Ie083bb681b5a2aed81ca5f6a062193a175fad77e
2016-08-23 21:43:27 +00:00
Amith Yamasani
50ff32c17f Merge "Don't complain about sender of MASTER_CLEAR" into nyc-mr1-dev 2016-08-23 21:19:05 +00:00
Makoto Onuki
85c10342c1 Merge "Do not scan system apps unless after OTA" into nyc-mr1-dev 2016-08-23 20:52:43 +00:00
Jorim Jaggi
3793aff806 Remove swipe-up gesture from Tuner
We can't do it anymore with the slippery flag, so remove the entry
in the tuner.

We'll clean up the code in master.

Change-Id: Ib3dee0c947e7925b5847f2edc4801495c659dfa5
Fixes: 30891575
2016-08-23 20:49:18 +00:00
Jorim Jaggi
3f09052eb9 Don't use fullscreen theme for forced resizable info activity
Change-Id: I74b5443645dd532ff597d4a1773bbd5a38d71192
Fixes: 29278265
2016-08-23 20:40:10 +00:00
Jorim Jaggi
244a43ee6f Update light mode when battery saver changes
Change-Id: I56b309222782d823d80a66c87d30eefed2ce5dc7
Fixes: 30150232
2016-08-23 13:28:04 -07:00
Adam Seaton
2c7e4d2345 Merge "DO NOT MERGE ANYWHERE (nyc-dr1-dev) Add connection events for indicated when a connection is remotely held." into nyc-dr1-dev
am: 09c77dd2b1  -s ours

Change-Id: I97b120256a68cc2038b72fc13d14ca01729f3199
2016-08-23 20:16:34 +00:00
Tyler Gunn
9ea9bc0213 DO NOT MERGE ANYWHERE (nyc-dr1-dev) Add connection events for indicated when a connection is remotely held.
am: d697c5dc9b  -s ours

Change-Id: Id959d48b4c4fa5af883c42cc6fbe052cca10f367
2016-08-23 20:16:29 +00:00
Adrian Roos
a9b9b42e85 Merge "Ambient: Pulse for every noisy notification exactly once" into nyc-dr1-dev
am: e1f32de996

Change-Id: If4171cbb2247cb8bc8f0e4e92f94724bf9ba238e
2016-08-23 20:16:23 +00:00
Adrian Roos
7de22aa782 Ambient: Pulse for every noisy notification exactly once
am: 97de2b2666

Change-Id: I4ae78e6f4ec4d3652f7f6eefc0cd72d3e881ea89
2016-08-23 20:16:17 +00:00
Adam Seaton
09c77dd2b1 Merge "DO NOT MERGE ANYWHERE (nyc-dr1-dev) Add connection events for indicated when a connection is remotely held." into nyc-dr1-dev 2016-08-23 20:07:28 +00:00
TreeHugger Robot
e1f32de996 Merge "Ambient: Pulse for every noisy notification exactly once" into nyc-dr1-dev 2016-08-23 20:07:12 +00:00
Sudheer Shanka
0b3cf692f6 Merge "Add installer app check in PM.deletePackage." into nyc-mr1-dev 2016-08-23 19:40:00 +00:00
Robert Carr
4cd7a8c63e Only allow focused window to select seamless rotation.
am: 066d94f6df

Change-Id: I22360bd2d0182276c68ed3e300073edf390ffcfa
2016-08-23 19:31:27 +00:00
Amith Yamasani
d8a55f6dd8 Don't complain about sender of MASTER_CLEAR
Make an exception for MASTER_CLEAR broadcast when checking for
non-protected broadcasts being sent by system uid; Settings app in
this case.

Change-Id: I296404faf2be03601f8f937b96d3e2f70c0e816d
Fixes: 30891377
2016-08-23 12:26:25 -07:00
Tyler Gunn
d697c5dc9b DO NOT MERGE ANYWHERE (nyc-dr1-dev) Add connection events for indicated when a connection is remotely held.
Note: This is different than the existing EVENT_ON_HOLD_TONE_START
and EVENT_ON_HOLD_TONE_END events, which trigger playing a hold tone for
remotely held calls.  Those events also take into account whether the call
is foreground/background; it is left as a future exercise to clean that
up.

Bug: 30349182
Change-Id: I919365d243ae3b9fe56454c7a2b9d5805b2c03a2
(cherry picked from commit b5ed860de7)
2016-08-23 19:16:13 +00:00
TreeHugger Robot
c6c45d225c Merge "Made background updater more robust to state changes" into nyc-mr1-dev 2016-08-23 18:55:48 +00:00
TreeHugger Robot
c55457b146 Merge "Avoid weird expand animation when a notification is updated" into nyc-mr1-dev 2016-08-23 18:53:21 +00:00
Todd Kennedy
e0736b4fb0 No need to check package name
am: ef8d8ea24a

Change-Id: Idd8b189070e3e5920cd1b9d12a8ba282de44d11a
2016-08-23 17:39:01 +00:00
Robert Carr
066d94f6df Only allow focused window to select seamless rotation.
We require apps to opt in to seamless rotation. If a dialog or some such
has popped up above them, the dialog may not be prepared to rotate
seamlessly and we should just fall back to the old behavior for now.

Bug: 30968345
Change-Id: Ib9a7352ed84d41076bdd162bf38d151b053a307e
(cherry picked from commit 828ec3dc51)
2016-08-23 17:32:13 +00:00
Julius D'souza
8b271611f0 DO NOT MERGE ANYWHERE: Add dynamic illuminance hysteresis support am: 3275a3a5a5 -s ours am: d5bf4039a9 -s ours am: b2507eb7b7 -s ours
am: 027f685296  -s ours

Change-Id: Ibc3e2a639ecc8a9b49d899ae6298761dabbd2032
2016-08-23 17:11:39 +00:00
Sailesh Nepal
fa4f3b25e4 Merge "Add carrier regex config values for VisualVoicemailSmsFilter" into nyc-dr1-dev
am: 74de00a62c

Change-Id: Ibf1283af6133ccd43f75f361fe9a821e87668773
2016-08-23 17:11:35 +00:00
Ta-wei Yen
16394b84d9 Add carrier regex config values for VisualVoicemailSmsFilter
am: 9a107a2df0

Change-Id: Ie71269986f671ee8d773665107e5504f905da769
2016-08-23 17:11:27 +00:00
Todd Kennedy
ef8d8ea24a No need to check package name
Change-Id: I8c403ca2bc38f2c7191b6e9a709286ac7e450ac4
Fixes: 30958291
(cherry picked from commit afb5269ad6)
2016-08-23 17:09:52 +00:00
Julius D'souza
027f685296 DO NOT MERGE ANYWHERE: Add dynamic illuminance hysteresis support am: 3275a3a5a5 -s ours am: d5bf4039a9 -s ours
am: b2507eb7b7  -s ours

Change-Id: I73d049d6855b9cd9420a194bda7079adc2283bb0
2016-08-23 17:08:33 +00:00
Sailesh Nepal
74de00a62c Merge "Add carrier regex config values for VisualVoicemailSmsFilter" into nyc-dr1-dev 2016-08-23 17:00:33 +00:00
Julius D'souza
b2507eb7b7 DO NOT MERGE ANYWHERE: Add dynamic illuminance hysteresis support am: 3275a3a5a5 -s ours
am: d5bf4039a9  -s ours

Change-Id: I4f1a0acabe5d5385af086791b906ff6f45424e59
2016-08-23 16:52:24 +00:00
Julius D'souza
d5bf4039a9 DO NOT MERGE ANYWHERE: Add dynamic illuminance hysteresis support
am: 3275a3a5a5  -s ours

Change-Id: Iaae7763a4d744ad8a63538750c5ed3efe38161d5
2016-08-23 16:45:41 +00:00
TreeHugger Robot
374f9a690b Merge "AppErrors: Don't suppress dialogs when ANR_SHOW_BACKGROUND is set" into nyc-mr1-dev 2016-08-23 16:39:45 +00:00
TreeHugger Robot
bd43552975 Merge "Ambient: Pulse for every noisy notification exactly once" into nyc-mr1-dev 2016-08-23 16:38:19 +00:00