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

Commit 4fb73bfc authored by Chandru S's avatar Chandru S
Browse files

Removing logs from getter method.

This will cause the KeyguardUpdateMonitor logbuffer to fill up

Bug: 333656491
Change-Id: I2ee330f859f79e1dbc46cadb6cb5723f114c135c
Flag: com.android.systemui.user_encrypted_source
Test: NA
parent 2a76c44a
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,