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

Commit bf67e967 authored by Wenhui Yang's avatar Wenhui Yang
Browse files

Add logs to help debug biometric CTS

Add logs to help CTS investigatin (e.g.
BiometricsAtomsTests#testAuthenticateAtom)

Bug: 306860523
Test: atest BiometricsAtomsTests#testAuthenticateAtom
Change-Id: I04f8797bb86b6e21f996e95df32ec152afb39ed9
parent e4fa10ba
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -92,6 +92,7 @@ public class BiometricTestSession implements AutoCloseable {
        mTestedUsers = new ArraySet<>();
        mTestedUsers = new ArraySet<>();
        mUsersCleaningUp = new ArraySet<>();
        mUsersCleaningUp = new ArraySet<>();
        setTestHalEnabled(true);
        setTestHalEnabled(true);
        Log.d(getTag(), "Opening BiometricTestSession");
    }
    }


    /**
    /**
+1 −0
Original line number Original line Diff line number Diff line
@@ -259,6 +259,7 @@ public class Sensor {
    }
    }


    @VisibleForTesting @Nullable protected AidlSession getSessionForUser(int userId) {
    @VisibleForTesting @Nullable protected AidlSession getSessionForUser(int userId) {
        Slog.d(TAG, "getSessionForUser: mCurrentSession: " + mCurrentSession);
        if (mCurrentSession != null && mCurrentSession.getUserId() == userId) {
        if (mCurrentSession != null && mCurrentSession.getUserId() == userId) {
            return mCurrentSession;
            return mCurrentSession;
        } else {
        } else {
+1 −0
Original line number Original line Diff line number Diff line
@@ -295,6 +295,7 @@ public class Sensor {
    }
    }


    @Nullable protected AidlSession getSessionForUser(int userId) {
    @Nullable protected AidlSession getSessionForUser(int userId) {
        Slog.d(TAG, "getSessionForUser: mCurrentSession: " + mCurrentSession);
        if (mCurrentSession != null && mCurrentSession.getUserId() == userId) {
        if (mCurrentSession != null && mCurrentSession.getUserId() == userId) {
            return mCurrentSession;
            return mCurrentSession;
        } else {
        } else {