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

Commit 8e28fb3d authored by Eric Biggers's avatar Eric Biggers Committed by Automerger Merge Worker
Browse files

Merge "StorageManagerService: fix names of user lifecycle methods" into main...

Merge "StorageManagerService: fix names of user lifecycle methods" into main am: 07615e30 am: 843bb557 am: 29faa496

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2762526



Change-Id: I8560f39b90df4c3ce05229d14bb3cc16e1c2b01c
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 39f7bc63 29faa496
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
@@ -264,17 +264,17 @@ class StorageManagerService extends IStorageManager.Stub

        @Override
        public void onUserUnlocking(@NonNull TargetUser user) {
            mStorageManagerService.onUnlockUser(user.getUserIdentifier());
            mStorageManagerService.onUserUnlocking(user.getUserIdentifier());
        }

        @Override
        public void onUserStopped(@NonNull TargetUser user) {
            mStorageManagerService.onCleanupUser(user.getUserIdentifier());
            mStorageManagerService.onUserStopped(user.getUserIdentifier());
        }

        @Override
        public void onUserStopping(@NonNull TargetUser user) {
            mStorageManagerService.onStopUser(user.getUserIdentifier());
            mStorageManagerService.onUserStopping(user.getUserIdentifier());
        }

        @Override
@@ -1162,8 +1162,8 @@ class StorageManagerService extends IStorageManager.Stub
        }
    }

    private void onUnlockUser(int userId) {
        Slog.d(TAG, "onUnlockUser " + userId);
    private void onUserUnlocking(int userId) {
        Slog.d(TAG, "onUserUnlocking " + userId);

        if (userId != UserHandle.USER_SYSTEM) {
            // Check if this user shares media with another user
@@ -1226,8 +1226,8 @@ class StorageManagerService extends IStorageManager.Stub
        }
    }

    private void onCleanupUser(int userId) {
        Slog.d(TAG, "onCleanupUser " + userId);
    private void onUserStopped(int userId) {
        Slog.d(TAG, "onUserStopped " + userId);

        try {
            mVold.onUserStopped(userId);
@@ -1241,8 +1241,8 @@ class StorageManagerService extends IStorageManager.Stub
        }
    }

    private void onStopUser(int userId) {
        Slog.i(TAG, "onStopUser " + userId);
    private void onUserStopping(int userId) {
        Slog.i(TAG, "onUserStopping " + userId);
        try {
            mStorageSessionController.onUserStopping(userId);
        } catch (Exception e) {