diff options
| author | 2020-06-03 15:36:08 +0800 | |
|---|---|---|
| committer | 2020-06-23 00:39:14 +0000 | |
| commit | 5f74d605ce2d2237a78d7e259e8adaa70e6683bf (patch) | |
| tree | a7df6673d1749cfa6337f1e34e06663a7c8fe6b5 | |
| parent | 713af5fdd39a2b56efe89d1125d6864f92c6298f (diff) | |
Made AutofillId.withoutSession is testable.
We add new test in stage-aosp-rvc-ts-dev for R2, we need make this API
testable.
Bug: 156408900
Test: atest android.autofillservice.cts.inline.\
InlineAugmentedWebViewActivityTest
Change-Id: I27d1227f858aac83b3de1cb8ef719edf177524dc
Merged-In: I27d1227f858aac83b3de1cb8ef719edf177524dc
| -rw-r--r-- | api/test-current.txt | 1 | ||||
| -rw-r--r-- | core/java/android/view/autofill/AutofillId.java | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/api/test-current.txt b/api/test-current.txt index ed4c9b13dacd..6f3c9ee2df37 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -5136,6 +5136,7 @@ package android.view.autofill { ctor public AutofillId(int, int); ctor public AutofillId(@NonNull android.view.autofill.AutofillId, long, int); method public boolean equalsIgnoreSession(@Nullable android.view.autofill.AutofillId); + method @NonNull public static android.view.autofill.AutofillId withoutSession(@NonNull android.view.autofill.AutofillId); } public final class AutofillManager { diff --git a/core/java/android/view/autofill/AutofillId.java b/core/java/android/view/autofill/AutofillId.java index b387a68dd8a3..9cdaba599d94 100644 --- a/core/java/android/view/autofill/AutofillId.java +++ b/core/java/android/view/autofill/AutofillId.java @@ -73,6 +73,8 @@ public final class AutofillId implements Parcelable { } /** @hide */ + @NonNull + @TestApi public static AutofillId withoutSession(@NonNull AutofillId id) { final int flags = id.mFlags & ~FLAG_HAS_SESSION; return new AutofillId(flags, id.mViewId, id.mVirtualLongId, NO_SESSION); |