Suppress MissingGetterMatchingBuilder warning
Bug: b/340874436
Flag: EXEMPT DOCS_ONLY
Test: presubmit
Change-Id: I803587d46b1cf57570716fa05b6d6eef07ef5a65
diff --git a/media/java/android/media/RoutingSessionInfo.java b/media/java/android/media/RoutingSessionInfo.java
index b1a77a4..9899e4e 100644
--- a/media/java/android/media/RoutingSessionInfo.java
+++ b/media/java/android/media/RoutingSessionInfo.java
@@ -904,7 +904,11 @@
// The UserHandleName warning suggests the name should be "doFooAsUser". But the UserHandle
// parameter of this function is stored in a field, and not used to execute an operation on
// a specific user.
- @SuppressWarnings("UserHandleName")
+ // The MissingGetterMatchingBuilder requires a getTransferInitiator function. But said
+ // getter is not included because the returned package name and user handle is always either
+ // null or the values that correspond to the calling app, and that information is obtainable
+ // via RoutingController#wasTransferInitiatedBySelf.
+ @SuppressWarnings({"UserHandleName", "MissingGetterMatchingBuilder"})
@NonNull
@FlaggedApi(FLAG_ENABLE_BUILT_IN_SPEAKER_ROUTE_SUITABILITY_STATUSES)
public Builder setTransferInitiator(