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

Commit 1f664c79 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "[Autofill PCC] Restrict complete logging to debug bulids" into udc-dev am: d4460ca5

parents f68288e4 d4460ca5
Loading
Loading
Loading
Loading
+15 −2
Original line number Original line Diff line number Diff line
@@ -28,6 +28,7 @@ import android.content.Context;
import android.content.Intent;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager;
import android.content.pm.ServiceInfo;
import android.content.pm.ServiceInfo;
import android.os.Build;
import android.os.ICancellationSignal;
import android.os.ICancellationSignal;
import android.os.RemoteException;
import android.os.RemoteException;
import android.os.SystemClock;
import android.os.SystemClock;
@@ -155,7 +156,19 @@ final class RemoteFieldClassificationService
                                    public void onSuccess(FieldClassificationResponse response) {
                                    public void onSuccess(FieldClassificationResponse response) {
                                        logLatency(startTime);
                                        logLatency(startTime);
                                        if (sDebug) {
                                        if (sDebug) {
                                            Log.d(TAG, "onSuccess Response: " + response);
                                            if (Build.IS_DEBUGGABLE) {
                                                Slog.d(TAG, "onSuccess Response: " + response);
                                            } else {
                                                String msg = "";
                                                if (response == null
                                                        || response.getClassifications() == null) {
                                                    msg = "null response";
                                                } else {
                                                    msg = "size: "
                                                            + response.getClassifications().size();
                                                }
                                                Slog.d(TAG, "onSuccess " + msg);
                                            }
                                        }
                                        }
                                        fieldClassificationServiceCallbacks
                                        fieldClassificationServiceCallbacks
                                                .onClassificationRequestSuccess(response);
                                                .onClassificationRequestSuccess(response);
@@ -165,7 +178,7 @@ final class RemoteFieldClassificationService
                                    public void onFailure() {
                                    public void onFailure() {
                                        logLatency(startTime);
                                        logLatency(startTime);
                                        if (sDebug) {
                                        if (sDebug) {
                                            Log.d(TAG, "onFailure");
                                            Slog.d(TAG, "onFailure");
                                        }
                                        }
                                        fieldClassificationServiceCallbacks
                                        fieldClassificationServiceCallbacks
                                                .onClassificationRequestFailure(0, null);
                                                .onClassificationRequestFailure(0, null);