Loading core/java/android/view/autofill/AutofillManager.java +2 −0 Original line number Diff line number Diff line Loading @@ -2364,6 +2364,7 @@ public final class AutofillManager { synchronized (mLock) { if (!isActiveLocked()) { Log.w(TAG, "onAuthenticationResult(): sessionId=" + mSessionId + " not active"); return; } mState = STATE_ACTIVE; Loading @@ -2380,6 +2381,7 @@ public final class AutofillManager { } if (data == null) { // data is set to null when result is not RESULT_OK Log.i(TAG, "onAuthenticationResult(): empty intent"); return; } Loading services/autofill/java/com/android/server/autofill/Session.java +15 −1 Original line number Diff line number Diff line Loading @@ -2770,6 +2770,10 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState + id + " destroyed"); return; } if (sDebug) { Slog.d(TAG, "setAuthenticationResultLocked(): id= " + authenticationId + ", data=" + data); } final int requestId = AutofillManager.getRequestIdFromAuthenticationId(authenticationId); if (requestId == AUGMENTED_AUTOFILL_REQUEST_ID) { setAuthenticationResultForAugmentedAutofillLocked(data, authenticationId); Loading Loading @@ -2823,12 +2827,18 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState + ", clientState=" + newClientState + ", authenticationId=" + authenticationId); } if (result instanceof FillResponse) { if (sDebug) { Slog.d(TAG, "setAuthenticationResultLocked(): received FillResponse from" + " authentication flow"); } logAuthenticationStatusLocked(requestId, MetricsEvent.AUTOFILL_AUTHENTICATED); mPresentationStatsEventLogger.maybeSetAuthenticationResult( AUTHENTICATION_RESULT_SUCCESS); replaceResponseLocked(authenticatedResponse, (FillResponse) result, newClientState); } else if (result instanceof GetCredentialResponse) { if (sDebug) { Slog.d(TAG, "Received GetCredentialResponse from authentication flow"); } boolean isCredmanCallbackInvoked = false; if (Flags.autofillCredmanIntegration()) { GetCredentialResponse response = (GetCredentialResponse) result; Loading @@ -2843,6 +2853,10 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState } } } else if (result instanceof Dataset) { if (sDebug) { Slog.d(TAG, "setAuthenticationResultLocked(): received Dataset from" + " authentication flow"); } if (datasetIdx != AutofillManager.AUTHENTICATION_ID_DATASET_ID_UNDEFINED) { logAuthenticationStatusLocked(requestId, MetricsEvent.AUTOFILL_DATASET_AUTHENTICATED); Loading Loading
core/java/android/view/autofill/AutofillManager.java +2 −0 Original line number Diff line number Diff line Loading @@ -2364,6 +2364,7 @@ public final class AutofillManager { synchronized (mLock) { if (!isActiveLocked()) { Log.w(TAG, "onAuthenticationResult(): sessionId=" + mSessionId + " not active"); return; } mState = STATE_ACTIVE; Loading @@ -2380,6 +2381,7 @@ public final class AutofillManager { } if (data == null) { // data is set to null when result is not RESULT_OK Log.i(TAG, "onAuthenticationResult(): empty intent"); return; } Loading
services/autofill/java/com/android/server/autofill/Session.java +15 −1 Original line number Diff line number Diff line Loading @@ -2770,6 +2770,10 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState + id + " destroyed"); return; } if (sDebug) { Slog.d(TAG, "setAuthenticationResultLocked(): id= " + authenticationId + ", data=" + data); } final int requestId = AutofillManager.getRequestIdFromAuthenticationId(authenticationId); if (requestId == AUGMENTED_AUTOFILL_REQUEST_ID) { setAuthenticationResultForAugmentedAutofillLocked(data, authenticationId); Loading Loading @@ -2823,12 +2827,18 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState + ", clientState=" + newClientState + ", authenticationId=" + authenticationId); } if (result instanceof FillResponse) { if (sDebug) { Slog.d(TAG, "setAuthenticationResultLocked(): received FillResponse from" + " authentication flow"); } logAuthenticationStatusLocked(requestId, MetricsEvent.AUTOFILL_AUTHENTICATED); mPresentationStatsEventLogger.maybeSetAuthenticationResult( AUTHENTICATION_RESULT_SUCCESS); replaceResponseLocked(authenticatedResponse, (FillResponse) result, newClientState); } else if (result instanceof GetCredentialResponse) { if (sDebug) { Slog.d(TAG, "Received GetCredentialResponse from authentication flow"); } boolean isCredmanCallbackInvoked = false; if (Flags.autofillCredmanIntegration()) { GetCredentialResponse response = (GetCredentialResponse) result; Loading @@ -2843,6 +2853,10 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState } } } else if (result instanceof Dataset) { if (sDebug) { Slog.d(TAG, "setAuthenticationResultLocked(): received Dataset from" + " authentication flow"); } if (datasetIdx != AutofillManager.AUTHENTICATION_ID_DATASET_ID_UNDEFINED) { logAuthenticationStatusLocked(requestId, MetricsEvent.AUTOFILL_DATASET_AUTHENTICATED); Loading