231335 Commits

Author SHA1 Message Date
Arunesh Mishra
55a9b0089c Fix moduleProperties in SoundTriggerInternal.
Change-Id: Ie7ea74ca39894f78875768dbc3e504b32f262fe6
2016-02-01 14:14:06 -08:00
Jeff Sharkey
a8b42780c2 Ignore null actions.
Bug: 26862905
Change-Id: I30a21e67b0f60ebca5eaccc843834059e52a6b78
2016-01-30 17:58:09 -07:00
Jeff Sharkey
634dc42c9e Throw when using deprecated file modes.
installd no longer grants o+x to private app data directories for
apps targeting N, so the long-deprecated MODE_WORLD_READABLE and
MODE_WORLD_WRITEABLE flags no longer have any effect, which may lead
to frustrating debugging sessions.

So to help clearly communicate that these flags no longer work, let's
throw when an app targeting N tries using them.

Bug: 26886867
Change-Id: I97dae6182fc3c55639ff37a39c4aae6dd0bed507
2016-01-30 17:48:32 -07:00
Jeff Sharkey
35871f2c2b Offer to migrate databases and SharedPreferences.
Databases and SharedPreferences often involve multiple files under
the hood, so developers wanting to migrate them between different
storage contexts should ask us to make sure all relevant files are
migrated correctly.

This makes a best-effort attempt to recover from battery pulls
during migration, while still trying to alert developers to
conflicting files.

Bug: 26668510, 25860525
Change-Id: I9ffa3e8cb6191dfd4237b9466a081d6d77df3ba0
2016-01-30 17:03:23 -07:00
Aga Wronska
f6ede47b78 Merge "Hide action bar search icon in directories that do not support search operation." 2016-01-30 22:01:50 +00:00
Filip Gruszczynski
89db4366ae Merge "Deliver onEnterAnimationComplete when there is no transition animation." 2016-01-30 19:36:30 +00:00
Stephen Hines
0ff759ccae Merge "Remove the CREATE_FLAG_OPT_LEVEL_0 from the Java API." am: 49aee686d8
am: c033f493f2

* commit 'c033f493f23574dc69bf8ecd0f04af8910b4a47e':
  Remove the CREATE_FLAG_OPT_LEVEL_0 from the Java API.
2016-01-30 17:57:30 +00:00
Stephen Hines
c033f493f2 Merge "Remove the CREATE_FLAG_OPT_LEVEL_0 from the Java API."
am: 49aee686d8

* commit '49aee686d8c1c888fd0dd2778c19d5968dae0252':
  Remove the CREATE_FLAG_OPT_LEVEL_0 from the Java API.
2016-01-30 17:52:28 +00:00
Jason Monk
96a34090c9 Merge "Fix rare crash in bt detail panel" 2016-01-30 17:52:14 +00:00
Jason Monk
c17d329825 Fix rare crash in bt detail panel
Since bond state is gotten directly from the bluetooth stack it is
possible it could change, and therefore change the number of devices
if pairing happens while the detail panel is updating.  Fix this by
just dropping them into a list.

Bug: 26258223
Change-Id: I7703520391798fd7c9ab097b0057b7b43b877212
2016-01-30 12:49:41 -05:00
Stephen Hines
49aee686d8 Merge "Remove the CREATE_FLAG_OPT_LEVEL_0 from the Java API." 2016-01-30 17:44:52 +00:00
Jason Monk
5c9637a9ea Fix nav bar clipping
Bug: 26782800
Change-Id: I7ba3db27aeee46800f6b7f9cd239ad529b281dd8
2016-01-30 12:40:47 -05:00
Aga Wronska
91c7fb3b83 Hide action bar search icon in directories that do not support search operation.
Bug:26593318
Change-Id: Ibb8945e6eba508aaaa55b1f666ac434f30b2aaaa
2016-01-29 18:47:23 -08:00
Winson Chung
650e3b70e4 Merge "Re-enabling fade-in of header bar icons." 2016-01-30 02:08:03 +00:00
Winson Chung
bbb3d3de3c Re-enabling fade-in of header bar icons.
This reverts commit 133ad44269e4b45e056793b579a7628aa4d91ccb.

Change-Id: I45095211aaa63b133ad5a4076df25823fa91efa3
2016-01-29 18:02:13 -08:00
Filip Gruszczynski
3b81c90efb Deliver onEnterAnimationComplete when there is no transition animation.
Documentation says that Activity.onEnterAnimationComplete() will be
called when it's safe to draw, so developers can wait for this callback
to do work. In certain cases we never trigger this callback: when the
screen is frozen and there is no transition animation and the window
just popups into existence. In that case we should forcefully schedule
this callback, so that it can be used reliably.

Bug: 24005761
Change-Id: I2c20ca9bc7fa15ca53d9d492ad1c3f5f9608e8c4
2016-01-29 17:38:51 -08:00
Chong Zhang
63ac65c5b9 Merge "Some fixes for saved surfaces" 2016-01-30 01:14:17 +00:00
Winson Chung
c0848f1179 Merge "Revert "Re-enabling fade-in of header bar icons."" 2016-01-30 01:08:09 +00:00
Winson Chung
133ad44269 Revert "Re-enabling fade-in of header bar icons."
This reverts commit 9b5c847a19bf7dbfe3fe00f11cbbdf581794fccc.

Change-Id: Ie9e6ba685654622a9a1e76a405cc4d47477d9e13
2016-01-30 01:07:34 +00:00
Jaewan Kim
54fa566ab7 Merge "PIP: Use StatusBarService to handle PIP key" 2016-01-30 01:06:29 +00:00
Chong Zhang
bfc2f8f6c8 Some fixes for saved surfaces
- If we have a saved surface, and app relayouts to visible before we
  started entry animation, we need to restore the saved surfaces.
  Otherwise the surface might get stuck in the saved state, because
  we may not get to run any animation after this relayout.

- Keep track of the allDrawn while we're using the saved surfaces,
  so that we can rely on allDrawn itself, instead of whether we're
  using saved surfaces.

- If the app is set to visible when it's exiting, clear the exiting
  flags. Also, save the surface if we cancel an exiting animation.

- More debug logging.

bug: 26819496
Change-Id: Ie42c6eea7879632d82f24ed09c3b6e737dd6d8a4
2016-01-29 17:05:22 -08:00
Hang Yin
a80bf36741 Merge "Camera2 framework stress test suite" 2016-01-30 00:45:00 +00:00
Makoto Onuki
b0f83b50ad Merge "Fix permission doc" 2016-01-30 00:16:14 +00:00
Makoto Onuki
6c7185cd20 Fix permission doc
Bug 26406584

Change-Id: I2c443cc52c600edb1ad904e0eb013829caee9897
2016-01-29 16:14:41 -08:00
Matt Sarett
2c0348ffbb Merge "Revert "Encode paletted PNGs more efficiently"" 2016-01-29 23:59:40 +00:00
Matt Sarett
634ac1e497 Revert "Encode paletted PNGs more efficiently"
This reverts commit 3c7235d3868d4bf554d4c1700ac11fc3d4125c71.

Change-Id: I615827c7f4570467bb85c115c01de8c3b46e4e8a
2016-01-29 23:57:53 +00:00
Winson Chung
4b164b6d4c Merge "Re-enabling fade-in of header bar icons." 2016-01-29 23:41:00 +00:00
Mitchell Wills
b8c17cc30b Merge "Add a hidden anqp field to ScanResult" into mm-wireless-dev
am: 934b3b9c6c

* commit '934b3b9c6c83a372d5def7abaf22d0f185a810de':
  Add a hidden anqp field to ScanResult
2016-01-29 23:38:08 +00:00
Steve McKay
ee2d263829 Merge "Load correct thumbnail size when switching to grid from list (and visa versa)." 2016-01-29 23:36:56 +00:00
Mitchell Wills
934b3b9c6c Merge "Add a hidden anqp field to ScanResult" into mm-wireless-dev 2016-01-29 23:33:50 +00:00
Steve McKay
51635f9c1a Load correct thumbnail size when switching to grid from list (and visa versa).
This is a quickie change where we clear the cache, but I think there could be
a better behavior where we don't clear the cache, show low res (instantly)
then load higher resolution ontop of the low res.

Bug: 26763078
Change-Id: If9883d507984b555e790a06692390d4fa3334c28
2016-01-29 15:25:42 -08:00
Winson
9b5c847a19 Re-enabling fade-in of header bar icons.
- Removing extra syscall when rebinding tasks
- Only bind the click listeners on the header bar after they are visible

Change-Id: I6879b30a985ca8274ee77126b152daa985054371
2016-01-29 15:08:08 -08:00
Matt Sarett
fc1159c808 Merge "Encode paletted PNGs more efficiently" 2016-01-29 22:57:12 +00:00
Matt Sarett
3c7235d386 Encode paletted PNGs more efficiently
Saves about 2 MB of encoded size across affected assets.

Also will enable more efficient decoding.

Specifically, encoded palette values are assumed to be opaque unless
alpha values are provided in a tRNS chunk.  Before this change, we
would wastefully store many opaque alpha values in tRNS chunk.
Additionally, the decoder used to need to premultiply all of these
opaque colors, because the encoded data indicated that they had alpha.

Change-Id: I1d5400f71a0e3cb800fd0fc68a04c8c4069da8ef
2016-01-29 22:56:45 +00:00
John Reck
f2a4f9af97 Merge "Fix copyLayerInto" 2016-01-29 22:54:54 +00:00
John Reck
0b8d0677be Fix copyLayerInto
Bug: 26763945
Change-Id: I21ffbd56cf70bad0928416963e6fc254be435af9
2016-01-29 14:53:45 -08:00
Jean-Michel Trivi
5bf536cf78 Merge "Fix dynamic audio policy rules" 2016-01-29 22:52:28 +00:00
Felipe Leme
f43ec7e504 Merge "Fixed check for empty title." 2016-01-29 22:33:22 +00:00
Fyodor Kupolov
a31c591f25 Purge all state for a removed user
Bug: 26687570
Change-Id: Icd516a871c274ce8986129654081b6dec3850856
2016-01-29 22:21:43 +00:00
Dianne Hackborn
311cbe1b83 Merge "Some small binder shell command improvements." 2016-01-29 22:20:39 +00:00
Chris Tate
4fff321f9f Merge "Stage backup/restore data in a cache subdir rather than root" 2016-01-29 22:09:04 +00:00
Felipe Leme
c8e2b6092c Fixed check for empty title.
Otherwise, if user entered "Details" but not "Summary", the
ACTION_SEND_MULTIPLE subject would be empty.

BUG: 26768595
Change-Id: I955ab5e8f05eba9fbfa6fe65eabb6a8a8e28c5b4
2016-01-29 14:05:31 -08:00
Jean-Michel Trivi
32696d49e1 Fix dynamic audio policy rules
Always set the mix type when adding rules, even
 when adding from a parcel.

Bug 26798796

Change-Id: Ib10bfa9b9b7753b18d9b1b5a67e82677dcac2cbe
2016-01-29 13:50:20 -08:00
Sergey Poromov
86cfe51863 Merge "Fix BackupManager to really send MSG_RESULT when onResult is called." 2016-01-29 21:49:22 +00:00
Alan Viverette
04415b4765 Merge "Add DENSITY_DEVICE_STABLE constant" 2016-01-29 21:41:38 +00:00
Chien-Yu Chen
d7085a40bd Merge "Correct cameraserver UID" 2016-01-29 21:39:51 +00:00
Felipe Leme
afd0936a97 Merge "Added entries to zip file before sending the share notification." 2016-01-29 21:33:23 +00:00
Selim Cinek
33f266201c Merge "Fixed a bug where the notification became clearable" 2016-01-29 21:22:00 +00:00
Wale Ogunwale
76d159fdcb Merge changes I96fdf9b4,Ia85d9d89,I1fd23114
* changes:
  Added isDockable field to RunningTaskInfo
  Display warning toast when we try to launch unresizeable app in split-screen
  Don't allow non-dockable activities/tasks in docked stack.
2016-01-29 21:14:17 +00:00
Adrian Roos
7134cce644 Follow up to improved ANR dialog
Original CL Ie1f0ca54216f123ae26df51d42f88b0fa2d65941

Bug: 22692162
Change-Id: I7fd849fee4d2e6252bfb839b2da052ccc0d6b2d6
2016-01-29 13:01:05 -08:00