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
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user