Commit Graph

245370 Commits

Author SHA1 Message Date
Kevin Hufnagle
940de083a3 Merge "docs: Restored references to "Know Your User" resource cards." into mnc-docs
am: dbfd7dd16a

* commit 'dbfd7dd16a383e41f5a59c2b63231e0848563770':
  docs: Restored references to "Know Your User" resource cards.

Change-Id: I7d350d7574396e0216b2b72ed9e1725242c3fb88
2016-05-19 16:48:54 +00:00
Kevin Hufnagle
4af01c1aec Merge "docs: Added Sony Xperia Z3 as a testing device for Android N." into mnc-docs
am: 8262d9c00d

* commit '8262d9c00d7332e7f013ef1af6ea818a5d248ec5':
  docs: Added Sony Xperia Z3 as a testing device for Android N.

Change-Id: I56f21d12417b7157f749b02e9f3949bdbace5751
2016-05-19 16:48:51 +00:00
Kevin Hufnagle
dbfd7dd16a Merge "docs: Restored references to "Know Your User" resource cards." into mnc-docs 2016-05-19 16:43:41 +00:00
Kevin Hufnagle
8262d9c00d Merge "docs: Added Sony Xperia Z3 as a testing device for Android N." into mnc-docs 2016-05-19 16:43:31 +00:00
Sergio Giro
69de32071c ZygoteInit: install AndroidKeyStoreProvider in the Zygote
Instead of in activity thread. That way, we can warm up (ie,
precompute cached values) this provider and AndroidBCWorkaroundProvider
(which are installed together) so that the computation doesn't
happen in the app. As a result, the time spent in the first call to
SSLSocketFactory.getDefault() decreases by ~5ms in angler userdebug.
Measured with an app calling SSLSocketFactory.getDefault in onCreate
and timed it with System.currentTimeMillis() .

Bug: 28545496

Change-Id: I73284eccdf6d51dbf55206335d759ccf795c5f41
2016-05-19 16:42:19 +00:00
Neil Fuller
4f41f6198b Add support for ICU data pinning in the Zygote
Upstream ICU caches use SoftReferences. On Android this means
that useful cached data initialized in the Zygote are "lost" when
the Zygote GCs and cannot be shared with apps. This change makes use
of an Android patch to ICU to ensure References created during
Zygote initialization are "strong". i.e. they are never collected.
This prevents them being GCd and ensures they can be shared between
applications.

After switching ICU to use strong references, this change
also creates DecimalFormatSymbols objects for common ULocales
(ROOT, US and the user's default, if different). DecimalFormatSymbols
makes use of an ICU Reference cache and this alone has been shown to
improve the construction time of java.text.DecimalFormat by 1-1.5
milliseconds on a Seed device. This saving applies the first time one
is created in each app for each locale, and again if SoftReferences
have been cleared.

The cost to the heap size of the Zygote has been measured at ~107k.
This value will change as more caches are switched to use the new
CacheValue class.

Formatting is typically performed on the UI thread and the intention
of this change is to reduce app start up time and jank in apps like
the Dialer which do a lot of formatting when scrolling lists. The
change may also enable more virtual memory page-sharing between
apps, though this is not the specific goal.

Bug: 28326526
(cherry picked from commit 41c9dc3b69)

Change-Id: I48e4d57ecbb207b9a5e17b6caf5e7b282e4a40e3
2016-05-19 17:24:27 +01:00
TreeHugger Robot
a1e0cebf3a Merge "DO NOT MERGE Rename PointerIcon and Pointer Capture APIs" into nyc-dev 2016-05-19 15:03:36 +00:00
Victor Chang
a0940d33dc New api in LockSettingsService to get StrongAuth synchronously
Not all client needs to monitor the StrongAuth, e.g. ConfirmDeviceCredentialBaseFragment
Provide a quick method to get StrongAuth

Bug: 28752364
Change-Id: Iecfd217046da38e43297bdd5832cf7d637b979ed
2016-05-19 15:01:26 +01:00
Yi Kong
c328f7f5f1 Docs: Update content license page to include Javadocs licenses
The Android public API documentation incorporates text from third-party
source code, attribute to the usage and include their licenses.

Bug: 23576575
Change-Id: I83ec78de6cb339edfbc838ac26078c3d610f22f0
2016-05-19 13:33:24 +01:00
Alan Leung
880721b38b Enable boost-locked-region-priority
Enable jack.transformations.boost-locked-region-priority compiler pass
that had shown to increase performance in AmSlam by 10% or so.

bug: 28610549
Change-Id: If1b76787acd272882647ede7e831cb1ba376e578
2016-05-19 08:27:19 +00:00
Andrii Kulian
005f9a73fb Merge "Workaround for ignored resizeableActivity param" into nyc-dev 2016-05-19 07:57:20 +00:00
TreeHugger Robot
fa020a8094 Merge "Fix build breakage caused by redefining attrs" into nyc-dev 2016-05-19 07:06:50 +00:00
Andrii Kulian
bd17d8c63b Fix build breakage caused by redefining attrs
minWidth and minHeight were already defined without format specified
and we need to have definition without format also. Otherwise they conflict.

Bug: 28775586
Change-Id: I0602bd70d03bdacfc604d884951a60871159ed92
2016-05-18 22:35:19 -07:00
Seigo Nonaka
ea906b37df Fix system locale propagation during user creation.
Since Android N, the system locale is stored in Settings.System. Because
of this change, we need to propagate the previous user's system locale
to the newly created user.

When the user switch happens, updateUserConfigurationLocked is called
for the next user. Usually, some configuration values (font scale and
system locale) are overwritten by the next user's settings. However,
the first time the next user logs in (and only the first time), the
settings value is empty. So, we need to decide between keeping the
passed configuration's value or resetting to the default. For the
fontScale, it is reset to the default (issue 27187556). For the system
locale, the previous user's locale should be used. This CL addresses
this.

At the same time, the inherited configuration should be stored to the
settings, otherwise the inherited configuration is lost the next time
the second user logs in.

Bug: 27803966
Change-Id: I4632671316d26e00ab6fe80ff3433f097f0e0954
2016-05-19 13:28:05 +09:00
Erik Kline
c21f84dddb Merge "DHCPv4: lease expiration is fatal, renew failures are not" into nyc-dev 2016-05-19 04:12:40 +00:00
TreeHugger Robot
8cb3b2bb5c Merge "Frameworks/base: Optimize LoadedApk" into nyc-dev 2016-05-19 03:43:08 +00:00
Andrii Kulian
13778161ea Merge "Update docs for minWidth/minHeight attributes" into nyc-dev 2016-05-19 01:42:15 +00:00
Andrii Kulian
42b3acf9d3 Merge "Rename minWidth/Height attributes" into nyc-dev 2016-05-19 01:42:15 +00:00
Joe Fernandez
31676c1a9b Merge "docs: Add video to Instant Apps landing page" into mnc-io-docs am: 99ffb30302
am: ac9135e737

* commit 'ac9135e737ff53b6e680d9f81dd32012365041b4':
  docs: Add video to Instant Apps landing page

Change-Id: I3c97783703ce80079636f18d4708796b34b351e9
2016-05-19 01:25:19 +00:00
Joe Fernandez
ac9135e737 Merge "docs: Add video to Instant Apps landing page" into mnc-io-docs
am: 99ffb30302

* commit '99ffb30302017f00b349369181cbda72c3276170':
  docs: Add video to Instant Apps landing page

Change-Id: Icd8bc9c7d8bbd432889e880eec512c1213baf9af
2016-05-19 01:20:21 +00:00
Joe Fernandez
99ffb30302 Merge "docs: Add video to Instant Apps landing page" into mnc-io-docs 2016-05-19 01:13:23 +00:00
Andrew Solovay
2c5ed120c4 doc: Updates to release notes post-DP3 am: fd30a43337
am: 788edcb7ec

* commit '788edcb7ecf03bdabfc8c82cd9949a130c7d2dcc':
  doc: Updates to release notes post-DP3

Change-Id: I656981ca1a6b16e4a429b84abfdc6efad20216cf
2016-05-19 01:09:38 +00:00
Joe Fernandez
ef0f1fd4d5 docs: Add video to Instant Apps landing page
b/28842359

Change-Id: Idb097501425ca0a50f547a22f54217878075376a
2016-05-18 18:07:17 -07:00
Andrew Solovay
788edcb7ec doc: Updates to release notes post-DP3
am: fd30a43337

* commit 'fd30a43337d31ddcb6925fe275cf0d5cc7a9ed63':
  doc: Updates to release notes post-DP3

Change-Id: If45ef33e3b718649c1c717a9d14613a94f30a839
2016-05-19 01:06:20 +00:00
TreeHugger Robot
a75bd7d4e0 Merge "Fixed a bug where autobundling could lead to bugs" into nyc-dev 2016-05-19 00:58:25 +00:00
Andrii Kulian
3f8dc15861 Workaround for ignored resizeableActivity param
If <uses-sdk> tag is below <application> in AndroidManifest.xml then,
when activity is parsed, targetSdkVersion param is not yet set correctly.
Because of that we're defaulting to RESIZE_MODE_FORCE_RESIZEABLE and the
param resizeableActivity will be ignored.
This CL checks if resizeableActivity was set explicitly when targetSdkVersion
is less than N (or not set).

Bug: 28020462
Change-Id: I099f6c00dd50547ddea873e47dbb447869d0be6f
2016-05-18 17:49:26 -07:00
Andrew Solovay
fd30a43337 doc: Updates to release notes post-DP3
Fixed a mistake (duplicated known-issue) and changed the AfW section
title.

Also added a new adb-related bug in a new "Developer Tools" section.

See first comment for doc stage location.

bug: 28844418
bug: 28347842

Change-Id: I10138a66d596b8aeb5a35a9366950af9f4c7cc51
2016-05-18 17:36:45 -07:00
Selim Cinek
c2c0b043cf Fixed a bug where the chronometer was invisible
We were requiring the time to show in order to show the chronomer
which didn't make any sense.

Change-Id: Ia6d00d0932d272a6c5e20e8b41e3acfb53b7987a
Fixes: 28848113
2016-05-18 17:13:46 -07:00
TreeHugger Robot
b40bcfb6ad Merge "Frameworks/base: Add more systrace points" into nyc-dev 2016-05-19 00:09:09 +00:00
Selim Cinek
a2a0171e7c Fixed a bug where the chronometer wasn't updating the time
When the countdown was set to true and the chronometer was set to
count down it wasn't updating the time, which is now fixed.

Change-Id: I4887d9eb09193c5636070edee9ba1bd13b9a23b5
Fixes: 28829131
2016-05-18 16:59:07 -07:00
Christopher Tate
5d99d47f39 Add default lock wallpaper capability and API
If present, the system property "ro.config.lock_wallpaper" provides a
filesystem path to a decodeable image file to use as the system's
out-of-the-box lock wallpaper imagery.  In the absence of this
system property, or if the indicated file is absent or unreadable,
then the new framework resource
com.android.internal.R.drawable.default_lock_wallpaper is consulted to
locate a usable asset.  This mechanism parallels the existing one for
the default system wallpaper.

By default there is no specific lock wallpaper asset; the resource is
defined to be @null in the standard config.xml file.  A product that
wants to define such a factory-default lock-only wallpaper image
will provide the asset as part of its framework resource overlay.

Bug 27828056

Change-Id: Iebf3706222370d0a0a4baf88d71a59ead07a25c7
2016-05-18 23:57:46 +00:00
Chris Tate
b100777562 Merge "API feedback: rename JobInfo methods for clarity" into nyc-dev 2016-05-18 23:50:14 +00:00
Abhijith Shastry
95fd74c1f7 Update BlockedNumberContract javadocs.
Include @return for all public methods.

BUG: 28842525
Change-Id: Ie0fddee1d889f188a77c45d8bdbf78ea9fe323ba
2016-05-18 16:39:56 -07:00
Robin Lee
d171df660e Merge "Lock down networking when waiting for always-on" into nyc-dev 2016-05-18 23:37:24 +00:00
Selim Cinek
5b03ce95c7 Fixed a bug where autobundling could lead to bugs
Notifications could appear twice if a notification with an app
group became bundled and one could not be swiped away anymore.
This is because we were unconditionally copying over the override
key even if the notification just became a group.

This also fixes a nullpointer that could happen with a racecondition
when a notification was cancelled and it tried to be used for autobundling.

This also fixes an issue that the autobundling wasn't working correctly
when a notification didn't have a group set but was set to be a
group summary.

Change-Id: Icd971f16ae0804ce162fd3171fcdd99bd04f3885
Fixes: 28706404
Fixes: 28628237
2016-05-18 16:31:41 -07:00
Miao Wang
c242fa6b5d [RenderScript] Fix ScriptIntrinsicBlur documentation.
Bug: 28177406
Change-Id: Icccf35857cf29f827a78704e7751c8791cda0d7b
2016-05-18 16:28:55 -07:00
Miao Wang
3231e8e022 Update documentation about copyTo and copyFrom.
Bug: 23159764
Bug: 26862970

  - Add detailed description of AutoPadding
  - Add comments to all the copy related APIs.
  - Fix typos in the comments.

Change-Id: I2d045e0d90efd94f1407f88d3e35bcd42ea93fb9
2016-05-18 16:28:47 -07:00
Robin Lee
17e6183b85 Lock down networking when waiting for always-on
Fix: 26694104
Fix: 27042309
Fix: 28335277
Change-Id: I47a4c9d2b98235195b1356af3dabf7235870e4fa
2016-05-19 00:26:53 +01:00
smain@google.com
ec82d3e76e update sdk/ link to studio/ am: 04de2d285e am: 2e28ebfc1d
am: 9de1d192af

* commit '9de1d192af5761dec4e58837690febc6385874b4':
  update sdk/ link to studio/

Change-Id: I3184c8b697fe96162cb87c17bcf85fc6375127d9
2016-05-18 22:59:45 +00:00
Bert McMeen
c4e18f5a38 Merge "docs: Update to md5 and sha-1 values for Javadoc download" into mnc-io-docs am: 58fdf82ab9
am: 3fb62d859f

* commit '3fb62d859f2c3ed0b06dd3d6f7183c838c829c2b':
  docs: Update to md5 and sha-1 values for Javadoc download

Change-Id: I3ad08bb522e3c1ab2fefd2cf7884d69d82f5d394
2016-05-18 22:59:36 +00:00
smain@google.com
9de1d192af update sdk/ link to studio/ am: 04de2d285e
am: 2e28ebfc1d

* commit '2e28ebfc1d4ef357968923fc763d1f87ea389ef6':
  update sdk/ link to studio/

Change-Id: I2180d895901a935aa0ebf46cdbfc7b7ab8d2b23e
2016-05-18 22:54:47 +00:00
Bert McMeen
3fb62d859f Merge "docs: Update to md5 and sha-1 values for Javadoc download" into mnc-io-docs
am: 58fdf82ab9

* commit '58fdf82ab9c21fb6fd3d1d64e1d2c13abb670ba1':
  docs: Update to md5 and sha-1 values for Javadoc download

Change-Id: I0a158cce412a6973b607c2002a490ffa37e72f59
2016-05-18 22:54:43 +00:00
smain@google.com
2e28ebfc1d update sdk/ link to studio/
am: 04de2d285e

* commit '04de2d285e6e264f5a7a84de205a30571fcc1c9e':
  update sdk/ link to studio/

Change-Id: I9fbf52b2802c4ae33bfef289c6fceb8484dd8014
2016-05-18 22:50:05 +00:00
Andreas Gampe
a8a58ffdee Frameworks/base: Optimize LoadedApk
Preallocate storage lists and avoid TextUtils and its string
builder for a common code path.

Optimize list join helper to not have a check in the loop.

Bug: 28801010
Change-Id: Iafc582031f973d718252b34bcda6405a77425628
2016-05-18 15:48:12 -07:00
Bert McMeen
58fdf82ab9 Merge "docs: Update to md5 and sha-1 values for Javadoc download" into mnc-io-docs 2016-05-18 22:44:54 +00:00
Andreas Gampe
4c8e542f68 Frameworks/base: Add more systrace points
Add more systrace points for application startup.

Bug: 28625993
Change-Id: I76dca9e842fb43f1b85981ef94582074d31528c8
2016-05-18 15:43:45 -07:00
Paul Crowley
56a9395aeb Merge "Two phases to set the password for disk encryption" into nyc-dev 2016-05-18 22:40:09 +00:00
smain@google.com
04de2d285e update sdk/ link to studio/
Change-Id: I960fed90fc2c44d5c3405d330bc5a474ce9a13c5
2016-05-18 15:28:59 -07:00
smain@google.com
d24ad86909 Update app context in code snippet bug: 28842396 am: 056df25179 am: 0fc19538cf
am: cca8eba82d

* commit 'cca8eba82d48888656d36aed8020fd3ecd738fdd':
  Update app context in code snippet bug: 28842396

Change-Id: I04ef5aeac32a526028e71ed71bcdf39920cc0c4f
2016-05-18 22:00:21 +00:00
TreeHugger Robot
bc9edc7ccb Merge "Fixes for ending PiP animation." into nyc-dev 2016-05-18 21:57:23 +00:00