Home
last modified time | relevance | path

Searched refs:isProtected (Results 1 – 25 of 57) sorted by relevance

123

/frameworks/native/libs/renderengine/gl/
DGLImage.cpp33 static std::vector<EGLint> buildAttributeList(bool isProtected) { in buildAttributeList() argument
40 if (isProtected && GLExtensions::getInstance().hasProtectedContent()) { in buildAttributeList()
56 bool GLImage::setNativeWindowBuffer(ANativeWindowBuffer* buffer, bool isProtected) { in setNativeWindowBuffer() argument
67 std::vector<EGLint> attrs = buildAttributeList(isProtected); in setNativeWindowBuffer()
75 mProtected = isProtected; in setNativeWindowBuffer()
DGLImage.h39 bool setNativeWindowBuffer(ANativeWindowBuffer* buffer, bool isProtected) override;
42 bool isProtected() const { return mProtected; } in isProtected() function
DGLFramebuffer.cpp46 bool GLFramebuffer::setNativeWindowBuffer(ANativeWindowBuffer* nativeBuffer, bool isProtected, in setNativeWindowBuffer() argument
60 mEGLImage = mEngine.createFramebufferImageIfNeeded(nativeBuffer, isProtected, in setNativeWindowBuffer()
DGLFramebuffer.h40 bool setNativeWindowBuffer(ANativeWindowBuffer* nativeBuffer, bool isProtected,
/frameworks/av/media/libstagefright/renderfright/gl/
DGLImage.cpp32 static std::vector<EGLint> buildAttributeList(bool isProtected) { in buildAttributeList() argument
39 if (isProtected && GLExtensions::getInstance().hasProtectedContent()) { in buildAttributeList()
55 bool GLImage::setNativeWindowBuffer(ANativeWindowBuffer* buffer, bool isProtected) { in setNativeWindowBuffer() argument
65 std::vector<EGLint> attrs = buildAttributeList(isProtected); in setNativeWindowBuffer()
72 mProtected = isProtected; in setNativeWindowBuffer()
DGLImage.h39 bool setNativeWindowBuffer(ANativeWindowBuffer* buffer, bool isProtected) override;
42 bool isProtected() const { return mProtected; } in isProtected() function
DGLFramebuffer.cpp44 bool GLFramebuffer::setNativeWindowBuffer(ANativeWindowBuffer* nativeBuffer, bool isProtected, in setNativeWindowBuffer() argument
57 mEGLImage = mEngine.createFramebufferImageIfNeeded(nativeBuffer, isProtected, in setNativeWindowBuffer()
DGLFramebuffer.h40 bool setNativeWindowBuffer(ANativeWindowBuffer* nativeBuffer, bool isProtected,
/frameworks/native/libs/renderengine/tests/
DRenderEngineThreadedTest.cpp99 EXPECT_CALL(*mRenderEngine, isProtected()).WillOnce(Return(false)); in TEST_F()
100 status_t result = mThreadedRE->isProtected(); in TEST_F()
105 EXPECT_CALL(*mRenderEngine, isProtected()).WillOnce(Return(true)); in TEST_F()
106 size_t result = mThreadedRE->isProtected(); in TEST_F()
124 auto& ipExpect = EXPECT_CALL(*mRenderEngine, isProtected()).WillOnce(Return(false)); in TEST_F()
126 EXPECT_CALL(*mRenderEngine, isProtected()).After(ipExpect).WillOnce(Return(true)); in TEST_F()
129 ASSERT_EQ(true, mThreadedRE->isProtected()); in TEST_F()
133 ASSERT_EQ(true, mThreadedRE->isProtected()); in TEST_F()
138 EXPECT_CALL(*mRenderEngine, isProtected()).WillOnce(Return(false)); in TEST_F()
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DRenderSurfaceTest.cpp146 EXPECT_FALSE(mSurface.isProtected()); in TEST_F()
153 EXPECT_TRUE(mSurface.isProtected()); in TEST_F()
157 EXPECT_FALSE(mSurface.isProtected()); in TEST_F()
162 EXPECT_FALSE(mSurface.isProtected()); in TEST_F()
166 EXPECT_FALSE(mSurface.isProtected()); in TEST_F()
175 EXPECT_TRUE(mSurface.isProtected()); in TEST_F()
177 EXPECT_FALSE(mSurface.isProtected()); in TEST_F()
181 EXPECT_FALSE(mSurface.isProtected()); in TEST_F()
187 EXPECT_FALSE(mSurface.isProtected()); in TEST_F()
/frameworks/base/services/core/java/com/android/server/display/
DColorFade.java190 final boolean isProtected = hasProtectedContent(hardwareBuffer.getHardwareBuffer()); in prepare()
201 if (!(createEglContext(isProtected) && createEglSurface(isProtected, isWideColor) in prepare()
223 mLastWasProtectedContent = isProtected; in prepare()
616 private boolean createEglContext(boolean isProtected) {
659 if (mEglContext != null && isProtected != mLastWasProtectedContent) {
670 if (isProtected) {
684 private boolean createEglSurface(boolean isProtected, boolean isWideColor) {
688 isProtected != mLastWasProtectedContent || isWideColor != mLastWasWideColor;
709 if (isProtected) {
/frameworks/av/media/libstagefright/renderfright/tests/
DRenderEngineThreadedTest.cpp145 EXPECT_CALL(*mRenderEngine, isProtected()).WillOnce(Return(false)); in TEST_F()
146 status_t result = mThreadedRE->isProtected(); in TEST_F()
151 EXPECT_CALL(*mRenderEngine, isProtected()).WillOnce(Return(true)); in TEST_F()
152 size_t result = mThreadedRE->isProtected(); in TEST_F()
/frameworks/native/libs/renderengine/threaded/
DRenderEngineThreaded.cpp93 mIsProtected = mRenderEngine->isProtected(); in threadMain()
258 bool RenderEngineThreaded::isProtected() const { in isProtected() function in android::renderengine::threaded::RenderEngineThreaded
270 if (isProtected() == useProtectedContext || in useProtectedContext()
280 if (instance.isProtected() != useProtectedContext) { in useProtectedContext()
285 mIsProtected = instance.isProtected(); in useProtectedContext()
/frameworks/av/media/libstagefright/renderfright/include/renderengine/
DImage.h27 virtual bool setNativeWindowBuffer(ANativeWindowBuffer* buffer, bool isProtected) = 0;
DFramebuffer.h30 virtual bool setNativeWindowBuffer(ANativeWindowBuffer* nativeBuffer, bool isProtected,
/frameworks/native/libs/renderengine/include/renderengine/
DImage.h27 virtual bool setNativeWindowBuffer(ANativeWindowBuffer* buffer, bool isProtected) = 0;
DFramebuffer.h30 virtual bool setNativeWindowBuffer(ANativeWindowBuffer* nativeBuffer, bool isProtected,
/frameworks/native/libs/renderengine/include/renderengine/mock/
DImage.h31 MOCK_METHOD2(setNativeWindowBuffer, bool(ANativeWindowBuffer* buffer, bool isProtected));
/frameworks/av/media/libstagefright/renderfright/include/renderengine/mock/
DImage.h31 MOCK_METHOD2(setNativeWindowBuffer, bool(ANativeWindowBuffer* buffer, bool isProtected));
/frameworks/base/libs/hostgraphics/gui/
DIGraphicBufferConsumer.h60 virtual status_t setConsumerIsProtected(bool isProtected) = 0;
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/mock/
DRenderSurface.h34 MOCK_CONST_METHOD0(isProtected, bool());
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DRenderSurface.h55 virtual bool isProtected() const = 0;
/frameworks/base/core/jni/
Dandroid_graphics_SurfaceTexture.cpp76 EGLint isProtected = EGL_FALSE; in isProtectedContext() local
77 eglQueryContext(dpy, ctx, EGL_PROTECTED_CONTENT_EXT, &isProtected); in isProtectedContext()
79 return isProtected; in isProtectedContext()
/frameworks/base/libs/hostgraphics/
DHostBufferQueue.cpp25 virtual status_t setConsumerIsProtected(bool isProtected) { return OK; } in setConsumerIsProtected() argument
/frameworks/native/libs/renderengine/skia/
DSkiaRenderEngine.h45 virtual bool isProtected() const override { return false; } // mInProtectedContext; } in isProtected() function

123