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

Commit ede65c94 authored by Simranjit Kohli's avatar Simranjit Kohli Committed by Android (Google) Code Review
Browse files

Merge "[Relayout] Skeleton for supporting new logs" into main

parents 46440748 2f0b6335
Loading
Loading
Loading
Loading
+21 −2
Original line number Diff line number Diff line
@@ -804,7 +804,15 @@ public final class PresentationStatsEventLogger {
                    + event.mSuggestionPresentedLastTimestampMs
                    + " event.mFocusedVirtualAutofillId=" + event.mFocusedVirtualAutofillId
                    + " event.mFieldFirstLength=" + event.mFieldFirstLength
                    + " event.mFieldLastLength=" + event.mFieldLastLength);
                    + " event.mFieldLastLength=" + event.mFieldLastLength
                    + " event.mViewFailedPriorToRefillCount=" + event.mViewFailedPriorToRefillCount
                    + " event.mViewFilledSuccessfullyOnRefillCount="
                    + event.mViewFilledSuccessfullyOnRefillCount
                    + " event.mViewFailedOnRefillCount=" + event.mViewFailedOnRefillCount
                    + " event.notExpiringResponseDuringAuthCount="
                    + event.mFixExpireResponseDuringAuthCount
                    + " event.notifyViewEnteredIgnoredDuringAuthCount="
                    + event.mNotifyViewEnteredIgnoredDuringAuthCount);
        }

        // TODO(b/234185326): Distinguish empty responses from other no presentation reasons.
@@ -859,7 +867,12 @@ public final class PresentationStatsEventLogger {
                event.mSuggestionPresentedLastTimestampMs,
                event.mFocusedVirtualAutofillId,
                event.mFieldFirstLength,
                event.mFieldLastLength);
                event.mFieldLastLength,
                event.mViewFailedPriorToRefillCount,
                event.mViewFilledSuccessfullyOnRefillCount,
                event.mViewFailedOnRefillCount,
                event.mFixExpireResponseDuringAuthCount,
                event.mNotifyViewEnteredIgnoredDuringAuthCount);
        mEventInternal = Optional.empty();
    }

@@ -912,6 +925,12 @@ public final class PresentationStatsEventLogger {
        // uninitialized doesn't help much, as this would be non-zero only if callback is received.
        int mViewFillSuccessCount = 0;
        int mViewFilledButUnexpectedCount = 0;
        int mViewFailedPriorToRefillCount = 0;
        int mViewFailedOnRefillCount = 0;
        int mViewFilledSuccessfullyOnRefillCount = 0;

        int mFixExpireResponseDuringAuthCount = 0;
        int mNotifyViewEnteredIgnoredDuringAuthCount = 0;

        ArraySet<AutofillId> mAutofillIdsAttemptedAutofill;
        ArraySet<AutofillId> mAlreadyFilledAutofillIds = new ArraySet<>();