/frameworks/base/core/tests/coretests/src/android/hardware/display/ |
D | VirtualDisplayTest.java | 121 VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay(NAME, in testPrivateVirtualDisplay() local 123 assertNotNull("virtual display must not be null", virtualDisplay); in testPrivateVirtualDisplay() 125 Display display = virtualDisplay.getDisplay(); in testPrivateVirtualDisplay() 132 virtualDisplay.release(); in testPrivateVirtualDisplay() 142 VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay(NAME, in testPrivatePresentationVirtualDisplay() local 144 assertNotNull("virtual display must not be null", virtualDisplay); in testPrivatePresentationVirtualDisplay() 146 Display display = virtualDisplay.getDisplay(); in testPrivatePresentationVirtualDisplay() 153 virtualDisplay.release(); in testPrivatePresentationVirtualDisplay() 167 VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay(NAME, in testPublicPresentationVirtualDisplay() local 171 assertNotNull("virtual display must not be null", virtualDisplay); in testPublicPresentationVirtualDisplay() [all …]
|
/frameworks/native/services/surfaceflinger/tests/ |
D | VirtualDisplay_test.cpp | 45 sp<IBinder> virtualDisplay = in TEST_F() local 49 t.setDisplaySurface(virtualDisplay, mProducer); in TEST_F() 52 EXPECT_EQ(NO_ERROR, SurfaceComposerClient::destroyVirtualDisplay(virtualDisplay)); in TEST_F() 53 virtualDisplay.clear(); in TEST_F()
|
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/ |
D | DisplaySourceService.java | 206 VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay( in run() local 208 if (virtualDisplay != null) { in run() 210 virtualDisplay.getDisplay()).sendToTarget(); in run() 215 virtualDisplay.getDisplay()).sendToTarget(); in run() 216 virtualDisplay.release(); in run()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | ContentRecordingControllerTests.java | 187 final DisplayContent virtualDisplay = new TestDisplayContent.Builder(mAtm, 500, in testSetContentRecordingSessionLocked_takeOverCurrentSession_accepted() local 191 assertThat(virtualDisplay.getDisplayId()).isNotEqualTo(mVirtualDisplayId); in testSetContentRecordingSessionLocked_takeOverCurrentSession_accepted() 192 sessionUpdate.setVirtualDisplayId(virtualDisplay.getDisplayId()); in testSetContentRecordingSessionLocked_takeOverCurrentSession_accepted() 198 verify(virtualDisplay, atLeastOnce()).setContentRecordingSession(sessionUpdate); in testSetContentRecordingSessionLocked_takeOverCurrentSession_accepted()
|
D | ContentRecorderTests.java | 801 final DisplayContent virtualDisplay = in testDisplayContentUpdatesRecording_withoutSurface() local 805 virtualDisplay.updateRecording(); in testDisplayContentUpdatesRecording_withoutSurface() 808 assertThat(virtualDisplay.isCurrentlyRecording()).isFalse(); in testDisplayContentUpdatesRecording_withoutSurface() 820 final DisplayContent virtualDisplay = in testDisplayContentUpdatesRecording_withSurface() local 823 virtualDisplay.updateRecording(); in testDisplayContentUpdatesRecording_withSurface() 826 assertThat(virtualDisplay.isCurrentlyRecording()).isTrue(); in testDisplayContentUpdatesRecording_withSurface() 844 final DisplayContent virtualDisplay = in testDisplayContentUpdatesRecording_displayMirroring() local 849 clearInvocations(virtualDisplay); in testDisplayContentUpdatesRecording_displayMirroring() 850 virtualDisplay.updateRecording(); in testDisplayContentUpdatesRecording_displayMirroring() 853 verify(virtualDisplay).setDisplayMirroring(); in testDisplayContentUpdatesRecording_displayMirroring() [all …]
|
D | WindowManagerServiceTests.java | 724 final DisplayContent virtualDisplay = createMockSimulatedDisplay(); in testSetInTouchMode_multiDisplay_singleDisplayTouchModeUpdate() local 725 virtualDisplay.getDisplayInfo().flags &= ~FLAG_OWN_FOCUS; in testSetInTouchMode_multiDisplay_singleDisplayTouchModeUpdate() 737 mWm.setInTouchMode(!currentTouchMode, virtualDisplay.mDisplayId); in testSetInTouchMode_multiDisplay_singleDisplayTouchModeUpdate() 742 virtualDisplay.mDisplayId); in testSetInTouchMode_multiDisplay_singleDisplayTouchModeUpdate() 746 virtualDisplay.getDisplayInfo().flags |= FLAG_OWN_FOCUS; in testSetInTouchMode_multiDisplay_singleDisplayTouchModeUpdate() 748 mWm.setInTouchMode(!currentTouchMode, virtualDisplay.mDisplayId); in testSetInTouchMode_multiDisplay_singleDisplayTouchModeUpdate() 753 virtualDisplay.mDisplayId); in testSetInTouchMode_multiDisplay_singleDisplayTouchModeUpdate()
|
D | ActivityTaskManagerServiceTests.java | 233 DisplayContent virtualDisplay = createNewDisplay(displayInfo); in testSetLockScreenShownWithVirtualDisplay() local 283 DisplayContent virtualDisplay = mRootWindowContainer.getDisplayContent( in testSetLockScreenShownWithAlwaysUnlockedVirtualDisplay() local 285 assertNotEquals(Display.DEFAULT_DISPLAY, virtualDisplay.getDisplayId()); in testSetLockScreenShownWithAlwaysUnlockedVirtualDisplay() 286 assertFalse(virtualDisplay.isKeyguardLocked()); in testSetLockScreenShownWithAlwaysUnlockedVirtualDisplay() 287 assertFalse(keyguardController.isAodShowing(virtualDisplay.mDisplayId)); in testSetLockScreenShownWithAlwaysUnlockedVirtualDisplay()
|
/frameworks/base/media/java/android/media/projection/ |
D | MediaProjection.java | 262 final VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay(this, in createVirtualDisplay() local 264 if (virtualDisplay == null) { in createVirtualDisplay() 272 return virtualDisplay; in createVirtualDisplay()
|
/frameworks/base/core/java/android/companion/virtual/audio/ |
D | VirtualAudioDevice.java | 92 @NonNull VirtualDisplay virtualDisplay, @Nullable Executor executor, in VirtualAudioDevice() argument 96 mVirtualDisplay = virtualDisplay; in VirtualAudioDevice()
|
/frameworks/base/core/tests/coretests/src/android/content/ |
D | ContextTest.java | 207 VirtualDisplay virtualDisplay = displayManager.createVirtualDisplay( in getSecondaryDisplay() local 210 return virtualDisplay.getDisplay(); in getSecondaryDisplay()
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | ActivityThreadTest.java | 583 final Display virtualDisplay = createVirtualDisplay(appContext, in testOrientationChanged_DoesntOverrideVirtualDisplayOrientation() local 585 Context virtualDisplayContext = appContext.createDisplayContext(virtualDisplay); in testOrientationChanged_DoesntOverrideVirtualDisplayOrientation() 631 final Display virtualDisplay = createVirtualDisplay(activity, in testActivityOrientationChanged_DoesntOverrideVirtualDisplayOrientation() local 633 Context virtualDisplayContext = activity.createDisplayContext(virtualDisplay); in testActivityOrientationChanged_DoesntOverrideVirtualDisplayOrientation() 957 final VirtualDisplay virtualDisplay = dm.createVirtualDisplay("virtual-display", w, h, in createVirtualDisplay() local 962 mCreatedVirtualDisplays.add(virtualDisplay); in createVirtualDisplay() 963 return virtualDisplay.getDisplay(); in createVirtualDisplay()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | DisplayTest.cpp | 438 std::shared_ptr<impl::Display> virtualDisplay = impl::createDisplay(mCompositionEngine, args); in TEST_F() local 441 virtualDisplay->setDisplayColorProfileForTest( in TEST_F() 444 virtualDisplay->setColorProfile(ColorProfile{ui::ColorMode::DISPLAY_P3, in TEST_F() 448 EXPECT_EQ(ui::ColorMode::NATIVE, virtualDisplay->getState().colorMode); in TEST_F() 449 EXPECT_EQ(ui::Dataspace::UNKNOWN, virtualDisplay->getState().dataspace); in TEST_F() 450 EXPECT_EQ(ui::RenderIntent::COLORIMETRIC, virtualDisplay->getState().renderIntent); in TEST_F()
|
D | CompositionEngineTest.cpp | 394 TEST_F(CompositionEngineOffloadTest, virtualDisplay) { in TEST_F() argument
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | AidlComposerHal.cpp | 377 VirtualDisplay virtualDisplay; in createVirtualDisplay() local 382 bufferSlotCount, &virtualDisplay); in createVirtualDisplay() 389 *outDisplay = translate<Display>(virtualDisplay.display); in createVirtualDisplay() 390 *format = static_cast<PixelFormat>(virtualDisplay.format); in createVirtualDisplay() 391 addDisplay(translate<Display>(virtualDisplay.display)); in createVirtualDisplay()
|