Commit Graph

255075 Commits

Author SHA1 Message Date
Dirk Dougherty
57d98bf8d2 Doc change: remove useUpdatedTemplates script and sections using old templates.
am: 9ac575abc3

Change-Id: If9123b0d0438d78982b73cbec08aebe28f2ae1c6
2016-09-06 18:13:16 +00:00
smain@google.com
689dc4a1fe remove 'useUpdatedTemplates' flag that's no longer supported. Fix build.
am: 7dd9749246

Change-Id: I112bec6d8618a116c8abab0751849e12253e298c
2016-09-06 18:13:01 +00:00
Dirk Dougherty
0025fe5a0b Merge "Remove obsolete collections and extras metadata files. Authors should use jd_extras_<lang> instead..." into nyc-dev
am: 460b9c08e6

Change-Id: Ia27c81a8cfef0ec21024a0f3ce51fa3f2077ea85
2016-09-06 18:12:47 +00:00
Dirk Dougherty
2aab1478a9 Remove obsolete collections and extras metadata files. Authors should use jd_extras_<lang> instead...
am: 169f86ce7a

Change-Id: Ib75e44a6fe22d03ebcd830d7bc3f67426d73c29e
2016-09-06 18:12:34 +00:00
Scott Main
d2ba7b1f70 Merge "switch all API builds to use template-sdk instead of (soon to be deleted) templates-sdk-dev. also update all non-DAC builds to use the "referenceonly" flag for a cleaner output and faster build." into nyc-dev
am: 915b566ef0

Change-Id: I83064c8948b326c449989e98ee46ff27b83a7723
2016-09-06 18:12:10 +00:00
smain@google.com
343e96ccac switch all API builds to use template-sdk instead of (soon to be deleted) templates-sdk-dev. also update all non-DAC builds to use the "referenceonly" flag for a cleaner output and faster build.
am: 534bfe1a4a

Change-Id: Ie221252d7cc058d118ac53f3c74ea9c62a077536
2016-09-06 18:08:10 +00:00
Dirk Dougherty
b654973578 Exclude sdk files from metadata.
am: 355f33a1d9

Change-Id: I7c6d2729d9ed75ffabc9573d5cc41ab78ed445c3
2016-09-06 18:05:16 +00:00
Andrew Solovay
47f10b9d15 docs: Typo fix in multi-window docs
am: 0b423e5eae

Change-Id: I747405c7c80041146e8a5e6498fed621f562f1d5
2016-09-06 18:05:11 +00:00
Andrew Solovay
0117f92698 Merge "docs: Fixing formatting problem" into nyc-dev
am: 9499478c80

Change-Id: I8f2a92bf08e4d88058a96d6c13bd161a713fb7af
2016-09-06 17:58:37 +00:00
Andrew Solovay
e2452d9816 docs: Fixing formatting problem
am: 6f29c2091c

Change-Id: I814eb616c3a98fc2055b71516821f6f5eb135c18
2016-09-06 17:58:32 +00:00
Cheryl Potter
1242eb173e docs: fixing gpu debugger redirect b/31227713
am: 780395fd85

Change-Id: I84404c9f7f87cb58469303d19f7c79ba0046c3a4
2016-09-06 17:58:27 +00:00
Cheryl Potter
b2835d7d71 docs: Add redirects for new help buttons (Create Java Class, GPU Debugger, more) b/31158856 b/31157097 b/31158502
am: 3f2d7d8e22

Change-Id: Ie1d374d1cab6668693fd58c3e3a04a850b437326
2016-09-06 17:58:21 +00:00
Svetoslav Ganov
2c306b1a4a Merge "Properly close fd backing a MemoryIntArray" into nyc-dev
am: 84763eb770

Change-Id: Id9a7cdb2a844f00b0c65068f647a37466fc11898
2016-09-06 17:58:16 +00:00
Svetoslav Ganov
bcf846affe Properly close fd backing a MemoryIntArray
am: e257d6e167

Change-Id: I72d1c9b911dcfa32fb6174844a9a3940add9e3a7
2016-09-06 17:58:12 +00:00
Scott Main
2b43bb3e44 Merge "replace the N Preview landing page with the redirect to the package index also update version metadata (no longer preview, now 7.0)" into nyc-dev
am: a06f40bd05

Change-Id: I37328242938a91a6c5c9ce40fccd6adf8da7811e
2016-09-06 17:58:06 +00:00
Scott Main
4d38092a53 Merge "resolve merge conflicts of dde8deb to nyc-dev-plus-aosp" into nyc-dev-plus-aosp 2016-09-06 17:53:08 +00:00
Todd Kennedy
94f9be2ee2 Release mPackages lock earlier
We cannot hold mPackages when calling into generatePackageDexopts().
This method takes Package Manager's mInstallLock. By holding mPackages,
we have lock inversion and hilarity ensues.

Change-Id: Ia11a158677051e3511702f38cde6780e75b256fb
Fixes: 30927731
(cherry picked from commit a8d4f48997)
2016-09-06 10:46:18 -07:00
Andreas Gampe
3f95d0bb6a OtaDexopt: Special-case system app classpaths
Specialize system apps' shared libraries so that classpath checks
are elided.

Bug: 30568568
Change-Id: Id1f2555ef43984b616e01f8596701ccba77895b3
(cherry picked from commit c7e02c1d2a)
2016-09-06 10:45:06 -07:00
Andreas Gampe
14186731f9 OtaDexoptService: Run dexopt on all apps
To avoid work after reboot, dexopt all apps. However, unimportant
apps are optimized with the first-boot reason (which is usually
interpret-only) for space reasons.

Bug: 30468718
Change-Id: Ia05d879957388967c69f9380e50d8a9834afe07d
(cherry picked from commit 115514b236)
2016-09-06 10:44:00 -07:00
Andreas Gampe
7e619a912c Frameworks/base: Add compiler stats to Package Manager
Add a simple class for storing compiler statistics. Capture compile
times for code paths from a package.

Bug: 29223204
Change-Id: I1b066de6a83a739470a42480eee0bfef88423eea
(cherry picked from commit 37e5fdc6b4)
2016-09-06 10:41:59 -07:00
Calin Juravle
08313b0d95 [RFC] Special case system apps for profile optimizations
If the OTA updates a system app which was previously preopted to a non-
preopted state the app might end up being verified at runtime. That's
because by default the apps are verify-profile but for preopted apps
there's no profile.

Do a hacky check to ensure that if we have no profiles (a reasonable
indication that before the OTA the app was preopted) system apps get
compiled with a non-profile filter (by default interpret-only).

Bug: 30032273
Test: Andreas "has verified that Calin's change to A/B works as expected
and promotes things like SystemUI to speed. From my side, that's
ready to be merged"

Change-Id: I7a052a8ea76cab7f649dc993237ea05534d6c4b9
(cherry picked from commit 0bd7762079)
2016-09-06 10:41:04 -07:00
Calin Juravle
9438528d99 Compile core-apps according to their own "reason" for A/B
If the core apps are not preopted in the B OTA, and REASON_AB_OTA is not
speed (by default is speed-profile) they will be interepreted/JITed.
This in itself is not a problem as we will end up doing profile guided
compilation. However, some core apps may be loaded by system server
which doesn't JIT and we need to make sure we don't interpret-only.

Bug: 30032273
Change-Id: Idb11b1c01c4c4ceba043feb3a9ccc6958035d3b7
(cherry picked from commit 565621328d)
2016-09-06 10:40:18 -07:00
Andreas Gampe
d15300cf38 Frameworks/base: Add new flow to OtaDexoptService
Add functionality to capture/intercept installd communication, and
use this to return the full communication for dexopt. These parameters
can be used to drive otapreopt_chroot directly.

Keep the old direct invocation alive until devices have transitioned
to a service that exposes this API.

In preparation for renaming of A/B OTA artifacts to include target
slot names.

Bug: 25612095
Bug: 28069686
Change-Id: I14728ee1266f3882cada8f08dd21891ed5f7a0cb
(cherry picked from commit cc241a580c)
2016-09-06 10:39:56 -07:00
Andreas Gampe
ff8ab4c9fa Otadexopt: Expose progress percentage
To be able to report progress of an A/B OTA dexopt, expose a
progress function that the script can query.

Bug: 25612095
Bug: 29223204
Change-Id: Ie8162946d18f6fa78649a40ad5d3949d31a181cd
(cherry picked from commit bf06232f4d)
2016-09-06 10:39:20 -07:00
sreevanis
1e4bc15f31 docs: Added functional and UI quality criteria for Wear 2.0 apps.
Bug:30951238

Change-Id: I5cbfac60716415d87f049ae2313fed7bfa214e28
2016-09-06 10:37:04 -07:00
Amanda Kassay
b5887e68c3 Update #jd-content to #body-content for DevSite layout changes.
Change-Id: I57c43a9b05a2bd072c54bf53e8428015edf0a90e
2016-09-06 13:33:09 -04:00
Roshan Pius
29ce1dab5a WifiConfiguration: Fix isEnterprise
Add a check for the eap method in Enterpriseconfig associated with the
WifiConfiguration.

BUG: 31275240
Change-Id: I21aabb09bdd21e29a80d4b9c6ea0e2b1f0d7e2df
2016-09-06 10:13:40 -07:00
Roshan Pius
c8cd577c86 WifiEnterpriseConfig: Refactor set/get field values
WifiEnterpriseConfig has a few keys which are generated internally
have unquoted values. However, the public setFieldValue() always quotes
the value when set.  So, this causes a problem when restoring
these field values from config store. Since this is an internal
disctinction that only WifiEnterpriseConfig understands, add a list to
check if a particular field value needs to be quoted or not. Also,
remove any direct "mFields.put" invocations with |setFieldValue|.

While there,
Refactor the existing |setFieldValue| & |getFieldValue| methods.

BUG: 31246524
TEST: Unit tests
TEST: Integrated with config store and verified that a previous TLS EAP
connection failure is no longer seen.

Change-Id: Ib85f3bce378720a6a6c2ae1439837a8e866a088d
2016-09-06 10:05:02 -07:00
Alex Light
2b6fc4c92d cp preopted files from B partition during PM init.
This allows us to save space on the system partition while still
having access to the preopted files.

We do this on first boot when the "ro.cp_system_other_odex" property
is set to 1. We do this during package manager initialization before
scanning the system to see which apks need to be optimized again.

Note that a separate script, run by init, is actually responsible for
finding and copying the files. We simply request that it runs.

Bug: 29278988

Change-Id: I8d7c790ad35b32a0ce1d87939f043419bae4d88a
(cherry picked from commit 3dafee6c18)
2016-09-06 08:53:00 -07:00
Sergio Giro
53f16c8db7 java.security.cert.X509CRL: add new method verify(PublicKey, Provider)
New method introduced in Java 8. This method has a "default" implementation
in order to avoid breaking providers who construct concrete subclasses.

Unfortunately this implementation always results in an infinite loop, and
has thus been changed by an UnsupportedMethodOperation, with a TODO note
as to improve the situation if possible.

java/security/cert/X509CRL: add "default" method
sun/security/x509/X509CRLImpl: add declaration for that particular
implementation

Also, cosmetic changes like:
- use of @code tags instead of <code>
- use of static fields using the class name instead of instance name

This completes the port of this package to jdk8u60.

Bug: 29631070
Bug: 31294527
Test: make droid docs; old-cts run cts --class libcore.java.security.cert.X509CRLTest
Change-Id: Iccdfa3625a9ff2e7b808c22bce59ff75ae903e8a
2016-09-06 14:13:57 +01:00
Tobias Thierer
d20952e238 Add Base64 from OpenJDK 8u60
Test: make update-api
Bug: 29935305

Change-Id: Idc1cfadd78553dd05a7cb1f9ebd02858a3675e51
2016-09-05 22:01:40 +01:00
yuanhuihui
efd1f1242b fixes mStartedUsers shoule be locked by mLock, not mVolumes
when create/delete multiple user, plug/unplug externel storage(such as sdcard) at the same time.
multiple threads run concurrency , the newly created user can not get state of externel storage.

https://code.google.com/p/android/issues/detail?id=215901

Change-Id: I097f5291108af89a430e12045376065d71d48175
Signed-off-by: yuanhuihui <yuanhuihui@xiaomi.com>
2016-09-05 13:54:00 +08:00
Yang Ni
8f20cb602f Merge "Updated user document for Single-Source RenderScript" am: f7c508ae09
am: e80df238c0

Change-Id: Ic4247d1a914f71b759484137e406ac7c930ac670
2016-09-03 06:38:05 +00:00
Yang Ni
e80df238c0 Merge "Updated user document for Single-Source RenderScript"
am: f7c508ae09

Change-Id: Icd465aaf7bbd534f61863714b726d3afafaebd3f
2016-09-03 06:33:10 +00:00
Treehugger Robot
f7c508ae09 Merge "Updated user document for Single-Source RenderScript" 2016-09-03 06:22:38 +00:00
Dirk Dougherty
9ac575abc3 Doc change: remove useUpdatedTemplates script and sections using old templates.
Change-Id: I7c4e8f36125ad120699d5b2c66bea29433fecf59
2016-09-02 21:03:38 -07:00
Mathieu Chartier
41e4a376f1 Avoid profile guided compilation for vmSafeMode
Bug: 30688277
Bug: 30733908

Test: adb shell cmd package compile -m speed-profile comb.BBClient

Change-Id: I6783c80566b6b3b67025a3d258ebbdede0c7ca2d
2016-09-02 18:15:45 -07:00
smain@google.com
7dd9749246 remove 'useUpdatedTemplates' flag that's no longer supported. Fix build.
Change-Id: Ic1778b6e3044c80e602f5ce9d4f825c8578c1a0a
2016-09-02 18:10:29 -07:00
Yang Ni
60617373a5 Updated user document for Single-Source RenderScript
Bug: 29875503
Bug: 29879448

Added a section introducing the new single-source feature.

Local staging:
http://yangni.mtv.corp.google.com/guide/topics/renderscript/compute.html

This updates
https://developer.android.com/guide/topics/renderscript/compute.html

Change-Id: I62dda3ab60b1678a9580fd2873f64f33d9696e13
(cherry picked from commit c069ed7f8c)
2016-09-02 17:25:49 -07:00
Dirk Dougherty
460b9c08e6 Merge "Remove obsolete collections and extras metadata files. Authors should use jd_extras_<lang> instead..." into nyc-dev 2016-09-02 22:27:02 +00:00
Scott Main
915b566ef0 Merge "switch all API builds to use template-sdk instead of (soon to be deleted) templates-sdk-dev. also update all non-DAC builds to use the "referenceonly" flag for a cleaner output and faster build." into nyc-dev 2016-09-02 21:27:22 +00:00
Roshan Pius
95cdf96320 Merge "WifiEnterpriseConfig: Fix copy constructor" am: 13886253be
am: 8abe7c5544

Change-Id: Ia985aa9473574879425aa003f0a1d2c2aab6b3eb
2016-09-02 21:21:35 +00:00
Roshan Pius
8abe7c5544 Merge "WifiEnterpriseConfig: Fix copy constructor"
am: 13886253be

Change-Id: I473df0031cd8d1cb3ddf24e3d89c621a7df7f02a
2016-09-02 21:16:27 +00:00
Roshan Pius
13886253be Merge "WifiEnterpriseConfig: Fix copy constructor" 2016-09-02 21:10:10 +00:00
Roshan Pius
9709b8b372 WifiEnterpriseConfig: Fix copy constructor
Add missing elements from WifiEnterpriseConfig copy
constructor.

BUG: 31245222
TEST: Ran ACTS WifiEnterpriseTest suite.
Change-Id: Ia6f95fca4131ad9a1facca8f9c4c856dff868058
2016-09-02 14:08:50 -07:00
Iliyan Malchev
a37cec7f8c Merge changes from topic 'java_hidl_support' am: 6902285a44
am: 4ce1c58b12

Change-Id: I8ca2e6687f13370a177e5982d99a74f02c7657a5
2016-09-02 20:43:08 +00:00
Martijn Coenen
801665e9e2 Move Status to libhidl (DO NOT MERGE) am: aa2c32f92b -s ours
am: 0e11a27be1  -s ours

Change-Id: I5611b66e91b63f99b86dd6d42c02ac6011cfc8b0
2016-09-02 20:41:53 +00:00
Andreas Huber
b12aa4e4c9 Adds framework support for hidl-gen Java backend. (to support structs) (DO NOT MERGE) am: 9266f9928d -s ours
am: 2dcd928680  -s ours

Change-Id: Id4f06c7a7216d67b42668a6f37e87f298ac163c5
2016-09-02 20:34:14 +00:00
Andreas Huber
7737ae61e1 Add Bool* APIs to HwParcel (DO NOT MERGE) am: 86635bb45e -s ours
am: 5847dfb28d  -s ours

Change-Id: Idd2a5641d3fcb78ae48c3b59498cffe4f41128e6
2016-09-02 20:34:10 +00:00
Martijn Coenen
30b8fc8104 Link against libhidl for HidlSupport/svcmgr (DO NOT MERGE) am: 242030ddad -s ours
am: 30be2dcfb8  -s ours

Change-Id: I4de4bac3cf8a3fd798ffd58612fcaf6898938285
2016-09-02 20:34:05 +00:00