Home
last modified time | relevance | path

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

/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DSwitchUserTargetPreparerTest.java64 when(mMockDevice.getCurrentUser()).thenReturn(11); in testSetUpRunAsPrimary_ifAlreadyInPrimary_noSwitch()
84 when(mMockDevice.getCurrentUser()).thenReturn(0); in testSetUpRunAsSystem_ifAlreadyInSystem_noSwitch()
103 when(mMockDevice.getCurrentUser()).thenReturn(11); in testSetUpRunAsPrimary_ifNotInPrimary_switchToPrimary()
123 when(mMockDevice.getCurrentUser()).thenReturn(11); in testSetUpRunAsGuest_ifNotInGuest_switchToGuest()
143 when(mMockDevice.getCurrentUser()).thenReturn(10); in testSetUpRunAsSystem_ifNotInSystem_switchToSystem()
163 when(mMockDevice.getCurrentUser()).thenReturn(10); in testTearDown_ifStartedInSecondary_switchesBackToSecondary()
185 when(mMockDevice.getCurrentUser()).thenReturn(10); in testSetUp_ifNoSwitchToSpecified_noUserSwitch()
204 when(mMockDevice.getCurrentUser()).thenReturn(10); in testSetUp_ifSwitchFails_throwsTargetSetupError()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/contentprovider/
DContentProviderHandlerTest.java65 doReturn(1).when(mMockDevice).getCurrentUser(); in testSetUp_install()
86 doReturn(0).when(mMockDevice).getCurrentUser(); in testSetUp_alreadyInstalled()
96 doReturn(1).when(mMockDevice).getCurrentUser(); in testSetUp_installFail()
106 doReturn(99).when(mMockDevice).getCurrentUser(); in testDeleteFile()
124 doReturn(99).when(mMockDevice).getCurrentUser(); in testDeleteFile_fail()
141 doReturn(99).when(mMockDevice).getCurrentUser(); in testError()
158 doReturn(99).when(mMockDevice).getCurrentUser(); in testPushFile()
205 doReturn(99).when(mMockDevice).getCurrentUser(); in testPullFile_verifyShellCommand()
325 doReturn(99).when(mMockDevice).getCurrentUser(); in testPullDir_RecursiveSubDir()
/tools/tradefederation/core/src/com/android/tradefed/suite/checker/
DUserChecker.java66 mPreCurrentUserInfo = mPreUsersInfo.get(device.getCurrentUser()); in preExecutionCheck()
102 UserInfo postCurrentUserInfo = postUsersInfo.get(device.getCurrentUser()); in postExecutionCheck()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DUserCleaner.java41 int ownerId = firstNonNull(device.getPrimaryUserId(), device.getCurrentUser()); in tearDown()
DSwitchUserTargetPreparer.java49 mPreExecutionCurrentUser = device.getCurrentUser(); in setUp()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DTestDeviceTest.java3047 int res = mTestDevice.getCurrentUser(); in testGetCurrentUser()
3072 int res = mTestDevice.getCurrentUser(); in testGetCurrentUser_invalid()
3092 mTestDevice.getCurrentUser(); in testGetCurrentUser_lowApi()
3275 public int getCurrentUser() throws DeviceNotAvailableException { in testSwitchUser_alreadySameUser()
3301 public int getCurrentUser() throws DeviceNotAvailableException { in testSwitchUser()
3334 public int getCurrentUser() throws DeviceNotAvailableException { in testSwitchUser_delay()
3391 public int getCurrentUser() throws DeviceNotAvailableException { in testSwitchUser_noChange()
3426 public int getCurrentUser() throws DeviceNotAvailableException { in testSwitchUser_api30()
3458 public int getCurrentUser() throws DeviceNotAvailableException { in testSwitchUser_delay_api30()
3511 public int getCurrentUser() throws DeviceNotAvailableException { in testSwitchUser_error_api30()
[all …]
/tools/tradefederation/core/util-apps/ContentProvider/hostsidetests/src/com/android/tradefed/contentprovider/
DContentProviderTest.java49 String.format(EXTERNAL_STORAGE_PATH, getDevice().getCurrentUser()); in setUp()
/tools/tradefederation/core/src/com/android/tradefed/device/
DTestDevice.java1139 SD_CARD, String.format("/storage/emulated/%s/", getCurrentUser())); in doesFileExist()
1395 public int getCurrentUser() throws DeviceNotAvailableException { in getCurrentUser() method in TestDevice
1500 if (userId == getCurrentUser()) { in switchUser()
1513 boolean success = userId == getCurrentUser(); in switchUser()
1519 success = userId == getCurrentUser(); in switchUser()
DNativeDevice.java4246 public int getCurrentUser() throws DeviceNotAvailableException { in getCurrentUser() method in NativeDevice
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DITestDevice.java780 public int getCurrentUser() throws DeviceNotAvailableException; in getCurrentUser() method
/tools/tradefederation/core/tests/src/com/android/tradefed/suite/checker/
DUserCheckerTest.java332 when(device.getCurrentUser()).thenReturn(currentUser); in mockDeviceUserState()
/tools/tradefederation/core/tests/res/testdata/
Dtradefed-prebuilt-cts-8.0_r21.jarMETA-INF/ META-INF/MANIFEST.MF jline/ jline/CompletionHandler.class CompletionHandler ...