Home
last modified time | relevance | path

Searched refs:mockDisplay (Results 1 – 5 of 5) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarOccupantZoneServiceTest.java214 private void mockDisplay(DisplayManager displayManager, Display display, int displayId, in mockDisplay() method in CarOccupantZoneServiceTest
221 private void mockDisplay(DisplayManager displayManager, Display display, int displayId, in mockDisplay() method in CarOccupantZoneServiceTest
228 private void mockDisplay(Display display, int state) { in mockDisplay() method in CarOccupantZoneServiceTest
250 mockDisplay(mDisplayManager, mDisplay0, 0, 10); in setUp()
251 mockDisplay(mDisplayManager, mDisplay1, 1, CLUSTER_DISPLAY_UNIQUE_ID); in setUp()
252 mockDisplay(mDisplayManager, mDisplay2, 2, 12); in setUp()
253 mockDisplay(mDisplayManager, mDisplay4, 4, 14); in setUp()
254 mockDisplay(mDisplayManager, mDisplay5, 5, 15); in setUp()
827 mockDisplay(mDisplayManager, mDisplay3, 3, 13); in testActiveOccupantConfigsAfterDisplayAdd()
989 mockDisplay(mDisplayManager, mDisplay3, 3, 13); in testManagerGetAllDisplaysForOccupantAfterDisplayAdd()
[all …]
/packages/services/Car/cpp/evs/manager/aidl/tests/unit/src/
DMockHidlEvsHal_1_0.cpp391 ::android::sp<NiceMockHidlEvsDisplay> mockDisplay = new (std::nothrow) NiceMockHidlEvsDisplay(); in addMockDisplayDevice()
393 ON_CALL(*mockDisplay, getDisplayInfo) in addMockDisplayDevice()
406 ON_CALL(*mockDisplay, getDisplayState).WillByDefault([this]() { return mCurrentDisplayState; }); in addMockDisplayDevice()
408 ON_CALL(*mockDisplay, getTargetBuffer) in addMockDisplayDevice()
415 ON_CALL(*mockDisplay, returnTargetBufferForDisplay) in addMockDisplayDevice()
422 ON_CALL(*mockDisplay, setDisplayState).WillByDefault([this](DisplayState in) { in addMockDisplayDevice()
428 mMockHidlEvsDisplays.push_back(std::move(mockDisplay)); in addMockDisplayDevice()
DMockHidlEvsHal.cpp658 ::android::sp<NiceMockHidlEvsDisplay> mockDisplay = new (std::nothrow) NiceMockHidlEvsDisplay(); in addMockDisplayDevice()
660 ON_CALL(*mockDisplay, getDisplayInfo) in addMockDisplayDevice()
673 ON_CALL(*mockDisplay, getDisplayInfo_1_1) in addMockDisplayDevice()
696 ON_CALL(*mockDisplay, getDisplayState).WillByDefault([this]() { return mCurrentDisplayState; }); in addMockDisplayDevice()
698 ON_CALL(*mockDisplay, getTargetBuffer) in addMockDisplayDevice()
705 ON_CALL(*mockDisplay, returnTargetBufferForDisplay) in addMockDisplayDevice()
712 ON_CALL(*mockDisplay, setDisplayState).WillByDefault([this](DisplayState in) { in addMockDisplayDevice()
718 mMockHidlEvsDisplays.push_back(std::move(mockDisplay)); in addMockDisplayDevice()
DMockEvsHal.cpp678 std::shared_ptr<NiceMockEvsDisplay> mockDisplay = in addMockDisplayDevice() local
681 ON_CALL(*mockDisplay, getDisplayInfo).WillByDefault([id](DisplayDesc* out) { in addMockDisplayDevice()
694 ON_CALL(*mockDisplay, getDisplayState).WillByDefault([this](DisplayState* out) { in addMockDisplayDevice()
699 ON_CALL(*mockDisplay, getTargetBuffer).WillByDefault([](BufferDesc* out) { in addMockDisplayDevice()
704 ON_CALL(*mockDisplay, returnTargetBufferForDisplay).WillByDefault([](const BufferDesc& in) { in addMockDisplayDevice()
709 ON_CALL(*mockDisplay, setDisplayState).WillByDefault([this](DisplayState in) { in addMockDisplayDevice()
715 mMockEvsDisplays.push_back(std::move(mockDisplay)); in addMockDisplayDevice()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/am/
DFixedActivityServiceTest.java403 Display mockDisplay = Mockito.mock(Display.class); in testStartFixedActivityModeForDisplayAndUser_nonActiveDisplay() local
404 when(mDisplayManager.getDisplay(mockDisplayId)).thenReturn(mockDisplay); in testStartFixedActivityModeForDisplayAndUser_nonActiveDisplay()
405 when(mockDisplay.getState()).thenReturn(Display.STATE_OFF, Display.STATE_ON); in testStartFixedActivityModeForDisplayAndUser_nonActiveDisplay()
611 Display mockDisplay = Mockito.mock(Display.class); in testDisplayListener_startsActivityWhenDisplayTurnsOn() local
612 when(mDisplayManager.getDisplay(mockDisplayId)).thenReturn(mockDisplay); in testDisplayListener_startsActivityWhenDisplayTurnsOn()
613 when(mockDisplay.getState()).thenReturn(Display.STATE_OFF); in testDisplayListener_startsActivityWhenDisplayTurnsOn()
628 when(mockDisplay.getState()).thenReturn(Display.STATE_ON); in testDisplayListener_startsActivityWhenDisplayTurnsOn()