Commit Graph

33902 Commits

Author SHA1 Message Date
Yi Kong
fda7cced69 Update clang version to clang-r487747c
Test: presubmit
Bug: 279955553
Change-Id: I8043ab75173420f60e828d973ba69d47011c2953
2023-05-13 18:11:44 +01:00
Treehugger Robot
ff98cee914 Merge "Add --dependency-suffix flag." 2023-05-12 18:10:40 +00:00
Andrew Walbran
59f441224e Add --dependency-suffix flag.
This adds a suffix to all dependencies, which may be useful for no_std
crates.

Bug: 279614907
Test: Ran on external/rust/crates/ciborium
Change-Id: I4d504fbfdcd079a946814dcf953b42baa0ca3563
2023-05-12 16:47:19 +00:00
Andrew Walbran
8ddcc6c479 Merge "Fix handling of tests for variants." 2023-05-12 14:42:50 +00:00
Treehugger Robot
1604ded8da Merge "Added --no-std and --alloc flags." 2023-05-12 14:35:19 +00:00
Andrew Walbran
aff9481608 Fix handling of tests for variants.
Variant test and cargo flags were being ignored.

Bug: 279614907
Test: Ran on external/rust/crates/serde
Change-Id: I9c6cf71c8d04944cc7c532cfb53b50c2efc3e375
2023-05-12 13:24:37 +00:00
Andrew Walbran
d579a0fa61 Added --no-std and --alloc flags.
These allow most no_std crates to be supported without extra patches.

Bug: 279614907
Test: Ran on external/rust/crates/half
Change-Id: I1a69ff7950fb63320ef7c87d6cd45b20915df801
2023-05-12 13:22:55 +00:00
Anvesh Renikindi
270b7c9fed Merge "Added shortcutlauncherdemo Initialization provider" 2023-05-10 20:18:09 +00:00
Anvesh Renikindi
4b48ea39e3 Added shortcutlauncherdemo Initialization provider
Bug: 277943394
Change-Id: I4a87f0539e1f269b5990acd522ba3916fdb6fe56
Test: None
2023-05-10 18:57:52 +00:00
Adrian Roos
f2384e9621 Merge "[Monkey][Bugfix] Do not report crash in monkey proc." 2023-05-10 10:01:59 +00:00
qinyige1
f2a198dd83 [Monkey][Bugfix] Do not report crash in monkey proc.
It's not necessary to report crash to system for monkey process,
which even causes system deadlock. So we override it.

Bug: 279527651
Test: Manual
Change-Id: I2672a372dfe445a4f2400db01ec837ec6b528303
2023-05-04 15:11:08 +08:00
Treehugger Robot
9af4718984 Merge "Add a Python package for fetch_artifact." 2023-04-26 21:03:19 +00:00
Treehugger Robot
4b636d2df0 Merge "Generate license module from the vendor snapshot update.py" 2023-04-26 01:53:02 +00:00
Justin Yun
fc27ecc025 Generate license module from the vendor snapshot update.py
`notice` property is removed from the soong. The update.py script
will generate `license` module, instead.
It will use the information included in the snapshot json files.

Bug: 271539873
Test: generate all kinds of snapshots and build against them
Change-Id: I7bbbf8bcec2a8c6d16ec1e04888dd5adf24ae4c7
2023-04-26 00:30:43 +00:00
Hsin-Yi Chen
934663b2f0 Merge "Add README about opt-in ABI dumps" 2023-04-25 10:24:17 +00:00
Shaju Mathew
93396b2b35 Merge "Package version bump for U." 2023-04-20 19:36:53 +00:00
Shaju Mathew
faf2b3d078 Package version bump for U.
Test: treehugger

Bug: 279028960
Change-Id: Ie0553922f6c67bd9c15cb375ba335b646089a4ad
2023-04-20 16:44:06 +00:00
Inseob Kim
02b3862cda Merge "Add min_sdk_version prop to snapshots" 2023-04-20 07:36:58 +00:00
Junghoon Jang
e4f118be6f Merge "repo-pull: Introduce --ignore-unknown-changes arg" 2023-04-19 10:55:11 +00:00
Junghoon Jang
ac6afae3d6 repo-pull: Introduce --ignore-unknown-changes arg
In the case of pulling changes of a topic which is shared by multiple
repos, if the target source tree doesn't contain all of those repos,
the script will fail to apply changes.

Introduce a new argument, --ignore-unknown-changes, which ignores
changes whose repo is not in the manifest.xml.

Test: Pulling changes of a topic which is shared by multiple repos to
  the source tree which contains part of those repos was done
  successfully with the newly introduce argument.
Change-Id: Ie999121415bc1888b714d023ca251ad89701df11
Signed-off-by: Junghoon Jang <junghoonjang@google.com>
2023-04-18 15:52:07 +00:00
Inseob Kim
46628fff98 Add min_sdk_version prop to snapshots
Bug: 277403349
Test: build vndk/vendor snapshot and build
Change-Id: I460c69cbc5820132690c9d3fb325c5eb504f5366
2023-04-18 16:50:20 +09:00
Treehugger Robot
c973f68913 Merge "VNDK snapshot tool generates license information from json" 2023-04-18 05:33:10 +00:00
Justin Yun
9e48f54e06 VNDK snapshot tool generates license information from json
VNDK snapshot zip file includes license information in json files.
Instead of parsing the license text files, read the information from
the json files.
VNDK snapshot v33 and older do not include this information and must
parse the license text files as before.

Bug: 277317599
Test: generate snapshots with/without json information && m nothing
Change-Id: Ibdbc571c9effe6c17f5d82a7a0894ad2d800711f
2023-04-17 15:47:24 +09:00
Junghoon Jang
40e23904e3 Merge changes Iff3cdebe,I9d1add4f
* changes:
  repo-pull: Introduce --current-branch argument
  repo-pull: Consider branch of repo
2023-04-17 05:15:57 +00:00
Hsin-Yi Chen
74e23a1ec1 Merge "Fix the internal type of enum values" 2023-04-17 02:37:43 +00:00
Dan Albert
d9f4d6f651 Add a Python package for fetch_artifact.
We keep duplicating this function all over the place. Factor it out
and modernize it.

Test: all the test commands named in the readme
Bug: None
Change-Id: I8d90a9c101b9cf83d62d02141f40c6c3666bdf94
2023-04-14 14:30:43 -07:00
Junghoon Jang
108c36c52b repo-pull: Introduce --current-branch argument
To make the script can be used from automatic scripts, introduce
`--current-branch` argument which allows pulling commits to the current
branch without creating a local branch. It will skip the prompt which
asking about the creation of a local branch.

Test: With --current-branch argument, the script doesn't ask setting
  local branch name.
Change-Id: Iff3cdebe6338bb2be738e60047d5c4dd81cde4f0
Signed-off-by: Junghoon Jang <junghoonjang@google.com>
2023-04-14 12:25:29 +00:00
Junghoon Jang
172ccfe52d repo-pull: Consider branch of repo
In the case of one source tree containing multiple repos with the same
project, but different branches, the script won't sync them properly.
To fix it, make it consider the branch along with the project.

Test: Tested syncing well in the directory which contains multiple repos
  with the same project, but different branches.
Change-Id: I9d1add4ffe85f80f8f9d6a3ae2c046473d7c4631
Signed-off-by: Junghoon Jang <junghoonjang@google.com>
2023-04-14 12:24:51 +00:00
Hsin-Yi Chen
35fabff46a Add README about opt-in ABI dumps
- Add the commands to write Android.bp, create reference dumps, and
  find the generated dumps.
- Remove "persistent-" from the repo command as it's internal only.

Test: None
Bug: 227282691
Change-Id: I07dc947c0436e2a0e7e5b3a4f812800bd7df2720
2023-04-14 19:31:49 +08:00
Hsin-Yi Chen
62081d11b4 Fix the internal type of enum values
EnumFieldIR has member functions that determine whether the enum value
is signed. The JSON dumper uses the functions to distinguish between
negative values and values >= (1 << 63).

Bug: 277299761
Test: ./test.py
Change-Id: If5f3a33aaf5f53f39019fdd10dde366d48a50340
2023-04-12 11:37:10 +00:00
Treehugger Robot
116fa3048f Merge changes I3e156afa,Id7e4f2eb
* changes:
  cargo_embargo: detect and ignore harness-less tests
  cargo_embargo: use enum for crate type
2023-03-29 23:55:07 +00:00
Frederick Mayle
5a6dbaae7a cargo_embargo: detect and ignore harness-less tests
These currently cause cargo_embargo to fail. We should support them
eventually, but for now we'll ignore them to unblock crosvm merges.

Test: external/crosvm/android-merge-2-cargo-embargo.sh
Bug: 275386231
Change-Id: I3e156afa5672ddd6257c7caabd05346e060448fb
2023-03-29 15:25:57 -07:00
Frederick Mayle
04a1650a5f cargo_embargo: use enum for crate type
No behavior change intended.

This will make a following CL easier.

Test: external/crosvm/android-merge-2-cargo-embargo.sh
Bug: 275386231
Change-Id: Id7e4f2eb3f25fa12d867852a0ec95ce443949257
2023-03-29 15:24:21 -07:00
Treehugger Robot
43ff63a864 Merge "Utilize from-text stub module in build" 2023-03-29 18:28:30 +00:00
Jihoon Kang
0ae8fe1032 Utilize from-text stub module in build
Replace `android_stubs_current` with `android_from_text_stubs_current`,
a java_api_library module that creates from-text stubs. This feature is
hidden behind a flag `--build-from-text-stub`, which sets the env var
`ANDROID_PUBLIC_STUBS` as `android_from_text_stubs_current`.

Test: m --build-from-text-stub
Bug: 271154441
Change-Id: I06be32d9b7b9a54c0384010457406cabfff98c61
2023-03-27 18:04:34 +00:00
Yi Kong
1784c71446 Merge "Revert^2 "Update clang version to clang-r487747"" 2023-03-24 13:19:52 +00:00
Kiyoung Kim
383ddd8fe7 Merge "Create a new build script for builds using SSI artifact" 2023-03-23 07:08:50 +00:00
Kiyoung Kim
c981a31234 Create a new build script for builds using SSI artifact
Build using SSI artifact from the chained build may require extra
arguments from the build. This new script will handle all required
arguments with those new build targets.

Bug: 269977324
Test: N/A
Change-Id: Ia7b1f3c838433d4d51a98be875ac32da88ccbb79
2023-03-23 14:53:25 +09:00
Treehugger Robot
a7ade46095 Merge "Remove AndroidBeamDemo from samples" 2023-03-22 02:54:26 +00:00
Henri Chataing
8a56e6ca8f Remove AndroidBeamDemo from samples
Bug: 265394596
Test: m sdk
Change-Id: I54898705900f73c55d9a2eb3ee1372f510b15fe2
Merged-In: I54898705900f73c55d9a2eb3ee1372f510b15fe2
(cherry picked from commit e1f18b0234)
2023-03-22 01:59:29 +00:00
Henri Chataing
c01e15bdcb Merge "Revert^2 "Remove samples for deprecated Android Beam API"" 2023-03-22 00:26:49 +00:00
Stephen Hines
edab2ac359 Merge "Remove unused variables" 2023-03-21 16:42:10 +00:00
tanshanshan
16c7d86a81 Remove unused variables
Variables "bDecode" are not used in the function.

Test: mmm development/tools

Change-Id: Ic00ac4682b797c842c503cc5bc2cdbe22f68a94e
Signed-off-by: tanshanshan <tanshanshan@eswincomputing.com>
2023-03-17 15:57:27 +08:00
Peter Collingbourne
462ff76c54 Merge "gdbclient.py: Fix gdb-remote command for non-local $ANDROID_SERIAL." 2023-03-16 00:27:43 +00:00
Peter Collingbourne
b6b58a4d82 gdbclient.py: Fix gdb-remote command for non-local $ANDROID_SERIAL.
As it turns out, gdbclient.py is broken when connecting to a host:port
$ANDROID_SERIAL where the host is something other than localhost,
because it will try to connect to a TCP socket on the host named in
$ANDROID_SERIAL, while lldb-server is not even set up to listen on a TCP
socket on the device (it listens on a Unix socket which gets forwarded
by adb forward to localhost).

Fix it by entirely removing the code that tries to connect directly to
the host if the $ANDROID_SERIAL is of the form host:port.

Change-Id: I91a04aa811b246c9cac82ef3b0779dc284364edf
2023-03-15 14:31:40 -07:00
Henri Chataing
5db4bef9d5 Revert^2 "Remove samples for deprecated Android Beam API"
8de7b4b166

Change-Id: I415762b2fcbc9706a33d7a41858c1c142bb7ffab
Merged-In: I415762b2fcbc9706a33d7a41858c1c142bb7ffab
(cherry picked from commit 614c1aec90)
2023-03-14 23:27:34 +00:00
Xin Li
b25a156d0f Merge "Merge Android 13 QPR2" 2023-03-14 21:40:41 +00:00
Xin Li
afcb0100a9 Merge Android 13 QPR2
Bug: 273316506
Merged-In: Ia275a2ab69ee31b7d81a2ca8c83bef08cbf107df
Change-Id: I8304176691a3d06bc0129d13766d61b518dd8a0f
2023-03-13 23:09:06 -07:00
Christopher Ferris
03c8951115 Merge "Add missing changes from ARCH removal." am: 8f87d99d85
Original change: https://android-review.googlesource.com/c/platform/development/+/2485618

Change-Id: I6b88576c8f8858535f2adb3affc6e5112fa086f3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-14 00:25:35 +00:00
Christopher Ferris
8f87d99d85 Merge "Add missing changes from ARCH removal." 2023-03-13 23:51:09 +00:00