Searched refs:mInattentiveSleepWarningControllerMock (Results 1 – 2 of 2) sorted by relevance
180 @Mock private InattentiveSleepWarningController mInattentiveSleepWarningControllerMock; field in PowerManagerServiceTest238 when(mInattentiveSleepWarningControllerMock.isShown()).thenReturn(false); in setUp()311 return mInattentiveSleepWarningControllerMock; in createService()1350 verify(mInattentiveSleepWarningControllerMock, times(1)).show(); in testInattentiveSleep_hideWarningIfStayOnIsEnabledAndPluggedIn()1351 verify(mInattentiveSleepWarningControllerMock, never()).dismiss(anyBoolean()); in testInattentiveSleep_hideWarningIfStayOnIsEnabledAndPluggedIn()1352 when(mInattentiveSleepWarningControllerMock.isShown()).thenReturn(true); in testInattentiveSleep_hideWarningIfStayOnIsEnabledAndPluggedIn()1355 verify(mInattentiveSleepWarningControllerMock, atLeastOnce()).dismiss(true); in testInattentiveSleep_hideWarningIfStayOnIsEnabledAndPluggedIn()1367 verify(mInattentiveSleepWarningControllerMock, times(1)).show(); in testInattentiveSleep_hideWarningIfInattentiveSleepIsDisabled()1368 verify(mInattentiveSleepWarningControllerMock, never()).dismiss(anyBoolean()); in testInattentiveSleep_hideWarningIfInattentiveSleepIsDisabled()1369 when(mInattentiveSleepWarningControllerMock.isShown()).thenReturn(true); in testInattentiveSleep_hideWarningIfInattentiveSleepIsDisabled()[all …]
80 @Mock private InattentiveSleepWarningController mInattentiveSleepWarningControllerMock; field in NotifierTest317 return mInattentiveSleepWarningControllerMock;