Home
last modified time | relevance | path

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

/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DITestDevice.java179 File packageFile, boolean reinstall, int userId, String... extraArgs) in installPackageForUser() argument
204 int userId, in installPackageForUser() argument
285 List<File> packageFiles, boolean reinstall, int userId, String... extraArgs) in installPackagesForUser() argument
314 int userId, in installPackagesForUser() argument
602 public boolean isPackageInstalled(String packageName, String userId) in isPackageInstalled() argument
684 public boolean removeUser(int userId) throws DeviceNotAvailableException; in removeUser() argument
729 public boolean startUser(int userId) throws DeviceNotAvailableException; in startUser() argument
741 public boolean startUser(int userId, boolean waitFlag) throws DeviceNotAvailableException; in startUser() argument
751 public boolean stopUser(int userId) throws DeviceNotAvailableException; in stopUser() argument
763 public boolean stopUser(int userId, boolean waitFlag, boolean forceFlag) in stopUser() argument
[all …]
DUserInfo.java83 public UserInfo(int userId, String userName, int flag, boolean isRunning) { in UserInfo() argument
84 mUserId = userId; in UserInfo()
90 public int userId() { in userId() method in UserInfo
DINativeDevice.java562 int userId, in runInstrumentationTestsAsUser() argument
571 IRemoteAndroidTestRunner runner, int userId, ITestLifeCycleReceiver... listeners) in runInstrumentationTestsAsUser() argument
/tools/tradefederation/core/src/com/android/tradefed/suite/checker/
DUserChecker.java68 if (mPreCurrentUserInfo.isUserType(mUserToSwitchTo, mPreCurrentUserInfo.userId())) { in preExecutionCheck()
71 mPreCurrentUserInfo.userId(), mUserToSwitchTo.toString()); in preExecutionCheck()
89 mPreCurrentUserInfo.userId(), mSwitchedToUserId, mUserToSwitchTo); in preExecutionCheck()
106 if (mPreCurrentUserInfo.userId() != postCurrentUserInfo.userId()) { in postExecutionCheck()
107 if (postCurrentUserInfo.userId() != mSwitchedToUserId) { in postExecutionCheck()
111 mPreCurrentUserInfo.userId(), postCurrentUserInfo.userId())); in postExecutionCheck()
114 if (!device.switchUser(mPreCurrentUserInfo.userId())) { in postExecutionCheck()
119 mPreCurrentUserInfo.userId())); in postExecutionCheck()
125 int preUserId = preUserInfo.userId(); in postExecutionCheck()
164 if (userInfo.isUserType(mUserToSwitchTo, mPreCurrentUserInfo.userId())) { in findMatchingUser()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/device/
DTestDevice.java254 public String installPackageForUser(File packageFile, boolean reinstall, int userId, in installPackageForUser() argument
263 args.add(Integer.toString(userId)); in installPackageForUser()
272 boolean grantPermissions, int userId, String... extraArgs) in installPackageForUser() argument
280 args.add(Integer.toString(userId)); in installPackageForUser()
453 for (int userId : userIds) { in allowLegacyStorageForApps()
457 + userId in allowLegacyStorageForApps()
507 List<File> packageFiles, boolean reinstall, int userId, String... extraArgs) in installPackagesForUser() argument
511 packageFiles, reinstall, isRuntimePermissionSupported(), userId, extraArgs); in installPackagesForUser()
520 int userId, in installPackagesForUser() argument
529 args.add(Integer.toString(userId)); in installPackagesForUser()
[all …]
DNativeDevice.java922 int userId, in runInstrumentationTestsAsUser() argument
925 String oldRunTimeOptions = appendUserRunTimeOptionToRunner(runner, userId); in runInstrumentationTestsAsUser()
938 …private String appendUserRunTimeOptionToRunner(final IRemoteAndroidTestRunner runner, int userId) { in appendUserRunTimeOptionToRunner() argument
941 String userRunTimeOption = String.format("--user %s", Integer.toString(userId)); in appendUserRunTimeOptionToRunner()
996 IRemoteAndroidTestRunner runner, int userId, ITestLifeCycleReceiver... listeners) in runInstrumentationTestsAsUser() argument
998 String oldRunTimeOptions = appendUserRunTimeOptionToRunner(runner, userId); in runInstrumentationTestsAsUser()
1062 public String installPackageForUser(File packageFile, boolean reinstall, int userId, in installPackageForUser() argument
1072 boolean grantPermissions, int userId, String... extraArgs) in installPackageForUser() argument
3883 public boolean isPackageInstalled(String packageName, String userId) in isPackageInstalled() argument
4169 public boolean removeUser(int userId) throws DeviceNotAvailableException { in removeUser() argument
[all …]
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/junit4/
DBaseHostJUnit4Test.java174 String apkFileName, boolean grantPermission, int userId, String... options) in installPackageAsUser() argument
176 installPackageAsUser(getDevice(), apkFileName, grantPermission, userId, options); in installPackageAsUser() local
192 int userId, in installPackageAsUser() argument
201 installer.setUserId(userId); in installPackageAsUser()
267 String pkgName, String testClassName, Integer userId, Long testTimeoutMs) in runDeviceTests() argument
275 userId, in runDeviceTests()
404 Integer userId, in runDeviceTests() argument
413 userId, in runDeviceTests()
509 Integer userId, in runDeviceTests() argument
523 userId, in runDeviceTests()
[all …]
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DSwitchUserTargetPreparer.java65 userInfo.userId(), mUserToSwitchTo.toString(), mPreExecutionCurrentUser); in setUp()
66 if (!device.switchUser(userInfo.userId())) { in setUp()
68 String.format("Device failed to switch to user %d", userInfo.userId()), in setUp()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DSwitchUserTargetPreparerTest.java224 int userId = userIds[i]; in mockListUsersInfo() local
226 userId, in mockListUsersInfo()
228 /* userId= */ userId, in mockListUsersInfo()
229 /* userName= */ "usr" + userId, in mockListUsersInfo()
/tools/tradefederation/core/tests/src/com/android/tradefed/suite/checker/
DUserCheckerTest.java343 int userId = userIds[i]; in mockListUsersInfo() local
345 userId, in mockListUsersInfo()
347 /* userId= */ userId, in mockListUsersInfo()
348 /* userName= */ "usr" + userId, in mockListUsersInfo()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DTestDeviceTest.java2585 assertEquals(0, user0.userId()); in testListUsersInfo_oneUser()
2603 assertEquals(0, user0.userId()); in testListUsersInfo_multiUsers()
2609 assertEquals(10, user10.userId()); in testListUsersInfo_multiUsers()
4068 public String getAndroidId(int userId) throws DeviceNotAvailableException { in testGetAndroidIds()
4104 public String getAndroidId(int userId) throws DeviceNotAvailableException { in testGetAndroidIds_noMatch()
4779 public boolean isPackageInstalled(String packageName, String userId) in testPushFile_contentProvider()
4837 public boolean isPackageInstalled(String packageName, String userId) in testPushFile_contentProvider_notFound()
/tools/tradefederation/core/tests/res/testdata/
Dtradefed-prebuilt-cts-8.0_r21.jarMETA-INF/ META-INF/MANIFEST.MF jline/ jline/CompletionHandler.class CompletionHandler ...