Add userId to log messages - DO NOT MERGE

Add the user ID so it's easier to see which user log messages refer to.

There's a bit of churn around conditionals in this to ensure that the
code complies with the style guidelines.

Fixes: 148376687
Test: make RunBackupFrameworksServicesRoboTests
Change-Id: I3ca92d21492fae4b89cb73fb39db1a490c796f5d
This commit is contained in:
Al Sutton
2020-03-17 16:47:35 +00:00
parent a8a123c1ea
commit c4d9e91f85
2 changed files with 743 additions and 223 deletions

View File

@@ -166,7 +166,7 @@ public class BackupManagerServiceTestUtils {
PowerManager powerManager =
(PowerManager) application.getSystemService(Context.POWER_SERVICE);
return new UserBackupManagerService.BackupWakeLock(
powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "*backup*"));
powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "*backup*"), 0);
}
/**