From 24abde551ec526feb69abfe7d9f0a5d21e422e29 Mon Sep 17 00:00:00 2001 From: Joanne Chung Date: Wed, 3 Jun 2020 15:36:08 +0800 Subject: [PATCH] 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 --- api/test-current.txt | 1 + core/java/android/view/autofill/AutofillId.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/api/test-current.txt b/api/test-current.txt index ed4c9b13dacd5..6f3c9ee2df37e 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 68943bf2a83a0..32b9cf7cdbb01 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; final long virtualChildId =