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

Skip to content
Commit d578d7d3 authored by Tim Yu's avatar Tim Yu
Browse files

[Autofill] Fix overridden metrics

1. AutofillPresentationEventReported.presentation_event_result should not
   get overriden by NONE_SHOWN_VIEW_FOCUS_CHANGED when the view has
   exited (if there was a valid reason already logged). Previously all
   view exits will overide valid reason, which accounted for a majority
   of these events.

2. Introduced NONE_SHOWN_SUGGESTION_FILTER_OUT, which will be logged
   whenever the View has been entered + there is pre-existing text in
   the view.

3. AutofillSessionCommitted.commit_reason will not be overriden by
   COMMIT_REASON_SESSION_DESTROYED after sessions are destroyed (if
   there was a valid reason already logged). This means
   COMMIT_REASON_SESSION_DESTROYED will only be logged in special
   circumstances, such as when Session is destroyed because the user
   switched providers.

Fixes: 362581326
Fixes: 363011343
Test: atest com.android.server.autofill.PresentationEventLoggerTest
Flag: android.service.autofill.metrics_fixes
Change-Id: If45a3f4a7274f062a6954263995f59ec24b73875
parent 367616f2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment