Home
last modified time | relevance | path

Searched refs:mDisplay (Results 1 – 25 of 53) sorted by relevance

123

/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DDisplayTest.cpp195 std::shared_ptr<Display> mDisplay = member
202 std::shared_ptr<Display> mDisplay = member
209 mDisplay->injectOutputLayerForTest( in DisplayWithLayersTestCommon()
211 mDisplay->injectOutputLayerForTest( in DisplayWithLayersTestCommon()
213 mDisplay->injectOutputLayerForTest( in DisplayWithLayersTestCommon()
221 std::shared_ptr<Display> mDisplay = member
257 mDisplay->setConfiguration( in TEST_F()
269 EXPECT_EQ(DEFAULT_DISPLAY_ID, mDisplay->getId()); in TEST_F()
270 EXPECT_TRUE(mDisplay->isSecure()); in TEST_F()
271 EXPECT_FALSE(mDisplay->isVirtual()); in TEST_F()
[all …]
DRenderSurfaceTest.cpp51 EXPECT_CALL(mDisplay, getId()).WillRepeatedly(ReturnRef(DEFAULT_DISPLAY_ID)); in RenderSurfaceTest()
52 EXPECT_CALL(mDisplay, getName()).WillRepeatedly(ReturnRef(DEFAULT_DISPLAY_NAME)); in RenderSurfaceTest()
60 StrictMock<mock::Display> mDisplay; member in android::compositionengine::__anon2f9684cc0111::RenderSurfaceTest
63 impl::RenderSurface mSurface{mCompositionEngine, mDisplay,
245 EXPECT_CALL(mDisplay, getState()).WillOnce(ReturnRef(state)); in TEST_F()
261 EXPECT_CALL(mDisplay, getState()).WillOnce(ReturnRef(state)); in TEST_F()
279 EXPECT_CALL(mDisplay, getState()).WillOnce(ReturnRef(state)); in TEST_F()
296 EXPECT_CALL(mDisplay, getState()).WillOnce(ReturnRef(state)); in TEST_F()
316 EXPECT_CALL(mDisplay, getState()).WillOnce(ReturnRef(state)); in TEST_F()
319 EXPECT_CALL(mDisplay, isVirtual()).WillOnce(Return(true)); in TEST_F()
/frameworks/native/cmds/flatland/
DGLHelper.cpp27 mDisplay(EGL_NO_DISPLAY), in GLHelper()
41 mDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in setUp()
42 if (mDisplay == EGL_NO_DISPLAY) { in setUp()
49 result = eglInitialize(mDisplay, &majorVersion, &minorVersion); in setUp()
65 result = eglChooseConfig(mDisplay, configAttribs, &mConfig, 1, in setUp()
76 mContext = eglCreateContext(mDisplay, mConfig, EGL_NO_CONTEXT, in setUp()
113 if (mDisplay != EGL_NO_DISPLAY) { in tearDown()
114 eglMakeCurrent(mDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, in tearDown()
119 eglDestroyContext(mDisplay, mContext); in tearDown()
123 eglDestroySurface(mDisplay, mDummySurface); in tearDown()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DRenderTarget.java65 private EGLDisplay mDisplay; field in RenderTarget
115 return new RenderTarget(mDisplay, mContext, surface(), fbo, false, false); in forTexture()
119 EGLConfig eglConfig = chooseEglConfig(mEgl, mDisplay); in forSurfaceHolder()
124 eglSurf = mEgl.eglCreateWindowSurface(mDisplay, eglConfig, surfaceHolder, null); in forSurfaceHolder()
130 RenderTarget result = new RenderTarget(mDisplay, mContext, eglSurf, 0, false, true); in forSurfaceHolder()
138 EGLConfig eglConfig = chooseEglConfig(mEgl, mDisplay); in forSurfaceTexture()
143 eglSurf = mEgl.eglCreateWindowSurface(mDisplay, eglConfig, surfaceTexture, null); in forSurfaceTexture()
149 RenderTarget result = new RenderTarget(mDisplay, mContext, eglSurf, 0, false, true); in forSurfaceTexture()
157 EGLConfig eglConfig = chooseEglConfig(mEgl, mDisplay); in forSurface()
162 eglSurf = mEgl.eglCreateWindowSurface(mDisplay, eglConfig, surface, null); in forSurface()
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DRenderSurface.cpp61 mDisplay(display), in RenderSurface()
143 ALOGE("updateCompositionType failed for %s: %d (%s)", mDisplay.getName().c_str(), result, in prepareFrame()
157 mDisplay.getName().c_str(), result); in dequeueBuffer()
173 auto& state = mDisplay.getState(); in queueBuffer()
183 mDisplay.getName().c_str()); in queueBuffer()
192 ALOGE("No buffer is ready for display [%s]", mDisplay.getName().c_str()); in queueBuffer()
198 ALOGE("Error when queueing buffer for display [%s]: %d", mDisplay.getName().c_str(), in queueBuffer()
202 if (!mDisplay.isVirtual()) { in queueBuffer()
216 ALOGE("[%s] failed pushing new frame to HWC: %d", mDisplay.getName().c_str(), result); in queueBuffer()
/frameworks/base/services/core/java/com/android/server/policy/
DBurnInProtectionHelper.java84 private final Display mDisplay; field in BurnInProtectionHelper
120 mDisplay = displayManager.getDisplay(Display.DEFAULT_DISPLAY); in BurnInProtectionHelper()
153 mDisplayManagerInternal.setDisplayOffsets(mDisplay.getDisplayId(), in updateBurnInProtection()
254 if (displayId == mDisplay.getDisplayId()) { in onDisplayChanged()
255 if (mDisplay.getState() == Display.STATE_DOZE in onDisplayChanged()
256 || mDisplay.getState() == Display.STATE_DOZE_SUSPEND in onDisplayChanged()
257 || mDisplay.getState() == Display.STATE_ON_SUSPEND) { in onDisplayChanged()
275 mDisplayManagerInternal.setDisplayOffsets(mDisplay.getDisplayId(), 0, 0); in onAnimationEnd()
291 mDisplayManagerInternal.setDisplayOffsets(mDisplay.getDisplayId(), in onAnimationUpdate()
/frameworks/base/core/java/android/hardware/display/
DVirtualDisplay.java36 private final Display mDisplay; field in VirtualDisplay
43 mDisplay = display; in VirtualDisplay()
52 return mDisplay; in getDisplay()
121 return "VirtualDisplay{display=" + mDisplay + ", token=" + mToken in toString()
/frameworks/native/services/surfaceflinger/
DDisplayDevice.h254 mDisplay(std::move(display)),
259 Rect getBounds() const override { return mDisplay->getBounds(); } in getBounds()
260 int getHeight() const override { return mDisplay->getHeight(); } in getHeight()
261 int getWidth() const override { return mDisplay->getWidth(); } in getWidth()
262 bool isSecure() const override { return mAllowSecureLayers && mDisplay->isSecure(); } in isSecure()
263 sp<const DisplayDevice> getDisplayDevice() const override { return mDisplay; } in getDisplayDevice()
280 return mDisplay->getSourceClip(); in getSourceCrop()
287 ui::Rotation logicalOrientation = mDisplay->getOrientation(); in getSourceCrop()
295 int width = mDisplay->getSourceClip().getWidth(); in getSourceCrop()
296 int height = mDisplay->getSourceClip().getHeight(); in getSourceCrop()
[all …]
/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/
DSimpleRecipientChip.java24 private final CharSequence mDisplay; field in SimpleRecipientChip
43 mDisplay = entry.getDisplayName(); in SimpleRecipientChip()
64 return mDisplay; in getDisplay()
113 return mDisplay + " <" + mValue + ">"; in toString()
/frameworks/base/core/java/android/app/
DPresentation.java158 private final Display mDisplay; field in Presentation
192 mDisplay = display; in Presentation()
214 return mDisplay; in getDisplay()
307 mDisplay.getMetrics(dm); in isConfigurationStillValid()
355 if (displayId == mDisplay.getDisplayId()) {
362 if (displayId == mDisplay.getDisplayId()) {
/frameworks/base/opengl/java/com/google/android/gles_jni/
DEGLImpl.java33 private EGLDisplayImpl mDisplay = new EGLDisplayImpl(-1); field in EGLImpl
122 if (mDisplay.mEGLDisplay != value) in eglGetDisplay()
123 mDisplay = new EGLDisplayImpl(value); in eglGetDisplay()
124 return mDisplay; in eglGetDisplay()
142 if (mDisplay.mEGLDisplay != value) in eglGetCurrentDisplay()
143 mDisplay = new EGLDisplayImpl(value); in eglGetCurrentDisplay()
144 return mDisplay; in eglGetCurrentDisplay()
/frameworks/base/core/jni/
Dandroid_media_RemoteDisplay.cpp114 mDisplay(display), mClient(client) { in NativeRemoteDisplay()
118 mDisplay->dispose(); in ~NativeRemoteDisplay()
122 mDisplay->pause(); in pause()
126 mDisplay->resume(); in resume()
130 sp<IRemoteDisplay> mDisplay; member in android::NativeRemoteDisplay
/frameworks/base/libs/hwui/utils/
DGLUtils.h57 AutoEglImage(EGLDisplay display, EGLClientBuffer clientBuffer) : mDisplay(display) { in AutoEglImage()
65 eglDestroyImageKHR(mDisplay, image); in ~AutoEglImage()
72 EGLDisplay mDisplay = EGL_NO_DISPLAY;
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/view/
DWindowManagerImpl.java43 private final Display mDisplay; field in WindowManagerImpl
56 mDisplay = new Display(null, Display.DEFAULT_DISPLAY, info, in WindowManagerImpl()
62 return mDisplay; in getDefaultDisplay()
132 mDisplay.getRealSize(displaySize); in getMaximumBounds()
/frameworks/native/services/surfaceflinger/tests/
DLayerTransactionTest.h240 sp<IBinder> mDisplay; variable
254 mDisplay = mClient->getInternalDisplayToken(); in SetUpDisplay()
255 ASSERT_FALSE(mDisplay == nullptr) << "failed to get display"; in SetUpDisplay()
258 ASSERT_EQ(NO_ERROR, SurfaceComposerClient::getActiveDisplayConfig(mDisplay, &config)); in SetUpDisplay()
276 t.setDisplayLayerStack(mDisplay, mDisplayLayerStack); in SetUpDisplay()
DCredentials_test.cpp50 sp<IBinder> mDisplay; member in android::CredentialsTest
62 mDisplay = SurfaceComposerClient::getInternalDisplayToken(); in setupBackgroundSurface()
63 ASSERT_FALSE(mDisplay == nullptr); in setupBackgroundSurface()
66 ASSERT_EQ(NO_ERROR, SurfaceComposerClient::getActiveDisplayConfig(mDisplay, &config)); in setupBackgroundSurface()
77 t.setDisplayLayerStack(mDisplay, 0); in setupBackgroundSurface()
DLayerTransaction_test.cpp40 composer->captureScreen(mDisplay, &outBuffer, Rect(), 0, 0, false)); in TEST_F()
46 ASSERT_EQ(NO_ERROR, composer->captureScreen(mDisplay, &outBuffer, Rect(), 0, 0, false)); in TEST_F()
58 composer->captureScreen(mDisplay, &outBuffer, outCapturedSecureLayers, in TEST_F()
/frameworks/base/core/java/android/text/
DDynamicLayout.java76 b.mDisplay = base; in obtain()
99 b.mDisplay = null; in recycle()
114 mDisplay = display; in setDisplayText()
286 private CharSequence mDisplay; field in DynamicLayout.Builder
378 mDisplay = display; in DynamicLayout()
390 super(createEllipsizer(b.mEllipsize, b.mDisplay), in DynamicLayout()
393 mDisplay = b.mDisplay; in DynamicLayout()
505 CharSequence text = mDisplay; in reflow()
728 final CharSequence text = mDisplay; in createBlocks()
1153 private CharSequence mDisplay; field in DynamicLayout
/frameworks/base/core/java/android/service/wallpaper/
DWallpaperService.java219 private Display mDisplay; field in WallpaperService.Engine
686 mConnection.onWallpaperColorsChanged(newColors, mDisplay.getDisplayId()); in notifyColorsChanged()
728 out.print(prefix); out.print("mDisplay="); out.println(mDisplay); in dump()
881 mDisplay.getDisplayId(), mWinFrame, mContentInsets, mStableInsets, in updateSurface()
1095 mDisplay = mIWallpaperEngine.mDisplay; in attach()
1096 mDisplayContext = createDisplayContext(mDisplay); in attach()
1097 mDisplayState = mDisplay.getState(); in attach()
1176 mDisplayState = mDisplay == null ? Display.STATE_UNKNOWN : mDisplay.getState(); in reportVisibility()
1318 if (mDisplay.getDisplayId() == displayId) {
1347 final Display mDisplay; field in WallpaperService.IWallpaperEngineWrapper
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DScreenDecorWindowTests.java95 private VirtualDisplay mDisplay; field in ScreenDecorWindowTests
104 mDisplay = result.first; in setUp()
106 final Display display = mDisplay.getDisplay(); in setUp()
111 mDisplay.getDisplay().getRealSize(size); in setUp()
122 mDisplay.release(); in tearDown()
DActivityTestsBase.java438 private DisplayContent mDisplay; field in ActivityTestsBase.StackBuilder
450 mDisplay = mRootWindowContainer.getDefaultDisplay(); in StackBuilder()
451 mTaskDisplayArea = mDisplay.getDefaultTaskDisplayArea(); in StackBuilder()
474 mDisplay = display; in setDisplay()
475 mTaskDisplayArea = mDisplay.getDefaultTaskDisplayArea(); in setDisplay()
482 mDisplay = mTaskDisplayArea.mDisplayContent; in setTaskDisplayArea()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DLightsOutNotifControllerTest.java64 @Mock private Display mDisplay; field in LightsOutNotifControllerTest
80 when(mWindowManager.getDefaultDisplay()).thenReturn(mDisplay); in setUp()
81 when(mDisplay.getDisplayId()).thenReturn(mDisplayId); in setUp()
/frameworks/base/cmds/bootanimation/
DBootAnimation.cpp453 mDisplay = display; in readyToRun()
480 eglMakeCurrent(mDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in resizeSurface()
481 eglDestroySurface(mDisplay, mSurface); in resizeSurface()
491 EGLConfig config = getEglConfig(mDisplay); in resizeSurface()
492 EGLSurface surface = eglCreateWindowSurface(mDisplay, config, mFlingerSurface.get(), nullptr); in resizeSurface()
493 if (eglMakeCurrent(mDisplay, surface, surface, mContext) == EGL_FALSE) { in resizeSurface()
573 eglMakeCurrent(mDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in threadLoop()
574 eglDestroyContext(mDisplay, mContext); in threadLoop()
575 eglDestroySurface(mDisplay, mSurface); in threadLoop()
578 eglTerminate(mDisplay); in threadLoop()
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DSchedulerTest.cpp67 Hwc2::mock::Display mDisplay; member in android::SchedulerTest
76 HWC2::Display::Config::Builder(mDisplay, 0) in SchedulerTest()
DLayerHistoryTest.cpp66 Hwc2::mock::Display mDisplay; member in android::scheduler::LayerHistoryTest
67 RefreshRateConfigs mConfigs{{HWC2::Display::Config::Builder(mDisplay, 0)
71 HWC2::Display::Config::Builder(mDisplay, 1)

123