48e7f7d7d0f13f3521f463d05e7e9840b79f1242
Previously, the code for populating the dist directory, e.g.
populate_dist and create_legacy_dist_structures assumed that the sdk
snapshot files they needed could be found in the directory referenced
by SnapshotBuilder.mainline_sdks_dir. This change removes that
assumption and instead passes the snapshot_dirs directory into the
populate_dist method and uses it in the create_legacy_dist_structures
function.
This refactoring is needed to allow a follow up change to construct a
set of sdk snapshot files in a different directory while still using
the populate_dist method to copy them into the correct location in the
dist directory.
Bug: 218685706
Test: atest --host mainline_modules_sdks_test
packages/modules/common/build/mainline_modules_sdks.sh
pyformat -s 4 --force_quote_type double -i build/mainline_modules_sdks*.py
/usr/bin/pylint --rcfile $ANDROID_BUILD_TOP/tools/repohooks/tools/pylintrc build/mainline_modules_sdks*.py
Change-Id: I9fb659df28d7688b3f081bf84f5fae8ee85dc534
packages/modules/common
This project includes mainline build and other utility code. Any library code
intended for use by modules should go in frameworks/libs/modules-utils
instead.
java code
This project uses a single source path for java code. All java code should go
in the java directory with subdirectories corresponding to the java package.
Android.bp files should go alongside the java source files, and should only
include java source for a single java package to encourage good code hygiene.
Tests for java code should go in the javatests directory and follow the same
structure.
Description
Languages
Python
63.7%
Java
28.6%
Shell
7.7%