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

Commit eb139e77 authored by Mayank Garg's avatar Mayank Garg
Browse files

Fix for a test broken due to removing logcat msgs

Bug: 150809629
Bug: 149604218
Test: atest CtsMultiUserHostTestCases:android.host.multiuser.CreateUsersNoAppCrashesTest
Change-Id: I296bbf475e7661603412c813bbb1cf91bb3763fe
parent ce0f9f76
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -162,9 +162,6 @@ class UserController implements Handler.Callback {
    // when it never calls back.
    private static final int USER_SWITCH_CALLBACKS_TIMEOUT_MS = 5 * 1000;

    // TODO(b/149604218): STOPSHIP remove  this constant and the logcat
    private static final boolean TESTS_NEED_LOGCAT = true;

    // Used for statsd logging with UserLifecycleJourneyReported + UserLifecycleEventOccurred atoms
    private static final long INVALID_SESSION_ID = 0;

@@ -1721,9 +1718,6 @@ class UserController implements Handler.Callback {
    }

    void continueUserSwitch(UserState uss, int oldUserId, int newUserId) {
        if (TESTS_NEED_LOGCAT) {
            Slog.d(TAG, "Continue user switch oldUser #" + oldUserId + ", newUser #" + newUserId);
        }
        EventLog.writeEvent(EventLogTags.UC_CONTINUE_USER_SWITCH, oldUserId, newUserId);

        if (isUserSwitchUiEnabled()) {