Searched refs:getCurrentUser (Results 1 – 12 of 12) sorted by relevance
64 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()
65 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()
66 mPreCurrentUserInfo = mPreUsersInfo.get(device.getCurrentUser()); in preExecutionCheck()102 UserInfo postCurrentUserInfo = postUsersInfo.get(device.getCurrentUser()); in postExecutionCheck()
41 int ownerId = firstNonNull(device.getPrimaryUserId(), device.getCurrentUser()); in tearDown()
49 mPreExecutionCurrentUser = device.getCurrentUser(); in setUp()
3047 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 …]
49 String.format(EXTERNAL_STORAGE_PATH, getDevice().getCurrentUser()); in setUp()
1139 SD_CARD, String.format("/storage/emulated/%s/", getCurrentUser())); in doesFileExist()1395 public int getCurrentUser() throws DeviceNotAvailableException { in getCurrentUser() method in TestDevice1500 if (userId == getCurrentUser()) { in switchUser()1513 boolean success = userId == getCurrentUser(); in switchUser()1519 success = userId == getCurrentUser(); in switchUser()
4246 public int getCurrentUser() throws DeviceNotAvailableException { in getCurrentUser() method in NativeDevice
780 public int getCurrentUser() throws DeviceNotAvailableException; in getCurrentUser() method
332 when(device.getCurrentUser()).thenReturn(currentUser); in mockDeviceUserState()
META-INF/ META-INF/MANIFEST.MF jline/ jline/CompletionHandler.class CompletionHandler ...