Commit Graph

249922 Commits

Author SHA1 Message Date
Neil Fuller
41c9dc3b69 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
Change-Id: Ia2c73f6525f05b1aa81e57a31eed1616decf6bb5
2016-05-18 11:15:11 +01:00
Bart Sears
daba9f8cf1 Revert "docs: Creating new support library revision history page"
am: 982fd04335

* commit '982fd043357759bfdf619bc24f3a5f4366a3aac0':
  Revert "docs: Creating new support library revision history page"

Change-Id: I1f637577fe58a340f9f4041e22ba0cdc6b629c5f
2016-05-18 07:30:33 +00:00
Bart Sears
982fd04335 Revert "docs: Creating new support library revision history page"
This reverts commit 09e9d24bcf.

Change-Id: Idbece8b39491eea7e2324916a5a88f08f2623f1f
2016-05-18 07:22:20 +00:00
Eric Schmidt
28061a2ea4 Merge "docs: Pages for Instant Apps" into mnc-io-docs am: ad1639e276 am: 24d753f134
am: f6e624b5a5

* commit 'f6e624b5a5b3b6ab21412c6ce4a6821619ba4898':
  docs: Pages for Instant Apps

Change-Id: I66afbcb26825099fb83d7cac4ed8018d71d42833
2016-05-18 07:22:09 +00:00
Erik Kline
acda32c35f DHCPv4: lease expiration is fatal, renew failures are not
Bug: 24837343

Change-Id: Ib330864f8376b0907390d581b48cff5446b3392b
2016-05-18 16:17:03 +09:00
Joe Fernandez
f6e624b5a5 Merge "docs: Pages for Instant Apps" into mnc-io-docs am: ad1639e276
am: 24d753f134

* commit '24d753f134b8da8b1f3d2f764f48f8d66e9a0164':
  docs: Pages for Instant Apps

Change-Id: Ic0fadeb9c32152ca9366f7e7a86fae008e49cad7
2016-05-18 07:15:09 +00:00
Eric Schmidt
24d753f134 Merge "docs: Pages for Instant Apps" into mnc-io-docs
am: ad1639e276

* commit 'ad1639e276bdac48946977b89f8959efa14e0c8f':
  docs: Pages for Instant Apps

Change-Id: I1910b63e5891d62244470f540454a3e0a482cdce
2016-05-18 07:10:14 +00:00
David Friedman
aa0907981d Docs: Final changes to DP3 docs. am: 82c668ffc0 am: f28da5297c
am: c25a09d495

* commit 'c25a09d495a5a0050de273d7b5492b3e4a5349a0':
  Docs: Final changes to DP3 docs.

Change-Id: Id4eec6b2a93bd55f54d84e4f16c5271585cc7e7e
2016-05-18 07:10:11 +00:00
Joe Fernandez
ad1639e276 Merge "docs: Pages for Instant Apps" into mnc-io-docs 2016-05-18 07:04:52 +00:00
David Friedman
c25a09d495 Docs: Final changes to DP3 docs. am: 82c668ffc0
am: f28da5297c

* commit 'f28da5297cf4076a378c83215ef93da5ce19b2e2':
  Docs: Final changes to DP3 docs.

Change-Id: Id4c144f150cfed36e0e74797d51b3be70fa423a1
2016-05-18 07:04:42 +00:00
David Friedman
f28da5297c Docs: Final changes to DP3 docs.
am: 82c668ffc0

* commit '82c668ffc0d72343f51c9203c5085a01ac6f8c09':
  Docs: Final changes to DP3 docs.

Change-Id: Ic273a03cb136829468dafd01129cd4d9a8609446
2016-05-18 07:01:40 +00:00
David Friedman
82c668ffc0 Docs: Final changes to DP3 docs.
Change-Id: Ia79f288e6231ef37c25a826653dd9b2cf465542f
2016-05-17 23:53:21 -07:00
Eric Schmidt
ff81597f9b docs: Pages for Instant Apps
Bug: 28317418

Change-Id: I4a6df533435f1637dbfd6225c345985366cce7b3
2016-05-17 23:53:13 -07:00
Joe Fernandez
0f9f65a5b0 Merge "docs: Wear Preview 2 - fixes and improvements" into mnc-io-docs am: 19fc346171 am: 14e1f1cd33
am: 449d6435ca

* commit '449d6435caa759cd1c2d68308ff282f016bb403c':
  docs: Wear Preview 2 - fixes and improvements

Change-Id: I6b77f550fac3de87f74338a9e674d4c15b8f5747
2016-05-18 06:51:52 +00:00
Joe Fernandez
449d6435ca Merge "docs: Wear Preview 2 - fixes and improvements" into mnc-io-docs am: 19fc346171
am: 14e1f1cd33

* commit '14e1f1cd333f2e38f753bb3461d42479c3849698':
  docs: Wear Preview 2 - fixes and improvements

Change-Id: I7e24a12745c8072467c2e4e4dd7a03fa05f48d61
2016-05-18 06:46:55 +00:00
Joe Fernandez
14e1f1cd33 Merge "docs: Wear Preview 2 - fixes and improvements" into mnc-io-docs
am: 19fc346171

* commit '19fc34617181419dd6ea70c03692c92fa035bb8f':
  docs: Wear Preview 2 - fixes and improvements

Change-Id: Ia7be06924d42c9fcc27ffd06d0d7c58372bda5bb
2016-05-18 06:42:01 +00:00
Joe Fernandez
19fc346171 Merge "docs: Wear Preview 2 - fixes and improvements" into mnc-io-docs 2016-05-18 06:32:57 +00:00
Joe Fernandez
4672669ff9 docs: Wear Preview 2 - fixes and improvements
Change-Id: I0b5ea60157dfa21aa17765571d26c06f5ff866df
2016-05-17 23:23:47 -07:00
David Friedman
5b70847cca Merge "Docs: Some typo fixes for Wear 2.0 Preview docs." into mnc-io-docs am: 36af257133 am: 08016e21d3
am: 06d085ecf1

* commit '06d085ecf1cdbbc9b1017a6eb1a4fac3d6d64a5a':
  Docs: Some typo fixes for Wear 2.0 Preview docs.

Change-Id: I32633a7cc85fab1743216313cb857bcb5ab055b8
2016-05-18 06:14:53 +00:00
David Friedman
06d085ecf1 Merge "Docs: Some typo fixes for Wear 2.0 Preview docs." into mnc-io-docs am: 36af257133
am: 08016e21d3

* commit '08016e21d3920049a9d10c93293e80aeaf8696fc':
  Docs: Some typo fixes for Wear 2.0 Preview docs.

Change-Id: Ia492ec891ac101039e9915fde55d09be66352b53
2016-05-18 06:12:16 +00:00
David Friedman
08016e21d3 Merge "Docs: Some typo fixes for Wear 2.0 Preview docs." into mnc-io-docs
am: 36af257133

* commit '36af25713385103a6d1085345232bc82e6dde217':
  Docs: Some typo fixes for Wear 2.0 Preview docs.

Change-Id: Idc67ab630863012d3002f63b21ac4a8fee989d11
2016-05-18 06:09:44 +00:00
David Friedman
36af257133 Merge "Docs: Some typo fixes for Wear 2.0 Preview docs." into mnc-io-docs 2016-05-18 05:57:40 +00:00
David Friedman
69fe28ea2b Docs: Some typo fixes for Wear 2.0 Preview docs.
Change-Id: I87d6d14c95f6350aa36ee71b99cf86b82cc0902a
2016-05-17 22:55:04 -07:00
David Friedman
cc69bae599 Merge "Docs: Near-final changes for Android N/Google IO. Continues ag/1037250." into mnc-io-docs am: e293ff3bf1 am: fc1bb6e14d
am: 0cc059436a

* commit '0cc059436a3eef88dfdb54c5ced31ff071c2c0bb':
  Docs: Near-final changes for Android N/Google IO. Continues ag/1037250.

Change-Id: I9267b3f8586d74b503d83ea4afa72741f294cf1b
2016-05-18 05:33:48 +00:00
David Friedman
0cc059436a Merge "Docs: Near-final changes for Android N/Google IO. Continues ag/1037250." into mnc-io-docs am: e293ff3bf1
am: fc1bb6e14d

* commit 'fc1bb6e14dac01bd1bc9496cd53169178041d4e0':
  Docs: Near-final changes for Android N/Google IO. Continues ag/1037250.

Change-Id: I2cc0383575a5152159bab7f9b48b39aa147877b2
2016-05-18 05:31:05 +00:00
David Friedman
fc1bb6e14d Merge "Docs: Near-final changes for Android N/Google IO. Continues ag/1037250." into mnc-io-docs
am: e293ff3bf1

* commit 'e293ff3bf12f5e215d0d6d5e21fa2315ba4d9fdb':
  Docs: Near-final changes for Android N/Google IO. Continues ag/1037250.

Change-Id: Ib62978421d147abf1afaac1e6640a91324fd328e
2016-05-18 05:27:56 +00:00
David Friedman
e293ff3bf1 Merge "Docs: Near-final changes for Android N/Google IO. Continues ag/1037250." into mnc-io-docs 2016-05-18 05:21:24 +00:00
Joe Fernandez
d5a3e66fea Merge "docs: Wear Preview 2.0 support page updates" into mnc-io-docs am: b308d13fe2 am: 5bc0128ca0
am: 6f054c4a78

* commit '6f054c4a7888503327db69e9085f492611e9a44a':
  docs: Wear Preview 2.0 support page updates

Change-Id: Ibd31429dc7adc9bc69c41745a59af16f90d608ae
2016-05-18 05:13:26 +00:00
David Friedman
da4008cc2a Merge "Docs: Revisions to Wear 2.0 Preview API Overview page" into mnc-io-docs am: 08c32762bb am: 4850be7bf9
am: ab751a8946

* commit 'ab751a8946f9f1ac877e4b9338550ae6e0c1a397':
  Docs: Revisions to Wear 2.0 Preview API Overview page

Change-Id: If31531cb7d9349fe994dc8993bfa61f99b2f9a44
2016-05-18 05:13:21 +00:00
Joe Fernandez
6f054c4a78 Merge "docs: Wear Preview 2.0 support page updates" into mnc-io-docs am: b308d13fe2
am: 5bc0128ca0

* commit '5bc0128ca0b1f6b8e3bb475013b74ec5d1e460a3':
  docs: Wear Preview 2.0 support page updates

Change-Id: I30e4f95d27cebb281303e720d2f872f36c778a3e
2016-05-18 05:08:33 +00:00
David Friedman
ab751a8946 Merge "Docs: Revisions to Wear 2.0 Preview API Overview page" into mnc-io-docs am: 08c32762bb
am: 4850be7bf9

* commit '4850be7bf9b54bd717789dc26622df8b8679de42':
  Docs: Revisions to Wear 2.0 Preview API Overview page

Change-Id: I77ec3c35534a95b86d193bbed38f3ecb2347ba49
2016-05-18 05:08:28 +00:00
David Friedman
202373932f Docs: Near-final changes for Android N/Google IO. Continues ag/1037250.
Change-Id: Ie30cac9f4eb955fc2a06b98348855c71941b9c8d
2016-05-17 22:06:28 -07:00
Joe Fernandez
5bc0128ca0 Merge "docs: Wear Preview 2.0 support page updates" into mnc-io-docs
am: b308d13fe2

* commit 'b308d13fe2d184df101b3418ace57464346c0972':
  docs: Wear Preview 2.0 support page updates

Change-Id: I7055293b960cacd0cf72c968438012e5cd3a9a46
2016-05-18 05:03:30 +00:00
David Friedman
4850be7bf9 Merge "Docs: Revisions to Wear 2.0 Preview API Overview page" into mnc-io-docs
am: 08c32762bb

* commit '08c32762bbbdadd395597c1490cae065c80d5f45':
  Docs: Revisions to Wear 2.0 Preview API Overview page

Change-Id: I447873601ebf36a56866d11657023948e773f943
2016-05-18 05:03:27 +00:00
Joe Fernandez
b308d13fe2 Merge "docs: Wear Preview 2.0 support page updates" into mnc-io-docs 2016-05-18 04:57:32 +00:00
David Friedman
08c32762bb Merge "Docs: Revisions to Wear 2.0 Preview API Overview page" into mnc-io-docs 2016-05-18 04:54:36 +00:00
Joe Fernandez
f48a07418b docs: Wear Preview 2.0 support page updates
Change-Id: I78f461813d154ebbd3b4ea94f80280e265a94983
2016-05-17 21:54:36 -07:00
David Friedman
56b65fdd4c Docs: Revisions to Wear 2.0 Preview API Overview page
Bug: 28714669

Change-Id: I2e24fd8ab37cc74e4b8b3828b769b031aa57f863
2016-05-17 21:43:44 -07:00
Chong Zhang
cbbcc0f795 Request a traversal when a saved surface gets redrawn
When a saved surface gets redrawn, we need to return true in
finishDrawingLocked, so that a traversal is requested. This is
needed to update allDrawn/allDrawnExcludingSaved. Some delayed
window removal may be waiting for these flags.

bug: 28797800
Change-Id: I0b58b356e9c580422eb3ff81e8afb2a164cf6e43
2016-05-17 20:51:48 -07:00
Andrew Solovay
f8ee02e45d docs: Updating N release notes for DP3 am: 58d5504241 am: dcaaf656e9
am: 409e0c085a

* commit '409e0c085a4988c0f8902ff9a0e4034cc4c6b05f':
  docs: Updating N release notes for DP3

Change-Id: I31195ce8b7e5d9226a9e03b3f97629fe7e7fda15
2016-05-18 03:07:46 +00:00
Andrew Solovay
409e0c085a docs: Updating N release notes for DP3 am: 58d5504241
am: dcaaf656e9

* commit 'dcaaf656e9c122b9b33e728034067e631aae6dac':
  docs: Updating N release notes for DP3

Change-Id: I025900aaf8ce18bce53bcf2c57b22dac31a54d51
2016-05-18 03:03:39 +00:00
Andrew Solovay
dcaaf656e9 docs: Updating N release notes for DP3
am: 58d5504241

* commit '58d5504241059203727e33847f4d41cc840849bd':
  docs: Updating N release notes for DP3

Change-Id: I1990cae78173970473af2534f4726016044403f2
2016-05-18 02:59:15 +00:00
Andrew Solovay
58d5504241 docs: Updating N release notes for DP3
This should be the final version for the released-during-IO-keynote
release notes, though we can certainly do a follow-on update if
more info comes in.

See first comment for doc stage location.

bug: 28591801
Change-Id: I3ab208499e4e567c34ef0bdf27952e874d2da112
2016-05-17 19:36:25 -07:00
Yohei Yukawa
ddaf3f4681 Merge "Move LocaleList to avoid layering violation." into nyc-dev
am: 31884efd13

* commit '31884efd13b3ac60078edaa0b7e8a4b75d995538':
  Move LocaleList to avoid layering violation.

Change-Id: I9132fe456a8d79569c651dac0a0bce0153444767
2016-05-18 02:18:38 +00:00
Yohei Yukawa
31884efd13 Merge "Move LocaleList to avoid layering violation." into nyc-dev 2016-05-18 02:14:26 +00:00
Hemal Patel
ca5fd7ca91 Merge "Docs: Fixed a wrong adb command example" into mnc-io-docs am: 473ef93497 am: 5967692ce1
am: bc56f279fa

* commit 'bc56f279fa11e37fda24d5555522135a9c4120ca':
  Docs: Fixed a wrong adb command example

Change-Id: Ia3f26a9ff86f71abf2ed54a30fdf502b9f821bb5
2016-05-18 02:12:22 +00:00
Cheryl Potter
d1da82f616 docs: Add redirect for Android Device Monitor and change redirects for Virtual Device Config and Run/Debug Config
b/28826469
b/28705592

Change-Id: I67711611ef11dbe215375f7f151f0cfea0bf75b6
2016-05-17 19:07:33 -07:00
Hemal Patel
bc56f279fa Merge "Docs: Fixed a wrong adb command example" into mnc-io-docs am: 473ef93497
am: 5967692ce1

* commit '5967692ce1f5b36b411dcf90995b16b2b67b01e1':
  Docs: Fixed a wrong adb command example

Change-Id: Ia2bee3ea8f66ef9a86006aed00534944979985b4
2016-05-18 02:06:54 +00:00
Hemal Patel
5967692ce1 Merge "Docs: Fixed a wrong adb command example" into mnc-io-docs
am: 473ef93497

* commit '473ef93497256f5c985f88b56c884dc89a72487d':
  Docs: Fixed a wrong adb command example

Change-Id: Id44b8226104fabd0395c21e7d1fd716ade1a88d4
2016-05-18 02:04:19 +00:00
Bert McMeen
3285e34a54 docs: Iterating on Wear docs - Complications am: dcab4687db am: 0f95b8dc36
am: f42a132de6

* commit 'f42a132de63e29dc8b1da6eda0468b2d876104c9':
  docs: Iterating on Wear docs - Complications

Change-Id: I48654e607f17c086b9ddc242c689aa17b3e9f426
2016-05-18 01:59:01 +00:00