summaryrefslogtreecommitdiff
path: root/location
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2024-10-08 12:24:36 +0100
committer Paul Duffin <paulduffin@google.com> 2024-10-08 18:05:38 +0100
commit6c9037122dd105a19a7a49a01fbe5f4d01153462 (patch)
tree1e964da81f8c55dde5f65d7545c8a9bedd82e2ac /location
parentb1815bd8ce061386eeca68a04bc9e6ccaaaf61ee (diff)
Add missing Javadoc dependency to `com.android.location.provider`
The `LocationProviderBase.java` file imports `android.location.provider.ProviderRequest` and references it from the Javadoc of the `onSetReqeust(...)` method. Strictly speaking, that class should have been imported in the stubs to ensure that the references in the Javadoc could be correctly resolved. However, due to some inaccurate handling of imports in Metalava the import was not added to the stubs. The handling of imports in Metalava will be improved and so the class will be correctly imported. However, that would lead to a compile time failure because `ProviderRequest` is not on the classpath when compiling the stubs. This change avoids that by adding the missing dependency in preparation for the Metalava changes. Bug: 371955471 Test: m droid Change-Id: If523d495f9822e8b1ac011442564407454080a7b
Diffstat (limited to 'location')
-rw-r--r--location/lib/Android.bp4
1 files changed, 4 insertions, 0 deletions
diff --git a/location/lib/Android.bp b/location/lib/Android.bp
index b10019a94209..67d57749c894 100644
--- a/location/lib/Android.bp
+++ b/location/lib/Android.bp
@@ -29,6 +29,10 @@ java_sdk_library {
libs: [
"androidx.annotation_annotation",
],
+ stub_only_libs: [
+ // Needed for javadoc references.
+ "framework-location.stubs.system",
+ ],
api_packages: [
"android.location",
"com.android.location.provider",