Commit Graph

4 Commits

Author SHA1 Message Date
Anton Hansson
340954c017 Enable api lint and check_last_api for modules
This adds checking of module api compatibility to the individual module
api rules. Until now, this checking has been done via the monolithic
metalava runs which we are aiming to get rid of.

Now is a good time to do this because we can compare them to the just
finalized version 30 API, which we have no diffs with. Baseline the
existing wifi failures that metalava fails to find in the previous API.

Bug: 144149403
Test: m checkapi
Change-Id: Id222895daa3a769c265965b052a17d5a1ca18462
2020-05-05 19:17:08 +01:00
Anton Hansson
2e53a5302b Add wifi util lib to classpath for wifi stubs
Fixes the individual wifi stubs to match those in the monolithic
current.txt.

Bug: 152857194
Test: diff <(cat api/system-current.txt | grep 'class RttManager {' -A30) \
           <(cat wifi/api/system-current.txt | grep 'class RttManager {' -A30) \
      && echo pass || echo fail
Change-Id: I3fc8a87e83f8dfee8d97966ead379d7acf0807bc
2020-03-31 15:45:00 +01:00
Michael Wright
0e0734c773 Make ScanResult final.
While normally this would be a breaking API change, since we never
actually exposed a constructor for this class it's safe to mark it as
final.

Bug: 149912516
Test: Builds
Change-Id: I5555a17d98ebe8c61064ef64e508f707aff4eeb7
2020-03-18 20:07:05 +00:00
Anton Hansson
dc033c35c0 Add individual API tracking files for modules
This adds metalava api tracking generation to the module
stub rules, to make sure we know exactly what API a
particular module stub exports.

Bug: 147768409
Test: m update-api
Exempt-From-Owner-Approval: Approved in master
Change-Id: Iaf2ef5b5751eb208d119ddbc74481239366fe581
Merged-In: Iaf2ef5b5751eb208d119ddbc74481239366fe581
2020-03-18 11:03:12 +00:00