/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | ITestDevice.java | 133 public String installPackageForUser(File packageFile, boolean reinstall, int userId, in installPackageForUser() argument 153 boolean grantPermissions, int userId, String... extraArgs) in installPackageForUser() argument 420 public boolean removeUser(int userId) throws DeviceNotAvailableException; in removeUser() argument 455 public boolean startUser(int userId) throws DeviceNotAvailableException; in startUser() argument 465 public boolean stopUser(int userId) throws DeviceNotAvailableException; in stopUser() argument 477 public boolean stopUser(int userId, boolean waitFlag, boolean forceFlag) in stopUser() argument 503 public int getUserFlags(int userId) throws DeviceNotAvailableException; in getUserFlags() argument 510 public int getUserSerialNumber(int userId) throws DeviceNotAvailableException; in getUserSerialNumber() argument 518 public boolean switchUser(int userId) throws DeviceNotAvailableException; in switchUser() argument 528 public boolean switchUser(int userId, long timeout) throws DeviceNotAvailableException; in switchUser() argument [all …]
|
D | TestDevice.java | 208 public String installPackageForUser(File packageFile, boolean reinstall, int userId, in installPackageForUser() argument 217 args.add(Integer.toString(userId)); in installPackageForUser() 226 boolean grantPermissions, int userId, String... extraArgs) in installPackageForUser() argument 234 args.add(Integer.toString(userId)); in installPackageForUser() 879 public boolean removeUser(int userId) throws DeviceNotAvailableException { 880 final String output = executeShellCommand(String.format("pm remove-user %s", userId)); 892 public boolean startUser(int userId) throws DeviceNotAvailableException { 893 final String output = executeShellCommand(String.format("am start-user %s", userId)); 905 public boolean stopUser(int userId) throws DeviceNotAvailableException { 907 return stopUser(userId, false, false); [all …]
|
D | NativeDevice.java | 743 int userId, in runInstrumentationTestsAsUser() argument 746 String oldRunTimeOptions = appendUserRunTimeOptionToRunner(runner, userId); in runInstrumentationTestsAsUser() 759 …private String appendUserRunTimeOptionToRunner(final IRemoteAndroidTestRunner runner, int userId) { in appendUserRunTimeOptionToRunner() argument 762 String userRunTimeOption = String.format("--user %s", Integer.toString(userId)); in appendUserRunTimeOptionToRunner() 815 IRemoteAndroidTestRunner runner, int userId, ITestLifeCycleReceiver... listeners) in runInstrumentationTestsAsUser() argument 817 String oldRunTimeOptions = appendUserRunTimeOptionToRunner(runner, userId); in runInstrumentationTestsAsUser() 865 public String installPackageForUser(File packageFile, boolean reinstall, int userId, in installPackageForUser() argument 875 boolean grantPermissions, int userId, String... extraArgs) in installPackageForUser() argument 3583 public boolean removeUser(int userId) throws DeviceNotAvailableException { in removeUser() argument 3591 public boolean startUser(int userId) throws DeviceNotAvailableException { in startUser() argument [all …]
|
D | INativeDevice.java | 446 int userId, in runInstrumentationTestsAsUser() argument 455 IRemoteAndroidTestRunner runner, int userId, ITestLifeCycleReceiver... listeners) in runInstrumentationTestsAsUser() argument
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/junit4/ |
D | BaseHostJUnit4Test.java | 168 String apkFileName, boolean grantPermission, int userId, String... options) in installPackageAsUser() argument 170 installPackageAsUser(getDevice(), apkFileName, grantPermission, userId, options); in installPackageAsUser() local 186 int userId, in installPackageAsUser() argument 195 installer.setUserId(userId); in installPackageAsUser() 253 String pkgName, String testClassName, Integer userId, Long testTimeoutMs) in runDeviceTests() argument 261 userId, in runDeviceTests() 386 Integer userId, in runDeviceTests() argument 395 userId, in runDeviceTests() 484 Integer userId, in runDeviceTests() argument 498 userId, in runDeviceTests() [all …]
|
D | DeviceTestRunOptions.java | 96 public DeviceTestRunOptions setUserId(Integer userId) { in setUserId() argument 97 this.mUserId = userId; in setUserId()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | TestAppInstallSetup.java | 138 public void setUserId(int userId) { in setUserId() argument 139 mUserId = userId; in setUserId()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | TestDeviceTest.java | 3128 public String getAndroidId(int userId) throws DeviceNotAvailableException { in testGetAndroidIds() 3164 public String getAndroidId(int userId) throws DeviceNotAvailableException { in testGetAndroidIds_noMatch()
|