blob: 556e177ad75d113e92956990ab717a99365c35d2 [file] [log] [blame]
Sam Delmerico24c56032022-03-28 19:53:03 +00001// Copyright 2022 Google Inc. All rights reserved.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package allowlists
16
17// Configuration to decide if modules in a directory should default to true/false for bp2build_available
18type Bp2BuildConfig map[string]BazelConversionConfigEntry
19type BazelConversionConfigEntry int
20
21const (
22 // iota + 1 ensures that the int value is not 0 when used in the Bp2buildAllowlist map,
23 // which can also mean that the key doesn't exist in a lookup.
24
25 // all modules in this package and subpackages default to bp2build_available: true.
26 // allows modules to opt-out.
27 Bp2BuildDefaultTrueRecursively BazelConversionConfigEntry = iota + 1
28
29 // all modules in this package (not recursively) default to bp2build_available: true.
30 // allows modules to opt-out.
31 Bp2BuildDefaultTrue
32
33 // all modules in this package (not recursively) default to bp2build_available: false.
34 // allows modules to opt-in.
35 Bp2BuildDefaultFalse
MarkDacek756b2962022-10-13 17:50:17 +000036
37 // all modules in this package and subpackages default to bp2build_available: false.
38 // allows modules to opt-in.
39 Bp2BuildDefaultFalseRecursively
Jeongik Chae114e602023-03-19 00:12:39 +090040
Jeongik Chab745e2e2023-04-11 14:28:43 +090041 // Modules with build time of more than half a minute should have high priority.
42 DEFAULT_PRIORITIZED_WEIGHT = 1000
43 // Modules with build time of more than a few minute should have higher priority.
44 HIGH_PRIORITIZED_WEIGHT = 10 * DEFAULT_PRIORITIZED_WEIGHT
45 // Modules with inputs greater than the threshold should have high priority.
46 // Adjust this threshold if there are lots of wrong predictions.
47 INPUT_SIZE_THRESHOLD = 50
Sam Delmerico24c56032022-03-28 19:53:03 +000048)
49
50var (
51 Bp2buildDefaultConfig = Bp2BuildConfig{
Sasha Smundak8bea2672022-08-04 13:31:14 -070052 "art": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040053 "art/libartbase": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux3d516cd2022-09-07 14:24:34 +000054 "art/libartpalette": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040055 "art/libdexfile": Bp2BuildDefaultTrueRecursively,
56 "art/libnativebridge": Bp2BuildDefaultTrueRecursively,
57 "art/runtime": Bp2BuildDefaultTrueRecursively,
58 "art/tools": Bp2BuildDefaultTrue,
59 "bionic": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux77488af2022-11-07 16:53:19 +000060 "bootable/recovery/applypatch": Bp2BuildDefaultTrue,
Jingwen Chena0519422022-09-28 08:01:57 +000061 "bootable/recovery/minadbd": Bp2BuildDefaultTrue,
62 "bootable/recovery/minui": Bp2BuildDefaultTrue,
63 "bootable/recovery/recovery_utils": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040064 "bootable/recovery/tools/recovery_l10n": Bp2BuildDefaultTrue,
65
Cole Faust324a92e2022-08-23 15:29:05 -070066 "build/bazel": Bp2BuildDefaultTrueRecursively,
67 "build/make/target/product/security": Bp2BuildDefaultTrue,
Jingwen Chene12c0832023-08-25 09:00:16 +000068 "build/make/tools": Bp2BuildDefaultTrue,
Wei Li74e3e002023-04-26 12:15:55 -070069 "build/make/tools/protos": Bp2BuildDefaultTrue,
Wei Li7d8f6182022-10-11 14:38:16 -070070 "build/make/tools/releasetools": Bp2BuildDefaultTrue,
Wei Li74e3e002023-04-26 12:15:55 -070071 "build/make/tools/sbom": Bp2BuildDefaultTrue,
Cole Faust324a92e2022-08-23 15:29:05 -070072 "build/make/tools/signapk": Bp2BuildDefaultTrue,
73 "build/make/tools/zipalign": Bp2BuildDefaultTrueRecursively,
74 "build/soong": Bp2BuildDefaultTrue,
75 "build/soong/cc/libbuildversion": Bp2BuildDefaultTrue, // Skip tests subdir
76 "build/soong/cc/ndkstubgen": Bp2BuildDefaultTrue,
77 "build/soong/cc/symbolfile": Bp2BuildDefaultTrue,
Zi Wangaa516c52023-09-25 11:52:41 -070078 "build/soong/jar": Bp2BuildDefaultTrue,
Sasha Smundak8bea2672022-08-04 13:31:14 -070079 "build/soong/licenses": Bp2BuildDefaultTrue,
Cole Faust324a92e2022-08-23 15:29:05 -070080 "build/soong/linkerconfig": Bp2BuildDefaultTrueRecursively,
Zi Wangaa516c52023-09-25 11:52:41 -070081 "build/soong/response": Bp2BuildDefaultTrue,
Cole Faust324a92e2022-08-23 15:29:05 -070082 "build/soong/scripts": Bp2BuildDefaultTrueRecursively,
Zi Wangaa516c52023-09-25 11:52:41 -070083 "build/soong/third_party/zip": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040084
85 "cts/common/device-side/nativetesthelper/jni": Bp2BuildDefaultTrueRecursively,
Jingwen Chenb70c0962023-09-25 14:56:50 +000086 "cts/flags/cc_tests": Bp2BuildDefaultTrueRecursively,
87 "cts/libs/json": Bp2BuildDefaultTrueRecursively,
88 "cts/tests/tests/gesture": Bp2BuildDefaultTrueRecursively,
Jingwen Chen1ec77852022-11-07 14:36:12 +000089
90 "dalvik/tools/dexdeps": Bp2BuildDefaultTrueRecursively,
91
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040092 "development/apps/DevelopmentSettings": Bp2BuildDefaultTrue,
93 "development/apps/Fallback": Bp2BuildDefaultTrue,
94 "development/apps/WidgetPreview": Bp2BuildDefaultTrue,
Spandan Dasb3d5c482023-05-15 18:49:23 +000095 "development/python-packages/adb": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040096 "development/samples/BasicGLSurfaceView": Bp2BuildDefaultTrue,
97 "development/samples/BluetoothChat": Bp2BuildDefaultTrue,
98 "development/samples/BrokenKeyDerivation": Bp2BuildDefaultTrue,
99 "development/samples/Compass": Bp2BuildDefaultTrue,
100 "development/samples/ContactManager": Bp2BuildDefaultTrue,
101 "development/samples/FixedGridLayout": Bp2BuildDefaultTrue,
102 "development/samples/HelloEffects": Bp2BuildDefaultTrue,
103 "development/samples/Home": Bp2BuildDefaultTrue,
104 "development/samples/HoneycombGallery": Bp2BuildDefaultTrue,
105 "development/samples/JetBoy": Bp2BuildDefaultTrue,
106 "development/samples/KeyChainDemo": Bp2BuildDefaultTrue,
107 "development/samples/LceDemo": Bp2BuildDefaultTrue,
108 "development/samples/LunarLander": Bp2BuildDefaultTrue,
109 "development/samples/MultiResolution": Bp2BuildDefaultTrue,
110 "development/samples/MultiWindow": Bp2BuildDefaultTrue,
111 "development/samples/NotePad": Bp2BuildDefaultTrue,
112 "development/samples/Obb": Bp2BuildDefaultTrue,
113 "development/samples/RSSReader": Bp2BuildDefaultTrue,
114 "development/samples/ReceiveShareDemo": Bp2BuildDefaultTrue,
115 "development/samples/SearchableDictionary": Bp2BuildDefaultTrue,
116 "development/samples/SipDemo": Bp2BuildDefaultTrue,
117 "development/samples/SkeletonApp": Bp2BuildDefaultTrue,
118 "development/samples/Snake": Bp2BuildDefaultTrue,
119 "development/samples/SpellChecker/": Bp2BuildDefaultTrueRecursively,
120 "development/samples/ThemedNavBarKeyboard": Bp2BuildDefaultTrue,
121 "development/samples/ToyVpn": Bp2BuildDefaultTrue,
122 "development/samples/TtsEngine": Bp2BuildDefaultTrue,
123 "development/samples/USB/AdbTest": Bp2BuildDefaultTrue,
124 "development/samples/USB/MissileLauncher": Bp2BuildDefaultTrue,
125 "development/samples/VoiceRecognitionService": Bp2BuildDefaultTrue,
126 "development/samples/VoicemailProviderDemo": Bp2BuildDefaultTrue,
127 "development/samples/WiFiDirectDemo": Bp2BuildDefaultTrue,
128 "development/sdk": Bp2BuildDefaultTrueRecursively,
129
130 "external/aac": Bp2BuildDefaultTrueRecursively,
Spandan Das390a6d62023-08-01 22:50:46 +0000131 "external/abseil-cpp": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400132 "external/arm-optimized-routines": Bp2BuildDefaultTrueRecursively,
Sasha Smundak8bea2672022-08-04 13:31:14 -0700133 "external/auto": Bp2BuildDefaultTrue,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000134 "external/auto/android-annotation-stubs": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400135 "external/auto/common": Bp2BuildDefaultTrueRecursively,
136 "external/auto/service": Bp2BuildDefaultTrueRecursively,
Liz Kammerb70eae02023-09-07 11:23:52 -0400137 "external/auto/value": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400138 "external/boringssl": Bp2BuildDefaultTrueRecursively,
139 "external/bouncycastle": Bp2BuildDefaultTrue,
140 "external/brotli": Bp2BuildDefaultTrue,
Wei Li7d8f6182022-10-11 14:38:16 -0700141 "external/bsdiff": Bp2BuildDefaultTrueRecursively,
142 "external/bzip2": Bp2BuildDefaultTrueRecursively,
Alixe2667872023-04-24 14:57:32 +0000143 "external/clang/lib": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400144 "external/conscrypt": Bp2BuildDefaultTrue,
Jingwen Chen7501a1b2023-09-26 10:49:28 +0000145 "external/dexmaker": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400146 "external/e2fsprogs": Bp2BuildDefaultTrueRecursively,
147 "external/eigen": Bp2BuildDefaultTrueRecursively,
148 "external/erofs-utils": Bp2BuildDefaultTrueRecursively,
149 "external/error_prone": Bp2BuildDefaultTrueRecursively,
Usta Shresthad66f2ce2023-03-15 15:01:59 -0400150 "external/escapevelocity": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400151 "external/expat": Bp2BuildDefaultTrueRecursively,
152 "external/f2fs-tools": Bp2BuildDefaultTrue,
153 "external/flac": Bp2BuildDefaultTrueRecursively,
Liz Kammere848bb22023-06-29 09:21:50 -0400154 "external/flatbuffers": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400155 "external/fmtlib": Bp2BuildDefaultTrueRecursively,
Cole Faust17cd19c2023-06-08 12:26:42 -0700156 "external/fsverity-utils": Bp2BuildDefaultTrueRecursively,
Spandan Das2a8f9002023-08-16 17:49:25 +0000157 "external/gflags": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400158 "external/google-benchmark": Bp2BuildDefaultTrueRecursively,
159 "external/googletest": Bp2BuildDefaultTrueRecursively,
Liz Kammere848bb22023-06-29 09:21:50 -0400160 "external/guava": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400161 "external/gwp_asan": Bp2BuildDefaultTrueRecursively,
162 "external/hamcrest": Bp2BuildDefaultTrueRecursively,
163 "external/icu": Bp2BuildDefaultTrueRecursively,
164 "external/icu/android_icu4j": Bp2BuildDefaultFalse, // java rules incomplete
165 "external/icu/icu4j": Bp2BuildDefaultFalse, // java rules incomplete
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400166 "external/jacoco": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400167 "external/jarjar": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400168 "external/javaparser": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400169 "external/javapoet": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000170 "external/javassist": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400171 "external/jemalloc_new": Bp2BuildDefaultTrueRecursively,
172 "external/jsoncpp": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux0bffcb82023-02-03 10:15:47 -0500173 "external/jsr305": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux47773342023-01-11 16:27:34 -0500174 "external/jsr330": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400175 "external/junit": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux47773342023-01-11 16:27:34 -0500176 "external/kotlinc": Bp2BuildDefaultTrueRecursively,
Vinh Tran1b6a4612022-09-30 16:36:59 -0400177 "external/libaom": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400178 "external/libavc": Bp2BuildDefaultTrueRecursively,
179 "external/libcap": Bp2BuildDefaultTrueRecursively,
180 "external/libcxx": Bp2BuildDefaultTrueRecursively,
181 "external/libcxxabi": Bp2BuildDefaultTrueRecursively,
Wei Li7d8f6182022-10-11 14:38:16 -0700182 "external/libdivsufsort": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000183 "external/libdrm": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400184 "external/libevent": Bp2BuildDefaultTrueRecursively,
185 "external/libgav1": Bp2BuildDefaultTrueRecursively,
186 "external/libhevc": Bp2BuildDefaultTrueRecursively,
187 "external/libjpeg-turbo": Bp2BuildDefaultTrueRecursively,
188 "external/libmpeg2": Bp2BuildDefaultTrueRecursively,
189 "external/libpng": Bp2BuildDefaultTrueRecursively,
Liz Kammer33dddf52023-09-07 14:54:41 -0400190 "external/libphonenumber": Bp2BuildDefaultTrueRecursively,
Cole Faustc843b992022-08-02 18:06:50 -0700191 "external/libvpx": Bp2BuildDefaultTrueRecursively,
Cole Faust92e92e42022-08-26 16:12:42 -0700192 "external/libyuv": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400193 "external/lz4/lib": Bp2BuildDefaultTrue,
Wei Li7d8f6182022-10-11 14:38:16 -0700194 "external/lz4/programs": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400195 "external/lzma/C": Bp2BuildDefaultTrueRecursively,
196 "external/mdnsresponder": Bp2BuildDefaultTrueRecursively,
197 "external/minijail": Bp2BuildDefaultTrueRecursively,
Jingwen Chen7501a1b2023-09-26 10:49:28 +0000198 "external/mockito": Bp2BuildDefaultTrueRecursively,
Colin Cross20c89f12022-12-05 16:47:44 -0800199 "external/musl": Bp2BuildDefaultTrueRecursively,
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000200 "external/objenesis": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000201 "external/openscreen": Bp2BuildDefaultTrueRecursively,
Spandan Das6960ac12022-11-22 04:45:05 +0000202 "external/ow2-asm": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400203 "external/pcre": Bp2BuildDefaultTrueRecursively,
Zi Wang63fc0f62023-09-18 10:00:46 -0700204 "external/perfmark/api": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400205 "external/protobuf": Bp2BuildDefaultTrueRecursively,
Spandan Das390a6d62023-08-01 22:50:46 +0000206 "external/python/pyyaml/lib/yaml": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400207 "external/python/six": Bp2BuildDefaultTrueRecursively,
Spandan Das77ce1272023-08-02 04:52:25 +0000208 "external/python/jinja/src": Bp2BuildDefaultTrueRecursively,
209 "external/python/markupsafe/src": Bp2BuildDefaultTrueRecursively,
210 "external/python/setuptools": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400211 "external/rappor": Bp2BuildDefaultTrueRecursively,
212 "external/scudo": Bp2BuildDefaultTrueRecursively,
Cole Faust6cac8cb2023-06-15 15:01:30 -0700213 "external/selinux/checkpolicy": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400214 "external/selinux/libselinux": Bp2BuildDefaultTrueRecursively,
215 "external/selinux/libsepol": Bp2BuildDefaultTrueRecursively,
Cole Faustfe2ab362022-08-26 16:55:11 -0700216 "external/speex": Bp2BuildDefaultTrueRecursively,
Liz Kammerf0ab5462023-04-04 11:38:54 -0400217 "external/sqlite": Bp2BuildDefaultTrueRecursively,
Jingwen Chen263d4002023-03-29 07:15:10 +0000218 "external/tinyalsa": Bp2BuildDefaultTrueRecursively,
219 "external/tinyalsa_new": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400220 "external/toybox": Bp2BuildDefaultTrueRecursively,
Zi Wangaa516c52023-09-25 11:52:41 -0700221 "external/xz-java": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400222 "external/zlib": Bp2BuildDefaultTrueRecursively,
223 "external/zopfli": Bp2BuildDefaultTrueRecursively,
224 "external/zstd": Bp2BuildDefaultTrueRecursively,
225
Jingwen Chen1ec77852022-11-07 14:36:12 +0000226 "frameworks/av": Bp2BuildDefaultTrue,
Liz Kammerf0ab5462023-04-04 11:38:54 -0400227 "frameworks/av/media/audioaidlconversion": Bp2BuildDefaultTrueRecursively,
Vinh Tran1b6a4612022-09-30 16:36:59 -0400228 "frameworks/av/media/codec2/components/aom": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000229 "frameworks/av/media/codecs": Bp2BuildDefaultTrueRecursively,
Jingwen Chenb2f584b2022-08-17 10:31:21 +0000230 "frameworks/av/media/liberror": Bp2BuildDefaultTrueRecursively,
Liz Kammerf0ab5462023-04-04 11:38:54 -0400231 "frameworks/av/media/libmediahelper": Bp2BuildDefaultTrue,
Chris Parsons52b842a2022-12-19 11:45:23 -0500232 "frameworks/av/media/libshmem": Bp2BuildDefaultTrueRecursively,
Liz Kammere7a47122023-05-12 08:44:51 -0400233 "frameworks/av/media/module/codecs": Bp2BuildDefaultTrueRecursively,
234 "frameworks/av/media/module/foundation": Bp2BuildDefaultTrueRecursively,
Jingwen Chen8ebc6202022-09-14 11:48:21 +0000235 "frameworks/av/media/module/minijail": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000236 "frameworks/av/services/minijail": Bp2BuildDefaultTrueRecursively,
Liz Kammerb70eae02023-09-07 11:23:52 -0400237 "frameworks/base/apex/jobscheduler/service/jni": Bp2BuildDefaultTrueRecursively,
Vinh Tran92260512023-09-11 10:30:13 -0400238 "frameworks/base/core/java": Bp2BuildDefaultTrue,
Romain Jobredeaux9c06ef32023-08-21 18:05:29 -0400239 "frameworks/base/core/res": Bp2BuildDefaultTrueRecursively,
Liz Kammer09d831e2022-09-16 09:02:26 -0400240 "frameworks/base/libs/androidfw": Bp2BuildDefaultTrue,
Vinh Tran320aecf2023-04-28 11:21:25 -0400241 "frameworks/base/libs/services": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400242 "frameworks/base/media/tests/MediaDump": Bp2BuildDefaultTrue,
Liz Kammer06d442e2023-09-11 17:34:42 -0400243 "frameworks/base/mime": Bp2BuildDefaultTrueRecursively,
Romain Jobredeauxaa6e25d2022-08-10 10:12:59 -0400244 "frameworks/base/proto": Bp2BuildDefaultTrue,
Liz Kammere7a47122023-05-12 08:44:51 -0400245 "frameworks/base/services/tests/servicestests/aidl": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400246 "frameworks/base/startop/apps/test": Bp2BuildDefaultTrue,
247 "frameworks/base/tests/appwidgets/AppWidgetHostTest": Bp2BuildDefaultTrueRecursively,
Yu Liua06f8692023-08-31 16:30:07 -0700248 "frameworks/base/tools/aapt": Bp2BuildDefaultTrue,
Liz Kammer09d831e2022-09-16 09:02:26 -0400249 "frameworks/base/tools/aapt2": Bp2BuildDefaultTrue,
Alix9d562792023-03-02 17:12:30 +0000250 "frameworks/base/tools/codegen": Bp2BuildDefaultTrueRecursively,
Liz Kammerb70eae02023-09-07 11:23:52 -0400251 "frameworks/base/tools/locked_region_code_injection": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000252 "frameworks/base/tools/streaming_proto": Bp2BuildDefaultTrueRecursively,
Liz Kammer0db75202023-09-11 15:12:27 -0400253 "frameworks/hardware/interfaces": Bp2BuildDefaultTrue,
254 "frameworks/hardware/interfaces/displayservice": Bp2BuildDefaultTrueRecursively,
Vinh Tran9b09bc52023-02-21 09:56:25 -0500255 "frameworks/hardware/interfaces/stats/aidl": Bp2BuildDefaultTrue,
Liz Kammere7a47122023-05-12 08:44:51 -0400256 "frameworks/libs/modules-utils/build": Bp2BuildDefaultTrueRecursively,
Liz Kammerb70eae02023-09-07 11:23:52 -0400257 "frameworks/libs/modules-utils/java": Bp2BuildDefaultTrue,
Liz Kammere848bb22023-06-29 09:21:50 -0400258 "frameworks/native": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400259 "frameworks/native/libs/adbd_auth": Bp2BuildDefaultTrueRecursively,
260 "frameworks/native/libs/arect": Bp2BuildDefaultTrueRecursively,
Vinh Tran92260512023-09-11 10:30:13 -0400261 "frameworks/native/libs/binder": Bp2BuildDefaultTrue,
Vinh Tran220fb8b2022-10-04 12:04:17 -0400262 "frameworks/native/libs/gui": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400263 "frameworks/native/libs/math": Bp2BuildDefaultTrueRecursively,
264 "frameworks/native/libs/nativebase": Bp2BuildDefaultTrueRecursively,
Liz Kammerf0ab5462023-04-04 11:38:54 -0400265 "frameworks/native/libs/permission": Bp2BuildDefaultTrueRecursively,
Vinh Tran92260512023-09-11 10:30:13 -0400266 "frameworks/native/libs/ui": Bp2BuildDefaultTrue,
Vinh Tran220fb8b2022-10-04 12:04:17 -0400267 "frameworks/native/libs/vr": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400268 "frameworks/native/opengl/tests/gl2_cameraeye": Bp2BuildDefaultTrue,
269 "frameworks/native/opengl/tests/gl2_java": Bp2BuildDefaultTrue,
270 "frameworks/native/opengl/tests/testLatency": Bp2BuildDefaultTrue,
271 "frameworks/native/opengl/tests/testPauseResume": Bp2BuildDefaultTrue,
272 "frameworks/native/opengl/tests/testViewport": Bp2BuildDefaultTrue,
Jingwen Chena0519422022-09-28 08:01:57 +0000273 "frameworks/native/services/batteryservice": Bp2BuildDefaultTrue,
Alex Márquez Pérez Muñíz Díaz Púras Thaureauxb12ff592022-09-01 15:04:04 +0000274 "frameworks/proto_logging/stats": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400275
Liz Kammere76510b2023-03-20 17:30:51 -0400276 "hardware/interfaces": Bp2BuildDefaultTrue,
277 "hardware/interfaces/audio/aidl": Bp2BuildDefaultTrue,
278 "hardware/interfaces/audio/aidl/common": Bp2BuildDefaultTrue,
Jingwen Chen263d4002023-03-29 07:15:10 +0000279 "hardware/interfaces/audio/aidl/default": Bp2BuildDefaultTrue,
280 "hardware/interfaces/audio/aidl/sounddose": Bp2BuildDefaultTrue,
Spandan Das8fe96ce2023-08-18 17:10:23 +0000281 "hardware/interfaces/camera/metadata/aidl": Bp2BuildDefaultTrueRecursively,
Liz Kammere76510b2023-03-20 17:30:51 -0400282 "hardware/interfaces/common/aidl": Bp2BuildDefaultTrue,
283 "hardware/interfaces/common/fmq/aidl": Bp2BuildDefaultTrue,
284 "hardware/interfaces/common/support": Bp2BuildDefaultTrue,
285 "hardware/interfaces/configstore/1.0": Bp2BuildDefaultTrue,
286 "hardware/interfaces/configstore/1.1": Bp2BuildDefaultTrue,
287 "hardware/interfaces/configstore/utils": Bp2BuildDefaultTrue,
Chris Parsons2173b5f2023-09-25 19:01:40 +0000288 "hardware/interfaces/contexthub/aidl": Bp2BuildDefaultTrue,
Liz Kammere76510b2023-03-20 17:30:51 -0400289 "hardware/interfaces/graphics/allocator/2.0": Bp2BuildDefaultTrue,
290 "hardware/interfaces/graphics/allocator/3.0": Bp2BuildDefaultTrue,
291 "hardware/interfaces/graphics/allocator/4.0": Bp2BuildDefaultTrue,
292 "hardware/interfaces/graphics/allocator/aidl": Bp2BuildDefaultTrue,
293 "hardware/interfaces/graphics/bufferqueue/1.0": Bp2BuildDefaultTrue,
294 "hardware/interfaces/graphics/bufferqueue/2.0": Bp2BuildDefaultTrue,
295 "hardware/interfaces/graphics/common/1.0": Bp2BuildDefaultTrue,
296 "hardware/interfaces/graphics/common/1.1": Bp2BuildDefaultTrue,
297 "hardware/interfaces/graphics/common/1.2": Bp2BuildDefaultTrue,
298 "hardware/interfaces/graphics/common/aidl": Bp2BuildDefaultTrue,
299 "hardware/interfaces/graphics/mapper/2.0": Bp2BuildDefaultTrue,
300 "hardware/interfaces/graphics/mapper/2.1": Bp2BuildDefaultTrue,
301 "hardware/interfaces/graphics/mapper/3.0": Bp2BuildDefaultTrue,
302 "hardware/interfaces/graphics/mapper/4.0": Bp2BuildDefaultTrue,
303 "hardware/interfaces/health/1.0": Bp2BuildDefaultTrue,
304 "hardware/interfaces/health/1.0/default": Bp2BuildDefaultTrue,
305 "hardware/interfaces/health/2.0": Bp2BuildDefaultTrue,
306 "hardware/interfaces/health/2.0/default": Bp2BuildDefaultTrue,
307 "hardware/interfaces/health/2.0/utils": Bp2BuildDefaultTrueRecursively,
308 "hardware/interfaces/health/2.1": Bp2BuildDefaultTrue,
309 "hardware/interfaces/health/aidl": Bp2BuildDefaultTrue,
310 "hardware/interfaces/health/utils": Bp2BuildDefaultTrueRecursively,
Liz Kammer4fd2edb2023-09-08 08:56:46 -0400311 "hardware/interfaces/media": Bp2BuildDefaultTrueRecursively,
Liz Kammere76510b2023-03-20 17:30:51 -0400312 "hardware/interfaces/media/bufferpool/aidl/default/tests": Bp2BuildDefaultFalseRecursively,
Liz Kammer4fd2edb2023-09-08 08:56:46 -0400313 "hardware/interfaces/media/omx/1.0/vts": Bp2BuildDefaultFalseRecursively,
Liz Kammere76510b2023-03-20 17:30:51 -0400314 "hardware/interfaces/neuralnetworks": Bp2BuildDefaultTrueRecursively,
315 "hardware/interfaces/neuralnetworks/aidl/vts": Bp2BuildDefaultFalseRecursively,
316 "hardware/interfaces/neuralnetworks/1.0/vts": Bp2BuildDefaultFalseRecursively,
317 "hardware/interfaces/neuralnetworks/1.1/vts": Bp2BuildDefaultFalseRecursively,
318 "hardware/interfaces/neuralnetworks/1.2/vts": Bp2BuildDefaultFalseRecursively,
319 "hardware/interfaces/neuralnetworks/1.3/vts": Bp2BuildDefaultFalseRecursively,
320 "hardware/interfaces/neuralnetworks/1.4/vts": Bp2BuildDefaultFalseRecursively,
Liz Kammer0db75202023-09-11 15:12:27 -0400321 "hardware/interfaces/tests": Bp2BuildDefaultTrueRecursively,
322 "hardware/interfaces/tests/extension": Bp2BuildDefaultFalseRecursively, // missing deps
323 "hardware/interfaces/tests/msgq": Bp2BuildDefaultFalseRecursively, // missing deps
Liz Kammer1c921162022-08-17 16:58:32 -0400324
325 "libnativehelper": Bp2BuildDefaultTrueRecursively,
326
Spandan Dasef3fbfe2023-10-05 22:28:59 +0000327 "packages/apps/DevCamera": Bp2BuildDefaultTrue,
328 "packages/apps/HTMLViewer": Bp2BuildDefaultTrue,
329 "packages/apps/Protips": Bp2BuildDefaultTrue,
330 "packages/apps/SafetyRegulatoryInfo": Bp2BuildDefaultTrue,
331 "packages/apps/WallpaperPicker": Bp2BuildDefaultTrue,
332 "packages/modules/NeuralNetworks/driver/cache": Bp2BuildDefaultTrueRecursively,
333 "packages/modules/StatsD/lib/libstatssocket": Bp2BuildDefaultTrueRecursively,
334 "packages/modules/adb": Bp2BuildDefaultTrue,
335 "packages/modules/adb/apex": Bp2BuildDefaultTrue,
336 "packages/modules/adb/fastdeploy": Bp2BuildDefaultTrue,
337 "packages/modules/adb/crypto": Bp2BuildDefaultTrueRecursively,
338 "packages/modules/adb/libs": Bp2BuildDefaultTrueRecursively,
339 "packages/modules/adb/pairing_auth": Bp2BuildDefaultTrueRecursively,
340 "packages/modules/adb/pairing_connection": Bp2BuildDefaultTrueRecursively,
341 "packages/modules/adb/proto": Bp2BuildDefaultTrueRecursively,
342 "packages/modules/adb/tls": Bp2BuildDefaultTrueRecursively,
343 "packages/modules/Connectivity/bpf_progs": Bp2BuildDefaultTrueRecursively,
344 "packages/modules/Connectivity/service-t": Bp2BuildDefaultTrueRecursively,
345 "packages/modules/Connectivity/service/native": Bp2BuildDefaultTrueRecursively,
346 "packages/modules/Connectivity/staticlibs/native": Bp2BuildDefaultTrueRecursively,
347 "packages/modules/Connectivity/staticlibs/netd": Bp2BuildDefaultTrueRecursively,
348 "packages/modules/Connectivity/tests/unit/jni": Bp2BuildDefaultTrueRecursively,
349 "packages/modules/Gki/libkver": Bp2BuildDefaultTrue,
350 "packages/modules/NetworkStack/common/captiveportal": Bp2BuildDefaultTrue,
351 "packages/modules/NeuralNetworks/apex": Bp2BuildDefaultTrue,
352 "packages/modules/NeuralNetworks/apex/testing": Bp2BuildDefaultTrue,
353 "packages/providers/MediaProvider/tools/dialogs": Bp2BuildDefaultFalse, // TODO(b/242834374)
354 "packages/screensavers/Basic": Bp2BuildDefaultTrue,
355 "packages/services/Car/tests/SampleRearViewCamera": Bp2BuildDefaultFalse, // TODO(b/242834321)
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400356
Jingwen Chenb70c0962023-09-25 14:56:50 +0000357 "platform_testing/libraries/annotations": Bp2BuildDefaultTrueRecursively,
358 "platform_testing/libraries/flag-helpers/libflagtest": Bp2BuildDefaultTrueRecursively,
359 "platform_testing/tests/example": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux3d516cd2022-09-07 14:24:34 +0000360
Romain Jobredeauxaa6e25d2022-08-10 10:12:59 -0400361 "prebuilts/clang/host/linux-x86": Bp2BuildDefaultTrueRecursively,
362 "prebuilts/gradle-plugin": Bp2BuildDefaultTrueRecursively,
363 "prebuilts/runtime/mainline/platform/sdk": Bp2BuildDefaultTrueRecursively,
Liz Kammere1b39a52023-09-18 14:32:18 -0400364 "prebuilts/module_sdk": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux8242b432023-05-04 10:16:26 -0400365 "prebuilts/sdk": Bp2BuildDefaultTrue,
Romain Jobredeauxaa6e25d2022-08-10 10:12:59 -0400366 "prebuilts/sdk/current/androidx": Bp2BuildDefaultTrue,
367 "prebuilts/sdk/current/androidx-legacy": Bp2BuildDefaultTrue,
368 "prebuilts/sdk/current/extras/constraint-layout-x": Bp2BuildDefaultTrue,
369 "prebuilts/sdk/current/extras/material-design-x": Bp2BuildDefaultTrue,
370 "prebuilts/sdk/current/extras/app-toolkit": Bp2BuildDefaultTrue,
371 "prebuilts/sdk/current/support": Bp2BuildDefaultTrue,
372 "prebuilts/tools": Bp2BuildDefaultTrue,
373 "prebuilts/tools/common/m2": Bp2BuildDefaultTrue,
Romain Jobredeaux890d6ea2023-08-23 10:53:07 -0400374 "prebuilts/r8": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400375
Alixb4e09a02022-09-27 15:36:01 +0000376 "sdk/dumpeventlog": Bp2BuildDefaultTrue,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000377 "sdk/eventanalyzer": Bp2BuildDefaultTrue,
Alixb4e09a02022-09-27 15:36:01 +0000378
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000379 "system/apex": Bp2BuildDefaultFalse, // TODO(b/207466993): flaky failures
380 "system/apex/apexer": Bp2BuildDefaultTrue,
381 "system/apex/libs": Bp2BuildDefaultTrueRecursively,
Jingwen Chena1a17752023-06-15 11:06:34 +0000382 "system/apex/libs/libapexsupport": Bp2BuildDefaultFalseRecursively, // TODO(b/267572288): depends on rust
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000383 "system/apex/proto": Bp2BuildDefaultTrueRecursively,
384 "system/apex/tools": Bp2BuildDefaultTrueRecursively,
385 "system/core/debuggerd": Bp2BuildDefaultTrueRecursively,
386 "system/core/diagnose_usb": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000387 "system/core/healthd": Bp2BuildDefaultTrue,
388 "system/core/healthd/testdata": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000389 "system/core/libasyncio": Bp2BuildDefaultTrue,
390 "system/core/libcrypto_utils": Bp2BuildDefaultTrueRecursively,
391 "system/core/libcutils": Bp2BuildDefaultTrueRecursively,
392 "system/core/libpackagelistparser": Bp2BuildDefaultTrueRecursively,
393 "system/core/libprocessgroup": Bp2BuildDefaultTrue,
394 "system/core/libprocessgroup/cgrouprc": Bp2BuildDefaultTrue,
395 "system/core/libprocessgroup/cgrouprc_format": Bp2BuildDefaultTrue,
Cole Faust17cd19c2023-06-08 12:26:42 -0700396 "system/core/libsparse": Bp2BuildDefaultTrueRecursively,
Jingwen Chenc6f3c102023-09-26 01:59:12 +0000397 "system/core/libstats/expresslog": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000398 "system/core/libsuspend": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000399 "system/core/libsystem": Bp2BuildDefaultTrueRecursively,
Jingwen Chenf0616002022-09-01 14:28:55 +0000400 "system/core/libsysutils": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000401 "system/core/libutils": Bp2BuildDefaultTrueRecursively,
402 "system/core/libvndksupport": Bp2BuildDefaultTrueRecursively,
Wei Li7d8f6182022-10-11 14:38:16 -0700403 "system/core/mkbootfs": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000404 "system/core/property_service/libpropertyinfoparser": Bp2BuildDefaultTrueRecursively,
405 "system/core/property_service/libpropertyinfoserializer": Bp2BuildDefaultTrueRecursively,
Vinh Tran92260512023-09-11 10:30:13 -0400406 "system/core/trusty/libtrusty": Bp2BuildDefaultTrue,
Cole Faust17cd19c2023-06-08 12:26:42 -0700407 "system/extras/f2fs_utils": Bp2BuildDefaultTrueRecursively,
Yu Liuf27bb3b2022-10-03 14:15:01 -0700408 "system/extras/toolchain-extras": Bp2BuildDefaultTrue,
Cole Faust17cd19c2023-06-08 12:26:42 -0700409 "system/extras/verity": Bp2BuildDefaultTrueRecursively,
Chris Parsons52b842a2022-12-19 11:45:23 -0500410 "system/hardware/interfaces/media": Bp2BuildDefaultTrueRecursively,
Liz Kammer09d831e2022-09-16 09:02:26 -0400411 "system/incremental_delivery/incfs": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000412 "system/libartpalette": Bp2BuildDefaultTrueRecursively,
413 "system/libbase": Bp2BuildDefaultTrueRecursively,
414 "system/libfmq": Bp2BuildDefaultTrue,
Vinh Tran92260512023-09-11 10:30:13 -0400415 "system/libhidl": Bp2BuildDefaultTrue,
Liz Kammer1c921162022-08-17 16:58:32 -0400416 "system/libhidl/libhidlmemory": Bp2BuildDefaultTrue,
417 "system/libhidl/transport": Bp2BuildDefaultTrue,
418 "system/libhidl/transport/allocator/1.0": Bp2BuildDefaultTrue,
Yu Liudf4413a2022-07-23 21:24:30 -0700419 "system/libhidl/transport/base/1.0": Bp2BuildDefaultTrue,
420 "system/libhidl/transport/manager/1.0": Bp2BuildDefaultTrue,
421 "system/libhidl/transport/manager/1.1": Bp2BuildDefaultTrue,
422 "system/libhidl/transport/manager/1.2": Bp2BuildDefaultTrue,
Liz Kammer0db75202023-09-11 15:12:27 -0400423 "system/libhidl/transport/memory": Bp2BuildDefaultTrueRecursively,
Liz Kammer1c921162022-08-17 16:58:32 -0400424 "system/libhidl/transport/safe_union/1.0": Bp2BuildDefaultTrue,
425 "system/libhidl/transport/token/1.0": Bp2BuildDefaultTrue,
426 "system/libhidl/transport/token/1.0/utils": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000427 "system/libhwbinder": Bp2BuildDefaultTrueRecursively,
428 "system/libprocinfo": Bp2BuildDefaultTrue,
Jingwen Chen263d4002023-03-29 07:15:10 +0000429 "system/libvintf": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000430 "system/libziparchive": Bp2BuildDefaultTrueRecursively,
Jingwen Chenf0616002022-09-01 14:28:55 +0000431 "system/logging": Bp2BuildDefaultTrueRecursively,
Sasha Smundak8bea2672022-08-04 13:31:14 -0700432 "system/media": Bp2BuildDefaultTrue,
Jingwen Chen263d4002023-03-29 07:15:10 +0000433 "system/media/alsa_utils": Bp2BuildDefaultTrueRecursively,
Liz Kammer0db75202023-09-11 15:12:27 -0400434 "system/media/audio": Bp2BuildDefaultTrueRecursively,
Cole Faustfe2ab362022-08-26 16:55:11 -0700435 "system/media/audio_utils": Bp2BuildDefaultTrueRecursively,
Spandan Das8fe96ce2023-08-18 17:10:23 +0000436 "system/media/camera": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000437 "system/memory/libion": Bp2BuildDefaultTrueRecursively,
438 "system/memory/libmemunreachable": Bp2BuildDefaultTrueRecursively,
Cole Faust17cd19c2023-06-08 12:26:42 -0700439 "system/security/fsverity": Bp2BuildDefaultTrueRecursively,
Liz Kammer0db75202023-09-11 15:12:27 -0400440 "system/sepolicy/apex": Bp2BuildDefaultTrueRecursively,
Jingwen Chen537242c2022-08-24 11:53:27 +0000441 "system/testing/gtest_extras": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000442 "system/timezone/apex": Bp2BuildDefaultTrueRecursively,
443 "system/timezone/output_data": Bp2BuildDefaultTrueRecursively,
Jingwen Chen61342112023-04-11 08:49:01 +0000444 "system/timezone/testdata": Bp2BuildDefaultTrueRecursively,
445 "system/timezone/testing": Bp2BuildDefaultTrueRecursively,
Sam Delmerico8dfa46a2022-08-30 15:09:36 -0400446 "system/tools/aidl/build/tests_bp2build": Bp2BuildDefaultTrue,
Jingwen Chen263d4002023-03-29 07:15:10 +0000447 "system/tools/aidl/metadata": Bp2BuildDefaultTrue,
Liz Kammer0db75202023-09-11 15:12:27 -0400448 "system/tools/hidl": Bp2BuildDefaultTrueRecursively,
Wei Li7d8f6182022-10-11 14:38:16 -0700449 "system/tools/mkbootimg": Bp2BuildDefaultTrueRecursively,
Liz Kammer09d831e2022-09-16 09:02:26 -0400450 "system/tools/sysprop": Bp2BuildDefaultTrue,
Jingwen Chen263d4002023-03-29 07:15:10 +0000451 "system/tools/xsdc/utils": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000452 "system/unwinding/libunwindstack": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400453
Liz Kammer0db75202023-09-11 15:12:27 -0400454 "test/vts/vts_hal_hidl_target": Bp2BuildDefaultTrueRecursively,
455
Liz Kammerb70eae02023-09-07 11:23:52 -0400456 "tools/apifinder": Bp2BuildDefaultTrue,
457 "tools/apksig": Bp2BuildDefaultTrue,
Spandan Das1262f352023-09-19 17:48:00 +0000458 "tools/dexter/slicer": Bp2BuildDefaultTrueRecursively,
Liz Kammerb70eae02023-09-07 11:23:52 -0400459 "tools/external_updater": Bp2BuildDefaultTrueRecursively,
460 "tools/metalava": Bp2BuildDefaultTrueRecursively,
461 "tools/platform-compat/java/android/compat": Bp2BuildDefaultTrueRecursively,
462 "tools/platform-compat/java/androidprocessor": Bp2BuildDefaultTrueRecursively,
Jingwen Chen7501a1b2023-09-26 10:49:28 +0000463 "tools/tradefederation/core/util_apps": Bp2BuildDefaultTrueRecursively,
Liz Kammerb70eae02023-09-07 11:23:52 -0400464 "tools/tradefederation/prebuilts/filegroups": Bp2BuildDefaultTrueRecursively,
Sam Delmerico24c56032022-03-28 19:53:03 +0000465 }
466
467 Bp2buildKeepExistingBuildFile = map[string]bool{
468 // This is actually build/bazel/build.BAZEL symlinked to ./BUILD
469 ".":/*recursive = */ false,
470
Cole Faust324a92e2022-08-23 15:29:05 -0700471 "build/bazel":/* recursive = */ true,
Kevin Dagostino92f33d92022-11-02 20:29:07 +0000472 "build/make/core":/* recursive = */ false,
Sam Delmerico24c56032022-03-28 19:53:03 +0000473 "build/bazel_common_rules":/* recursive = */ true,
Cole Faust10b94de2023-03-31 17:38:33 -0700474 "build/make/target/product/security":/* recursive = */ false,
Sam Delmerico24c56032022-03-28 19:53:03 +0000475 // build/make/tools/signapk BUILD file is generated, so build/make/tools is not recursive.
476 "build/make/tools":/* recursive = */ false,
477 "build/pesto":/* recursive = */ true,
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000478 "build/soong":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000479
480 // external/bazelbuild-rules_android/... is needed by mixed builds, otherwise mixed builds analysis fails
481 // e.g. ERROR: Analysis of target '@soong_injection//mixed_builds:buildroot' failed
482 "external/bazelbuild-rules_android":/* recursive = */ true,
Vinh Tran79587fa2023-08-18 13:50:00 -0400483 "external/bazelbuild-rules_cc":/* recursive = */ true,
Romain Jobredeaux01e6b2c2023-07-19 15:27:13 -0400484 "external/bazelbuild-rules_java":/* recursive = */ true,
Sasha Smundak9d2f1742022-08-04 13:28:38 -0700485 "external/bazelbuild-rules_license":/* recursive = */ true,
Spandan Das4a5bc5c2023-06-26 03:44:04 +0000486 "external/bazelbuild-rules_go":/* recursive = */ true,
Vinh Tranf5e59812023-08-03 19:47:30 +0000487 "external/bazelbuild-rules_python":/* recursive = */ true,
Vinh Tranfe1ecfc2023-06-27 22:20:15 -0400488 "external/bazelbuild-rules_rust":/* recursive = */ true,
Romain Jobredeauxc9e585e2023-09-22 15:45:19 -0400489 "external/bazelbuild-rules_testing":/* recursive = */ true,
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400490 "external/bazelbuild-kotlin-rules":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000491 "external/bazel-skylib":/* recursive = */ true,
Cole Faustea602c52022-08-31 14:48:26 -0700492 "external/protobuf":/* recursive = */ false,
Cole Faustde12be32022-11-19 15:14:48 -0800493 "external/python/absl-py":/* recursive = */ true,
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000494
Trevor Radcliffe391a25d2023-03-22 20:22:27 +0000495 "external/compiler-rt/lib/cfi":/* recursive = */ false,
496
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000497 // this BUILD file is globbed by //external/icu/icu4c/source:icu4c_test_data's "data/**/*".
498 "external/icu/icu4c/source/data/unidata/norm2":/* recursive = */ false,
499
Romain Jobredeaux0bffcb82023-02-03 10:15:47 -0500500 // Building manually due to b/179889880: resource files cross package boundary
Sam Delmerico24c56032022-03-28 19:53:03 +0000501 "packages/apps/Music":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000502
Yu Liu56ccb1a2022-11-12 10:47:07 -0800503 "prebuilts/abi-dumps/platform":/* recursive = */ true,
504 "prebuilts/abi-dumps/ndk":/* recursive = */ true,
Romain Jobredeaux29197972022-05-30 22:02:31 -0400505 "prebuilts/bazel":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000506 "prebuilts/bundletool":/* recursive = */ true,
Cole Faustea602c52022-08-31 14:48:26 -0700507 "prebuilts/clang/host/linux-x86":/* recursive = */ false,
Yu Liu56ccb1a2022-11-12 10:47:07 -0800508 "prebuilts/clang-tools":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000509 "prebuilts/gcc":/* recursive = */ true,
Jingwen Chen23ca2d22022-05-19 09:53:56 +0000510 "prebuilts/build-tools":/* recursive = */ true,
Romain Jobredeaux3fe1edd2023-09-29 15:08:55 -0400511 "prebuilts/jdk/jdk8":/* recursive = */ true,
Romain Jobredeauxd4e1a152023-03-17 11:02:01 -0400512 "prebuilts/jdk/jdk17":/* recursive = */ true,
Cole Faust7071a052022-07-29 15:58:33 -0700513 "prebuilts/misc":/* recursive = */ false, // not recursive because we need bp2build converted build files in prebuilts/misc/common/asm
Sam Delmerico24c56032022-03-28 19:53:03 +0000514 "prebuilts/sdk":/* recursive = */ false,
Sam Delmerico24c56032022-03-28 19:53:03 +0000515 "prebuilts/sdk/tools":/* recursive = */ false,
516 "prebuilts/r8":/* recursive = */ false,
Kevin Dagostino3e2da942022-11-20 07:16:47 +0000517 "prebuilts/runtime":/* recursive = */ false,
Vinh Tranfe1ecfc2023-06-27 22:20:15 -0400518 "prebuilts/rust":/* recursive = */ true,
Kevin Dagostino92f33d92022-11-02 20:29:07 +0000519
Kevin Dagostino3e2da942022-11-20 07:16:47 +0000520 // not recursive due to conflicting workspace paths in tools/atest/bazel/rules
521 "tools/asuite/atest":/* recursive = */ false,
522 "tools/asuite/atest/bazel/reporter":/* recursive = */ true,
Yu Liu828c4062023-01-23 20:56:46 +0000523
524 // TODO(b/266459895): remove this and the placeholder BUILD file after re-enabling libunwindstack
525 "external/rust/crates/rustc-demangle-capi":/* recursive = */ false,
Chris Parsons8152a942023-06-06 16:17:50 +0000526
527 // Used for testing purposes only. Should not actually exist in the real source tree.
528 "testpkg/keep_build_file":/* recursive = */ false,
Sam Delmerico24c56032022-03-28 19:53:03 +0000529 }
530
531 Bp2buildModuleAlwaysConvertList = []string{
Vinh Tran3570ce32023-08-24 11:10:01 -0400532 // aconfig
533 "libonce_cell",
534 "libanyhow",
535 "libunicode_segmentation",
536 "libmemchr",
537 "libbitflags-1.3.2",
538 "libryu",
539 "libitoa",
540 "libos_str_bytes",
541 "libheck",
Vinh Tranc1a6cee2023-08-24 12:10:49 -0400542 "libclap_lex",
543 "libsyn",
544 "libquote",
545 "libunicode_ident",
546 "libproc_macro2",
547 "libthiserror_impl",
548 "libserde_derive",
549 "libclap_derive",
550 "libthiserror",
551 "libserde",
552 "libclap",
553 "libbytes",
554 "libprotobuf_support",
555 "libtinytemplate",
556 "libserde_json",
Vinh Tran9b846782023-08-24 12:55:12 -0400557 "libprotobuf",
Vinh Tran3570ce32023-08-24 11:10:01 -0400558
Vinh Tran85b177d2023-08-24 12:10:49 -0400559 "protoc-gen-rust",
560 "libprotobuf_codegen",
561 "libprotobuf_parse",
562 "libregex",
563 "libtempfile",
564 "libwhich",
565 "libregex_syntax",
566 "libfastrand",
567 "libeither",
568 "libaho_corasick",
569 "liblibc",
570 "libcfg_if",
571 "liblog_rust",
572 "libgetrandom",
573 "libremove_dir_all",
574 "libahash",
575 "libhashbrown",
576 "libindexmap",
577 "libaconfig_protos",
578 "libpaste",
579 "aconfig",
580
Liz Kammer877b8462023-08-04 16:38:22 -0400581 // ext
582 "tagsoup",
583
Liz Kammer877b8462023-08-04 16:38:22 -0400584 // framework-minus-apex
Liz Kammerb70eae02023-09-07 11:23:52 -0400585 "ImmutabilityAnnotationProcessor",
Liz Kammer877b8462023-08-04 16:38:22 -0400586 "debian.mime.types.minimized",
587 "framework-javastream-protos",
588 "libview-inspector-annotation-processor",
589
590 // services
591 "apache-commons-math",
592 "cbor-java",
593 "icu4j_calendar_astronomer",
Liz Kammer877b8462023-08-04 16:38:22 -0400594 "statslog-art-java-gen",
Liz Kammer877b8462023-08-04 16:38:22 -0400595
596 "AndroidCommonLint",
597 "ImmutabilityAnnotation",
598 "ImmutabilityAnnotationProcessorHostLibrary",
599
Liz Kammer09d831e2022-09-16 09:02:26 -0400600 "libidmap2_policies",
601 "libSurfaceFlingerProp",
Liz Kammere848bb22023-06-29 09:21:50 -0400602 "toolbox_input_labels",
603
Liz Kammerbe1315e2022-05-10 09:15:31 -0400604 // cc mainline modules
Liz Kammera7bea312023-05-04 09:51:56 -0400605
606 // com.android.media.swcodec
Vinh Tran2dbc7452022-09-29 10:49:07 -0400607 "com.android.media.swcodec",
Liz Kammer5068eae2022-05-11 17:24:29 -0400608 "com.android.media.swcodec-androidManifest",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400609 "com.android.media.swcodec-ld.config.txt",
Vinh Tran2dbc7452022-09-29 10:49:07 -0400610 "com.android.media.swcodec-mediaswcodec.32rc",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400611 "com.android.media.swcodec-mediaswcodec.rc",
Liz Kammer5068eae2022-05-11 17:24:29 -0400612 "com.android.media.swcodec.certificate",
613 "com.android.media.swcodec.key",
Liz Kammera7bea312023-05-04 09:51:56 -0400614 "test_com.android.media.swcodec",
615
616 // deps
617 "code_coverage.policy",
618 "code_coverage.policy.other",
619 "codec2_soft_exports",
Spandan Das8d6bf5e2023-05-19 00:18:49 +0000620 "compatibility_matrix_schema",
Vinh Tran3cb9ade2022-10-20 12:17:42 -0400621 "framework-connectivity-protos",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400622 "gemmlowp_headers",
623 "gl_headers",
Liz Kammer63367e12022-06-13 19:35:12 +0000624 "libandroid_runtime_lazy",
Liz Kammer5068eae2022-05-11 17:24:29 -0400625 "libandroid_runtime_vm_headers",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400626 "libaudioclient_aidl_conversion_util",
Liz Kammer5068eae2022-05-11 17:24:29 -0400627 "libbinder_headers_platform_shared",
Vinh Tran99fd6502022-09-09 18:36:24 -0400628 "libbinderthreadstateutils",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400629 "libbluetooth-types-header",
Liz Kammer63367e12022-06-13 19:35:12 +0000630 "libcodec2",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400631 "libcodec2_headers",
632 "libcodec2_internal",
633 "libdmabufheap",
Liz Kammer5068eae2022-05-11 17:24:29 -0400634 "libgsm",
Vinh Tran99fd6502022-09-09 18:36:24 -0400635 "libgrallocusage",
636 "libgralloctypes",
637 "libnativewindow",
Vinh Tranfd446d62022-09-21 17:30:20 -0400638 "libneuralnetworks",
Sam Delmerico646dcfa2023-04-07 14:38:32 -0400639 "libneuralnetworks_static",
Vinh Tran99fd6502022-09-09 18:36:24 -0400640 "libgraphicsenv",
Liz Kammer5068eae2022-05-11 17:24:29 -0400641 "libhardware_headers",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400642 "libnativeloader-headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400643 "libnativewindow_headers",
644 "libneuralnetworks_headers",
Vinh Tran583a07d2022-09-20 17:25:34 -0400645 "libneuralnetworks_packageinfo",
Liz Kammer5068eae2022-05-11 17:24:29 -0400646 "libopus",
647 "libprocpartition",
Liz Kammer63367e12022-06-13 19:35:12 +0000648 "libruy_static",
Cole Faust6b29f592022-08-09 09:50:56 -0700649 "libandroidio",
650 "libandroidio_srcs",
Liz Kammer5068eae2022-05-11 17:24:29 -0400651 "libserviceutils",
Liz Kammer63367e12022-06-13 19:35:12 +0000652 "libsurfaceflinger_headers",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400653 "libsync",
Liz Kammer5068eae2022-05-11 17:24:29 -0400654 "libtextclassifier_hash_headers",
655 "libtextclassifier_hash_static",
Liz Kammer63367e12022-06-13 19:35:12 +0000656 "libtflite_kernel_utils",
657 "libtinyxml2",
Liz Kammer5068eae2022-05-11 17:24:29 -0400658 "libvorbisidec",
659 "media_ndk_headers",
Liz Kammer63367e12022-06-13 19:35:12 +0000660 "media_plugin_headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400661 "mediaswcodec.policy",
662 "mediaswcodec.xml",
Vinh Tran99fd6502022-09-09 18:36:24 -0400663 "neuralnetworks_types",
Vinh Tran99fd6502022-09-09 18:36:24 -0400664 "libneuralnetworks_common",
Liz Kammer63367e12022-06-13 19:35:12 +0000665 "philox_random",
Liz Kammer5068eae2022-05-11 17:24:29 -0400666 "philox_random_headers",
667 "server_configurable_flags",
Vinh Tran3cb9ade2022-10-20 12:17:42 -0400668 "service-permission-streaming-proto-sources",
Vinh Tranf19b6582022-09-21 17:01:49 -0400669 "statslog_neuralnetworks.cpp",
670 "statslog_neuralnetworks.h",
Liz Kammer5068eae2022-05-11 17:24:29 -0400671 "tensorflow_headers",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400672
Vinh Tran99fd6502022-09-09 18:36:24 -0400673 "libstagefright_bufferpool@2.0",
674 "libstagefright_bufferpool@2.0.1",
Vinh Tranc169c542022-09-13 13:13:06 -0400675 "libSurfaceFlingerProp",
Vinh Tran99fd6502022-09-09 18:36:24 -0400676
Alex Márquez Pérez Muñíz Díaz Púras Thaureauxb12ff592022-09-01 15:04:04 +0000677 // prebuilts
678 "prebuilt_stats-log-api-gen",
679
Jingwen Chen9009dc22022-08-04 15:26:46 +0000680 // fastboot
Jingwen Chen9009dc22022-08-04 15:26:46 +0000681 "fastboot",
682 "libfastboot",
683 "liblp",
684 "libstorage_literals_headers",
685
Liz Kammerf0ab5462023-04-04 11:38:54 -0400686 "PluginCoreLib",
687 "dagger2",
688 "dagger2-android-annotation-stubs",
689 "dagger2-bootstrap-compiler",
690 "dagger2-producers",
691 "okio-lib",
692 "setupdesign-strings",
693
Sam Delmerico24c56032022-03-28 19:53:03 +0000694 //external/avb
695 "avbtool",
696 "libavb",
697 "avb_headers",
698
Alix5918d642022-06-27 20:57:44 +0000699 //external/libxml2
700 "xmllint",
701 "libxml2",
702
Sam Delmerico24c56032022-03-28 19:53:03 +0000703 //external/fec
704 "libfec_rs",
705
Sam Delmerico24c56032022-03-28 19:53:03 +0000706 //system/extras/ext4_utils
707 "libext4_utils",
Cole Faust01243362022-06-02 12:11:12 -0700708 "mke2fs_conf",
Cole Faust17cd19c2023-06-08 12:26:42 -0700709 "mkuserimg_mke2fs",
710 "blk_alloc_to_base_fs",
Sam Delmerico24c56032022-03-28 19:53:03 +0000711
712 //system/extras/libfec
713 "libfec",
714
715 //system/extras/squashfs_utils
716 "libsquashfs_utils",
717
Sam Delmerico24c56032022-03-28 19:53:03 +0000718 //packages/apps/Car/libs/car-ui-lib/car-ui-androidx
719 // genrule dependencies for java_imports
720 "car-ui-androidx-annotation-nodeps",
721 "car-ui-androidx-collection-nodeps",
722 "car-ui-androidx-core-common-nodeps",
723 "car-ui-androidx-lifecycle-common-nodeps",
724 "car-ui-androidx-constraintlayout-solver-nodeps",
Yu Liudf4413a2022-07-23 21:24:30 -0700725
Vinh Tran444154d2022-08-16 13:10:31 -0400726 //frameworks/native/libs/input
727 "inputconstants_aidl",
Vinh Tranc3873e82022-08-23 20:33:25 -0400728
729 // needed for aidl_interface's ndk backend
730 "libbinder_ndk",
Jingwen Chen537242c2022-08-24 11:53:27 +0000731
732 "libusb",
Jingwen Chenf0616002022-09-01 14:28:55 +0000733
Jingwen Chen2247aca2022-09-09 10:47:43 +0000734 //frameworks/native/cmds/cmd
735 "libcmd",
Jingwen Chenadc07fa2022-09-21 13:13:48 +0000736
Jihoon Kang37d6d452023-08-18 18:07:38 +0000737 //system/chre
738 "chre_api",
739
Jingwen Chenadc07fa2022-09-21 13:13:48 +0000740 //system/core/fs_mgr/libdm
741 "libdm",
742
743 //system/core/fs_mgr/libfiemap
744 "libfiemap_headers",
745 "libfiemap_passthrough_srcs",
746 "libfiemap_srcs",
747
748 //system/gsid
749 "libgsi",
750 "libgsi_headers",
751
752 //system/core/libkeyutils
753 "libkeyutils",
754
Jingwen Chenadc07fa2022-09-21 13:13:48 +0000755 //bootable/recovery/otautil
756 "libotautil",
757
758 //system/vold
759 "libvold_headers",
760
761 //system/extras/libfscrypt
762 "libfscrypt",
763
764 //system/core/fs_mgr
765 "libfstab",
766
767 //bootable/recovery/fuse_sideload
768 "libfusesideload",
769
770 //system/core/fs_mgr/libfs_avb
771 "libfs_avb",
772
773 //system/core/fs_mgr
774 "libfs_mgr",
Yu Liubf7c03e2022-09-22 12:12:26 -0700775
Wonsik Kima5362872023-08-30 11:31:52 -0700776 "libcodec2_aidl",
Yu Liubf7c03e2022-09-22 12:12:26 -0700777 "libcodec2_hidl@1.0",
778 "libcodec2_hidl@1.1",
779 "libcodec2_hidl@1.2",
780 "libcodec2_hidl_plugin_stub",
781 "libcodec2_hidl_plugin",
Yu Liu41a58a92023-07-24 23:31:48 +0000782 "libcodec2_hal_common",
Yu Liubf7c03e2022-09-22 12:12:26 -0700783 "libstagefright_bufferqueue_helper_novndk",
Yu Liubf7c03e2022-09-22 12:12:26 -0700784 "libGLESv2",
785 "libEGL",
786 "libcodec2_vndk",
787 "libnativeloader_lazy",
788 "libnativeloader",
789 "libEGL_getProcAddress",
790 "libEGL_blobCache",
Vinh Tran32a98a52022-09-23 13:08:34 -0400791
Yu Liu8c981532022-09-27 12:47:26 -0700792 "mediaswcodec",
793 "libmedia_headers",
794 "libmedia_codecserviceregistrant",
795 "libsfplugin_ccodec_utils",
796 "libcodec2_soft_aacenc",
797 "libcodec2_soft_amrnbdec",
798 "libcodec2_soft_amrnbenc",
799 "libcodec2_soft_amrwbdec",
800 "libcodec2_soft_amrwbenc",
801 "libcodec2_soft_hevcdec",
802 "libcodec2_soft_hevcenc",
803 "libcodec2_soft_g711alawdec",
804 "libcodec2_soft_g711mlawdec",
805 "libcodec2_soft_mpeg2dec",
806 "libcodec2_soft_h263dec",
807 "libcodec2_soft_h263enc",
808 "libcodec2_soft_mpeg4dec",
809 "libcodec2_soft_mpeg4enc",
810 "libcodec2_soft_mp3dec",
811 "libcodec2_soft_vorbisdec",
812 "libcodec2_soft_opusdec",
813 "libcodec2_soft_opusenc",
814 "libcodec2_soft_vp8dec",
815 "libcodec2_soft_vp9dec",
816 "libcodec2_soft_av1dec_gav1",
817 "libcodec2_soft_vp8enc",
818 "libcodec2_soft_vp9enc",
819 "libcodec2_soft_rawdec",
820 "libcodec2_soft_flacdec",
821 "libcodec2_soft_flacenc",
822 "libcodec2_soft_gsmdec",
823 "libcodec2_soft_avcdec",
824 "libcodec2_soft_avcenc",
825 "libcodec2_soft_aacdec",
826 "libcodec2_soft_common",
Alix8062f4d2022-11-14 21:38:07 +0000827
828 // kotlin srcs in java libs
Alix8062f4d2022-11-14 21:38:07 +0000829 "kotlinx_atomicfu",
Alix7c8eaeb2022-11-16 15:44:55 +0000830
831 // kotlin srcs in java binary
832 "AnalyzerKt",
833 "trebuchet-core",
Alix36795a72023-01-20 16:10:52 +0000834
835 // kotlin srcs in android_library
836 "renderscript_toolkit",
Romain Jobredeaux0bffcb82023-02-03 10:15:47 -0500837
838 //kotlin srcs in android_binary
839 "MusicKotlin",
Zi Wang75a38e72023-02-15 22:52:47 -0800840
Romain Jobredeaux2eef2e12023-02-24 12:07:08 -0500841 // java_library with prebuilt sdk_version
842 "android-common",
843
Zi Wang75a38e72023-02-15 22:52:47 -0800844 // checked in current.txt for merged_txts
845 "non-updatable-current.txt",
846 "non-updatable-system-current.txt",
847 "non-updatable-module-lib-current.txt",
848 "non-updatable-system-server-current.txt",
Zi Wangb31a8332023-03-06 15:21:35 -0800849
850 // for api_fingerprint.txt generation
851 "api_fingerprint",
Alixf848bf82023-03-06 19:43:55 +0000852
853 // allowlisting for kotlinx_coroutines
Liz Kammerf0ab5462023-04-04 11:38:54 -0400854 "annotations",
855 "kotlinx-coroutines-android-annotation-stubs",
856 "kotlinx-coroutines-core",
Alixf848bf82023-03-06 19:43:55 +0000857 "kotlinx_coroutines",
Romain Jobredeauxe7370ea2023-04-04 10:30:14 -0400858 "kotlinx_coroutines-device",
859 "kotlinx_coroutines-host",
Sam Delmerico9d71a842023-03-16 16:24:54 -0400860
861 // for building com.android.neuralnetworks
862 "libimapper_stablec",
863 "libimapper_providerutils",
Alixe5085eb2023-01-31 19:38:41 +0000864
865 // min_sdk_version in android_app
866 "CtsShimUpgrade",
Romain Jobredeauxaa6e25d2022-08-10 10:12:59 -0400867
Liz Kammerf0ab5462023-04-04 11:38:54 -0400868 "art_cmdlineparser_headers",
869
Romain Jobredeauxaa6e25d2022-08-10 10:12:59 -0400870 // Mainline Module Apps
871 "CaptivePortalLogin",
Romain Jobredeaux039fc062023-07-17 12:06:31 -0400872 "ModuleMetadata",
Sam Delmericobefbf052023-04-28 11:23:58 -0400873
874 "libstagefright_headers",
Spandan Dasebbea2a2023-05-10 02:05:43 +0000875
Romain Jobredeaux947dfa72023-06-12 15:40:35 -0400876 // Apps with JNI libs
877 "SimpleJNI",
878 "libsimplejni",
879
Spandan Dasebbea2a2023-05-10 02:05:43 +0000880 // aidl
881 "aidl",
882 "libaidl-common",
Alixb29a3cd2023-05-09 20:37:49 +0000883
Spandan Dasab5f1c52023-05-19 00:18:49 +0000884 // Used by xsd_config
885 "xsdc",
Yu Liu2c0b8902023-06-05 11:13:00 -0700886
887 // cc_test that can be run by b test
888 "binderRpcWireProtocolTest",
889 "binderUnitTest",
890 "cpu_features-bit_utils_test",
891 "liblp_test",
892 "android.hardware.audio.common.test.utility_tests",
893 "HalAudioStreamWorkerTest",
894 "libjavacore-unit-tests",
895 "NeuralNetworksTest_utils",
896 "NeuralNetworksTest_logtag",
897 "NeuralNetworksTest_operations",
898 "nanoapp_chqts_shared_tests",
899 "fakeservicemanager_test",
900 "tristate_test",
901 "binderUtilsHostTest",
902 "run_dex2oat_test",
903 "bluetooth-address-unit-tests",
Jihoon Kangc44be962023-06-06 16:35:29 +0000904
905 // for platform_compat_config
906 "process-compat-config",
Alixe2667872023-04-24 14:57:32 +0000907
908 // cc_* modules with rscript srcs
909 "rstest-latency",
910 "libRScpp_static",
911 "rs-headers",
912 "rs_script_api",
913 "libRSDispatch",
Spandan Das0766b4f2023-07-21 17:25:31 +0000914
915 // hal_unit_tests and deps
Spandan Das0766b4f2023-07-21 17:25:31 +0000916 "chre_flatbuffers",
917 "event_logger",
918 "hal_unit_tests",
yike1aaeea32023-07-26 22:19:09 +0000919
920 "merge_annotation_zips_test",
Alix289e9c62023-08-16 15:06:31 +0000921
922 // java_resources with multiple resource_dirs
923 "emma",
Spandan Das3d6ac192023-09-12 21:17:14 +0000924
925 // NDK STL
926 "ndk_libc++abi",
927 "ndk_libunwind",
928 "ndk_libc++_static",
929 "ndk_libc++_shared",
930 "ndk_system",
Jingwen Chene12c0832023-08-25 09:00:16 +0000931
932 // allowlist //prebuilts/common/misc/androidx-test/...
933 "androidx.test.runner",
934 "androidx.test.runner-nodeps",
935 "androidx.test.services.storage",
936 "androidx.test.services.storage-nodeps",
937 "androidx.test.monitor",
938 "androidx.test.monitor-nodeps",
939 "androidx.test.annotation",
940 "androidx.test.annotation-nodeps",
Spandan Das1262f352023-09-19 17:48:00 +0000941
942 // jni deps of an internal android_test (b/297405812)
Spandan Das1262f352023-09-19 17:48:00 +0000943 "libopenjdkjvmti_headers",
Zi Wang63fc0f62023-09-18 10:00:46 -0700944
945 // tradefed deps
Romain Jobredeaux3fe1edd2023-09-29 15:08:55 -0400946 "apache-commons-compress",
Zi Wang63fc0f62023-09-18 10:00:46 -0700947 "tradefed-protos",
948 "grpc-java",
949 "grpc-java-api",
950 "grpc-java-auth",
951 "grpc-java-context",
952 "grpc-java-core",
953 "grpc-java-core-inprocess",
954 "grpc-java-core-internal",
955 "grpc-java-core-util",
956 "grpc-java-protobuf",
957 "grpc-java-protobuf-lite",
958 "grpc-java-stub",
959 "grpc-java-annotation-stubs",
960 "grpc-java-annotation-stubs-srcjar",
961 "gen_annotations",
962 "opencensus-java-contrib-grpc-metrics",
963 "opencensus-java-api",
964 "gson",
965 "GsonBuildConfig.java",
966 "gson_version_generator",
Zi Wang4dbd0e82023-09-21 16:00:45 -0700967 "lab-resource-grpc",
Zi Wangaa516c52023-09-25 11:52:41 -0700968 "blueprint-deptools",
969 "protoc-gen-grpc-java-plugin",
970 "perfetto_trace-full",
971 "tf-remote-client",
972 "truth",
973 "tradefed-lite",
974 "tradefed-isolation-protos",
975 "snakeyaml_patched_src_files",
976 "asuite_proto_java",
977 "tradefed-service-grpc-lib",
978 "tradefed-invocation-grpc",
979 "tradefed-external-dependencies",
980 "tradefed-dynamic-sharding-grpc",
981 "tradefed-device-manager-grpc",
982 "statsd_internal_protos",
983 "snakeyaml",
984 "loganalysis",
985 "junit-params",
986 "grpc-java-testing",
987 "grpc-java-netty-shaded",
988 "aoa-helper",
989 "test-services.apk",
990 "test-composers",
991 "py3-stdlib-prebuilt-srcs",
992 "platformprotos",
993 "perfetto_metrics-full",
994 "test-services-normalized.apk",
Zi Wang22609332023-10-02 09:56:34 -0700995 "tradefed-common-util",
996 "tradefed-clearcut-client",
997 "tradefed-result-interfaces",
998 "tradefed-device-build-interfaces",
999 "tradefed-invocation-interfaces",
Zi Wangdbaf6a92023-10-03 09:58:34 -07001000 "tradefed-lib-core",
Spandan Dasef3fbfe2023-10-05 22:28:59 +00001001
1002 "libandroid_net_connectivity_com_android_net_module_util_jni",
1003 "libservice-connectivity",
Sam Delmerico24c56032022-03-28 19:53:03 +00001004 }
1005
1006 Bp2buildModuleTypeAlwaysConvertList = []string{
Liz Kammer01de3ac2023-09-18 13:39:06 -04001007 // go/keep-sorted start
Liz Kammer4fc71ff2023-09-18 09:11:18 -04001008 "aconfig_declarations",
1009 "aconfig_value_set",
1010 "aconfig_values",
Spandan Dasd58630f2022-09-08 01:04:22 +00001011 "aidl_interface_headers",
Zi Wangb2179e32023-01-31 15:53:30 -08001012 "bpf",
Yu Liu855cfc22023-09-14 15:10:03 -07001013 "cc_aconfig_library",
Liz Kammere0cbc982023-09-18 09:12:41 -04001014 "cc_prebuilt_library",
Liz Kammer86a407f2023-09-18 09:23:38 -04001015 "cc_prebuilt_library_headers",
Liz Kammere0cbc982023-09-18 09:12:41 -04001016 "cc_prebuilt_library_shared",
1017 "cc_prebuilt_library_static",
Zi Wang75a38e72023-02-15 22:52:47 -08001018 "combined_apis",
usta72c6c6c2023-08-30 17:18:01 -04001019 "droiddoc_exported_dir",
Yu Liuf2b94012023-09-19 15:09:10 -07001020 "java_aconfig_library",
Sam Delmerico24c56032022-03-28 19:53:03 +00001021 "java_import",
1022 "java_import_host",
Zi Wangb2179e32023-01-31 15:53:30 -08001023 "java_sdk_library",
Liz Kammer9a97a8f2023-09-18 13:36:41 -04001024 "java_sdk_library_import",
Liz Kammer4fc71ff2023-09-18 09:11:18 -04001025 "license",
1026 "linker_config",
Spandan Das319711b2023-09-19 19:04:41 +00001027 "ndk_headers",
Zi Wang4dbd0e82023-09-21 16:00:45 -07001028 "ndk_library",
Trevor Radcliffead3d1232022-09-01 16:25:10 +00001029 "sysprop_library",
Spandan Dasa7da3f02023-09-28 19:30:51 +00001030 "versioned_ndk_headers",
Spandan Das8d6bf5e2023-05-19 00:18:49 +00001031 "xsd_config",
Liz Kammer01de3ac2023-09-18 13:39:06 -04001032 // go/keep-sorted end
Sam Delmerico24c56032022-03-28 19:53:03 +00001033 }
1034
Jingwen Chen4a7bf602022-09-21 06:36:37 +00001035 // Add the names of modules that bp2build should never convert, if it is
1036 // in the package allowlist. An error will be thrown if a module must
1037 // not be here and in the alwaysConvert lists.
1038 //
1039 // For prebuilt modules (e.g. android_library_import), remember to add
1040 // the "prebuilt_" prefix to the name, so that it's differentiable from
1041 // the source versions within Soong's module graph.
Sam Delmerico24c56032022-03-28 19:53:03 +00001042 Bp2buildModuleDoNotConvertList = []string{
Vinh Tranbcb5f572023-08-24 11:10:01 -04001043 // rust modules that have cc deps
1044 "liblogger",
1045 "libbssl_ffi",
1046 "libbssl_ffi_nostd",
1047 "pull_rust",
1048 "libstatslog_rust",
1049 "libstatslog_rust_header",
1050 "libflatbuffers",
1051 "liblog_event_list",
1052 "libminijail_rust",
1053 "libminijail_sys",
1054 "libfsverity_rs",
1055 "libtombstoned_client_rust",
1056
Jason Wu4db4f812023-10-05 14:39:13 -04001057 "libhardware", //Depends on unconverted libapexsupport
1058
yike1aaeea32023-07-26 22:19:09 +00001059 // TODO(b/263326760): Failed already.
1060 "minijail_compiler_unittest",
1061 "minijail_parser_unittest",
1062
Vinh Tran220fb8b2022-10-04 12:04:17 -04001063 // Depends on unconverted libandroid, libgui
1064 "dvr_buffer_queue-test",
1065 "dvr_display-test",
1066 // Depends on unconverted libchrome
1067 "pdx_benchmarks",
1068 "buffer_hub_queue-test",
1069 "buffer_hub_queue_producer-test",
1070
Sam Delmerico24c56032022-03-28 19:53:03 +00001071 // cc bugs
Jingwen Chenf0616002022-09-01 14:28:55 +00001072
1073 // TODO(b/198619163) module has same name as source
Jingwen Chenf0616002022-09-01 14:28:55 +00001074 "logtagd.rc",
1075
Sam Delmerico24c56032022-03-28 19:53:03 +00001076 "libgtest_ndk_c++", "libgtest_main_ndk_c++", // TODO(b/201816222): Requires sdk_version support.
Jingwen Chen537242c2022-08-24 11:53:27 +00001077
1078 // TODO(b/202876379): has arch-variant static_executable
1079 "linkerconfig",
1080 "mdnsd",
1081 "libcutils_test_static",
1082 "KernelLibcutilsTest",
1083
Liz Kammerf0ab5462023-04-04 11:38:54 -04001084 "linker", // TODO(b/228316882): cc_binary uses link_crt
1085 "versioner", // TODO(b/228313961): depends on prebuilt shared library libclang-cpp_host as a shared library, which does not supply expected providers for a shared library
Liz Kammerf0ab5462023-04-04 11:38:54 -04001086
1087 // requires host tools for apexer
1088 "apexer_test", "apexer_test_host_tools", "host_apex_verifier",
Sam Delmerico24c56032022-03-28 19:53:03 +00001089
1090 // java bugs
Jihoon Kangb06d8a52023-08-22 17:13:26 +00001091 "libbase_ndk", // TODO(b/186826477): fails to link libctscamera2_jni for device (required for CtsCameraTestCases)
1092 "bouncycastle", // TODO(b/274474005): Need support for custom system_modules.
1093 "bouncycastle-test-lib", // TODO(b/274474005): Reverse dependency of bouncycastle
Sam Delmerico24c56032022-03-28 19:53:03 +00001094
Sam Delmerico24c56032022-03-28 19:53:03 +00001095 // genrule incompatibilities
1096 "brotli-fuzzer-corpus", // TODO(b/202015218): outputs are in location incompatible with bazel genrule handling.
1097 "platform_tools_properties", "build_tools_source_properties", // TODO(b/203369847): multiple genrules in the same package creating the same file
1098
1099 // aar support
Chris Parsons9f0e5522022-12-08 14:12:54 -05001100 "prebuilt_car-ui-androidx-core-common", // TODO(b/224773339), genrule dependency creates an .aar, not a .jar
Jingwen Chen4a7bf602022-09-21 06:36:37 +00001101 // ERROR: The dependencies for the following 1 jar(s) are not complete.
1102 // 1.bazel-out/android_target-fastbuild/bin/prebuilts/tools/common/m2/_aar/robolectric-monitor-1.0.2-alpha1/classes_and_libs_merged.jar
1103 "prebuilt_robolectric-monitor-1.0.2-alpha1",
Sam Delmerico24c56032022-03-28 19:53:03 +00001104
1105 // path property for filegroups
1106 "conscrypt", // TODO(b/210751803), we don't handle path property for filegroups
1107 "conscrypt-for-host", // TODO(b/210751803), we don't handle path property for filegroups
1108 "host-libprotobuf-java-full", // TODO(b/210751803), we don't handle path property for filegroups
Sam Delmerico24c56032022-03-28 19:53:03 +00001109 "libprotobuf-internal-python-srcs", // TODO(b/210751803), we don't handle path property for filegroups
Sam Delmerico24c56032022-03-28 19:53:03 +00001110
1111 // go deps:
Jingwen Chenf50817d2022-09-21 06:46:08 +00001112 "analyze_bcpf", // depends on bpmodify a blueprint_go_binary.
Cole Faustd82f0362023-04-12 17:32:19 -07001113 "analyze_bcpf_test", // depends on bpmodify a blueprint_go_binary.
Jingwen Chenf50817d2022-09-21 06:46:08 +00001114 "host_bionic_linker_asm", // depends on extract_linker, a go binary.
1115 "host_bionic_linker_script", // depends on extract_linker, a go binary.
Jingwen Chen4a7bf602022-09-21 06:36:37 +00001116
Sam Delmerico24c56032022-03-28 19:53:03 +00001117 // rust support
1118 "libtombstoned_client_rust_bridge_code", "libtombstoned_client_wrapper", // rust conversions are not supported
1119
1120 // unconverted deps
Liz Kammer0db75202023-09-11 15:12:27 -04001121 "CarHTMLViewer", // depends on unconverted modules android.car-stubs, car-ui-lib
1122 "adb", // depends on unconverted modules: AdbWinApi, libandroidfw, libopenscreen-discovery, libopenscreen-platform-impl, libusb, bin2c_fastdeployagent, AdbWinUsbApi
1123 "android_icu4j_srcgen", // depends on unconverted modules: currysrc
1124 "android_icu4j_srcgen_binary", // depends on unconverted modules: android_icu4j_srcgen, currysrc
1125 "apex_compression_test", // depends on unconverted modules: soong_zip, com.android.example.apex
1126 "apex_manifest_proto_java", // b/210751803, depends on libprotobuf-java-full
1127 "apexer_with_DCLA_preprocessing_test", // depends on unconverted modules: apexer_test_host_tools, com.android.example.apex
1128 "art-script", // depends on unconverted modules: dalvikvm, dex2oat
1129 "bin2c_fastdeployagent", // depends on unconverted modules: deployagent
1130 "com.android.runtime", // depends on unconverted modules: bionic-linker-config, linkerconfig
1131 "currysrc", // depends on unconverted modules: currysrc_org.eclipse, guavalib, jopt-simple-4.9
1132 "dex2oat-script", // depends on unconverted modules: dex2oat
1133 "generated_android_icu4j_resources", // depends on unconverted modules: android_icu4j_srcgen_binary
1134 "generated_android_icu4j_test_resources", // depends on unconverted modules: android_icu4j_srcgen_binary
1135 "hidl_system_api_test",
1136 "hidl_test_java",
Sam Delmerico24c56032022-03-28 19:53:03 +00001137 "host-libprotobuf-java-nano", // b/220869005, depends on libprotobuf-java-nano
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -04001138 "jacoco-stubs", // b/245767077, depends on droidstubs
Liz Kammer6a824f62022-08-09 13:23:01 -04001139 "libapexutil", // depends on unconverted modules: apex-info-list-tinyxml
Sam Delmerico24c56032022-03-28 19:53:03 +00001140 "libart", // depends on unconverted modules: apex-info-list-tinyxml, libtinyxml2, libnativeloader-headers, heapprofd_client_api, art_operator_srcs, libcpu_features, libodrstatslog, libelffile, art_cmdlineparser_headers, cpp-define-generator-definitions, libdexfile, libnativebridge, libnativeloader, libsigchain, libartbase, libprofile, cpp-define-generator-asm-support
Liz Kammerf673c2e2023-09-11 15:06:21 -04001141 "libart-runtime", // depends on unconverted modules: apex-info-list-tinyxml, libtinyxml2, libnativeloader-headers, heapprofd_client_api, art_operator_srcs, libcpu_features, libodrstatslog, libelffile, art_cmdlineparser_headers, cpp-define-generator-definitions, libdexfile, libnativebridge, libnativeloader, libsigchain, libartbase, libprofile, cpp-define-generator-asm-support
1142 "libart-runtime-for-test", // depends on unconverted modules: apex-info-list-tinyxml, libtinyxml2, libnativeloader-headers, heapprofd_client_api, art_operator_srcs, libcpu_features, libodrstatslog, libelffile, art_cmdlineparser_headers, cpp-define-generator-definitions, libdexfile, libnativebridge, libnativeloader, libsigchain, libartbase, libprofile, cpp-define-generator-asm-support
Sam Delmerico24c56032022-03-28 19:53:03 +00001143 "libart-runtime-gtest", // depends on unconverted modules: libgtest_isolated, libart-compiler, libdexfile, libprofile, libartbase, libartbase-art-gtest
1144 "libart_headers", // depends on unconverted modules: art_libartbase_headers
Liz Kammer3d13adc2022-08-09 09:26:54 -04001145 "libartbase-art-gtest", // depends on unconverted modules: libgtest_isolated, libart, libart-compiler, libdexfile, libprofile
1146 "libartbased-art-gtest", // depends on unconverted modules: libgtest_isolated, libartd, libartd-compiler, libdexfiled, libprofiled
Sam Delmerico24c56032022-03-28 19:53:03 +00001147 "libartd", // depends on unconverted modules: art_operator_srcs, libcpu_features, libodrstatslog, libelffiled, art_cmdlineparser_headers, cpp-define-generator-definitions, libdexfiled, libnativebridge, libnativeloader, libsigchain, libartbased, libprofiled, cpp-define-generator-asm-support, apex-info-list-tinyxml, libtinyxml2, libnativeloader-headers, heapprofd_client_api
Chris Parsonsc149e812023-07-26 18:51:33 +00001148 "libartd-runtime", // depends on unconverted modules: art_operator_srcs, libcpu_features, libodrstatslog, libelffiled, art_cmdlineparser_headers, cpp-define-generator-definitions, libdexfiled, libnativebridge, libnativeloader, libsigchain, libartbased, libprofiled, cpp-define-generator-asm-support, apex-info-list-tinyxml, libtinyxml2, libnativeloader-headers, heapprofd_client_api
Sam Delmerico24c56032022-03-28 19:53:03 +00001149 "libartd-runtime-gtest", // depends on unconverted modules: libgtest_isolated, libartd-compiler, libdexfiled, libprofiled, libartbased, libartbased-art-gtest
Zi Wang0a8a1292022-08-30 06:27:01 +00001150 "libdebuggerd", // depends on unconverted module: libdexfile
Sam Delmerico24c56032022-03-28 19:53:03 +00001151 "libdebuggerd_handler", // depends on unconverted module libdebuggerd_handler_core
1152 "libdebuggerd_handler_core", "libdebuggerd_handler_fallback", // depends on unconverted module libdebuggerd
Sam Delmerico24c56032022-03-28 19:53:03 +00001153 "libdexfiled", // depends on unconverted modules: dexfile_operator_srcs, libartbased, libartpalette
Sam Delmerico24c56032022-03-28 19:53:03 +00001154 "libgmock_main_ndk", // depends on unconverted modules: libgtest_ndk_c++
1155 "libgmock_ndk", // depends on unconverted modules: libgtest_ndk_c++
1156 "libnativehelper_lazy_mts_jni", "libnativehelper_mts_jni", // depends on unconverted modules: libnativetesthelper_jni, libgmock_ndk
1157 "libnativetesthelper_jni", // depends on unconverted modules: libgtest_ndk_c++
Liz Kammer33dddf52023-09-07 14:54:41 -04001158 "libphonenumber_test", // depends on android.test.mock
Vinh Tranc3873e82022-08-23 20:33:25 -04001159 "libstatslog", // depends on unconverted modules: libstatspull, statsd-aidl-ndk
Sam Delmerico24c56032022-03-28 19:53:03 +00001160 "libstatslog_art", // depends on unconverted modules: statslog_art.cpp, statslog_art.h
1161 "linker_reloc_bench_main", // depends on unconverted modules: liblinker_reloc_bench_*
Sam Delmerico847178f2022-12-15 09:36:35 -05001162 "malloc-rss-benchmark", // depends on unconverted modules: libmeminfo
Sam Delmerico24c56032022-03-28 19:53:03 +00001163 "pbtombstone", "crash_dump", // depends on libdebuggerd, libunwindstack
Cole Faustd82f0362023-04-12 17:32:19 -07001164 "releasetools_test", // depends on unconverted modules: com.android.apex.compressed.v1
Vinh Tranf19b6582022-09-21 17:01:49 -04001165 "robolectric-sqlite4java-0.282", // depends on unconverted modules: robolectric-sqlite4java-import, robolectric-sqlite4java-native
1166 "static_crasher", // depends on unconverted modules: libdebuggerd_handler
1167 "test_fips", // depends on unconverted modules: adb
1168 "timezone-host", // depends on unconverted modules: art.module.api.annotations
Alex Márquez Pérez Muñíz Díaz Púras Thaureauxbff2e882022-04-20 18:44:54 +00001169
Liz Kammer09d831e2022-09-16 09:02:26 -04001170 // aidl files not created
1171 "overlayable_policy_aidl_interface",
1172
Jingwen Chen4a7bf602022-09-21 06:36:37 +00001173 //prebuilts/tools/common/m2
1174 // depends on //external/okio:okio-lib, which uses kotlin
1175 "wire-runtime",
1176
Jingwen Chena0519422022-09-28 08:01:57 +00001177 // depends on adbd_system_api_recovery, which is a unconverted `phony` module type
1178 "minadbd",
1179
1180 // depends on android.hardware.health-V2.0-java
1181 "android.hardware.health-translate-java",
1182
Jingwen Chen263d4002023-03-29 07:15:10 +00001183 //system/libvintf
1184 // depends on apex-info-list-tinyxml, unconverted xsd_config Soong module type.
Jingwen Chen263d4002023-03-29 07:15:10 +00001185 "libassemblevintf",
1186 "assemble_vintf",
Jingwen Chen263d4002023-03-29 07:15:10 +00001187 "checkvintf",
1188
1189 // depends on audio_policy_configuration_aidl_default, xsd_config module.
1190 "libaudioserviceexampleimpl",
1191 "android.hardware.audio.service-aidl.example",
1192
1193 // depends on //system/tools/aidl/build:aidl_metadata_json, which is an aidl_interfaces_metadata custom Soong type.
1194 "aidl_metadata_in_cpp",
1195 "libaidlmetadata",
Jingwen Chen29c45612023-03-30 05:17:01 +00001196 "libaidlmetadata_test",
Jingwen Chen263d4002023-03-29 07:15:10 +00001197
1198 // depends on //system/tools/hidl/build:hidl_metadata_json, which is an hidl_interfaces_metadata custom Soong type.
1199 "hidl_metadata_in_cpp",
1200 "libhidlmetadata",
Jingwen Chen29c45612023-03-30 05:17:01 +00001201 "hidl_metadata_test",
Jingwen Chen263d4002023-03-29 07:15:10 +00001202
Jingwen Chen537242c2022-08-24 11:53:27 +00001203 // cc_test related.
Jingwen Chenb5edbf92023-03-20 13:17:49 +00001204 // b/274164834 "Could not open Configuration file test.cfg"
1205 "svcenc", "svcdec",
1206
Jingwen Chen537242c2022-08-24 11:53:27 +00001207 // Failing host cc_tests
Jingwen Chen537242c2022-08-24 11:53:27 +00001208 "gtest_isolated_tests",
1209 "libunwindstack_unit_test",
Jingwen Chen537242c2022-08-24 11:53:27 +00001210 "power_tests", // failing test on server, but not on host
1211
1212 // reflect: call of reflect.Value.NumField on interface Value
1213 // affects all cc_tests that depend on art_defaults
1214 "libnativebridge-tests",
1215 "libnativeloader_test",
1216 "art_libnativebridge_cts_tests",
1217 "art_standalone_libdexfile_external_tests",
1218 "art_standalone_libdexfile_support_tests",
1219 "libnativebridge-lazy-tests",
1220 "libnativebridge-test-case",
1221 "libnativebridge2-test-case",
1222 "libnativebridge3-test-case",
1223 "libnativebridge6-test-case",
1224 "libnativebridge6prezygotefork",
1225
Yu Liu9cb66d02023-07-21 17:23:35 -07001226 "libandroidfw_tests", // failing due to data path issues
Liz Kammer09d831e2022-09-16 09:02:26 -04001227
Jingwen Chena485d092023-04-20 12:34:08 +00001228 // error: overriding commands for target
1229 // `out/host/linux-x86/nativetest64/gmock_tests/gmock_tests__cc_runner_test',
1230 // previously defined at out/soong/installs-aosp_arm.mk:64919`
1231 "gmock_tests",
1232
Jingwen Chen537242c2022-08-24 11:53:27 +00001233 // cc_test with unconverted deps, or are device-only (and not verified to pass yet)
1234 "AMRWBEncTest",
Sam Delmericobefbf052023-04-28 11:23:58 -04001235 "AmrnbDecoderTest", // depends on unconverted modules: libaudioutils, libsndfile
1236 "AmrnbEncoderTest", // depends on unconverted modules: libaudioutils, libsndfile
1237 "AmrwbDecoderTest", // depends on unconverted modules: libsndfile, libaudioutils
1238 "AmrwbEncoderTest", // depends on unconverted modules: libaudioutils, libsndfile
1239 "Mp3DecoderTest", // depends on unconverted modules: libsndfile, libaudioutils
Jingwen Chen537242c2022-08-24 11:53:27 +00001240 "avcdec",
1241 "avcenc",
1242 "bionic-benchmarks-tests",
1243 "bionic-fortify-runtime-asan-test",
1244 "bionic-stress-tests",
1245 "bionic-unit-tests",
1246 "bionic-unit-tests-glibc",
1247 "bionic-unit-tests-static",
1248 "boringssl_crypto_test",
1249 "boringssl_ssl_test",
Yu Liu1d03d172023-07-19 21:33:33 +00001250 "boringssl_test_support", //b/244431896
Jingwen Chen537242c2022-08-24 11:53:27 +00001251 "cfi_test_helper",
1252 "cfi_test_helper2",
1253 "cintltst32",
1254 "cintltst64",
1255 "compare",
1256 "cpuid",
1257 "debuggerd_test", // depends on unconverted modules: libdebuggerd
1258 "elftls_dlopen_ie_error_helper",
1259 "exec_linker_helper",
1260 "fastdeploy_test", // depends on unconverted modules: AdbWinApi, libadb_host, libandroidfw, libfastdeploy_host, libopenscreen-discovery, libopenscreen-platform-impl, libusb
1261 "fdtrack_test",
1262 "google-benchmark-test",
1263 "googletest-param-test-test_ndk", // depends on unconverted modules: libgtest_ndk_c++
1264 "gtest-typed-test_test",
1265 "gtest-typed-test_test_ndk", // depends on unconverted modules: libgtest_ndk_c++, libgtest_main_ndk_c++
1266 "gtest_ndk_tests", // depends on unconverted modules: libgtest_ndk_c++, libgtest_main_ndk_c++
1267 "gtest_ndk_tests_no_main", // depends on unconverted modules: libgtest_ndk_c++
1268 "gtest_prod_test_ndk", // depends on unconverted modules: libgtest_ndk_c++, libgtest_main_ndk_c++
1269 "gtest_tests",
1270 "gtest_tests_no_main",
1271 "gwp_asan_unittest",
1272 "half_test",
1273 "hashcombine_test",
1274 "hevcdec",
1275 "hevcenc",
1276 "hwbinderThroughputTest", // depends on unconverted modules: android.hardware.tests.libhwbinder@1.0-impl.test, android.hardware.tests.libhwbinder@1.0
1277 "i444tonv12_eg",
1278 "icu4c_sample_break",
1279 "intltest32",
1280 "intltest64",
1281 "ion-unit-tests",
1282 "jemalloc5_integrationtests",
1283 "jemalloc5_unittests",
Yu Liucb916322023-08-10 10:58:01 -07001284 "jemalloc5_stresstests", // run by run_jemalloc_tests.sh and will be deleted after V
Jingwen Chen537242c2022-08-24 11:53:27 +00001285 "ld_config_test_helper",
1286 "ld_preload_test_helper",
1287 "libBionicCtsGtestMain", // depends on unconverted modules: libgtest_isolated
1288 "libBionicLoaderTests", // depends on unconverted modules: libmeminfo
1289 "libapexutil_tests", // depends on unconverted modules: apex-info-list-tinyxml, libapexutil
Jingwen Chen537242c2022-08-24 11:53:27 +00001290 "libcutils_sockets_test",
Jingwen Chen537242c2022-08-24 11:53:27 +00001291 "libhwbinder_latency",
Jingwen Chenf0616002022-09-01 14:28:55 +00001292 "liblog-host-test", // failing tests
Jingwen Chen537242c2022-08-24 11:53:27 +00001293 "libminijail_test",
1294 "libminijail_unittest_gtest",
1295 "libpackagelistparser_test",
1296 "libprotobuf_vendor_suffix_test",
1297 "libstagefright_amrnbdec_test", // depends on unconverted modules: libsndfile, libaudioutils
1298 "libstagefright_amrnbenc_test",
1299 "libstagefright_amrwbdec_test", // depends on unconverted modules: libsndfile, libaudioutils
1300 "libstagefright_m4vh263enc_test",
1301 "libstagefright_mp3dec_test", // depends on unconverted modules: libsndfile, libaudioutils
1302 "libstatssocket_test",
1303 "libvndksupport-tests",
1304 "libyuv_unittest",
1305 "linker-unit-tests",
1306 "malloc_debug_system_tests",
1307 "malloc_debug_unit_tests",
1308 "malloc_hooks_system_tests",
1309 "mat_test",
1310 "mathtest",
1311 "memunreachable_binder_test", // depends on unconverted modules: libbinder
1312 "memunreachable_test",
1313 "metadata_tests",
Jingwen Chen537242c2022-08-24 11:53:27 +00001314 "mpeg2dec",
1315 "mvcdec",
1316 "ns_hidden_child_helper",
1317 "pngtest",
1318 "preinit_getauxval_test_helper",
1319 "preinit_syscall_test_helper",
1320 "psnr",
1321 "quat_test",
1322 "rappor-tests", // depends on unconverted modules: jsr305, guava
1323 "scudo_unit_tests",
1324 "stats-log-api-gen-test", // depends on unconverted modules: libstats_proto_host
Jingwen Chen537242c2022-08-24 11:53:27 +00001325 "thread_exit_cb_helper",
1326 "tls_properties_helper",
1327 "ulp",
1328 "vec_test",
1329 "yuvconstants",
1330 "yuvconvert",
Jingwen Chen537242c2022-08-24 11:53:27 +00001331
1332 // cc_test_library
1333 "clang_diagnostic_tests",
1334 "exec_linker_helper_lib",
1335 "fortify_disabled_for_tidy",
1336 "ld_config_test_helper_lib1",
1337 "ld_config_test_helper_lib2",
1338 "ld_config_test_helper_lib3",
1339 "ld_preload_test_helper_lib1",
1340 "ld_preload_test_helper_lib2",
1341 "libBionicElfTlsLoaderTests",
1342 "libBionicElfTlsTests",
1343 "libBionicElfTlsTests",
1344 "libBionicFramePointerTests",
1345 "libBionicFramePointerTests",
1346 "libBionicStandardTests",
1347 "libBionicStandardTests",
1348 "libBionicTests",
1349 "libart-broken",
1350 "libatest_simple_zip",
1351 "libcfi-test",
1352 "libcfi-test-bad",
1353 "libcrash_test",
Liz Kammerf6275092023-04-11 11:06:07 -04001354 "libcrypto_fuzz_unsafe",
Jingwen Chen537242c2022-08-24 11:53:27 +00001355 "libdl_preempt_test_1",
1356 "libdl_preempt_test_2",
1357 "libdl_test_df_1_global",
1358 "libdlext_test",
1359 "libdlext_test_different_soname",
1360 "libdlext_test_fd",
1361 "libdlext_test_norelro",
1362 "libdlext_test_recursive",
1363 "libdlext_test_zip",
Vinh Tran220fb8b2022-10-04 12:04:17 -04001364 "libdvrcommon_test",
Jingwen Chen537242c2022-08-24 11:53:27 +00001365 "libfortify1-new-tests-clang",
1366 "libfortify1-new-tests-clang",
1367 "libfortify1-tests-clang",
1368 "libfortify1-tests-clang",
1369 "libfortify2-new-tests-clang",
1370 "libfortify2-new-tests-clang",
1371 "libfortify2-tests-clang",
1372 "libfortify2-tests-clang",
1373 "libgnu-hash-table-library",
1374 "libicutest_static",
1375 "liblinker_reloc_bench_000",
1376 "liblinker_reloc_bench_001",
1377 "liblinker_reloc_bench_002",
1378 "liblinker_reloc_bench_003",
1379 "liblinker_reloc_bench_004",
1380 "liblinker_reloc_bench_005",
1381 "liblinker_reloc_bench_006",
1382 "liblinker_reloc_bench_007",
1383 "liblinker_reloc_bench_008",
1384 "liblinker_reloc_bench_009",
1385 "liblinker_reloc_bench_010",
1386 "liblinker_reloc_bench_011",
1387 "liblinker_reloc_bench_012",
1388 "liblinker_reloc_bench_013",
1389 "liblinker_reloc_bench_014",
1390 "liblinker_reloc_bench_015",
1391 "liblinker_reloc_bench_016",
1392 "liblinker_reloc_bench_017",
1393 "liblinker_reloc_bench_018",
1394 "liblinker_reloc_bench_019",
1395 "liblinker_reloc_bench_020",
1396 "liblinker_reloc_bench_021",
1397 "liblinker_reloc_bench_022",
1398 "liblinker_reloc_bench_023",
1399 "liblinker_reloc_bench_024",
1400 "liblinker_reloc_bench_025",
1401 "liblinker_reloc_bench_026",
1402 "liblinker_reloc_bench_027",
1403 "liblinker_reloc_bench_028",
1404 "liblinker_reloc_bench_029",
1405 "liblinker_reloc_bench_030",
1406 "liblinker_reloc_bench_031",
1407 "liblinker_reloc_bench_032",
1408 "liblinker_reloc_bench_033",
1409 "liblinker_reloc_bench_034",
1410 "liblinker_reloc_bench_035",
1411 "liblinker_reloc_bench_036",
1412 "liblinker_reloc_bench_037",
1413 "liblinker_reloc_bench_038",
1414 "liblinker_reloc_bench_039",
1415 "liblinker_reloc_bench_040",
1416 "liblinker_reloc_bench_041",
1417 "liblinker_reloc_bench_042",
1418 "liblinker_reloc_bench_043",
1419 "liblinker_reloc_bench_044",
1420 "liblinker_reloc_bench_045",
1421 "liblinker_reloc_bench_046",
1422 "liblinker_reloc_bench_047",
1423 "liblinker_reloc_bench_048",
1424 "liblinker_reloc_bench_049",
1425 "liblinker_reloc_bench_050",
1426 "liblinker_reloc_bench_051",
1427 "liblinker_reloc_bench_052",
1428 "liblinker_reloc_bench_053",
1429 "liblinker_reloc_bench_054",
1430 "liblinker_reloc_bench_055",
1431 "liblinker_reloc_bench_056",
1432 "liblinker_reloc_bench_057",
1433 "liblinker_reloc_bench_058",
1434 "liblinker_reloc_bench_059",
1435 "liblinker_reloc_bench_060",
1436 "liblinker_reloc_bench_061",
1437 "liblinker_reloc_bench_062",
1438 "liblinker_reloc_bench_063",
1439 "liblinker_reloc_bench_064",
1440 "liblinker_reloc_bench_065",
1441 "liblinker_reloc_bench_066",
1442 "liblinker_reloc_bench_067",
1443 "liblinker_reloc_bench_068",
1444 "liblinker_reloc_bench_069",
1445 "liblinker_reloc_bench_070",
1446 "liblinker_reloc_bench_071",
1447 "liblinker_reloc_bench_072",
1448 "liblinker_reloc_bench_073",
1449 "liblinker_reloc_bench_074",
1450 "liblinker_reloc_bench_075",
1451 "liblinker_reloc_bench_076",
1452 "liblinker_reloc_bench_077",
1453 "liblinker_reloc_bench_078",
1454 "liblinker_reloc_bench_079",
1455 "liblinker_reloc_bench_080",
1456 "liblinker_reloc_bench_081",
1457 "liblinker_reloc_bench_082",
1458 "liblinker_reloc_bench_083",
1459 "liblinker_reloc_bench_084",
1460 "liblinker_reloc_bench_085",
1461 "liblinker_reloc_bench_086",
1462 "liblinker_reloc_bench_087",
1463 "liblinker_reloc_bench_088",
1464 "liblinker_reloc_bench_089",
1465 "liblinker_reloc_bench_090",
1466 "liblinker_reloc_bench_091",
1467 "liblinker_reloc_bench_092",
1468 "liblinker_reloc_bench_093",
1469 "liblinker_reloc_bench_094",
1470 "liblinker_reloc_bench_095",
1471 "liblinker_reloc_bench_096",
1472 "liblinker_reloc_bench_097",
1473 "liblinker_reloc_bench_098",
1474 "liblinker_reloc_bench_099",
1475 "liblinker_reloc_bench_100",
1476 "liblinker_reloc_bench_101",
1477 "liblinker_reloc_bench_102",
1478 "liblinker_reloc_bench_103",
1479 "liblinker_reloc_bench_104",
1480 "liblinker_reloc_bench_105",
1481 "liblinker_reloc_bench_106",
1482 "liblinker_reloc_bench_107",
1483 "liblinker_reloc_bench_108",
1484 "liblinker_reloc_bench_109",
1485 "liblinker_reloc_bench_110",
1486 "liblinker_reloc_bench_111",
1487 "liblinker_reloc_bench_112",
1488 "liblinker_reloc_bench_113",
1489 "liblinker_reloc_bench_114",
1490 "liblinker_reloc_bench_115",
1491 "liblinker_reloc_bench_116",
1492 "liblinker_reloc_bench_117",
1493 "liblinker_reloc_bench_118",
1494 "liblinker_reloc_bench_119",
1495 "liblinker_reloc_bench_120",
1496 "liblinker_reloc_bench_121",
1497 "liblinker_reloc_bench_122",
1498 "liblinker_reloc_bench_123",
1499 "liblinker_reloc_bench_124",
1500 "liblinker_reloc_bench_125",
1501 "liblinker_reloc_bench_126",
1502 "liblinker_reloc_bench_127",
1503 "liblinker_reloc_bench_128",
1504 "liblinker_reloc_bench_129",
1505 "liblinker_reloc_bench_130",
1506 "liblinker_reloc_bench_131",
1507 "liblinker_reloc_bench_132",
1508 "liblinker_reloc_bench_133",
1509 "liblinker_reloc_bench_134",
1510 "liblinker_reloc_bench_135",
1511 "liblinker_reloc_bench_136",
1512 "liblinker_reloc_bench_137",
1513 "liblinker_reloc_bench_138",
1514 "liblinker_reloc_bench_139",
1515 "liblinker_reloc_bench_140",
1516 "liblinker_reloc_bench_141",
1517 "liblinker_reloc_bench_142",
1518 "liblinker_reloc_bench_143",
1519 "liblinker_reloc_bench_144",
1520 "liblinker_reloc_bench_145",
1521 "liblinker_reloc_bench_146",
1522 "liblinker_reloc_bench_147",
1523 "liblinker_reloc_bench_148",
1524 "liblinker_reloc_bench_149",
1525 "liblinker_reloc_bench_150",
1526 "liblinker_reloc_bench_151",
1527 "liblinker_reloc_bench_152",
1528 "liblinker_reloc_bench_153",
1529 "liblinker_reloc_bench_154",
1530 "liblinker_reloc_bench_155",
1531 "liblinker_reloc_bench_156",
1532 "liblinker_reloc_bench_157",
1533 "liblinker_reloc_bench_158",
1534 "liblinker_reloc_bench_159",
1535 "liblinker_reloc_bench_160",
1536 "liblinker_reloc_bench_161",
1537 "liblinker_reloc_bench_162",
1538 "liblinker_reloc_bench_163",
1539 "liblinker_reloc_bench_164",
1540 "liblinker_reloc_bench_165",
1541 "liblinker_reloc_bench_166",
1542 "liblinker_reloc_bench_167",
1543 "liblinker_reloc_bench_168",
1544 "libns_hidden_child_app",
1545 "libns_hidden_child_global",
1546 "libns_hidden_child_internal",
1547 "libns_hidden_child_public",
1548 "libnstest_dlopened",
1549 "libnstest_ns_a_public1",
1550 "libnstest_ns_a_public1_internal",
1551 "libnstest_ns_b_public2",
1552 "libnstest_ns_b_public3",
1553 "libnstest_private",
1554 "libnstest_private_external",
1555 "libnstest_public",
1556 "libnstest_public_internal",
1557 "libnstest_root",
1558 "libnstest_root_not_isolated",
1559 "librelocations-ANDROID_REL",
1560 "librelocations-ANDROID_RELR",
1561 "librelocations-RELR",
1562 "librelocations-fat",
1563 "libsegment_gap_inner",
1564 "libsegment_gap_outer",
Liz Kammerf6275092023-04-11 11:06:07 -04001565 "libssl_fuzz_unsafe",
Jingwen Chen537242c2022-08-24 11:53:27 +00001566 "libstatssocket_private",
1567 "libsysv-hash-table-library",
1568 "libtest_atexit",
1569 "libtest_check_order_dlsym",
1570 "libtest_check_order_dlsym_1_left",
1571 "libtest_check_order_dlsym_2_right",
1572 "libtest_check_order_dlsym_3_c",
1573 "libtest_check_order_dlsym_a",
1574 "libtest_check_order_dlsym_b",
1575 "libtest_check_order_dlsym_d",
1576 "libtest_check_order_reloc_root",
1577 "libtest_check_order_reloc_root_1",
1578 "libtest_check_order_reloc_root_2",
1579 "libtest_check_order_reloc_siblings",
1580 "libtest_check_order_reloc_siblings_1",
1581 "libtest_check_order_reloc_siblings_2",
1582 "libtest_check_order_reloc_siblings_3",
1583 "libtest_check_order_reloc_siblings_a",
1584 "libtest_check_order_reloc_siblings_b",
1585 "libtest_check_order_reloc_siblings_c",
1586 "libtest_check_order_reloc_siblings_c_1",
1587 "libtest_check_order_reloc_siblings_c_2",
1588 "libtest_check_order_reloc_siblings_d",
1589 "libtest_check_order_reloc_siblings_e",
1590 "libtest_check_order_reloc_siblings_f",
1591 "libtest_check_rtld_next_from_library",
1592 "libtest_dlopen_df_1_global",
1593 "libtest_dlopen_from_ctor",
1594 "libtest_dlopen_from_ctor_main",
1595 "libtest_dlopen_weak_undefined_func",
1596 "libtest_dlsym_df_1_global",
1597 "libtest_dlsym_from_this",
1598 "libtest_dlsym_from_this_child",
1599 "libtest_dlsym_from_this_grandchild",
1600 "libtest_dlsym_weak_func",
1601 "libtest_dt_runpath_a",
1602 "libtest_dt_runpath_b",
1603 "libtest_dt_runpath_c",
1604 "libtest_dt_runpath_d",
1605 "libtest_dt_runpath_d_zip",
1606 "libtest_dt_runpath_x",
1607 "libtest_dt_runpath_y",
1608 "libtest_elftls_dynamic",
1609 "libtest_elftls_dynamic_filler_1",
1610 "libtest_elftls_dynamic_filler_2",
1611 "libtest_elftls_dynamic_filler_3",
1612 "libtest_elftls_shared_var",
1613 "libtest_elftls_shared_var_ie",
1614 "libtest_elftls_tprel",
1615 "libtest_empty",
1616 "libtest_ifunc",
1617 "libtest_ifunc_variable",
1618 "libtest_ifunc_variable_impl",
1619 "libtest_indirect_thread_local_dtor",
1620 "libtest_init_fini_order_child",
1621 "libtest_init_fini_order_grand_child",
1622 "libtest_init_fini_order_root",
1623 "libtest_init_fini_order_root2",
1624 "libtest_missing_symbol",
1625 "libtest_missing_symbol_child_private",
1626 "libtest_missing_symbol_child_public",
1627 "libtest_missing_symbol_root",
1628 "libtest_nodelete_1",
1629 "libtest_nodelete_2",
1630 "libtest_nodelete_dt_flags_1",
1631 "libtest_pthread_atfork",
1632 "libtest_relo_check_dt_needed_order",
1633 "libtest_relo_check_dt_needed_order_1",
1634 "libtest_relo_check_dt_needed_order_2",
1635 "libtest_simple",
1636 "libtest_thread_local_dtor",
1637 "libtest_thread_local_dtor2",
1638 "libtest_two_parents_child",
1639 "libtest_two_parents_parent1",
1640 "libtest_two_parents_parent2",
1641 "libtest_versioned_lib",
1642 "libtest_versioned_libv1",
1643 "libtest_versioned_libv2",
1644 "libtest_versioned_otherlib",
1645 "libtest_versioned_otherlib_empty",
1646 "libtest_versioned_uselibv1",
1647 "libtest_versioned_uselibv2",
1648 "libtest_versioned_uselibv2_other",
1649 "libtest_versioned_uselibv3_other",
1650 "libtest_with_dependency",
1651 "libtest_with_dependency_loop",
1652 "libtest_with_dependency_loop_a",
1653 "libtest_with_dependency_loop_b",
1654 "libtest_with_dependency_loop_b_tmp",
1655 "libtest_with_dependency_loop_c",
1656 "libtestshared",
Vinh Tran583a07d2022-09-20 17:25:34 -04001657
1658 // depends on unconverted libprotobuf-java-nano
1659 "dnsresolverprotosnano",
1660 "launcherprotosnano",
1661 "datastallprotosnano",
1662 "devicepolicyprotosnano",
Wei Li7d8f6182022-10-11 14:38:16 -07001663 "ota_metadata_proto_java",
1664 "merge_ota",
1665
1666 // releasetools
Wei Li7d8f6182022-10-11 14:38:16 -07001667 "verity_utils",
1668 "check_ota_package_signature",
1669 "check_target_files_vintf",
1670 "releasetools_check_target_files_vintf",
Wei Li7d8f6182022-10-11 14:38:16 -07001671 "ota_from_target_files",
1672 "releasetools_ota_from_target_files",
Wei Li7d8f6182022-10-11 14:38:16 -07001673 "add_img_to_target_files",
1674 "releasetools_add_img_to_target_files",
1675 "fsverity_metadata_generator",
1676 "sign_target_files_apks",
1677
1678 // depends on the support of yacc file
1679 "libapplypatch",
1680 "libapplypatch_modes",
1681 "applypatch",
Yu Liu6c999ef2022-10-19 16:41:10 +00001682
1683 // TODO(b/254476335): disable the following due to this bug
1684 "libapexinfo",
1685 "libapexinfo_tests",
Colin Cross20c89f12022-12-05 16:47:44 -08001686
1687 // uses glob in $(locations)
1688 "libc_musl_sysroot",
Kevin Dagostino2c3be412023-02-07 04:10:27 +00001689
1690 // TODO(b/266459895): depends on libunwindstack
1691 "libutils_test",
Romain Jobredeaux2eef2e12023-02-24 12:07:08 -05001692
Cole Faustd82f0362023-04-12 17:32:19 -07001693 // Has dependencies on other tools like ziptool, bp2build'd data properties don't work with these tests atm
1694 "ziparchive_tests_large",
1695 "mkbootimg_test",
1696 "certify_bootimg_test",
1697
1698 // Despite being _host module types, these require devices to run
1699 "logd_integration_test",
1700 "mobly-hello-world-test",
1701 "mobly-multidevice-test",
1702
Romain Jobredeaux2eef2e12023-02-24 12:07:08 -05001703 // TODO(b/274805756): Support core_platform and current java APIs
1704 "fake-framework",
1705
1706 // TODO(b/277616982): These modules depend on private java APIs, but maybe they don't need to.
1707 "StreamingProtoTest",
1708 "textclassifierprotoslite",
1709 "styleprotoslite",
1710 "CtsPkgInstallerConstants",
1711 "guava-android-testlib",
Sam Delmericobefbf052023-04-28 11:23:58 -04001712
1713 "MetaDataBaseUnitTest", // depends on libstagefright
1714 "AVCUtilsUnitTest", // depends on libstagefright
1715 "ColorUtilsTest", // depends on libmediandk
Wei Li74e3e002023-04-26 12:15:55 -07001716
1717 // python_test_host with test data
1718 "sbom_writers_test",
Liz Kammer0db75202023-09-11 15:12:27 -04001719 "hidl_test",
Zi Wang65b36722023-05-23 15:18:33 -07001720
1721 // TODO(B/283193845): tradefed and its java_test_host dependents
1722 "tradefed",
1723 "permissive_mte_test",
1724 "ICU4CTestRunner",
Usta (Tsering) Shrestha1205d712023-06-20 16:46:59 +00001725 "DeviceLongPollingStubTest",
Liz Kammer01c09ca2023-08-09 15:47:54 -04001726 "FastDeployHostTests",
Zi Wang65b36722023-05-23 15:18:33 -07001727
Sam Delmericoa8a10862023-06-12 14:37:56 -04001728 "libprotobuf-full-test", // TODO(b/246997908): cannot convert proto_libraries which implicitly include other srcs in the same directory
1729 "libprotobuf-lite-test", // TODO(b/246997908): cannot convert proto_libraries which implicitly include other srcs in the same directory
Sam Delmerico96c15502023-06-12 16:09:09 -04001730
Jason Wu5d5a3bb2023-06-14 13:24:24 -04001731 "logcat", // TODO(b/246997908): cannot convert proto_libraries which implicitly include other srcs in the same directory
1732
Jason Wuee51c542023-06-13 14:54:56 -04001733 "expresscatalogvalidator", // TODO(b/246997908): cannot convert proto_libraries which implicitly include other srcs in the same directory
1734
Sam Delmerico96c15502023-06-12 16:09:09 -04001735 // depends on other //art modules
1736 "libart-for-test",
1737 "libart_generated_headers",
1738 "libart-runtime-gtest",
1739 "libartd-runtime-gtest",
Yu Liub6e0a642023-08-09 23:42:23 +00001740 "libart-unstripped",
1741
1742 // depends on libart-unstripped and new module type llvm_prebuilt_build_tool
1743 "check_cfi",
Jihoon Kang49defa62023-08-22 19:43:59 +00001744
Jihoon Kangf51ec392023-08-23 05:24:02 +00001745 // depends on unconverted module tradefed
1746 "HelloWorldPerformanceTest",
Romain Jobredeaux890d6ea2023-08-23 10:53:07 -04001747
1748 // r8 is a java_binary, which creates an implicit "r8.jar" target, but the
1749 // same package contains a "r8.jar" file which gets overshadowed by the implicit target.
1750 // We don't need this target as we're not using the Soong wrapper for now
1751 "r8",
Jihoon Kang04b7d802023-08-23 22:10:15 +00001752
1753 // Depends on the module defined in the directory not bp2build default allowed
1754 "ota_from_raw_img",
Vinh Tran92260512023-09-11 10:30:13 -04001755
1756 // TODO(b/299924782): Fix linking error
1757 "libbinder_on_trusty_mock",
1758
1759 // TODO(b/299943581): Depends on aidl filegroups with implicit headers
1760 "libdataloader_aidl-cpp",
1761 "libincremental_manager_aidl-cpp",
1762
1763 // TODO(b/299974637) Fix linking error
1764 "libbinder_rpc_unstable",
Jingwen Chene12c0832023-08-25 09:00:16 +00001765
1766 // TODO(b/297356704) sdk_version is unset.
1767 "VendorAtomCodeGenJavaTest",
1768
1769 // android_test from allowlisted packages, but with unconverted deps
1770 "MtsLibnativehelperLazyTestCases",
1771 "ObjenesisTck",
1772 "DevCodelabTest",
1773 "MtsTimeZoneDataTestCases",
1774 "NanoAndroidTest",
1775 "MtsLibnativehelperTestCases",
Jingwen Chen65289992023-09-21 15:15:47 +00001776
Jingwen Chen7501a1b2023-09-26 10:49:28 +00001777 // Depends on androidx.test.rules
1778 "DexmakerTests",
1779 "dexmaker-tests-lib",
1780 "dexmaker-mockmaker-tests",
1781 "dexmaker-inline-mockmaker-tests",
1782 "dexmaker-extended-mockmaker-tests",
1783
Jingwen Chen65289992023-09-21 15:15:47 +00001784 // android_test_helper_app from allowlisted packages, but with unconverted deps
1785 "SharedLibraryInfoTestApp",
Sam Delmerico24c56032022-03-28 19:53:03 +00001786 }
1787
Chris Parsons66fc7452022-11-04 13:26:17 -04001788 // Bazel prod-mode allowlist. Modules in this list are built by Bazel
1789 // in either prod mode or staging mode.
Jingwen Chen889f2f22022-12-16 08:16:01 +00001790 ProdMixedBuildsEnabledList = []string{
Jingwen Chen01addfc2023-03-13 12:49:52 +00001791 // M5: tzdata launch
Jingwen Chen889f2f22022-12-16 08:16:01 +00001792 "com.android.tzdata",
1793 "test1_com.android.tzdata",
Jingwen Chen61342112023-04-11 08:49:01 +00001794 "test3_com.android.tzdata",
Jingwen Chen01addfc2023-03-13 12:49:52 +00001795 // M7: adbd launch
Jingwen Chen98bf5cc2022-12-14 13:27:25 +00001796 "com.android.adbd",
1797 "test_com.android.adbd",
1798 "adbd_test",
1799 "adb_crypto_test",
1800 "adb_pairing_auth_test",
1801 "adb_pairing_connection_test",
1802 "adb_tls_connection_test",
Jingwen Chen01addfc2023-03-13 12:49:52 +00001803 // M9: mixed builds for mainline trains launch
1804 "api_fingerprint",
Sam Delmerico96e53702023-04-07 15:09:37 -04001805 // M11: neuralnetworks launch
1806 "com.android.neuralnetworks",
1807 "test_com.android.neuralnetworks",
1808 "libneuralnetworks",
1809 "libneuralnetworks_static",
Trevor Radcliffe06101242023-06-29 22:30:18 +00001810 // M13: media.swcodec launch
1811 "com.android.media.swcodec",
1812 "test_com.android.media.swcodec",
1813 "libstagefright_foundation",
1814 "libcodec2_hidl@1.0",
1815 }
Yu Liub1274232023-06-21 22:37:32 +00001816
Trevor Radcliffee3c6a292023-07-07 19:29:04 +00001817 // Staging-mode allowlist. Modules in this list are only built
1818 // by Bazel with --bazel-mode-staging. This list should contain modules
1819 // which will soon be added to the prod allowlist.
1820 // It is implicit that all modules in ProdMixedBuildsEnabledList will
1821 // also be built - do not add them to this list.
1822 StagingMixedBuildsEnabledList = []string{}
1823
Yu Liue4312402023-01-18 09:15:31 -08001824 // These should be the libs that are included by the apexes in the ProdMixedBuildsEnabledList
Jingwen Chen01addfc2023-03-13 12:49:52 +00001825 ProdDclaMixedBuildsEnabledList = []string{
Yu Liue4312402023-01-18 09:15:31 -08001826 "libbase",
1827 "libc++",
1828 "libcrypto",
1829 "libcutils",
Trevor Radcliffe06101242023-06-29 22:30:18 +00001830 "libstagefright_flacdec",
1831 "libutils",
1832 }
Yu Liub1274232023-06-21 22:37:32 +00001833
Trevor Radcliffee3c6a292023-07-07 19:29:04 +00001834 // These should be the libs that are included by the apexes in the StagingMixedBuildsEnabledList
1835 StagingDclaMixedBuildsEnabledList = []string{}
1836
Yu Liue4312402023-01-18 09:15:31 -08001837 // TODO(b/269342245): Enable the rest of the DCLA libs
1838 // "libssl",
Jeongik Chae114e602023-03-19 00:12:39 +09001839
Jeongik Chab745e2e2023-04-11 14:28:43 +09001840 // The list of module types which are expected to spend lots of build time.
1841 // With `--ninja_weight_source=soong`, ninja builds these module types and deps first.
1842 HugeModuleTypePrefixMap = map[string]int{
1843 "rust_": HIGH_PRIORITIZED_WEIGHT,
1844 "droidstubs": DEFAULT_PRIORITIZED_WEIGHT,
1845 "art_": DEFAULT_PRIORITIZED_WEIGHT,
1846 "ndk_library": DEFAULT_PRIORITIZED_WEIGHT,
Jeongik Chae114e602023-03-19 00:12:39 +09001847 }
Sam Delmerico24c56032022-03-28 19:53:03 +00001848)