Searched refs:isHeadlessSystemUserMode (Results 1 – 11 of 11) sorted by relevance
52 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()
75 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()
115 when(mMockDevice.isHeadlessSystemUserMode()).thenReturn(true); in testSetUpRunAsSystem_ifSystemSwitchIsNotAllowed_switchToMain()140 when(mMockDevice.isHeadlessSystemUserMode()).thenReturn(true); in testSetUpRunAsSystem_ifSystemSwitchIsNotAllowed_noSwitchIfAlreadyOnMainUser()
43 if (!testInfo.getDevice().isHeadlessSystemUserMode()) { in setUp()
213 device.isHeadlessSystemUserMode() ? (mStartBackgroundUser ? 2 : 1) : 0; in removeNonForTestingUsers()
104 && device.isHeadlessSystemUserMode() in setUserToSwitchTo()
91 private boolean isHeadlessSystemUserMode() throws DeviceNotAvailableException { in isHeadlessSystemUserMode() method in DeviceOwnerTargetPreparer
706 public boolean isHeadlessSystemUserMode() throws DeviceNotAvailableException; in isHeadlessSystemUserMode() method
3126 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()
1806 public boolean isHeadlessSystemUserMode() throws DeviceNotAvailableException { in isHeadlessSystemUserMode() method in TestDevice
4911 public boolean isHeadlessSystemUserMode() throws DeviceNotAvailableException { in isHeadlessSystemUserMode() method in NativeDevice