Home
last modified time | relevance | path

Searched refs:isHeadlessSystemUserMode (Results 1 – 11 of 11) sorted by relevance

/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/
DRunOnSystemUserTargetPreparerTest.java52 when(mTestInfo.getDevice().isHeadlessSystemUserMode()).thenReturn(false); in setUp()
95 when(mTestInfo.getDevice().isHeadlessSystemUserMode()).thenReturn(true); in setup_headlessSystemUser_doesNotSwitchUser()
105 when(mTestInfo.getDevice().isHeadlessSystemUserMode()).thenReturn(true); in setup_headlessSystemUser_runsOnSystemUser()
DRunOnSecondaryUserTargetPreparerTest.java75 when(mTestInfo.getDevice().isHeadlessSystemUserMode()).thenReturn(false); in setUp()
303 when(mTestInfo.getDevice().isHeadlessSystemUserMode()).thenReturn(true); in setUp_headlessDevice_multipleNonForTestingSecondaryUsers_doesNotRemoveFirstSecondaryUser()
417 when(mTestInfo.getDevice().isHeadlessSystemUserMode()).thenReturn(true); in setUp_hasOneSecondaryUser_createSecondaryUserOnSecondaryDisplay()
465 when(mTestInfo.getDevice().isHeadlessSystemUserMode()).thenReturn(true); in setUp_hasOneSecondaryUser_doNothing()
512 when(mTestInfo.getDevice().isHeadlessSystemUserMode()).thenReturn(true); in setUp_hasTwoSecondaryUsers_startSecondaryUserOnSecondaryDisplay()
DSwitchUserTargetPreparerTest.java115 when(mMockDevice.isHeadlessSystemUserMode()).thenReturn(true); in testSetUpRunAsSystem_ifSystemSwitchIsNotAllowed_switchToMain()
140 when(mMockDevice.isHeadlessSystemUserMode()).thenReturn(true); in testSetUpRunAsSystem_ifSystemSwitchIsNotAllowed_noSwitchIfAlreadyOnMainUser()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DRunOnSystemUserTargetPreparer.java43 if (!testInfo.getDevice().isHeadlessSystemUserMode()) { in setUp()
DRunOnSecondaryUserTargetPreparer.java213 device.isHeadlessSystemUserMode() ? (mStartBackgroundUser ? 2 : 1) : 0; in removeNonForTestingUsers()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DSwitchUserTargetPreparer.java104 && device.isHeadlessSystemUserMode() in setUserToSwitchTo()
DDeviceOwnerTargetPreparer.java91 private boolean isHeadlessSystemUserMode() throws DeviceNotAvailableException { in isHeadlessSystemUserMode() method in DeviceOwnerTargetPreparer
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DITestDevice.java706 public boolean isHeadlessSystemUserMode() throws DeviceNotAvailableException; in isHeadlessSystemUserMode() method
/tools/tradefederation/core/javatests/com/android/tradefed/device/
DTestDeviceTest.java3126 assertThrows(HarnessRuntimeException.class, () -> testDevice.isHeadlessSystemUserMode()); in testIsHeadlessSystemUserMode_unsupportedApiLevel()
3136 assertThat(testDevice.isHeadlessSystemUserMode()).isTrue(); in testIsHeadlessSystemUserMode_true_preApi34()
3146 assertThat(testDevice.isHeadlessSystemUserMode()).isFalse(); in testIsHeadlessSystemUserMode_false_preApi34()
3159 DeviceRuntimeException.class, () -> testDevice.isHeadlessSystemUserMode()); in testIsHeadlessSystemUserMode_cmdError_api34()
3174 DeviceRuntimeException.class, () -> testDevice.isHeadlessSystemUserMode()); in testIsHeadlessSystemUserMode_invalidOutput_api34()
3187 assertThat(testDevice.isHeadlessSystemUserMode()).isTrue(); in testIsHeadlessSystemUserMode_true_api34()
3196 assertThat(testDevice.isHeadlessSystemUserMode()).isFalse(); in testIsHeadlessSystemUserMode_false_api34()
3206 assertThat(testDevice.isHeadlessSystemUserMode()).isTrue(); in testIsHeadlessSystemUserMode_true_api34_dev()
3216 assertThat(testDevice.isHeadlessSystemUserMode()).isFalse(); in testIsHeadlessSystemUserMode_false_api34_dev()
/tools/tradefederation/core/src/com/android/tradefed/device/
DTestDevice.java1806 public boolean isHeadlessSystemUserMode() throws DeviceNotAvailableException { in isHeadlessSystemUserMode() method in TestDevice
DNativeDevice.java4911 public boolean isHeadlessSystemUserMode() throws DeviceNotAvailableException { in isHeadlessSystemUserMode() method in NativeDevice