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

Commit 11177e49 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Removing logs from getter method." into main

parents 364881a2 4fb73bfc
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -2691,9 +2691,7 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener, Dumpab
     */
    public boolean isUserUnlocked(int userId) {
        if (Flags.userEncryptedSource()) {
            boolean userStorageUnlocked = mUserManager.isUserUnlocked(userId);
            mLogger.logUserStorageUnlocked(userId, userStorageUnlocked);
            return userStorageUnlocked;
            return mUserManager.isUserUnlocked(userId);
        } else {
            return mUserIsUnlocked.get(userId);
        }
+0 −12
Original line number Diff line number Diff line
@@ -582,18 +582,6 @@ constructor(@KeyguardUpdateMonitorLog private val logBuffer: LogBuffer) {
        logBuffer.log(TAG, DEBUG, { int1 = userId }, { "userUnlocked userId: $int1" })
    }

    fun logUserStorageUnlocked(userId: Int, result: Boolean) {
        logBuffer.log(
            TAG,
            DEBUG,
            {
                int1 = userId
                bool1 = result
            },
            { "Invoked UserManager#isUserUnlocked $int1, result: $bool1" },
        )
    }

    fun logUserStopped(userId: Int, isUnlocked: Boolean) {
        logBuffer.log(
            TAG,