diff options
| author | Nikita Dubrovsky <dubrovsky@google.com> | 2020-12-14 22:04:57 -0800 |
|---|---|---|
| committer | Nikita Dubrovsky <dubrovsky@google.com> | 2020-12-14 22:04:57 -0800 |
| commit | c9f90b56df50d8682dee5afddebe3e8a89690fbd (patch) | |
| tree | c6171be38f2dae1c692ce063f559f2bf3fb64e94 /core/java/android/view/ContentInfo.java | |
| parent | 7898548ed6411be010c3679ff3cc4fdf1970321d (diff) | |
Hide ContentInfo.partition from the public API
Per API Council feedback, this method will not be exposed in the public
API. App developers will instead use the support library for this.
Rather than removing the method completely, it is marked with @hide so
that it can still be used in system code (e.g. RemoteInputView).
Bug: 174125311
Test: atest CtsViewTestCases:ContentInfoTest
Change-Id: I83b55bea38c0d2b3dc60a16658616e46ebe4cb48
Diffstat (limited to 'core/java/android/view/ContentInfo.java')
| -rw-r--r-- | core/java/android/view/ContentInfo.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/view/ContentInfo.java b/core/java/android/view/ContentInfo.java index fcf699faafe1..bc66ea16bb72 100644 --- a/core/java/android/view/ContentInfo.java +++ b/core/java/android/view/ContentInfo.java @@ -19,6 +19,7 @@ package android.view; import android.annotation.IntDef; import android.annotation.NonNull; import android.annotation.Nullable; +import android.annotation.TestApi; import android.content.ClipData; import android.content.ClipDescription; import android.net.Uri; @@ -222,7 +223,10 @@ public final class ContentInfo { * content that matched the predicate, or null if none of the items matched. The pair's * second object will have the content that didn't match the predicate, or null if all of * the items matched. + * + * @hide */ + @TestApi @NonNull public Pair<ContentInfo, ContentInfo> partition( @NonNull Predicate<ClipData.Item> itemPredicate) { |
