[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
Loading
Please register or sign in to comment