Commit Graph

266851 Commits

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

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

Change-Id: I5e24c5f0cb5d1434dd924e2706d1a26a47b528f8
2016-05-19 17:05:53 +00:00
Kevin Hufnagle
2ebb73e557 Merge "docs: Added Sony Xperia Z3 as a testing device for Android N." into mnc-docs am: 8262d9c00d am: 4af01c1aec
am: 2c98879a27

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

Change-Id: I9f254da6427cea0ad4f4edc2fde8e17d679c4017
2016-05-19 17:05:50 +00:00
Ian Rogers
63f289a8a1 Merge "Fix bug where FileUtils.deleteOlderFiles wouldn't delete the oldest files." 2016-05-19 16:59:10 +00:00
Kevin Hufnagle
8dc9a826d5 Merge "docs: Restored references to "Know Your User" resource cards." into mnc-docs am: dbfd7dd16a
am: 940de083a3

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

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

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

Change-Id: I455575a25350b7a0c66b5f8d698d6d0fc51076a5
2016-05-19 16:57:08 +00:00
TreeHugger Robot
80468ad83f Merge "Move android.net.util.IpUtilsTest into a util/ directory" 2016-05-19 16:56:06 +00:00
Wyatt Riley
49d9891c57 Mapping up/down of legacy Gps vs. Gnss Status
- Maps incoming (from HAL) GpsSvStatus for Glonass, Beidou, SBAS, and QZSS
  from defacto (NMEA-like) numbers to internal platform with detected constellation.
- Maps outgoing (to Java API) GpsStatus getSatellite info back into the de-facto
  overloaded (beyond 32) "GPS" ID numbers.
- Simplifies Glonass ID definition for N (comments only.)
- This enables GPS/GNSS Test apps a non-degrading upgrade path.

Bug: 28623392
Change-Id: I9a19db1f11267032c6927daed767df5afa51c770
2016-05-19 09:55:42 -07:00
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
Michael Wright
f3201c3911 Merge "Merge "DO NOT MERGE Rename PointerIcon and Pointer Capture APIs" into nyc-dev am: a1e0cebf3a am: ce290a75f2" into nyc-mr1-dev-plus-aosp
am: aad6acaf6d  -s ours

* commit 'aad6acaf6dcdc00abf12f5759c1a8d446e89f55e':

Change-Id: I468712ca8526c6624eaa2d620cfbd52dc9820d6f
2016-05-19 15:35:01 +00:00
Michael Wright
367da1fbd7 Merge "DO NOT MERGE Rename PointerIcon and Pointer Capture APIs" into nyc-dev am: a1e0cebf3a am: 1831ca8f04
am: 5d2ea237d4  -s ours

* commit '5d2ea237d428974be25e09ab9e11578cbf3bbc90':
  DO NOT MERGE Rename PointerIcon and Pointer Capture APIs

Change-Id: I1f372c46e38f32cc6f7729c45fc385dead9b4434
2016-05-19 15:27:15 +00:00
Android Build Merger (Role)
aad6acaf6d Merge "Merge "DO NOT MERGE Rename PointerIcon and Pointer Capture APIs" into nyc-dev am: a1e0cebf3a am: ce290a75f2" into nyc-mr1-dev-plus-aosp 2016-05-19 15:24:45 +00:00
Michael Wright
d308e46354 Merge "DO NOT MERGE Rename PointerIcon and Pointer Capture APIs" into nyc-dev am: a1e0cebf3a
am: ce290a75f2

* commit 'ce290a75f26e3b9c6e2875ba1fcef65020984b7e':
  DO NOT MERGE Rename PointerIcon and Pointer Capture APIs

Change-Id: I8df44a8cbc687f81639cb061fb6739a813f0c386
2016-05-19 15:23:58 +00:00
Michael Wright
5d2ea237d4 Merge "DO NOT MERGE Rename PointerIcon and Pointer Capture APIs" into nyc-dev am: a1e0cebf3a
am: 1831ca8f04

* commit '1831ca8f04e117a49227e1b3dc0c8ba1dde06cd5':
  DO NOT MERGE Rename PointerIcon and Pointer Capture APIs

Change-Id: Iebfbc1de1bbf2f86e62ed2105c30e89239368b11
2016-05-19 15:23:45 +00:00
Michael Wright
1831ca8f04 Merge "DO NOT MERGE Rename PointerIcon and Pointer Capture APIs" into nyc-dev
am: a1e0cebf3a

* commit 'a1e0cebf3a18ac097d370e21d698e079f974bfff':
  DO NOT MERGE Rename PointerIcon and Pointer Capture APIs

Change-Id: I20532a3148a99d4ea91ba7dc050f8669d5f19400
2016-05-19 15:12:30 +00:00
Michael Wright
ce290a75f2 Merge "DO NOT MERGE Rename PointerIcon and Pointer Capture APIs" into nyc-dev
am: a1e0cebf3a

* commit 'a1e0cebf3a18ac097d370e21d698e079f974bfff':
  DO NOT MERGE Rename PointerIcon and Pointer Capture APIs

Change-Id: I03543851263b7e9e2f84b179d66d3d269c48bf6c
2016-05-19 15:12:29 +00: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
Matt Sarett
db4773f0df Correct rowBytes on SkBitmap to match recycled bitmap sooner
This will prevent us from triggering asserts when we
call lockPixels().

skbug.com/4538

Change-Id: Ibcd18818e33ccbacdcdfa57e822b04dd91b6af17
2016-05-19 13:28:50 +00: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
Shubham Ajmera
0652d1c024 Track lilbcore change 3ad0f67b98b61cc3f047e3cf6fe8f94d5f2ef5e5
Bug: 27331465
Change-Id: I1a3dd1a550b081535eb8bf79b43edff46da58d6b
2016-05-19 13:02:30 +01:00
Clara Bayarri
5210974cf5 Merge "Add Tron Logging to Keyboard Shortcuts Helper" 2016-05-19 09:19:32 +00:00
TreeHugger Robot
56c776dbd1 Merge "Clean up class members in Tethering.TetherInterfaceSM" 2016-05-19 08:49:24 +00: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
d6868fa1ca Merge "Merge "Workaround for ignored resizeableActivity param" into nyc-dev am: 005f9a73fb am: ede05733f0" into nyc-mr1-dev-plus-aosp
am: 073466ea8a

* commit '073466ea8a25a94327f7d9e7a2cf9dd858d8d626':

Change-Id: Ib9bf553be08ac9c31d521f57c9b31543f3d76f3e
2016-05-19 08:18:16 +00:00
Andrii Kulian
5a3ff14225 Merge "Workaround for ignored resizeableActivity param" into nyc-dev am: 005f9a73fb am: 6b21f45add
am: e78cbe1770

* commit 'e78cbe1770ffee7d9f24c8f1126fb1592c9ad1c3':
  Workaround for ignored resizeableActivity param

Change-Id: I36d934ec2aea69156680d9b9e55584ce12d76b60
2016-05-19 08:12:56 +00:00
Android Build Merger (Role)
073466ea8a Merge "Merge "Workaround for ignored resizeableActivity param" into nyc-dev am: 005f9a73fb am: ede05733f0" into nyc-mr1-dev-plus-aosp 2016-05-19 08:09:38 +00:00
Andrii Kulian
4578ef4e63 Merge "Workaround for ignored resizeableActivity param" into nyc-dev am: 005f9a73fb
am: ede05733f0

* commit 'ede05733f0c02f16324b71311397db5e680f607b':
  Workaround for ignored resizeableActivity param

Change-Id: I81ee6a65b44b9f8f099842619d3548fb64c4c403
2016-05-19 08:09:10 +00:00
Andrii Kulian
e78cbe1770 Merge "Workaround for ignored resizeableActivity param" into nyc-dev am: 005f9a73fb
am: 6b21f45add

* commit '6b21f45add49cdacaad9e75cbba332fa3b63522c':
  Workaround for ignored resizeableActivity param

Change-Id: Ia8dc3606ff13b1358d657a8280820ed542cb4781
2016-05-19 08:09:07 +00:00
Andrii Kulian
6b21f45add Merge "Workaround for ignored resizeableActivity param" into nyc-dev
am: 005f9a73fb

* commit '005f9a73fbecdb8d0d05eb699d0f02d745110495':
  Workaround for ignored resizeableActivity param

Change-Id: Ia524867cac9118b6dbe5c7c210cd1a1753fe53e1
2016-05-19 08:06:02 +00:00
Andrii Kulian
ede05733f0 Merge "Workaround for ignored resizeableActivity param" into nyc-dev
am: 005f9a73fb

* commit '005f9a73fbecdb8d0d05eb699d0f02d745110495':
  Workaround for ignored resizeableActivity param

Change-Id: I93844e807cbedc50b26f98916fe3e79e0ef9afa2
2016-05-19 08:06:02 +00:00
Andrii Kulian
005f9a73fb Merge "Workaround for ignored resizeableActivity param" into nyc-dev 2016-05-19 07:57:20 +00:00
Andrii Kulian
a8a47ce691 Merge "Merge "Fix build breakage caused by redefining attrs" into nyc-dev am: fa020a8094 am: 475ab2be5c" into nyc-mr1-dev-plus-aosp
am: 6639e2fc3a

* commit '6639e2fc3abb3504f2439a1b0b0997b299975104':

Change-Id: I0092cb12ff7edaa1cee843cf925116d29d5f33dc
2016-05-19 07:26:50 +00:00
Andrii Kulian
ae2a0e0918 Merge "Fix build breakage caused by redefining attrs" into nyc-dev am: fa020a8094 am: 1b9a930ba4
am: 38e3b3ba91

* commit '38e3b3ba91947180c6939e635e9a24fe693d736d':
  Fix build breakage caused by redefining attrs

Change-Id: If6fc6cae40fffcbd3d968efdea3715f7c7255030
2016-05-19 07:20:59 +00:00
Android Build Merger (Role)
6639e2fc3a Merge "Merge "Fix build breakage caused by redefining attrs" into nyc-dev am: fa020a8094 am: 475ab2be5c" into nyc-mr1-dev-plus-aosp 2016-05-19 07:18:35 +00:00
Andrii Kulian
c6e533e90d Merge "Fix build breakage caused by redefining attrs" into nyc-dev am: fa020a8094
am: 475ab2be5c

* commit '475ab2be5c5c2f0cf4fd4ce863a98473f7fbbd0a':
  Fix build breakage caused by redefining attrs

Change-Id: I9c6ef99d1bd7b4affeee500dc6a1b0eca1b84b5b
2016-05-19 07:18:02 +00:00
Andrii Kulian
38e3b3ba91 Merge "Fix build breakage caused by redefining attrs" into nyc-dev am: fa020a8094
am: 1b9a930ba4

* commit '1b9a930ba4a5884b01b9ebf6b92065a55c689dec':
  Fix build breakage caused by redefining attrs

Change-Id: Iae28ff991e2dc154db009f75da45f7aa25ada5d2
2016-05-19 07:17:57 +00:00
Andrii Kulian
1b9a930ba4 Merge "Fix build breakage caused by redefining attrs" into nyc-dev
am: fa020a8094

* commit 'fa020a8094a08b5a26735c33c4ddaadcb51f99fc':
  Fix build breakage caused by redefining attrs

Change-Id: Id3502d67601e6a4348326c7eeb83de39dfd368b6
2016-05-19 07:15:03 +00:00
Andrii Kulian
475ab2be5c Merge "Fix build breakage caused by redefining attrs" into nyc-dev
am: fa020a8094

* commit 'fa020a8094a08b5a26735c33c4ddaadcb51f99fc':
  Fix build breakage caused by redefining attrs

Change-Id: I0663ec408eec497c64c35a9c7d6f43e223c3cc22
2016-05-19 07:15:01 +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
Ian Rogers
f5e2e9756e Merge "Fix 2 instances of buggy double check locking on non-volatile fields." 2016-05-19 05:19:29 +00:00
Erik Kline
5f4f5a70ed Merge "DHCPv4: lease expiration is fatal, renew failures are not" into nyc-dev am: c21f84dddb am: ae53fb4a43
am: 03307df369

* commit '03307df369e87f737a3f0086de0c6f0081b65719':

Change-Id: Id5a57f95fcf00474fb14569c66a8bdd4a7b2d903
2016-05-19 04:34:18 +00: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
f26088c8c2 Merge "DHCPv4: lease expiration is fatal, renew failures are not" into nyc-dev am: c21f84dddb am: 8958153ac7
am: f99efa7e75

* commit 'f99efa7e758e00101fbc19be68b8552a946c21a3':
  DHCPv4: lease expiration is fatal, renew failures are not

Change-Id: I4a0be195dab4525258b455330ce6212987b0e6c0
2016-05-19 04:27:26 +00:00
Erik Kline
03307df369 Merge "DHCPv4: lease expiration is fatal, renew failures are not" into nyc-dev am: c21f84dddb
am: ae53fb4a43

* commit 'ae53fb4a436bcbb7deea668a26d2ba66bb4c5af3':

Change-Id: Id68aa8f81f11042c7583fad42da2063cbb17efe1
2016-05-19 04:27:24 +00:00