702408ecbb
Previously, in package.map, we store the byte offset of the first flag in a flag package in a flag value file. In flag.map, we store the within package flag byte offset. Once we know the total offset, we can locate the flag in the flag value file. However, this offset may not work for flag info file. Currently we only have boolean flags. Each boolean flag value and info takes up 1 byte in flag value and flag info file. So the byte offsets are the same. But in the future, when we add a new flag value type, or add more contents to flag info file. Then the byte offset for flag value file and flag info file may not be same. Instead, we should store index rather than offset. The package map should store the index of the first flag in this package. The flag map stores the within package index. Then flag value read api and flag info read api can then infer the byte offset independently. Bug: b/321077378 Test: atest -c Change-Id: Iad89776d5369715ba2d8faaea18261ac3271f13b |
||
---|---|---|
.. | ||
aconfig | ||
acp | ||
apicheck | ||
atree | ||
canoninja | ||
compliance | ||
docker | ||
droiddoc | ||
finalization | ||
fs_config | ||
ide_query | ||
libhost | ||
metadata | ||
perf | ||
product_config | ||
protos | ||
rbcrun | ||
releasetools | ||
sbom | ||
signapk | ||
signtos | ||
warn | ||
zipalign | ||
ziptime | ||
Android.bp | ||
auto_gen_test_config.py | ||
auto_gen_test_config_test.py | ||
brillo-clang-format | ||
build-runfiles.cc | ||
BUILD.bazel | ||
characteristics_rro_generator.py | ||
check_elf_file.py | ||
check_identical_lib.sh | ||
check_radio_versions.py | ||
compare_builds.py | ||
event_log_tags.py | ||
exercise_compare_builds | ||
extract_kernel.py | ||
fat16copy.py | ||
fileslist_util.py | ||
find_static_candidates.py | ||
findleaves.py | ||
fixlinebreaks.sh | ||
generate-enforce-rro-android-manifest.py | ||
generate-notice-files.py | ||
generate-self-extracting-archive.py | ||
generate_gts_shared_report.py | ||
java-event-log-tags.py | ||
list_files.py | ||
merge-event-log-tags.py | ||
mk2bp_catalog.py | ||
mk2bp_partition.py | ||
normalize_path.py | ||
overrideflags.sh | ||
post_process_props.py | ||
post_process_props_unittest.xml | ||
print_module_licenses.sh | ||
soong_to_convert.py | ||
stub_diff_analyzer.py | ||
test_extract_kernel.py | ||
test_post_process_props.py | ||
warn.py | ||
whichgit |