Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5f74d605 authored by Joanne Chung's avatar Joanne Chung
Browse files

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
parent 713af5fd
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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 {
+2 −0
Original line number Diff line number Diff line
@@ -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);