Commit Graph

34214 Commits

Author SHA1 Message Date
Treehugger Robot
2c44de287b Merge "Bumping package version number for release: 34.0.5" into main 2023-09-29 15:53:32 +00:00
Shaju Mathew
816e82c0d5 Bumping package version number for release: 34.0.5
Test: treehugger
Bug: 302358103
Change-Id: I5b25f98d8e5d3b163d30d1aebf77ad54099134bc
2023-09-29 10:15:22 +00:00
Anton Hansson
08709dccaf Merge "Replace logic for sdk source jar" into main 2023-09-28 17:09:50 +00:00
Treehugger Robot
19c21bfe87 Merge "STT: Get disk size data from the stt build test" into main 2023-09-27 06:23:00 +00:00
Hsin-Yi Chen
a11c87c968 Merge "Use gmock functions in version_script_parser_test" into main 2023-09-27 03:31:52 +00:00
Hsin-Yi Chen
02b0cf7653 Merge "Rename .map.txt used by tests" into main 2023-09-27 02:15:54 +00:00
Treehugger Robot
921cf378e7 Merge "Set <partition>_available only if it is for device" into main 2023-09-26 18:25:36 +00:00
Jeongik Cha
a18bd3c1ca Set <partition>_available only if it is for device
it is meaningful only if it is installed in the device

Bug: 277909042
Test: cargo2android.py with/without device, and then check
product/vendor_available

Change-Id: I9ca7328ac953849db224949089412e181b659945
2023-09-27 02:28:55 +09:00
Hsin-Yi Chen
ff1fe58b8a Rename .map.txt used by tests
The suffix ".map.txt" triggers NDK-API-Review.
example.map.txt has been replaced with map.txt in the same directory.

Test: ANDROID_BUILD_TOP=`realpath .` \
      PATH=$PATH:`realpath out/soong/dist/bin` \
      development/vndk/tools/header-checker/tests/test.py
Bug: 298626434
Change-Id: Ie2e21fe87e5bfce7f081fe32eb55547d8aa611ad
2023-09-26 17:53:50 +08:00
Hsin-Yi Chen
0bd5eff101 Use gmock functions in version_script_parser_test
Test: LD_LIBRARY_PATH=out/soong/dist/lib64 \
      out/soong/host/linux-x86/nativetest64/header-checker-unittests/header-checker-unittests
Bug: 298626434
Change-Id: Id0aac15ba3aa0dab7f54268f1668338ab63edee4
2023-09-26 17:24:28 +08:00
Justin Yun
ddcda65e34 STT: Get disk size data from the stt build test
Get the size of build artifacts using df.
It collect the amount of disk space used for build for all targets.

Bug: 302075773
Test: combined_build_test.sh -t <target> -v userdebug \
            -a <alter_target> -o -c droid
Change-Id: I4c59bc181164f4e8e13277719dc16158d3814f49
2023-09-26 18:14:23 +09:00
Treehugger Robot
d82a1cfd3e Merge "Parse tags attached to version blocks" into main 2023-09-26 07:57:45 +00:00
Hsin-Yi Chen
ffb3f17223 Parse tags attached to version blocks
header-abi-linker follows the rules in
build/soong/docs/map_files.md to parse version scripts.

Test: ANDROID_BUILD_TOP=`realpath .` \
      PATH=$PATH:`realpath out/soong/dist/bin` \
      development/vndk/tools/header-checker/tests/test.py
Test: LD_LIBRARY_PATH=out/soong/dist/lib64 \
      out/soong/host/linux-x86/nativetest64/header-checker-unittests/header-checker-unittests
Bug: 298626434
Change-Id: I7305a6a299f4878dfb9529fd5c6040c3c1d11f8f
2023-09-26 15:03:27 +08:00
Anton Hansson
ac0687bd82 Replace logic for sdk source jar
Use the newly created srcjar for the bootclasspath as opposed to the
previous method of scanning the tree for *.java files.

The new srcjar har some known limitations:
- jarjar renaming / zapping is not taken into consideration
- optional classpath libraries (<library>) are not included in the
  sources at the moment.
- when prebuilts are used for bcp jars, their sources are not included

Overall it should still be a large improvement over the current jar
which contains a lot of irrelevant cruft, and is very incomplete.

Also delete the old script.

Bug: 151360309
Test: m sdk sdk_repo dist; inspect the sources.zip file
Change-Id: I1cf96966334e15c202a0ea38d6133581bb02b80c
2023-09-25 13:38:50 +00:00
Zoe Tsou
4b76dd3526 Merge "Add README.md for tools/compare_cts_reports/." into main 2023-09-22 07:26:43 +00:00
Zoe Tsou
93168eb2dd Add README.md for tools/compare_cts_reports/.
Bug: 292453652
Test: None
Change-Id: Ia306f5ee1927f0ff331b9ecabc797986507817b5
2023-09-22 07:24:12 +00:00
Zoe Tsou
a2ab7d5522 Merge "Add unit tests for tools/compare_cts_reports/compare_cts_reports.py." into main 2023-09-22 03:20:41 +00:00
Zoe Tsou
b3a3dbe43c Add unit tests for tools/compare_cts_reports/compare_cts_reports.py.
Bug: 296323842
Test: ./test_compare_cts_reports.py
Change-Id: I859553dbbbdf9adeac6bb96b227073d0a3aa2c9b
2023-09-21 14:07:17 +00:00
David Srbecky
8d2dcd0c5d Merge "Fix build-id lookup for libraries loaded directly from apk" into main 2023-09-19 22:32:18 +00:00
David Srbecky
bfda306156 Fix build-id lookup for libraries loaded directly from apk
Use only the part after "!" as the filename to lookup.

Test: symbolize local crash
Change-Id: I70840ffcc07dc7d449b726a91c08d12529125d78
2023-09-19 17:09:33 +01:00
Zoe Tsou
8ca4239aed Merge "Add constant.py." into main 2023-09-19 11:44:51 +00:00
Zoe Tsou
2b53c7eb2e Merge "Add unit tests for tools/compare_cts_reports." into main 2023-09-19 07:26:21 +00:00
Zoe Tsou
52b17faace Add constant.py.
Bug: 292453652
Test: ./parse_cts_report.py -r REPORT -d OUTPUT_DIR &&
  ./aggregate_cts_reports.py -r REPORT [REPORT ...] -d OUTPUT_DIR &&
  ./compare_cts_reports.py [-r CTS_REPORTS [CTS_REPORTS ...]] \
  [--folder CTS_REPORTS] --mode {1,2,n} --output-dir OUTPUT_DIR [--csv CSV] [--output-files]
Change-Id: I96a135feb84b8f5e4dad939500865a65c000351d
2023-09-19 07:24:36 +00:00
Treehugger Robot
09de1731fd Merge "Fix the order of suffix in Android.bp" into main 2023-09-18 21:44:36 +00:00
Zhi Dou
aa683c3fa8 Merge "Fix b/300640506" into main 2023-09-18 16:02:33 +00:00
Zhi Dou
01f00d9d78 Fix b/300640506
Test: atest AconfigDemoUnitTests
Bug: b/300640506
Change-Id: Ie3893290a53c22b8aed2af2e07d8034f8240cdcf
2023-09-18 14:49:02 +00:00
Jeongik Cha
3151ae84ef Fix the order of suffix in Android.bp
rust_library + host_suffix + rlib_suffix is the right order
For example, rust_library_host_dylib, rust_library_host_rlib

Bug: 277909042
Test: cargo2android --run --force-rlib
Change-Id: Ib156b96853eb51bae1f68229ebe76b87b0f8b363
2023-09-18 20:00:58 +09:00
Zhi Dou
dddb3fa987 Merge "add a read only flag for demo" into main 2023-09-15 15:07:28 +00:00
Zhi Dou
ce3f8d4352 add a read only flag for demo
Bug: 298754733
Test: atest AconfigDemoUnitTests
Change-Id: Ib01918b2469ea59091b47d49672800b5716beb88
2023-09-15 14:17:25 +00:00
Hsin-Yi Chen
2f5228f1dc Merge "Exclude version blocks by patterns" into main 2023-09-15 08:06:18 +00:00
Zoe Tsou
83445923e5 Add unit tests for tools/compare_cts_reports.
Bug: 293809772
Test: ./test_parse_cts_report.py
Test: ./test_aggregate_cts_reports.py
Change-Id: I813482cfdfdcc9a5f2384f95fd289fb7ff89619f
2023-09-15 07:42:10 +00:00
Hsin-Yi Chen
5e00b7aba7 Exclude version blocks by patterns
The version blocks ending with _PLATFORM and _PRIVATE are unstable ABIs.
To exclude them, header-abi-linker --exclude-symbol-version should
accept patterns like *_PLATFORM and *_PRIVATE.

Test: ANDROID_BUILD_TOP=`realpath .` \
      PATH=$PATH:`realpath out/soong/dist/bin` \
      development/vndk/tools/header-checker/tests/test.py
Test: LD_LIBRARY_PATH=out/soong/dist/lib64 \
      out/soong/host/linux-x86/nativetest64/header-checker-unittests/header-checker-unittests
Bug: 298626434
Change-Id: Id82bc013b8de62b5ba8e5bd29f399b1b72ab5d39
2023-09-15 05:13:51 +00:00
James Farrell
6c90665cee Merge "Support adding suffixes to module names and deps." into main 2023-09-13 19:32:43 +00:00
James Farrell
56475b17c5 Support adding suffixes to module names and deps.
This is helpful for crates like protobuf and syn for which we have
multiple versions, and will let us eliminate several patch files

Test: Ran it on everything in external/rust/crates.
Change-Id: I29ac1ee69be99b7164e1458e0d8fc1cb028b15a0
2023-09-13 18:00:42 +00:00
Treehugger Robot
178665e03b Merge "Add some type annotations, mainly to help the IDE." into main 2023-09-12 22:29:25 +00:00
James Farrell
a5c22d559c Add some type annotations, mainly to help the IDE.
No functional changes.

Test: Ran it.
Change-Id: Ifedf1c42628dae03968eeefd5101ae75456acd32
2023-09-12 21:14:33 +00:00
Hsin-Yi Chen
c0d2b6e79b Merge "Let build-prebuilts.sh compile unit tests" into main 2023-09-12 07:00:36 +00:00
Elliott Hughes
e1b30f6745 Merge "Fix covreport folder permission" into main 2023-09-11 17:38:45 +00:00
Hsin-Yi Chen
9beee3bf06 Let build-prebuilts.sh compile unit tests
build-prebuilts.sh compiles header-checker-unittests by default. The
continuous builds ensure that the tests are compilable. The developers
can use the script to build the tests locally.

Test: OUT_DIR=out BUILD_BROKEN_DISABLE_BAZEL=1 \
      development/vndk/tools/header-checker/android/build-prebuilts.sh \
      header-checker-unittests
Test: OUT_DIR=out BUILD_BROKEN_DISABLE_BAZEL=1 DIST_DIR=/tmp/distdir \
      development/vndk/tools/header-checker/android/build-prebuilts.sh
Bug: 280008249
Change-Id: I32d6ade3c527785d68802c1737c94f963ead5b3c
2023-09-11 18:36:54 +08:00
Joey Jiao
ddd7c0ff87 Fix covreport folder permission
Change-Id: I671c0ddc1cd0632c3d81c9ec68825decc92b065a
2023-09-08 08:56:27 +08:00
Martin Geisler
6f634869e6 Merge "Revert "Rename libsyn to libsyn2"" into main 2023-09-07 14:01:47 +00:00
Treehugger Robot
c55eea75d2 Merge "Update to clang-r498229b" into main 2023-09-07 11:55:35 +00:00
Yi Kong
f8d367d015 Update to clang-r498229b
Bug: 293616148
Change-Id: Ic77a78f463691aa2c927cfa6bea009ef38e9f0d7
Test: presubmit
2023-09-07 10:48:55 +00:00
Zoe Tsou
ad5a7859c8 Merge "Implement folder input." into main 2023-09-07 09:24:59 +00:00
Zoe Tsou
e07b08ce7f Implement folder input.
One flag '-f' corresponds to one directory that stores a parsed report.

Bug: 296988808
Test: ./compare_cts_reports.py -r test_result_1.xml [test_result_2.xml] \
    [-r report.zip] [-f parsed_dir_1/] [-f parsed_dir_2/] -m n -d output_dir/
Change-Id: I26310982dc8ef18f5dbfb1a8382ea3a600508fbe
2023-09-07 03:25:58 +00:00
Treehugger Robot
1c8730d71c Merge "device_supported is true by default, no need to specify it." into main 2023-09-06 18:18:05 +00:00
Treehugger Robot
210030f1af Merge "Default device_supported and host_supported to true in serde." into main 2023-09-06 18:04:52 +00:00
Andrew Walbran
a8ccd6f364 device_supported is true by default, no need to specify it.
Bug: 293289578
Test: atest cargo_embargo.test
Change-Id: I54b6586b4b5940d0e94a2a8f4b35c267792c4842
2023-09-06 16:15:54 +01:00
Andrew Walbran
2e6cec5a0f Default device_supported and host_supported to true in serde.
This is cleaner than using .unwrap_or(true) wherever they are used.

Bug: 293289578
Test: atest cargo_embargo.test
Change-Id: I763adf0cc51721408adf55b966ed4304e2766c00
2023-09-06 16:11:21 +01:00
Martin Geisler
a6fe26c146 Revert "Rename libsyn to libsyn2"
This reverts commit 7705ea6d36.

Reason for revert: I believe this is stale since `libsyn` is version 2 now:

https://cs.android.com/android/platform/superproject/+/main:external/rust/crates/syn/Android.bp;l=41;drc=fcd71dcc29ef325341ea7c1a145591b349018eb3

Change-Id: I31892447cf95d094e4bb201c4d86a28c70085467
2023-09-01 14:08:46 +00:00