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

Commit 2f0b6335 authored by Simranjit Kohli's avatar Simranjit Kohli
Browse files

[Relayout] Skeleton for supporting new logs

Skeleton change only

Bug: 238252288
Flag: EXEMPT : Log only.
For the feature, DeviceConfig flags used: enable_relayout
exception granted in b/318391032
Test: m
Additional testing would be done when adding actual calls to logs

Change-Id: I520e51df67c9eaf8a53f201ad1fb33e61730e87c
parent 3e1fc162
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<>();