Home
last modified time | relevance | path

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

/tools/tradefederation/core/src/com/android/tradefed/suite/checker/
DUserChecker.java100 for (int userId : mPreExecutionUserState.findStoppedUsers(postDeviceUserState)) { in postExecutionCheck()
101 CLog.w("User %d was running but is now stopped.", userId); in postExecutionCheck()
104 for (int userId : mPreExecutionUserState.findStartedUsers(postDeviceUserState)) { in postExecutionCheck()
105 CLog.w("User %d was stopped but is now running.", userId); in postExecutionCheck()
146 for (Integer userId : mUsers) { in DeviceUserState()
147 mUserRunningStates.put(userId, device.isUserRunning(userId)); in DeviceUserState()
159 for (Integer userId : mUsers) { in toString()
160 String running = mUserRunningStates.get(userId) ? "running" : "stopped"; in toString()
161 builder.append(String.format(" %d:%s", userId, running)); in toString()
168 for (Integer userId : mUsers) { in findRemovedUsers()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/device/
DTestDevice.java232 public String installPackageForUser(File packageFile, boolean reinstall, int userId, in installPackageForUser() argument
241 args.add(Integer.toString(userId)); in installPackageForUser()
250 boolean grantPermissions, int userId, String... extraArgs) in installPackageForUser() argument
258 args.add(Integer.toString(userId)); in installPackageForUser()
428 List<File> packageFiles, boolean reinstall, int userId, String... extraArgs) in installPackagesForUser() argument
432 packageFiles, reinstall, isRuntimePermissionSupported(), userId, extraArgs); in installPackagesForUser()
441 int userId, in installPackagesForUser() argument
450 args.add(Integer.toString(userId)); in installPackagesForUser()
925 public boolean isPackageInstalled(String packageName, String userId) in isPackageInstalled() argument
927 return getInstalledPackageNames(packageName, userId).contains(packageName); in isPackageInstalled()
[all …]
DITestDevice.java164 public String installPackageForUser(File packageFile, boolean reinstall, int userId, in installPackageForUser() argument
184 boolean grantPermissions, int userId, String... extraArgs) in installPackageForUser() argument
264 List<File> packageFiles, boolean reinstall, int userId, String... extraArgs) in installPackagesForUser() argument
293 int userId, in installPackagesForUser() argument
581 public boolean isPackageInstalled(String packageName, String userId) in isPackageInstalled() argument
655 public boolean removeUser(int userId) throws DeviceNotAvailableException; in removeUser() argument
690 public boolean startUser(int userId) throws DeviceNotAvailableException; in startUser() argument
702 public boolean startUser(int userId, boolean waitFlag) throws DeviceNotAvailableException; in startUser() argument
712 public boolean stopUser(int userId) throws DeviceNotAvailableException; in stopUser() argument
724 public boolean stopUser(int userId, boolean waitFlag, boolean forceFlag) in stopUser() argument
[all …]
DNativeDevice.java854 int userId, in runInstrumentationTestsAsUser() argument
857 String oldRunTimeOptions = appendUserRunTimeOptionToRunner(runner, userId); in runInstrumentationTestsAsUser()
870 …private String appendUserRunTimeOptionToRunner(final IRemoteAndroidTestRunner runner, int userId) { in appendUserRunTimeOptionToRunner() argument
873 String userRunTimeOption = String.format("--user %s", Integer.toString(userId)); in appendUserRunTimeOptionToRunner()
928 IRemoteAndroidTestRunner runner, int userId, ITestLifeCycleReceiver... listeners) in runInstrumentationTestsAsUser() argument
930 String oldRunTimeOptions = appendUserRunTimeOptionToRunner(runner, userId); in runInstrumentationTestsAsUser()
978 public String installPackageForUser(File packageFile, boolean reinstall, int userId, in installPackageForUser() argument
988 boolean grantPermissions, int userId, String... extraArgs) in installPackageForUser() argument
3619 public boolean isPackageInstalled(String packageName, String userId) in isPackageInstalled() argument
3867 public boolean removeUser(int userId) throws DeviceNotAvailableException { in removeUser() argument
[all …]
DINativeDevice.java510 int userId, in runInstrumentationTestsAsUser() argument
519 IRemoteAndroidTestRunner runner, int userId, ITestLifeCycleReceiver... listeners) in runInstrumentationTestsAsUser() argument
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DMultiUserSetupUtil.java57 int userId, in addExtraCvdUser() argument
62 String useridString = getUserNumber(userId); in addExtraCvdUser()
82 int userId, in setupNetworkInterface() argument
87 if (userId < 9) { in setupNetworkInterface()
91 String useridString = getUserNumber(userId); in setupNetworkInterface()
164 public static String getUserNumber(int userId) { in getUserNumber() argument
165 return (userId > 9) ? Integer.toString(userId) : "0" + Integer.toString(userId); in getUserNumber()
/tools/tradefederation/core/src/com/android/tradefed/testtype/junit4/
DBaseHostJUnit4Test.java176 String apkFileName, boolean grantPermission, int userId, String... options) in installPackageAsUser() argument
178 installPackageAsUser(getDevice(), apkFileName, grantPermission, userId, options); in installPackageAsUser() local
194 int userId, in installPackageAsUser() argument
203 installer.setUserId(userId); in installPackageAsUser()
262 String pkgName, String testClassName, Integer userId, Long testTimeoutMs) in runDeviceTests() argument
270 userId, in runDeviceTests()
399 Integer userId, in runDeviceTests() argument
408 userId, in runDeviceTests()
503 Integer userId, in runDeviceTests() argument
517 userId, in runDeviceTests()
[all …]
DDeviceTestRunOptions.java105 public DeviceTestRunOptions setUserId(Integer userId) { in setUserId() argument
106 this.mUserId = userId; in setUserId()
/tools/tradefederation/core/src/com/android/tradefed/util/
DUserUtil.java106 private static void switchUser(ITestDevice device, int userId) in switchUser() argument
108 if (!device.switchUser(userId)) { in switchUser()
109 throw new UserSwitchFailedException("Failed to switch to user " + userId); in switchUser()
123 for (int userId : device.listUsers()) { in findExistingSecondary()
124 if (device.isUserSecondary(userId)) { in findExistingSecondary()
125 return userId; in findExistingSecondary()
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DRemoteInvocationExecution.java600 int userId, in startDevice() argument
606 String useridString = MultiUserSetupUtil.getUserNumber(userId); in startDevice()
637 userId, info, options, runUtil, NEW_USER_TIMEOUT); in startDevice()
648 userId, info, options, runUtil, NEW_USER_TIMEOUT); in startDevice()
699 int userId, in StartDeviceThread() argument
706 setName(String.format("start-device-thread-vsoc-%s", userId)); in StartDeviceThread()
708 mUserId = userId; in StartDeviceThread()
/tools/tradefederation/core/tests/src/com/android/tradefed/suite/checker/
DUserCheckerTest.java225 for (int userId : userIds) { in mockDeviceUserState()
226 when(device.isUserRunning(userId)).thenReturn(runningUsersSet.contains(userId)); in mockDeviceUserState()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DTestAppInstallSetup.java163 public void setUserId(int userId) { in setUserId() argument
164 mUserId = userId; in setUserId()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DTestDeviceTest.java3730 public String getAndroidId(int userId) throws DeviceNotAvailableException { in testGetAndroidIds()
3766 public String getAndroidId(int userId) throws DeviceNotAvailableException { in testGetAndroidIds_noMatch()