/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | VisibleBackgroundUserPreparer.java | 69 public void setDisplayId(int displayId) { in setDisplayId() argument 70 if (displayId == INVALID_DISPLAY) { in setDisplayId() 74 mDisplayId = displayId; in setDisplayId() 85 int displayId = mDisplayId; in startUserVisibleOnBackground() local 86 if (displayId == INVALID_DISPLAY) { in startUserVisibleOnBackground() 96 displayId = iterator.next(); in startUserVisibleOnBackground() 97 if (displayId == DEFAULT_DISPLAY in startUserVisibleOnBackground() 110 displayId = iterator.next(); in startUserVisibleOnBackground() 114 mUserAlreadyVisible = device.isUserVisibleOnDisplay(userId, displayId); in startUserVisibleOnBackground() 118 userId, displayId); in startUserVisibleOnBackground() [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | ITestDeviceMockHelper.java | 61 public void mockStartUserVisibleOnBackground(int userId, int displayId) throws Exception { in mockStartUserVisibleOnBackground() argument 62 mockStartUserVisibleOnBackground(userId, displayId, /* result= */ true); in mockStartUserVisibleOnBackground() 65 public void mockStartUserVisibleOnBackground(int userId, int displayId, boolean result) in mockStartUserVisibleOnBackground() argument 67 when(mMockDevice.startVisibleBackgroundUser(userId, displayId, /* waitFlag= */ true)) in mockStartUserVisibleOnBackground() 90 public void mockIsUserVisibleOnDisplay(int userId, int displayId) throws Exception { in mockIsUserVisibleOnDisplay() argument 91 when(mMockDevice.isUserVisibleOnDisplay(userId, displayId)).thenReturn(true); in mockIsUserVisibleOnDisplay() 124 public void verifyUserStartedVisibleOnBackground(int userId, int displayId) throws Exception { in verifyUserStartedVisibleOnBackground() argument 125 verify(mMockDevice).startVisibleBackgroundUser(userId, displayId, /* waitFlag= */ true); in verifyUserStartedVisibleOnBackground()
|
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/ |
D | VisibleBackgroundUserPreparerTest.java | 377 private void mockStartUserVisibleOnBackground(int userId, int displayId) throws Exception { in mockStartUserVisibleOnBackground() argument 378 mTestDeviceMockHelper.mockStartUserVisibleOnBackground(userId, displayId); in mockStartUserVisibleOnBackground() 381 private void mockStartUserVisibleOnBackground(int userId, int displayId, boolean result) in mockStartUserVisibleOnBackground() argument 383 mTestDeviceMockHelper.mockStartUserVisibleOnBackground(userId, displayId, result); in mockStartUserVisibleOnBackground() 403 private void mockIsUserVisibleOnDisplay(int userId, int displayId) throws Exception { in mockIsUserVisibleOnDisplay() argument 404 mTestDeviceMockHelper.mockIsUserVisibleOnDisplay(userId, displayId); in mockIsUserVisibleOnDisplay() 432 private void verifyUserStartedVisibleOnBackground(int userId, int displayId) throws Exception { in verifyUserStartedVisibleOnBackground() argument 433 mTestDeviceMockHelper.verifyUserStartedVisibleOnBackground(userId, displayId); in verifyUserStartedVisibleOnBackground()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/params/ |
D | SecondaryUserHandler.java | 58 protected SecondaryUserHandler(boolean startUserVisibleOnBackground, Integer displayId) { in SecondaryUserHandler() argument 60 mDisplayId = displayId; in SecondaryUserHandler()
|
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/ |
D | ITestDevice.java | 429 public InputStreamSource getScreenshot(long displayId) throws DeviceNotAvailableException; in getScreenshot() argument 838 public boolean startVisibleBackgroundUser(int userId, int displayId, boolean waitFlag) in startVisibleBackgroundUser() argument 922 public boolean isUserVisibleOnDisplay(int userId, int displayId) in isUserVisibleOnDisplay() argument
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | TestDevice.java | 945 public InputStreamSource getScreenshot(long displayId) throws DeviceNotAvailableException { in getScreenshot() argument 946 final String tmpDevicePath = String.format("/data/local/tmp/display_%s.png", displayId); in getScreenshot() 949 String.format("screencap -p -d %s %s", displayId, tmpDevicePath)); in getScreenshot() 1925 public boolean startVisibleBackgroundUser(int userId, int displayId, boolean waitFlag) in startVisibleBackgroundUser() argument 1932 (waitFlag ? " -w" : ""), displayId, userId); in startVisibleBackgroundUser() 2057 public boolean isUserVisibleOnDisplay(int userId, int displayId) in isUserVisibleOnDisplay() argument 2062 "cmd user is-user-visible --display %d %d", displayId, userId); in isUserVisibleOnDisplay()
|
D | NativeDevice.java | 3129 public InputStreamSource getScreenshot(long displayId) throws DeviceNotAvailableException { in getScreenshot() argument 4978 public boolean startVisibleBackgroundUser(int userId, int displayId, boolean waitFlag) in startVisibleBackgroundUser() argument 5104 public boolean isUserVisibleOnDisplay(int userId, int displayId) in isUserVisibleOnDisplay() argument
|