Searched refs:userId (Results 1 – 2 of 2) sorted by relevance
/test/suite_harness/common/util/src/com/android/compatibility/common/util/ |
D | BackupUtils.java | 76 public void backupNowAndAssertSuccessForUser(String packageName, int userId) in backupNowAndAssertSuccessForUser() argument 78 assertBackupIsSuccessful(packageName, backupNowForUser(packageName, userId)); in backupNowAndAssertSuccessForUser() 100 public void restoreAndAssertSuccessForUser(String token, String packageName, int userId) in restoreAndAssertSuccessForUser() argument 102 assertRestoreIsSuccessful(restoreForUser(token, packageName, userId)); in restoreAndAssertSuccessForUser() 122 public boolean isLocalTransportSelectedForUser(int userId) throws IOException { in isLocalTransportSelectedForUser() argument 123 return getShellCommandOutput(String.format("bmgr --user %d list transports", userId)) in isLocalTransportSelectedForUser() 135 public boolean isBackupEnabledForUser(int userId) throws IOException { in isBackupEnabledForUser() argument 136 return getShellCommandOutput(String.format("bmgr --user %d enabled", userId)) in isBackupEnabledForUser() 163 private InputStream backupNowForUser(String packageName, int userId) throws IOException { in backupNowForUser() argument 165 String.format("bmgr --user %d backupnow %s", userId, packageName)); in backupNowForUser() [all …]
|
/test/suite_harness/common/util/tests/src/com/android/compatibility/common/util/ |
D | BackupUtilsTest.java | 530 private String getBmgrCommand(String command, int userId) { 531 return "bmgr --user " + userId + " " + command;
|