Home
last modified time | relevance | path

Searched refs:userId (Results 1 – 4 of 4) sorted by relevance

/platform_testing/libraries/system-helpers/user-helper/src/android/system/helpers/
DUserHelper.java67 int userId = INVALID_USER_ID; in createSecondaryUser() local
69 userId = Integer.parseInt(matcher.group(1)); in createSecondaryUser()
70 Log.i(TAG, String.format("User Name:%s User ID:%d", userName, userId)); in createSecondaryUser()
72 return userId; in createSecondaryUser()
84 int userId = INVALID_USER_ID; in getSecondaryUserId() local
86 userId = Integer.parseInt(matcher.group(1)); // 1 = id 2 = flag in getSecondaryUserId()
87 Log.i(TAG, String.format("The userId is %d", userId)); in getSecondaryUserId()
89 return userId; in getSecondaryUserId()
92 public void removeSecondaryUser(int userId) { in removeSecondaryUser() argument
94 CommandsHelper.execute("pm remove-user " + userId); in removeSecondaryUser()
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/
DBackupUtils.java76 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 …]
/platform_testing/libraries/car-helpers/multiuser-helper/src/android/platform/helpers/
DMultiUserHelper.java160 String userId = device.executeShellCommand("cmd car_service get-initial-user").trim(); in getInitialUser() local
161 return Integer.parseInt(userId); in getInitialUser()
/platform_testing/libraries/compatibility-common-util/tests/src/com/android/compatibility/common/util/
DBackupUtilsTest.java530 private String getBmgrCommand(String command, int userId) {
531 return "bmgr --user " + userId + " " + command;