/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | DisplayTest.cpp | 202 std::shared_ptr<Display> mDisplay = member 229 std::shared_ptr<Display> mDisplay = member 235 mDisplay->injectOutputLayerForTest( in DisplayWithLayersTestCommon() 237 mDisplay->injectOutputLayerForTest( in DisplayWithLayersTestCommon() 239 mDisplay->injectOutputLayerForTest( in DisplayWithLayersTestCommon() 252 std::shared_ptr<Display> mDisplay = member 289 mDisplay->setConfiguration(DisplayCreationArgsBuilder() in TEST_F() 297 EXPECT_EQ(DEFAULT_DISPLAY_ID, mDisplay->getId()); in TEST_F() 298 EXPECT_TRUE(mDisplay->isSecure()); in TEST_F() 299 EXPECT_FALSE(mDisplay->isVirtual()); in TEST_F() [all …]
|
D | RenderSurfaceTest.cpp | 54 EXPECT_CALL(mDisplay, getId()).WillRepeatedly(Return(DEFAULT_DISPLAY_ID)); in RenderSurfaceTest() 55 EXPECT_CALL(mDisplay, getName()).WillRepeatedly(ReturnRef(DEFAULT_DISPLAY_NAME)); in RenderSurfaceTest() 63 StrictMock<mock::Display> mDisplay; member in android::compositionengine::__anon3884e2e00111::RenderSurfaceTest 66 impl::RenderSurface mSurface{mCompositionEngine, mDisplay, 265 EXPECT_CALL(mDisplay, getState()).WillOnce(ReturnRef(state)); in TEST_F() 283 EXPECT_CALL(mDisplay, getState()).WillOnce(ReturnRef(state)); in TEST_F() 303 EXPECT_CALL(mDisplay, getState()).WillOnce(ReturnRef(state)); in TEST_F() 320 EXPECT_CALL(mDisplay, getState()).WillOnce(ReturnRef(state)); in TEST_F() 342 EXPECT_CALL(mDisplay, getState()).WillOnce(ReturnRef(state)); in TEST_F() 345 EXPECT_CALL(mDisplay, isVirtual()).WillOnce(Return(true)); in TEST_F()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DualDisplayAreaGroupPolicyTest.java | 87 private DualDisplayContent mDisplay; field in DualDisplayAreaGroupPolicyTest 108 mDisplay = new DualDisplayContent.Builder(mAtm, 1920, 1200).build(); in setupDisplay() 109 mFirstRoot = mDisplay.mFirstRoot; in setupDisplay() 110 mSecondRoot = mDisplay.mSecondRoot; in setupDisplay() 111 mFirstTda = mDisplay.getTaskDisplayArea(FEATURE_FIRST_TASK_CONTAINER); in setupDisplay() 112 mSecondTda = mDisplay.getTaskDisplayArea(FEATURE_SECOND_TASK_CONTAINER); in setupDisplay() 126 spyOn(mDisplay); in setupDisplay() 136 mDisplay.onLastFocusedTaskDisplayAreaChanged(mFirstTda); in testNotIgnoreOrientationRequest_differentOrientationFromDisplay_reversesRequest() 140 assertThat(mDisplay.getLastOrientation()).isEqualTo(SCREEN_ORIENTATION_PORTRAIT); in testNotIgnoreOrientationRequest_differentOrientationFromDisplay_reversesRequest() 145 assertThat(mDisplay.getLastOrientation()).isEqualTo(SCREEN_ORIENTATION_LANDSCAPE); in testNotIgnoreOrientationRequest_differentOrientationFromDisplay_reversesRequest() [all …]
|
/frameworks/native/cmds/flatland/ |
D | GLHelper.cpp | 27 mDisplay(EGL_NO_DISPLAY), in GLHelper() 44 mDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in setUp() 45 if (mDisplay == EGL_NO_DISPLAY) { in setUp() 52 result = eglInitialize(mDisplay, &majorVersion, &minorVersion); in setUp() 68 result = eglChooseConfig(mDisplay, configAttribs, &mConfig, 1, in setUp() 79 mContext = eglCreateContext(mDisplay, mConfig, EGL_NO_CONTEXT, in setUp() 116 if (mDisplay != EGL_NO_DISPLAY) { in tearDown() 117 eglMakeCurrent(mDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, in tearDown() 122 eglDestroyContext(mDisplay, mContext); in tearDown() 126 eglDestroySurface(mDisplay, mDummySurface); in tearDown() [all …]
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | HWC2.cpp | 691 mDisplay(&display), in Layer() 708 if (CC_UNLIKELY(!mDisplay)) { in onOwningDisplayDestroyed() 712 mDisplay->onLayerDestroyed(mId); in onOwningDisplayDestroyed() 717 auto intError = mComposer.destroyLayer(mDisplay->getId(), mId); in onOwningDisplayDestroyed() 722 mDisplay->getId(), mId, to_string(error).c_str(), intError); in onOwningDisplayDestroyed() 724 mDisplay = nullptr; in onOwningDisplayDestroyed() 729 if (CC_UNLIKELY(!mDisplay)) { in setCursorPosition() 733 auto intError = mComposer.setCursorPosition(mDisplay->getId(), mId, x, y); in setCursorPosition() 740 if (CC_UNLIKELY(!mDisplay)) { in setBuffer() 750 auto intError = mComposer.setLayerBuffer(mDisplay->getId(), mId, slot, buffer, fenceFd); in setBuffer() [all …]
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | RenderTarget.java | 65 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/base/services/core/java/com/android/server/policy/ |
D | BurnInProtectionHelper.java | 84 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/ |
D | VirtualDisplay.java | 36 private final Display mDisplay; field in VirtualDisplay 42 mDisplay = display; in VirtualDisplay() 51 return mDisplay; in getDisplay() 127 return "VirtualDisplay{display=" + mDisplay + ", token=" + mToken in toString()
|
/frameworks/native/services/surfaceflinger/ |
D | DisplayRenderArea.cpp | 39 mDisplay(std::move(display)), in DisplayRenderArea() 47 return mOptions.test(Options::CAPTURE_SECURE_LAYERS) && mDisplay->isSecure(); in isSecure() 51 return mDisplay; in getDisplayDevice() 57 return mDisplay->getLayerStackSpaceRect(); in getSourceCrop()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/src/ |
D | RenderSurface.cpp | 64 mDisplay(display), in RenderSurface() 145 ALOGE("updateCompositionType failed for %s: %d (%s)", mDisplay.getName().c_str(), result, in prepareFrame() 160 mDisplay.getName().c_str(), result); in dequeueBuffer() 202 auto& state = mDisplay.getState(); in queueBuffer() 212 mDisplay.getName().c_str()); in queueBuffer() 221 ALOGE("No buffer is ready for display [%s]", mDisplay.getName().c_str()); in queueBuffer() 227 ALOGE("Error when queueing buffer for display [%s]: %d", mDisplay.getName().c_str(), in queueBuffer() 231 if (!mDisplay.isVirtual()) { in queueBuffer() 246 ALOGE("[%s] failed pushing new frame to HWC: %d", mDisplay.getName().c_str(), result); in queueBuffer()
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | SurfaceFlinger_DisplayModeSwitching.cpp | 76 mDisplay = PrimaryDisplayVariant::makeFakeExistingDisplayInjector(this) in SetUp() 79 mDisplayId = mDisplay->getPhysicalId(); in SetUp() 110 return std::forward_as_tuple(mDisplay, mOuterDisplay); in injectOuterDisplay() 118 sp<DisplayDevice> mDisplay, mOuterDisplay; member in android::__anon25d6b7ba0111::DisplayModeSwitchingTest 178 mFlinger.onActiveDisplayChanged(nullptr, *mDisplay); in TEST_F() 180 mFlinger.setDesiredDisplayModeSpecs(mDisplay->getDisplayToken().promote(), in TEST_F() 215 mFlinger.onActiveDisplayChanged(nullptr, *mDisplay); in TEST_F() 217 mFlinger.setDesiredDisplayModeSpecs(mDisplay->getDisplayToken().promote(), in TEST_F() 247 mFlinger.onActiveDisplayChanged(nullptr, *mDisplay); in TEST_F() 249 mFlinger.setDesiredDisplayModeSpecs(mDisplay->getDisplayToken().promote(), in TEST_F() [all …]
|
D | SurfaceFlinger_ExcludeDolbyVisionTest.cpp | 35 mDisplay = PrimaryDisplayVariant::makeFakeExistingDisplayInjector(this) in injectDisplayModes() 38 mDisplay->overrideHdrTypes(types); in injectDisplayModes() 42 sp<DisplayDevice> mDisplay; member in android::__anon62d0392b0111::ExcludeDolbyVisionTest 64 mFlinger.getDynamicDisplayInfoFromToken(mDisplay->getDisplayToken().promote(), &info); in TEST_F() 78 mFlinger.getDynamicDisplayInfoFromToken(mDisplay->getDisplayToken().promote(), &info); in TEST_F() 97 mFlinger.getDynamicDisplayInfoFromToken(mDisplay->getDisplayToken().promote(), &info);
|
/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/ |
D | SimpleRecipientChip.java | 24 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/opengl/java/com/google/android/gles_jni/ |
D | EGLImpl.java | 33 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/java/android/view/ |
D | HdrRenderState.java | 60 mViewRoot.mDisplay.unregisterHdrSdrRatioChangedListener(this); in stopListening() 66 if (isHdrEnabled() && !mIsListenerRegistered && mViewRoot.mDisplay != null) { in startListening() 67 mViewRoot.mDisplay.registerHdrSdrRatioChangedListener(mViewRoot.mExecutor, this); in startListening() 118 mViewRoot.mDisplay.getHdrSdrRatio()); in forceUpdateHdrSdrRatio()
|
/frameworks/base/core/java/android/app/ |
D | Presentation.java | 155 private final Display mDisplay; field in Presentation 221 mDisplay = display; in Presentation() 246 return mDisplay; in getDisplay() 345 if (displayId == mDisplay.getDisplayId()) { 352 if (displayId == mDisplay.getDisplayId()) {
|
/frameworks/base/core/jni/ |
D | android_media_RemoteDisplay.cpp | 114 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/ |
D | GLUtils.h | 57 AutoEglImage(EGLDisplay display, EGLClientBuffer clientBuffer) : mDisplay(display) { in AutoEglImage() 65 eglDestroyImageKHR(mDisplay, image); in ~AutoEglImage() 72 EGLDisplay mDisplay = EGL_NO_DISPLAY;
|
/frameworks/base/core/java/android/text/ |
D | DynamicLayout.java | 85 b.mDisplay = base; in obtain() 109 b.mDisplay = null; in recycle() 124 mDisplay = display; in setDisplayText() 404 private CharSequence mDisplay; field in DynamicLayout.Builder 506 mDisplay = display; in DynamicLayout() 519 super(createEllipsizer(b.mEllipsize, b.mDisplay), in DynamicLayout() 527 mDisplay = b.mDisplay; in DynamicLayout() 617 reflow(mBase, 0, 0, mDisplay.length()); in generate() 643 CharSequence text = mDisplay; in reflow() 871 final CharSequence text = mDisplay; in createBlocks() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DisplayRotationCoordinator.java | 94 } else if (displayContent.mDisplay == null) { in isSecondaryInternalDisplay() 97 return displayContent.mDisplay.getType() == Display.TYPE_INTERNAL; in isSecondaryInternalDisplay()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/onehanded/ |
D | OneHandedTutorialHandlerTest.java | 47 Display mDisplay; field in OneHandedTutorialHandlerTest 67 mDisplay = mContext.getDisplay(); in setUp() 68 mDisplayLayout = new DisplayLayout(getTestContext().getApplicationContext(), mDisplay); in setUp()
|
D | OneHandedStateTest.java | 58 Display mDisplay; field in OneHandedStateTest 97 mDisplay = mContext.getDisplay(); in setUp() 98 mDisplayLayout = new DisplayLayout(mContext, mDisplay); in setUp() 102 when(mMockDisplayController.getDisplay(anyInt())).thenReturn(mDisplay); in setUp()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/biometrics/ |
D | BiometricDisplayListenerTest.java | 61 @Mock private Display mDisplay; field in BiometricDisplayListenerTest 77 when(mContextSpy.getDisplay()).thenReturn(mDisplay); in setUp() 107 when(mDisplay.getRotation()).thenReturn(Surface.ROTATION_0); in callsOnChanged_forSideFingerprint_whenAnythingDisplayChanges()
|
/frameworks/native/services/surfaceflinger/tests/ |
D | Credentials_test.cpp | 65 sp<IBinder> mDisplay; member in android::CredentialsTest 95 mDisplay = getFirstDisplayToken(); in setupBackgroundSurface() 96 ASSERT_FALSE(mDisplay == nullptr); in setupBackgroundSurface() 99 ASSERT_EQ(NO_ERROR, SurfaceComposerClient::getActiveDisplayMode(mDisplay, &mode)); in setupBackgroundSurface() 109 t.setDisplayLayerStack(mDisplay, ui::DEFAULT_LAYER_STACK); in setupBackgroundSurface()
|
D | LayerTransactionTest.h | 275 sp<IBinder> mDisplay; variable 291 mDisplay = SurfaceComposerClient::getPhysicalDisplayToken(ids.front()); in SetUpDisplay() 292 ASSERT_FALSE(mDisplay == nullptr) << "failed to get display"; in SetUpDisplay() 295 ASSERT_EQ(NO_ERROR, SurfaceComposerClient::getActiveDisplayMode(mDisplay, &mode)); in SetUpDisplay() 311 t.setDisplayLayerStack(mDisplay, mDisplayLayerStack); in SetUpDisplay()
|