266 Commits

Author SHA1 Message Date
Anton Hansson
79e35c3beb Enable compat checking & lint for module_lib api
These were previously turned off as there were no previous
releases to compare it to. Check in empty files as comparison.

The new tethering APIs fail lint -- I have filed a release
blocking bug to get these cleaned up.

Bug: 149430003
Bug: 147559833
Test: m module-lib-api-api-lint
Test: m module-lib-api-check-last-released-api (with+without incompatibilities)
Change-Id: I2b171dc836ca121502fb345d8dd512a05c566a49
2020-02-12 23:55:41 +00:00
Anton Hansson
42afd61fe2 Dedup stub jar build rules
Move shared attrs into defaults.

Bug: 146757305
Test: m
Change-Id: I90292cafaac1dcc64d642db072ce4880fcdb87cb
Merged-In: I90292cafaac1dcc64d642db072ce4880fcdb87cb
2020-02-10 14:56:52 +00:00
Anton Hansson
708d1211df Tweak module_libs stub build rules
- Don't depend on framework-all (we depend on srcs)
- Set sdk_version to core_current

Bug: 146757305
Test: m
Change-Id: I9f14d35ba657045e99190b7a651781a5b87d490d
Merged-In: I9f14d35ba657045e99190b7a651781a5b87d490d
2020-02-10 14:52:59 +00:00
Anton Hansson
08b48bb91f Dedup stub jar build rules
Move shared attrs into defaults.

Bug: 146757305
Test: m
Change-Id: I90292cafaac1dcc64d642db072ce4880fcdb87cb
2020-02-08 20:43:19 +00:00
Anton Hansson
2e2008b7a1 Tweak module_libs stub build rules
- Don't depend on framework-all (we depend on srcs)
- Set sdk_version to core_current

Bug: 146757305
Test: m
Change-Id: I9f14d35ba657045e99190b7a651781a5b87d490d
2020-02-08 20:39:59 +00:00
Automerger Merge Worker
0935fa18aa Merge "Remove build rules for module-app API" am: e534a33ca3 am: b37648b759 am: 5ffbe6f31c
Change-Id: I499aac005559a80b3254c0d7e7a8b32d5ccc6382
2020-02-04 16:00:03 +00:00
Anton Hansson
81969c27df Remove build rules for module-app API
It's been abandoned for now. Also remove the process attribute
requirement as it's no longer in use.

Bug: 148177503
Test: m
Change-Id: I2b1444105c670f1ef5bc214aa7b0a7ac06d84a37
2020-02-03 21:05:42 +00:00
Anton Hansson
c3668114d4 Add module-defined APIs to module-(app|lib)
These APIs should really leave in individual .txt files,
but had them here for the moment to make sure there is *some*
tracking of the surface.

Bug: 147768409
Test: m module-app-api-check-current-api
Test: m module-lib-api-check-current-api
Test: patch I97ef83f7f9b4c1376f373713036f5256318f1050 && the above `m`
Change-Id: Ia0a48b9f6e45fccbe67b369b61660d88b5000a44
Merged-In: Ia0a48b9f6e45fccbe67b369b61660d88b5000a44
(cherry picked from commit 970c053315752471bee37a2d3a2c3c6b5a8e0b0b)
2020-02-03 20:51:13 +00:00
Anton Hansson
9c4bbe95b1 Rename module lib stubs to 'android'
android.jar is the historical name of the framework stubs, so stick
with that.

Test: m
Change-Id: I1ef40b0e426c51d697f1efdabdc87096555e26e8
Merged-In: I1ef40b0e426c51d697f1efdabdc87096555e26e8
(cherry picked from commit 81b3e1e1680847f44782eb053dfbd7d7022cef58)
2020-01-30 14:04:15 +00:00
Anton Hansson
1b9cf09e36 Rename module lib stubs to 'android'
android.jar is the historical name of the framework stubs, so stick
with that.

Exempt-From-Owner-Approval: comment-only changes irrelvant to statsd team
Test: m
Change-Id: I1ef40b0e426c51d697f1efdabdc87096555e26e8
2020-01-30 12:12:42 +00:00
Anton Hansson
970c053315 Add module-defined APIs to module-(app|lib)
These APIs should really leave in individual .txt files,
but had them here for the moment to make sure there is *some*
tracking of the surface.

Bug: 147768409
Test: m module-app-api-check-current-api
Test: m module-lib-api-check-current-api
Test: patch I97ef83f7f9b4c1376f373713036f5256318f1050 && the above `m`
Change-Id: Ia0a48b9f6e45fccbe67b369b61660d88b5000a44
2020-01-17 13:42:43 +00:00
Chen Xu
546ce5e45e modularize telephony-framework from framework.jar
Bug: 140908357
Test: Build & Manaul
Change-Id: Idd4cbdb84247b98072b6ebc00a37168fde6fbbaa
2020-01-16 14:32:50 -08:00
Jiyong Park
2e6cdcc524 Add API stubs for module APIs
The following two stub libraries are added:

- android_module_app_stubs_current: @SystemApis that are available for
modules implemented as apps. @SystemApis with client=PRIVILEGED_APPS
and client=MODULE_APPS are included here.

- android_module_lib_stubs_current: @SystemApis that are available for
modules implemented as bootclasspath jars. @SystemApis with
client=PRIVILEGED_APPS, MODULE_APPS, and MODULE_LIBRARIES are all
included here.

For now, the compatibility check against the last release API is not
done, but this is not a problem because this is the first time these
APIs are released.

Exempt-From-Owner-Approval: cherry-pick from internal

Bug: 139391334
Bug: 140202860
Bug: 146727827
Test: m

Merged-In: I0254a5f7751c58029fa7a8d5c342b731a7deb69a
Change-Id: I0254a5f7751c58029fa7a8d5c342b731a7deb69a
(cherry picked from commit e309516406a1ec2ce095713cc3adfacdedbcbefe)
2020-01-13 21:42:24 +09:00
Jiyong Park
e309516406 Add API stubs for module APIs
The following two stub libraries are added:

- android_module_app_stubs_current: @SystemApis that are available for
modules implemented as apps. @SystemApis with client=PRIVILEGED_APPS
and client=MODULE_APPS are included here.

- android_module_lib_stubs_current: @SystemApis that are available for
modules implemented as bootclasspath jars. @SystemApis with
client=PRIVILEGED_APPS, MODULE_APPS, and MODULE_LIBRARIES are all
included here.

For now, the compatibility check against the last release API is not
done, but this is not a problem because this is the first time these
APIs are released.

Bug: 139391334
Bug: 140202860
Bug: 146727827
Test: m

Change-Id: I0254a5f7751c58029fa7a8d5c342b731a7deb69a
2020-01-13 10:13:06 +09:00
Jiyong Park
6d9923d827 Remove unused system_modules
With
https://android-review.googlesource.com/c/platform/build/soong/+/1145829,
android_*stubs_current_system_modules are no longer used. Thus removing.

Bug: 142896162
Test: m checkbuild
Change-Id: I203766d92a8ebac862a816e9b6b68b6d47d5312c
2020-01-03 12:08:53 +09:00
Jiyong Park
7fb4b183d8 Separate modules for API docs and API stubs
frameworks/base/Android.bp became too big. Modularize it into multiple
files for better readability and extensibility.

droidstubs and java_library modules for API stub libraries are moved to
StubLibraries.bp.

droidstubs and droiddoc modules for API documents are moved to
ApiDocs.bp

Also, added some documentation to explain the roles of the many modules
and how they are related with each other.

Bug: N/A
Test: m

Exempt-From-Owner-Approval: cherry-pick from internal

Merged-In: I285e8c82078d5bd3ed85b0343db2f6375ce7ffb7
(cherry picked from commit 0d7e86d03c8443cee90096ff0447fd50541d77c3)
Change-Id: I285e8c82078d5bd3ed85b0343db2f6375ce7ffb7
2019-12-22 17:27:49 +09:00