Loading services/autofill/java/com/android/server/autofill/PresentationStatsEventLogger.java +8 −0 Original line number Diff line number Diff line Loading @@ -118,6 +118,14 @@ public final class PresentationStatsEventLogger { }); } public void maybeSetNoPresentationEventReasonIfNoReasonExists(@NotShownReason int reason) { mEventInternal.ifPresent(event -> { if (event.mCountShown == 0 && event.mNoPresentationReason == NOT_SHOWN_REASON_UNKNOWN) { event.mNoPresentationReason = reason; } }); } public void maybeSetAvailableCount(@Nullable List<Dataset> datasetList, AutofillId currentViewId) { mEventInternal.ifPresent(event -> { Loading services/autofill/java/com/android/server/autofill/Session.java +1 −1 Original line number Diff line number Diff line Loading @@ -2922,7 +2922,7 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState if (sDebug) { Slog.d(TAG, "Set the response has expired."); } mPresentationStatsEventLogger.maybeSetNoPresentationEventReason( mPresentationStatsEventLogger.maybeSetNoPresentationEventReasonIfNoReasonExists( NOT_SHOWN_REASON_VIEW_CHANGED); mPresentationStatsEventLogger.logAndEndEvent(); return; Loading Loading
services/autofill/java/com/android/server/autofill/PresentationStatsEventLogger.java +8 −0 Original line number Diff line number Diff line Loading @@ -118,6 +118,14 @@ public final class PresentationStatsEventLogger { }); } public void maybeSetNoPresentationEventReasonIfNoReasonExists(@NotShownReason int reason) { mEventInternal.ifPresent(event -> { if (event.mCountShown == 0 && event.mNoPresentationReason == NOT_SHOWN_REASON_UNKNOWN) { event.mNoPresentationReason = reason; } }); } public void maybeSetAvailableCount(@Nullable List<Dataset> datasetList, AutofillId currentViewId) { mEventInternal.ifPresent(event -> { Loading
services/autofill/java/com/android/server/autofill/Session.java +1 −1 Original line number Diff line number Diff line Loading @@ -2922,7 +2922,7 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState if (sDebug) { Slog.d(TAG, "Set the response has expired."); } mPresentationStatsEventLogger.maybeSetNoPresentationEventReason( mPresentationStatsEventLogger.maybeSetNoPresentationEventReasonIfNoReasonExists( NOT_SHOWN_REASON_VIEW_CHANGED); mPresentationStatsEventLogger.logAndEndEvent(); return; Loading