Home
last modified time | relevance | path

Searched defs:userId (Results 1 – 25 of 30) sorted by relevance

12

/tools/tradefederation/core/javatests/com/android/tradefed/util/
DITestDeviceMockHelper.java41 public void mockGetCurrentUser(int userId) throws Exception { in mockGetCurrentUser()
53 public void mockSwitchUser(int userId) throws Exception { in mockSwitchUser()
57 public void mockStartUser(int userId) throws Exception { in mockStartUser()
61 public void mockStartUserVisibleOnBackground(int userId, int displayId) throws Exception { in mockStartUserVisibleOnBackground()
65 public void mockStartUserVisibleOnBackground(int userId, int displayId, boolean result) in mockStartUserVisibleOnBackground()
71 public void mockCreateUser(int userId) throws Exception { in mockCreateUser()
90 public void mockIsUserVisibleOnDisplay(int userId, int displayId) throws Exception { in mockIsUserVisibleOnDisplay()
111 public void verifyUserSwitched(int userId) throws Exception { in verifyUserSwitched()
124 public void verifyUserStartedVisibleOnBackground(int userId, int displayId) throws Exception { in verifyUserStartedVisibleOnBackground()
128 public void verifyUserStopped(int userId) throws Exception { in verifyUserStopped()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/
DCreateUserPreparerTest.java207 private void mockGetCurrentUser(int userId) throws Exception { in mockGetCurrentUser()
219 private void mockSwitchUser(int userId) throws Exception { in mockSwitchUser()
223 private void mockStartUser(int userId) throws Exception { in mockStartUser()
227 private void mockCreateUser(int userId) throws Exception { in mockCreateUser()
247 private void verifyUserSwitched(int userId) throws Exception { in verifyUserSwitched()
255 private void verifyUserRemoved(int userId) throws Exception { in verifyUserRemoved()
259 private void verifyUserNotRemoved(int userId) throws Exception { in verifyUserNotRemoved()
263 private void verifyUserSettings(int userId, String key, String value) throws Exception { in verifyUserSettings()
DVisibleBackgroundUserPreparerTest.java377 private void mockStartUserVisibleOnBackground(int userId, int displayId) throws Exception { in mockStartUserVisibleOnBackground()
381 private void mockStartUserVisibleOnBackground(int userId, int displayId, boolean result) in mockStartUserVisibleOnBackground()
386 private void mockCreateUser(int userId) throws Exception { in mockCreateUser()
403 private void mockIsUserVisibleOnDisplay(int userId, int displayId) throws Exception { in mockIsUserVisibleOnDisplay()
432 private void verifyUserStartedVisibleOnBackground(int userId, int displayId) throws Exception { in verifyUserStartedVisibleOnBackground()
436 private void verifyUserStopped(int userId) throws Exception { in verifyUserStopped()
448 private void verifyUserRemoved(int userId) throws Exception { in verifyUserRemoved()
452 private void verifyUserNotRemoved(int userId) throws Exception { in verifyUserNotRemoved()
463 private void verifyUserSettings(int userId, String key, String value) throws Exception { in verifyUserSettings()
DSwitchUserTargetPreparerTest.java271 int userId = userIds[i]; in mockListUsersInfo() local
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DITestDevice.java182 File packageFile, boolean reinstall, int userId, String... extraArgs) in installPackageForUser()
207 int userId, in installPackageForUser()
230 public String uninstallPackageForUser(String packageName, int userId) in uninstallPackageForUser()
300 List<File> packageFiles, boolean reinstall, int userId, String... extraArgs) in installPackagesForUser()
329 int userId, in installPackagesForUser()
652 public boolean isPackageInstalled(String packageName, String userId) in isPackageInstalled()
767 public boolean removeUser(int userId) throws DeviceNotAvailableException; in removeUser()
812 public boolean startUser(int userId) throws DeviceNotAvailableException; in startUser()
824 public boolean startUser(int userId, boolean waitFlag) throws DeviceNotAvailableException; in startUser()
838 public boolean startVisibleBackgroundUser(int userId, int displayId, boolean waitFlag) in startVisibleBackgroundUser()
[all …]
DPackageInfo.java134 public void addPerUserAttribute(int userId, String attr, String value) { in addPerUserAttribute()
141 public String getFirstInstallTime(int userId) { in getFirstInstallTime()
DUserInfo.java122 public UserInfo(int userId, String userName, int flag, boolean isRunning) { in UserInfo()
129 public UserInfo(int userId, String userName, int flag, boolean isRunning, String userType) { in UserInfo()
134 public int userId() { in userId() method in UserInfo
DINativeDevice.java635 int userId, in runInstrumentationTestsAsUser()
644 IRemoteAndroidTestRunner runner, int userId, ITestLifeCycleReceiver... listeners) in runInstrumentationTestsAsUser()
693 public boolean pullFile(String remoteFilePath, File localFile, int userId) in pullFile()
719 public File pullFile(String remoteFilePath, int userId) throws DeviceNotAvailableException; in pullFile()
765 public boolean pullDir(String deviceFilePath, File localDir, int userId) in pullDir()
790 public boolean pushFile(File localFile, String deviceFilePath, int userId) in pushFile()
844 public boolean pushDir(File localDir, String deviceFilePath, int userId) in pushDir()
909 public void deleteFile(String deviceFilePath, int userId) throws DeviceNotAvailableException; in deleteFile()
/tools/tradefederation/core/javatests/com/android/tradefed/device/
DTestDeviceUserFuncTest.java62 int userId = -1; in testUserLifecycle() local
88 int userId = -1; in testStartUser_IsRunningUser_StopUser() local
DTestDevicePackageFuncTest.java133 int userId = -1; in testInstallListUninstall_forUser() local
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/contentprovider/
DContentProviderHandler.java95 public ContentProviderHandler(ITestDevice device, @Nullable Integer userId) { in ContentProviderHandler()
249 int userId = getEffectiveUserId(); in pushFile() local
388 private boolean pullDirInternal(String deviceFilePath, File localDir, int userId) in pullDirInternal()
443 private boolean pullFileInternal(String deviceFilePath, File localFile, int userId) in pullFileInternal()
475 private boolean pushFileInternal(File fileToPush, String deviceFilePath, int userId) in pushFileInternal()
492 File localFileDir, String deviceFilePath, Set<String> excludedDirectories, int userId) in pushDirInternal()
/tools/tradefederation/core/src/com/android/tradefed/device/
DTestDevice.java602 public String installPackageForUser(File packageFile, boolean reinstall, int userId, in installPackageForUser()
620 boolean grantPermissions, int userId, String... extraArgs) in installPackageForUser()
665 public String uninstallPackageForUser(final String packageName, int userId) in uninstallPackageForUser()
811 List<File> packageFiles, boolean reinstall, int userId, String... extraArgs) in installPackagesForUser()
824 int userId, in installPackagesForUser()
1344 private Set<String> getInstalledPackageNames(String packageNameSearched, String userId) in getInstalledPackageNames()
1377 public boolean isPackageInstalled(String packageName, String userId) in isPackageInstalled()
1511 public boolean doesFileExist(String deviceFilePath, int userId) in doesFileExist()
1893 public boolean removeUser(int userId) throws DeviceNotAvailableException { in removeUser()
1906 public boolean startUser(int userId) throws DeviceNotAvailableException { in startUser()
[all …]
DDumpsysPackageReceiver.java118 int userId = Integer.parseInt(userStateMatcher.group(1)); in parse() local
218 public PerUserPackageParserState(String name, int userId) throws ParseException { in PerUserPackageParserState()
236 int userId = Integer.parseInt(userStateMatcher.group(1)); in parse() local
DNativeDevice.java1255 int userId, in runInstrumentationTestsAsUser()
1267 IRemoteAndroidTestRunner runner, int userId, ITestLifeCycleReceiver... listeners) in runInstrumentationTestsAsUser()
1282 …private String appendUserRunTimeOptionToRunner(final IRemoteAndroidTestRunner runner, int userId) { in appendUserRunTimeOptionToRunner()
1405 public String installPackageForUser(File packageFile, boolean reinstall, int userId, in installPackageForUser()
1415 boolean grantPermissions, int userId, String... extraArgs) in installPackageForUser()
1430 public String uninstallPackageForUser(final String packageName, int userId) in uninstallPackageForUser()
1437 public boolean pullFile(final String remoteFilePath, final File localFile, int userId) in pullFile()
1466 public File pullFile(String remoteFilePath, int userId) throws DeviceNotAvailableException { in pullFile()
1585 public boolean pushFile(final File localFile, final String remoteFilePath, int userId) in pushFile()
1597 int userId = getCurrentUserCompatible(remoteFilePath); in pushFile() local
[all …]
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/junit4/
DBaseHostJUnit4Test.java200 String apkFileName, boolean grantPermission, int userId, String... options) in installPackageAsUser()
223 int userId, in installPackageAsUser()
285 String pkgName, String testClassName, Integer userId, Long testTimeoutMs) in runDeviceTests()
422 Integer userId, in runDeviceTests()
529 Integer userId, in runDeviceTests()
580 Integer userId, in runDeviceTests()
636 Integer userId, in runDeviceTests()
694 Integer userId, in runDeviceTests()
780 Integer userId, in doRunTests()
DDeviceTestRunOptions.java113 public DeviceTestRunOptions setUserId(Integer userId) { in setUserId()
/tools/trebuchet/trebuchet/user-switch-analyzer/src/
DUserSwitchAnalyzer.kt95 var userId = -1; in main() variable
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DRunOnSystemUserTargetPreparer.java58 private void ensureSwitchedToUser(ITestDevice device, int userId) in ensureSwitchedToUser()
DCreateUserPreparer.java61 private void switchCurrentUser(ITestDevice device, int userId) in switchCurrentUser()
DProfileTargetPreparer.java59 final int userId; field in ProfileTargetPreparer.DeviceOwner
61 DeviceOwner(String componentName, int userId) { in DeviceOwner()
259 int userId = in getDeviceOwner() local
DUserHelper.java53 int userId = device.createUser(TF_CREATED_USER); in createUser() local
DVisibleBackgroundUserPreparer.java91 TestInformation testInfo, ITestDevice device, int userId) in startUserVisibleOnBackground()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/incremental/
DApkChangeDetector.java78 String packageName, List<File> testApps, ITestDevice device, Integer userId, in handleTestAppsPreinstall()
158 String packageName, ITestDevice device, Integer userId, boolean forAllUsers) in handlePackageCleanup()
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DFilePullerDeviceMetricCollector.java241 protected File retrieveFile(ITestDevice device, String remoteFilePath, int userId) in retrieveFile()
/tools/tradefederation/core/javatests/com/android/tradefed/suite/checker/
DUserCheckerTest.java341 int userId = userIds[i]; in mockListUsersInfo() local

12