summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Duffin2019-05-30 09:42:41 -0500
committerPaul Duffin2019-06-03 04:24:35 -0500
commit7d030295bb0156889fb3e6859bdfb7972af47a0a (patch)
tree6c76fdf00016d23fcb83af385f41ed452158c378
parent0718fb926fbf57b8e5ca3627cefbe6b7a640aeaf (diff)
downloadplatform-packages-services-car-7d030295bb0156889fb3e6859bdfb7972af47a0a.tar.gz
platform-packages-services-car-7d030295bb0156889fb3e6859bdfb7972af47a0a.tar.xz
platform-packages-services-car-7d030295bb0156889fb3e6859bdfb7972af47a0a.zip
Export some api files for use by cts/tests/signature tests
Creates a filegroup for each of these files: * api/system-current.txt * api/system-removed.txt Bug: 122332514 Test: atest -p cts/tests/signature Change-Id: Ib1c45dd788f2c9c3771eac958ac2d2c892cdbf86
-rw-r--r--car-lib/Android.bp38
1 files changed, 30 insertions, 8 deletions
diff --git a/car-lib/Android.bp b/car-lib/Android.bp
index 956ff709..b6adc86e 100644
--- a/car-lib/Android.bp
+++ b/car-lib/Android.bp
@@ -122,15 +122,15 @@ droidstubs {
122 api_file: ":android-car-last-released-api", 122 api_file: ":android-car-last-released-api",
123 removed_api_file: "api/removed.txt", 123 removed_api_file: "api/removed.txt",
124 args: " -hide 2 -hide 3 -hide 4 -hide 5 -hide 6 -hide 24 -hide 25 -hide 26 -hide 27 " + 124 args: " -hide 2 -hide 3 -hide 4 -hide 5 -hide 6 -hide 24 -hide 25 -hide 26 -hide 27 " +
125 " -warning 7 -warning 8 -warning 9 -warning 10 -warning 11 -warning 12 " + 125 " -warning 7 -warning 8 -warning 9 -warning 10 -warning 11 -warning 12 " +
126 " -warning 13 -warning 14 -warning 15 -warning 16 -warning 17 -warning 18 -hide 113 ", 126 " -warning 13 -warning 14 -warning 15 -warning 16 -warning 17 -warning 18 -hide 113 ",
127 }, 127 },
128 current: { 128 current: {
129 api_file: "api/current.txt", 129 api_file: "api/current.txt",
130 removed_api_file: "api/removed.txt", 130 removed_api_file: "api/removed.txt",
131 args: " -error 2 -error 3 -error 4 -error 5 -error 6 -error 7 -error 8 -error 9 -error 10 -error 11 " + 131 args: " -error 2 -error 3 -error 4 -error 5 -error 6 -error 7 -error 8 -error 9 -error 10 -error 11 " +
132 " -error 12 -error 13 -error 14 -error 15 -error 16 -error 17 -error 18 -error 19 -error 20 " + 132 " -error 12 -error 13 -error 14 -error 15 -error 16 -error 17 -error 18 -error 19 -error 20 " +
133 " -error 21 -error 23 -error 24 -error 25 -hide 113 ", 133 " -error 21 -error 23 -error 24 -error 25 -hide 113 ",
134 }, 134 },
135 }, 135 },
136} 136}
@@ -149,15 +149,15 @@ droidstubs {
149 api_file: ":android-car-last-released-system-api", 149 api_file: ":android-car-last-released-system-api",
150 removed_api_file: "api/system-removed.txt", 150 removed_api_file: "api/system-removed.txt",
151 args: " -hide 2 -hide 3 -hide 4 -hide 5 -hide 6 -hide 24 -hide 25 -hide 26 -hide 27 " + 151 args: " -hide 2 -hide 3 -hide 4 -hide 5 -hide 6 -hide 24 -hide 25 -hide 26 -hide 27 " +
152 " -warning 7 -warning 8 -warning 9 -warning 10 -warning 11 -warning 12 " + 152 " -warning 7 -warning 8 -warning 9 -warning 10 -warning 11 -warning 12 " +
153 " -warning 13 -warning 14 -warning 15 -warning 16 -warning 17 -warning 18 -hide 113 ", 153 " -warning 13 -warning 14 -warning 15 -warning 16 -warning 17 -warning 18 -hide 113 ",
154 }, 154 },
155 current: { 155 current: {
156 api_file: "api/system-current.txt", 156 api_file: "api/system-current.txt",
157 removed_api_file: "api/system-removed.txt", 157 removed_api_file: "api/system-removed.txt",
158 args: " -error 2 -error 3 -error 4 -error 5 -error 6 -error 7 -error 8 -error 9 -error 10 -error 11 " + 158 args: " -error 2 -error 3 -error 4 -error 5 -error 6 -error 7 -error 8 -error 9 -error 10 -error 11 " +
159 " -error 12 -error 13 -error 14 -error 15 -error 16 -error 17 -error 18 -error 19 -error 20 " + 159 " -error 12 -error 13 -error 14 -error 15 -error 16 -error 17 -error 18 -error 19 -error 20 " +
160 " -error 21 -error 23 -error 24 -error 25 -hide 113 ", 160 " -error 21 -error 23 -error 24 -error 25 -hide 113 ",
161 }, 161 },
162 }, 162 },
163} 163}
@@ -212,3 +212,25 @@ java_library_static {
212 }, 212 },
213 compile_dex: true, 213 compile_dex: true,
214} 214}
215
216// Export the api/system-current.txt file.
217filegroup {
218 name: "car-api-system-current.txt",
219 visibility: [
220 "//cts/tests/signature/api",
221 ],
222 srcs: [
223 "api/system-current.txt",
224 ],
225}
226
227// Export the api/system-removed.txt file.
228filegroup {
229 name: "car-api-system-removed.txt",
230 visibility: [
231 "//cts/tests/signature/api",
232 ],
233 srcs: [
234 "api/system-removed.txt",
235 ],
236}