Searched refs:getAvailableRestoreToken (Results 1 – 10 of 10) sorted by relevance
454 when(mBackupManagerService.getAvailableRestoreToken(PACKAGE_1)).thenReturn(TOKEN_1); in testRestorePackage_whenCallerIsPackage()477 when(mBackupManagerService.getAvailableRestoreToken(PACKAGE_1)).thenReturn(TOKEN_1); in testRestorePackage_whenPackageNullWhenCreated()495 when(mBackupManagerService.getAvailableRestoreToken(PACKAGE_1)).thenReturn(TOKEN_1); in testRestorePackage_whenCallerIsNotPackageAndPermissionGranted()513 when(mBackupManagerService.getAvailableRestoreToken(PACKAGE_1)).thenReturn(TOKEN_1); in testRestorePackage_whenCallerIsNotPackageAndPermissionDenied()
1206 backupManagerService.getAvailableRestoreToken(mUserOneId, TEST_PACKAGE); in testGetAvailableRestoreToken_onRegisteredUser_callsMethodForUser()1208 verify(mUserOneService).getAvailableRestoreToken(TEST_PACKAGE); in testGetAvailableRestoreToken_onRegisteredUser_callsMethodForUser()1218 backupManagerService.getAvailableRestoreToken(mUserTwoId, TEST_PACKAGE); in testGetAvailableRestoreToken_onUnknownUser_doesNotPropagateCall()1220 verify(mUserOneService, never()).getAvailableRestoreToken(TEST_PACKAGE); in testGetAvailableRestoreToken_onUnknownUser_doesNotPropagateCall()
748 public long getAvailableRestoreToken(@UserIdInt int userId, String packageName) { in getAvailableRestoreToken() method in BackupManagerService754 : userBackupManagerService.getAvailableRestoreToken(packageName); in getAvailableRestoreToken()
742 return isUserReadyForBackup(userId) ? mService.getAvailableRestoreToken(userId, in getAvailableRestoreTokenForUser()
1581 public long getAvailableRestoreToken(String packageName) { in getAvailableRestoreToken() method in UserBackupManagerService3240 long restoreSet = getAvailableRestoreToken(packageName); in restoreAtInstall()
343 long token = mBackupManagerService.getAvailableRestoreToken(packageName); in restorePackage()
684 public long getAvailableRestoreToken(String packageName) { in getAvailableRestoreToken() method in BackupManager
1190 when(mBackupManagerServiceMock.getAvailableRestoreToken(mUserId, PACKAGE_NAME)) in getAvailableRestoreTokenForUser_forwarded()1195 verify(mBackupManagerServiceMock).getAvailableRestoreToken(mUserId, PACKAGE_NAME); in getAvailableRestoreTokenForUser_forwarded()
747 …equiresPermission(android.Manifest.permission.BACKUP) public long getAvailableRestoreToken(String);
4895 PLcom/android/server/backup/UserBackupManagerService;->getAvailableRestoreToken(Ljava/lang/String;)J