diff options
author | Bernardo Rufino <brufino@google.com> | 2019-08-15 19:18:27 +0100 |
---|---|---|
committer | Bernardo Rufino <brufino@google.com> | 2019-08-15 20:10:21 +0100 |
commit | aa032460ca184733144b91d1ba42d1af9e10439b (patch) | |
tree | ba63314a2fab9017f250766cfd53bb1027b10ad5 /services/backup/java | |
parent | 0948c30a119f4f08763608d8fa86f495abcc56da (diff) |
Move getServiceForUserIfCallerHasPermission() to Trampoline
From BMS.
Test: atest BackupManagerServiceTest TrampolineRoboTest TrampolineTest
Bug: 135661048
Change-Id: I7758e00635d385272b64bbc8d64dd0fd0ad600d2
Diffstat (limited to 'services/backup/java')
-rw-r--r-- | services/backup/java/com/android/server/backup/BackupManagerService.java | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/services/backup/java/com/android/server/backup/BackupManagerService.java b/services/backup/java/com/android/server/backup/BackupManagerService.java index 5824be72ca3e..23afce6c94e1 100644 --- a/services/backup/java/com/android/server/backup/BackupManagerService.java +++ b/services/backup/java/com/android/server/backup/BackupManagerService.java @@ -18,8 +18,6 @@ package com.android.server.backup; import static com.android.internal.util.Preconditions.checkNotNull; -import android.annotation.Nullable; -import android.annotation.UserIdInt; import android.content.Context; import android.os.IBinder; import android.util.SparseArray; @@ -55,24 +53,6 @@ public class BackupManagerService { mServiceUsers = userServices; } - /** - * Returns the {@link UserBackupManagerService} instance for the specified user {@code userId}. - * If the user is not registered with the service (either the user is locked or not eligible for - * the backup service) then return {@code null}. - * - * @param userId The id of the user to retrieve its instance of {@link - * UserBackupManagerService}. - * @param caller A {@link String} identifying the caller for logging purposes. - * @throws SecurityException if {@code userId} is different from the calling user id and the - * caller does NOT have the android.permission.INTERACT_ACROSS_USERS_FULL permission. - */ - @Nullable - @VisibleForTesting - UserBackupManagerService getServiceForUserIfCallerHasPermission( - @UserIdInt int userId, String caller) { - return mTrampoline.getServiceForUserIfCallerHasPermission(userId, caller); - } - /** Implementation to receive lifecycle event callbacks for system services. */ public static class Lifecycle extends SystemService { public Lifecycle(Context context) { |