Commit Graph

25016 Commits

Author SHA1 Message Date
Logan Chien
0e6fd43c73 Merge changes I29aa75d5,I848a020f,I7f0d82e3
am: b4b81ebdbb

Change-Id: I77d9f61451756648f7b5fc31e506b61d1480f19d
2018-04-14 15:59:01 -07:00
Logan Chien
b4b81ebdbb Merge changes I29aa75d5,I848a020f,I7f0d82e3
* changes:
  vndk-def: Add libtextclassifier_hash to LL-NDK-Indirect
  sourcedr: Add module path filters
  sourcedr: Add 2 commands to check source file deps
2018-04-14 03:30:19 +00:00
Logan Chien
5321ac1e46 vndk-def: Update eligible-list-28.csv
This commit changes:

* Add libneuralnetworks.so as LL-NDK
* Add libtextclassifier_hash.so as LL-NDK-Private
* Rename libhwbinder_nolto to libhwbinder_noltopgo

Bug: 77781837
Test: Run vndk_definition_tool.py with latest data sets.
Change-Id: I1ca0ac6f8143107a0fdd5d2182a187a2c6c57bcc
2018-04-14 11:28:42 +08:00
Colin Cross
9b0d510e08 Add java_system_modules for current sdk stubs
Building with -target 1.9 requires system modules to use in place
of the bootclasspath, add java_system_modules to generate them.

Test: m EXPERIMENTAL_USE_OPENJDK9=true
Change-Id: I3f54b987efa528078b1e34b743137540c69edf74
2018-04-13 17:38:47 -07:00
Jiyong Park
681f5fe78f [automerger skipped] Merge "javalib.jar -> classes.jar for the stubs included in SDK" am: 9e847302b4
am: 95b4ae05da  -s ours

Change-Id: I2205c15fe3713665982c8c04fc43d78612c379fc
2018-04-13 11:52:59 -07:00
Jiyong Park
1c48438c04 [automerger skipped] Merge "javalib.jar -> classes.jar for the stubs included in SDK" am: 128acf484a
am: a5de6d13a4  -s ours

Change-Id: I2f91c4994fd6bf923d9331c8421daee36d946007
2018-04-13 11:52:37 -07:00
Jiyong Park
95b4ae05da Merge "javalib.jar -> classes.jar for the stubs included in SDK"
am: 9e847302b4

Change-Id: If5f13335aad704a3d1df407e9eef2a83094207af
2018-04-13 11:37:11 -07:00
Jiyong Park
a5de6d13a4 Merge "javalib.jar -> classes.jar for the stubs included in SDK"
am: 128acf484a

Change-Id: Iec1871fb3363f0f6c00ff44013d84d825c49419e
2018-04-13 11:36:46 -07:00
Jayant Chowdhary
683e16b869 [automerger skipped] Merge changes I72ae13fb,Ie9604cc0 am: 00b912531c
am: 568ea375be  -s ours

Change-Id: I576b9824d3a1f6d7d5ac8c33165dedc1b69c9f41
2018-04-13 10:38:21 -07:00
Jayant Chowdhary
568ea375be Merge changes I72ae13fb,Ie9604cc0
am: 00b912531c

Change-Id: I893e0635ae49b3f255a57a2bdedaab74d0bca279
2018-04-13 10:31:40 -07:00
Treehugger Robot
9e847302b4 Merge "javalib.jar -> classes.jar for the stubs included in SDK" 2018-04-13 17:28:22 +00:00
Treehugger Robot
128acf484a Merge "javalib.jar -> classes.jar for the stubs included in SDK" 2018-04-13 17:28:22 +00:00
Jayant Chowdhary
00b912531c Merge changes I72ae13fb,Ie9604cc0
* changes:
  Unify command for creation of llndk, vndk abi references.
  Fix function pointer test for header-checker.
2018-04-13 17:10:22 +00:00
Logan Chien
29805cfa6b vndk-def: Add libtextclassifier_hash to LL-NDK-Indirect
This commit adds libtextclassifier_hash to LL-NDK-Indirect.  It is a
dependency of libneuralnetwork (LL-NDK).

Bug: 77781837
Test: libtextclassifier_hash is marked as LL-NDK-Indirect
Change-Id: I29aa75d5cce3a817cd06fe3228207aef93eb9edb
2018-04-13 17:31:35 +08:00
Logan Chien
7872f3980e sourcedr: Add module path filters
This commit adds module path filters to `list_vndk_module.py`.  With
this commit, one may filter the result with `--select` and `--exclude`.

For example, to exclude the entries under vendor/ and device/, run:

    ./list_vndk_module.py --exclude '(vendor/)|(device/)' [filename]

Test: Generate the latest eligible list
Change-Id: I848a020fe9e4a7bcf8fd5a5f2760a7f905dfb7ab
2018-04-13 17:31:35 +08:00
Logan Chien
66f48b42c2 sourcedr: Add 2 commands to check source file deps
This commit adds list_installed_module_under_source.py, which checks
the installed modules that relies on the source under the specified
directory.

This commit adds list_source_file.py, which lists all input source files
that are necessary to build an installed module.

Test: Run this tool on aosp_walleye-userdebug and search for the
dependency of libneuralnetworks.so

Change-Id: I7f0d82e30f994a942e3e43b0f554ec62cf7baff1
2018-04-13 14:53:13 +08:00
Logan Chien
7c89c5231c [automerger skipped] Merge changes I15e5bd9f,I2a74050d,I6ef2ebe3 into pi-dev
am: 224a551116  -s ours

Change-Id: I495a0f5f29c58965b9dac3c3e16969145951156a
2018-04-12 19:47:48 -07:00
Logan Chien
224a551116 Merge changes I15e5bd9f,I2a74050d,I6ef2ebe3 into pi-dev
* changes:
  vndk-def: Do not check DT_NEEDED order by default
  vndk-def: Rename eligible list to use API level
  vndk-def: Refine ineligible dep error message
2018-04-13 02:37:35 +00:00
Logan Chien
8a8e56dd8e Merge "vndk-def: Do not check DT_NEEDED order by default" am: 07df7e17e2
am: 5aabff1a9a

Change-Id: Ic8666bd03aa9a5e55713a40edc9441c76495c412
2018-04-12 18:32:17 -07:00
Scott Lobdell
81e50f73c9 Merge "Add tool to simplify identification of failing tests" am: 5368d090d7
am: 56f307dbea

Change-Id: Ib8363ecaac2f4fb34af08422a252a0e7c7ec6614
2018-04-12 18:31:13 -07:00
Logan Chien
5aabff1a9a Merge "vndk-def: Do not check DT_NEEDED order by default"
am: 07df7e17e2

Change-Id: I21437c6bd57242b2faa8a6cf7261be755be38b54
2018-04-12 18:22:35 -07:00
Scott Lobdell
56f307dbea Merge "Add tool to simplify identification of failing tests"
am: 5368d090d7

Change-Id: I0dd2432c68e30c0f10ec74c53a3f5a580b6c8920
2018-04-12 18:11:56 -07:00
Logan Chien
07df7e17e2 Merge "vndk-def: Do not check DT_NEEDED order by default" 2018-04-13 01:00:35 +00:00
Logan Chien
0c2025d921 vndk-def: Do not check DT_NEEDED order by default
Since aosp/3846320 breaks the implicit dependencies from libdl to libc,
we don't have to check the ordering of libc and libdl.  This commit
turns off the error messages by default.

Test: Errors on the ordering disappears
Bug: 74371917
Change-Id: I15e5bd9f18a76665e70b60090f263b6ded5ec5bb
Merged-In: I15e5bd9f18a76665e70b60090f263b6ded5ec5bb
(cherry pick from commit 762ba82053d44014c97698810925c5e2247863d3)
2018-04-13 08:59:21 +08:00
Logan Chien
652eba8304 vndk-def: Rename eligible list to use API level
This commit renames o-release to 26 and o-mr1-release to 27.

Bug: 74299030
Test: n/a
Change-Id: I2a74050de4d1630ff6b516ea3f5977fdf3906c8c
Merged-In: I2a74050de4d1630ff6b516ea3f5977fdf3906c8c
(cherry picked from commit 6a2e6693fa0fe834f7b84015267eed4d173c72a3)
2018-04-13 08:59:21 +08:00
Logan Chien
668aaed9e8 vndk-def: Refine ineligible dep error message
This commit refines the error messages for ineligible dependencies.  If
a vendor module depends on a vendor_available system shared library but
that system shared library is not copied to /vendor/lib[64], print an
error message to remind developers to copy them.

Bug: 74319871
Test: Manually remove libminijail or libdrm from /vendor/lib[64] and
run `./vndk_definition_tool.py check-dep --system ... --vendor ...`

Change-Id: I6ef2ebe3be137ae0b05f2ba4a8218c72f1ca9ef2
Merged-In: I6ef2ebe3be137ae0b05f2ba4a8218c72f1ca9ef2
(cherry picked from commit 49b268308b0ff76537b85b4762a22aba59423fe5)
2018-04-13 08:59:21 +08:00
Treehugger Robot
5368d090d7 Merge "Add tool to simplify identification of failing tests" 2018-04-12 23:11:27 +00:00
Jiyong Park
c84e69622a javalib.jar -> classes.jar for the stubs included in SDK
I6730e2d3ec38004874265b2a690442dec57b33f4 made it clear that we should
depend on classes.jar for static java libraries. However, due to the
existing references to javalib.jar, the build system has been copied
classes.jar to javalib.jar.

But, this is not the case for Soong-defined java libraries. Instead of
doing the same thing for Soong-defined modules, directly fixing the
case where javalib.jar is being referenced.

Test: m -j dist
Bug: b/70351683
Merged-In: Ib1fb4ebdbdde42dec1028160a5473c645913d258
Change-Id: Ib1fb4ebdbdde42dec1028160a5473c645913d258
(cherry-picked Ib1fb4ebdbdde42dec1028160a5473c645913d258)
2018-04-12 15:00:41 -07:00
Jiyong Park
3e255758be javalib.jar -> classes.jar for the stubs included in SDK
I6730e2d3ec38004874265b2a690442dec57b33f4 made it clear that we should
depend on classes.jar for static java libraries. However, due to the
existing references to javalib.jar, the build system has been copied
classes.jar to javalib.jar.

But, this is not the case for Soong-defined java libraries. Instead of
doing the same thing for Soong-defined modules, directly fixing the
case where javalib.jar is being referenced.

Test: m -j dist
Bug: b/70351683

Merged-In: Iabd04ba55411373c228ca4bf04fc99b7f155262c
Change-Id: Iabd04ba55411373c228ca4bf04fc99b7f155262c
(cherry-picked from cdd757f4da)
2018-04-12 14:56:19 -07:00
Scott Lobdell
a246ad7241 Add tool to simplify identification of failing tests
Test: Tested against XML files from partner.android.com

Change-Id: I79be39e6be97892df66663dfa74a6e3b1c08c985
2018-04-12 14:36:05 -07:00
Jayant Chowdhary
b2144fb977 Unify command for creation of llndk, vndk abi references.
Bug: 64267858

Test: utils/create_reference_dumps.py creates llndk + vndk abi
      references

Test: utils/create_reference_dumps.py -l libjpeg

Merged-In: I72ae13fb9c48f23a62b959195dbd5fa6fe4c14b0
Change-Id: I72ae13fb9c48f23a62b959195dbd5fa6fe4c14b0
(cherry picked from commit a038b56c7d)
2018-04-12 09:07:39 -07:00
Jayant Chowdhary
b7e08b358a Merge "Unify command for creation of llndk, vndk abi references." into pi-dev
am: a68d4d09b9

Change-Id: I1b9fc596735fb484448bb514f2f7039569a70731
2018-04-12 08:25:04 -07:00
Jayant Chowdhary
a68d4d09b9 Merge "Unify command for creation of llndk, vndk abi references." into pi-dev 2018-04-12 15:17:10 +00:00
Logan Chien
1696c6f577 header-abi-dumper: Add omp.h workaround
This commit adds <omp.h> workaround for LL-NDK/VNDK/VNDK-SP libs that
use OpenMP.  This workaround is necessary because clang-3289846 does not
have omp.h and header-abi-dumper will stick to that version for a while.

Bug: 77161122
Test: Mark libneuralnetworks as LLNDK and rebuild it.
Change-Id: I8f3fb7aea7922dd7431b882e310991a91a2f5d43
Merged-In: I8f3fb7aea7922dd7431b882e310991a91a2f5d43
(cherry picked from commit cf432585dd)
2018-04-12 20:17:36 +08:00
Logan Chien
2bda03e8e9 header-abi-dumper: Refactor argv fixes
This commit extract the logic for argv fixes so that workarounds can be
kept in another source file.

Bug: 77161122
Test: Build header-abi-dumper, copy to prebuilts/clang-tools, and
rebuild bionic.

Change-Id: I74eb7cb001f854062530f5770ce1e01c8bf996e9
Merged-In: I74eb7cb001f854062530f5770ce1e01c8bf996e9
(cherry picked from commit 9e26331f3c)
2018-04-12 20:17:31 +08:00
Jayant Chowdhary
647e0f1208 Add information to denote whether a function parameter is 'this'.
Function signatures produced by header-abi-dumper should specify which
parameters are 'this'.

Bug: 72697345

Test: tests/test.py

Change-Id: I18a1f974e1530b6caa8f081dcd2101616ba3dc19
Merged-In: I18a1f974e1530b6caa8f081dcd2101616ba3dc19
(cherry picked from commit e5037fd0f1)
2018-04-12 20:17:24 +08:00
Jayant Chowdhary
d7496f650c Name anonymous records, don't depend on fully qualified name for type-id.
- Use 'anonymous at <source>:<line>:<column>' as a name for anonymous records
  within a translation unit

- Don't depend on clang's getFullyQualifiedName() for computing type-ids since
  it isn't reliable (can miss out qualification of template parameters).
  Factor in the final destination type, i.e either built-in type name or
  tag type mangledCXXRTTI name. This is an internal name and not exposed
  through intermediate .sdump files, so should not affect backwards
  compatibility.

Bug: 77649155

Test: tests/test.py

Change-Id: I8890cc59fbe24fb6083e191d69be7fff45b51861
Merged-In: I8890cc59fbe24fb6083e191d69be7fff45b51861
(cherry picked from commit dd38a73879)
2018-04-12 20:17:17 +08:00
Logan Chien
7c43025b3a vndk-def: Do not check DT_NEEDED order by default
Since aosp/3846320 breaks the implicit dependencies from libdl to libc,
we don't have to check the ordering of libc and libdl.  This commit
turns off the error messages by default.

Test: Errors on the ordering disappears
Bug: 74371917
Change-Id: I15e5bd9f18a76665e70b60090f263b6ded5ec5bb
2018-04-12 19:24:38 +08:00
Isaac Chen
50df6f5934 emulator: 64-bit kernel for 32-bit arm image
Starting in P, all 32-bit and 64-bit architectures use 64-bit
binder interface. This is similar to ag/3582011 for x86.

Bug: 71861550
Test: lunch sdk_phone_armv7-userdebug; m -j; emulator
Change-Id: I152a89ba46e81f27bde0e166cb224d2a740fc989
2018-04-12 16:29:58 +08:00
Logan Chien
3102c0d4b1 Merge "vndk-def: Update eligible-list-28.csv" into pi-dev
am: 6d3f245d60

Change-Id: I31a0912a96ce8f9ceaf42c1841d82299bc7ced0b
2018-04-11 21:01:26 -07:00
Logan Chien
6d3f245d60 Merge "vndk-def: Update eligible-list-28.csv" into pi-dev 2018-04-12 03:52:07 +00:00
Jayant Chowdhary
243ae244ba Fix function pointer test for header-checker.
Test: changing tests/integration/cpp/include/abstract_class.h changes to
      test results. This would not happen earlier, since inadvertently,
      the test used to pick up abi references locally instead of freshly
      creating them.

Change-Id: Ie9604cc09df1ab5a87996f1ecd141f228d67a765
2018-04-11 15:38:24 -07:00
Jayant Chowdhary
a038b56c7d Unify command for creation of llndk, vndk abi references.
Bug: 64267858

Test: utils/create_reference_dumps.py creates llndk + vndk abi
      references

Test: utils/create_reference_dumps.py -l libjpeg

Change-Id: I72ae13fb9c48f23a62b959195dbd5fa6fe4c14b0
2018-04-11 15:38:04 -07:00
Logan Chien
3aad0654e8 Merge changes I8f3fb7ae,I74eb7cb0 am: 6b9e9c14f5
am: 26310c83df

Change-Id: Ic84f5ca6a2aa0eb77109effa4ae0f5a04a2dc604
2018-04-10 22:47:42 -07:00
Logan Chien
26310c83df Merge changes I8f3fb7ae,I74eb7cb0
am: 6b9e9c14f5

Change-Id: I22710d39ed58784cd8fa95285f084e9fa8e7a541
2018-04-10 22:42:06 -07:00
Logan Chien
6b9e9c14f5 Merge changes I8f3fb7ae,I74eb7cb0
* changes:
  header-abi-dumper: Add omp.h workaround
  header-abi-dumper: Refactor argv fixes
2018-04-11 05:31:17 +00:00
Guang Zhu
e6106af3c9 delete tests baked into emulator system image
am: 1c3364c022

Change-Id: Iff3f525633e56b90e1eaff7a859a4ff95edd1940
2018-04-10 10:15:13 -07:00
Logan Chien
cf432585dd header-abi-dumper: Add omp.h workaround
This commit adds <omp.h> workaround for LL-NDK/VNDK/VNDK-SP libs that
use OpenMP.  This workaround is necessary because clang-3289846 does not
have omp.h and header-abi-dumper will stick to that version for a while.

Bug: 77161122
Test: Mark libneuralnetworks as LLNDK and rebuild it.
Change-Id: I8f3fb7aea7922dd7431b882e310991a91a2f5d43
2018-04-10 23:29:37 +08:00
Logan Chien
9e26331f3c header-abi-dumper: Refactor argv fixes
This commit extract the logic for argv fixes so that workarounds can be
kept in another source file.

Bug: 77161122
Test: Build header-abi-dumper, copy to prebuilts/clang-tools, and
rebuild bionic.

Change-Id: I74eb7cb001f854062530f5770ce1e01c8bf996e9
2018-04-10 23:29:37 +08:00
Guang Zhu
1c3364c022 delete tests baked into emulator system image
- tests are out of maintainence
- the checks were general functional tests on comms related
  areas and should be covered by the same tests across physical
  and virtual devices

Bug: 77496099
Test: build `make -j droid tests dist`
Change-Id: I899764846b4829add5ade8085a43bf88c958914f
2018-04-09 20:21:40 -07:00