Home
last modified time | relevance | path

Searched refs:SurfaceComposerClient (Results 1 – 25 of 90) sorted by relevance

1234

/frameworks/native/libs/gui/
DSurfaceComposerClient.cpp92 const std::string SurfaceComposerClient::kEmpty{};
191 sp<SurfaceComposerClient> mClient;
194 static sp<SurfaceComposerClient> getComposerClient() { in getComposerClient()
198 dc.mClient = new SurfaceComposerClient; in getComposerClient()
206 sp<SurfaceComposerClient> SurfaceComposerClient::getDefault() { in getDefault()
255 const std::unordered_set<sp<SurfaceControl>, SurfaceComposerClient::SCHash>& in addCallbackFunction()
264 const std::unordered_set<sp<SurfaceControl>, SurfaceComposerClient::SCHash>& in addCallbackFunctionLocked()
328 SurfaceComposerClient::CallbackInfo& callbackInfo, in addSurfaceControlToCallbacks()
561 SurfaceComposerClient::PresentationCallbackRAII::PresentationCallbackRAII( in PresentationCallbackRAII()
567 SurfaceComposerClient::PresentationCallbackRAII::~PresentationCallbackRAII() { in ~PresentationCallbackRAII()
[all …]
/frameworks/native/services/surfaceflinger/tests/
DCredentials_test.cpp37 using Transaction = SurfaceComposerClient::Transaction;
67 sp<SurfaceComposerClient> mComposerClient;
72 mComposerClient = sp<SurfaceComposerClient>::make(); in initClient()
77 const auto ids = SurfaceComposerClient::getPhysicalDisplayIds(); in getFirstDisplayToken()
82 return SurfaceComposerClient::getPhysicalDisplayToken(ids.front()); in getFirstDisplayToken()
86 const auto ids = SurfaceComposerClient::getPhysicalDisplayIds(); in getFirstDisplayId()
99 ASSERT_EQ(NO_ERROR, SurfaceComposerClient::getActiveDisplayMode(mDisplay, &mode)); in setupBackgroundSurface()
172 mComposerClient = sp<SurfaceComposerClient>::make(); in TEST_F()
190 ASSERT_EQ(NO_ERROR, SurfaceComposerClient::getDynamicDisplayInfoFromId(*id, &info)); in TEST_F()
198 return SurfaceComposerClient::getDynamicDisplayInfoFromId(*id, &info); in TEST_F()
[all …]
DDisplayConfigs_test.cpp46 const auto ids = SurfaceComposerClient::getPhysicalDisplayIds(); in SetUp()
49 mDisplayToken = SurfaceComposerClient::getPhysicalDisplayToken(ids.front()); in SetUp()
50 status_t res = SurfaceComposerClient::getDesiredDisplayModeSpecs(mDisplayToken, &mSpecs); in SetUp()
55 status_t res = SurfaceComposerClient::setDesiredDisplayModeSpecs(mDisplayToken, mSpecs); in TearDown()
62 SurfaceComposerClient::getDynamicDisplayInfoFromId(static_cast<int64_t>(mDisplayId), in testSetDesiredDisplayModeSpecs()
76 res = SurfaceComposerClient::setDesiredDisplayModeSpecs(mDisplayToken, setSpecs); in testSetDesiredDisplayModeSpecs()
79 res = SurfaceComposerClient::getDesiredDisplayModeSpecs(mDisplayToken, &getSpecs); in testSetDesiredDisplayModeSpecs()
DTransactionTestHarnesses.h40 const auto ids = SurfaceComposerClient::getPhysicalDisplayIds(); in getScreenCapture()
44 : SurfaceComposerClient::getPhysicalDisplayToken(displayId); in getScreenCapture()
47 SurfaceComposerClient::getDisplayState(displayToken, &displayState); in getScreenCapture()
50 SurfaceComposerClient::getActiveDisplayMode(displayToken, &displayMode); in getScreenCapture()
70 vDisplay = SurfaceComposerClient::createVirtualDisplay(kDisplayName, in getScreenCapture()
76 SurfaceComposerClient::getDefault()->mirrorDisplay(displayId); in getScreenCapture()
78 SurfaceComposerClient::Transaction t; in getScreenCapture()
89 SurfaceComposerClient::Transaction().apply(true); in getScreenCapture()
111 SurfaceComposerClient::destroyVirtualDisplay(vDisplay); in getScreenCapture()
DMultiDisplayLayerBounds_test.cpp41 const auto ids = SurfaceComposerClient::getPhysicalDisplayIds(); in SetUp()
44 mMainDisplay = SurfaceComposerClient::getPhysicalDisplayToken(mMainDisplayId); in SetUp()
45 SurfaceComposerClient::getDisplayState(mMainDisplay, &mMainDisplayState); in SetUp()
46 SurfaceComposerClient::getActiveDisplayMode(mMainDisplay, &mMainDisplayMode); in SetUp()
56 EXPECT_EQ(NO_ERROR, SurfaceComposerClient::destroyVirtualDisplay(mVirtualDisplay)); in TearDown()
64 SurfaceComposerClient::createVirtualDisplay(kDisplayName, false /*isSecure*/); in createDisplay()
129 SurfaceComposerClient::getDefault()->mirrorDisplay(mMainDisplayId); in TEST_F()
157 SurfaceComposerClient::getDefault()->mirrorDisplay(mMainDisplayId); in TEST_F()
DDumpsys_test.cpp75 sp<SurfaceComposerClient> client = sp<SurfaceComposerClient>::make(); in TEST()
85 sp<SurfaceComposerClient> client = sp<SurfaceComposerClient>::make(); in TEST()
96 SurfaceComposerClient::Transaction() in TEST()
DVirtualDisplay_test.cpp46 SurfaceComposerClient::createVirtualDisplay(kDisplayName, false /*isSecure*/); in TEST_F()
48 SurfaceComposerClient::Transaction t; in TEST_F()
52 EXPECT_EQ(NO_ERROR, SurfaceComposerClient::destroyVirtualDisplay(virtualDisplay)); in TEST_F()
DIPC_test.cpp40 using Transaction = SurfaceComposerClient::Transaction;
41 using CallbackInfo = SurfaceComposerClient::CallbackInfo;
42 using TCLHash = SurfaceComposerClient::TCLHash;
139 mClient = sp<SurfaceComposerClient>::make(); in initClient()
213 sp<SurfaceComposerClient> mClient;
224 mClient = sp<SurfaceComposerClient>::make(); in SetUp()
227 const auto ids = SurfaceComposerClient::getPhysicalDisplayIds(); in SetUp()
229 mPrimaryDisplay = SurfaceComposerClient::getPhysicalDisplayToken(ids.front()); in SetUp()
245 sp<SurfaceComposerClient> mClient;
DMirrorLayer_test.cpp34 const auto ids = SurfaceComposerClient::getPhysicalDisplayIds(); in SetUp()
37 const auto display = SurfaceComposerClient::getPhysicalDisplayToken(ids.front()); in SetUp()
250 const auto ids = SurfaceComposerClient::getPhysicalDisplayIds(); in TEST_F()
253 const auto display = SurfaceComposerClient::getPhysicalDisplayToken(ids.front()); in TEST_F()
255 SurfaceComposerClient::getActiveDisplayMode(display, &mode); in TEST_F()
300 const auto ids = SurfaceComposerClient::getPhysicalDisplayIds(); in TEST_F()
302 const auto display = SurfaceComposerClient::getPhysicalDisplayToken(ids.front()); in TEST_F()
304 SurfaceComposerClient::getActiveDisplayMode(display, &mode); in TEST_F()
DEffectLayer_test.cpp31 const auto ids = SurfaceComposerClient::getPhysicalDisplayIds(); in SetUp()
33 const auto display = SurfaceComposerClient::getPhysicalDisplayToken(ids.front()); in SetUp()
187 const auto ids = SurfaceComposerClient::getPhysicalDisplayIds(); in TEST_F()
189 const auto display = SurfaceComposerClient::getPhysicalDisplayToken(ids.front()); in TEST_F()
191 ASSERT_EQ(NO_ERROR, SurfaceComposerClient::getActiveDisplayMode(display, &mode)); in TEST_F()
/frameworks/base/core/jni/
Dandroid_view_SurfaceSession.cpp36 sp<SurfaceComposerClient> android_view_SurfaceSession_getClient( in android_view_SurfaceSession_getClient()
38 return reinterpret_cast<SurfaceComposerClient*>( in android_view_SurfaceSession_getClient()
44 SurfaceComposerClient* client = new SurfaceComposerClient(); in nativeCreate()
50 SurfaceComposerClient* client = reinterpret_cast<SurfaceComposerClient*>(ptr); in nativeDestroy()
Dandroid_view_SurfaceControl.cpp441 void addCallbackRef(const sp<SurfaceComposerClient::PresentationCallbackRAII>& callbackRef) { in addCallbackRef()
454 sp<SurfaceComposerClient::PresentationCallbackRAII> mCallbackRef;
466 return reinterpret_cast<jlong>(new SurfaceComposerClient::Transaction); in nativeCreateTransaction()
469 static void releaseTransaction(SurfaceComposerClient::Transaction* t) { in releaseTransaction()
481 sp<SurfaceComposerClient> client; in nativeCreate()
485 client = SurfaceComposerClient::getDefault(); in nativeCreate()
543 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); in nativeApplyTransaction()
549 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); in nativeMergeTransaction()
550 auto otherTransaction = reinterpret_cast<SurfaceComposerClient::Transaction*>( in nativeMergeTransaction()
556 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); in nativeSetAnimationTransaction()
[all …]
/frameworks/native/opengl/tests/lib/
DWindowSurface.cpp32 sp<SurfaceComposerClient> surfaceComposerClient = new SurfaceComposerClient; in WindowSurface()
39 const auto ids = SurfaceComposerClient::getPhysicalDisplayIds(); in WindowSurface()
46 const auto displayToken = SurfaceComposerClient::getPhysicalDisplayToken(ids.front()); in WindowSurface()
53 err = SurfaceComposerClient::getActiveDisplayMode(displayToken, &displayMode); in WindowSurface()
60 err = SurfaceComposerClient::getDisplayState(displayToken, &displayState); in WindowSurface()
83 SurfaceComposerClient::Transaction{} in WindowSurface()
/frameworks/native/services/automotive/display/
DAutomotiveDisplayProxyService.cpp38 displayToken = SurfaceComposerClient::getPhysicalDisplayToken(*displayId); in getIGraphicBufferProducer()
48 auto err = SurfaceComposerClient::getActiveDisplayMode(displayToken, &displayMode); in getIGraphicBufferProducer()
56 err = SurfaceComposerClient::getDisplayState(displayToken, &displayState); in getIGraphicBufferProducer()
70 sp<android::SurfaceComposerClient> surfaceClient = new SurfaceComposerClient(); in getIGraphicBufferProducer()
110 auto err = SurfaceComposerClient::getDisplayState(it->second.token, &displayState); in showWindow()
116 SurfaceComposerClient::Transaction t; in showWindow()
135 status_t status = SurfaceComposerClient::Transaction{} in hideWindow()
148 auto displayIds = SurfaceComposerClient::getPhysicalDisplayIds(); in getDisplayIdList()
165 displayToken = SurfaceComposerClient::getPhysicalDisplayToken(*displayId); in getDisplayInfo()
172 auto err = SurfaceComposerClient::getActiveDisplayMode(displayToken, &displayMode); in getDisplayInfo()
[all …]
/frameworks/base/libs/hwui/tests/common/
DTestContext.cpp31 const std::vector<PhysicalDisplayId> ids = SurfaceComposerClient::getPhysicalDisplayIds(); in getDisplayInfo()
35 SurfaceComposerClient::getStaticDisplayInfo(ids.front().value, &info); in getDisplayInfo()
52 const std::vector<PhysicalDisplayId> ids = SurfaceComposerClient::getPhysicalDisplayIds(); in getActiveDisplayMode()
55 const sp<IBinder> token = SurfaceComposerClient::getPhysicalDisplayToken(ids.front()); in getActiveDisplayMode()
58 const status_t status = SurfaceComposerClient::getActiveDisplayMode(token, &config); in getActiveDisplayMode()
69 mSurfaceComposerClient = new SurfaceComposerClient(); in TestContext()
98 SurfaceComposerClient::Transaction t; in createWindowSurface()
/frameworks/native/libs/gui/tests/
DSamplingDemo.cpp39 sp<SurfaceComposerClient> client = new SurfaceComposerClient; in Button()
47 SurfaceComposerClient::Transaction{} in Button()
59 SurfaceComposerClient::Transaction{} in Button()
76 SurfaceComposerClient::Transaction{} in Button()
96 SurfaceComposerClient::Transaction{} in setColor()
108 sp<SurfaceComposerClient> mClient;
DDisplayedContentSampling_test.cpp27 using Transaction = SurfaceComposerClient::Transaction;
33 mComposerClient = new SurfaceComposerClient; in SetUp()
35 const auto ids = SurfaceComposerClient::getPhysicalDisplayIds(); in SetUp()
38 mDisplayToken = SurfaceComposerClient::getPhysicalDisplayToken(ids.front()); in SetUp()
59 sp<SurfaceComposerClient> mComposerClient;
/frameworks/wilhelm/tests/sandbox/
Dnativewindow.cpp40 sp<SurfaceComposerClient> gComposerClient;
49 sp<SurfaceComposerClient> composerClient = new SurfaceComposerClient; in getNativeWindow_()
63 SurfaceComposerClient::Transaction{} in getNativeWindow_()
/frameworks/base/services/core/jni/
Dcom_android_server_display_DisplayControl.cpp31 sp<IBinder> token(SurfaceComposerClient::createVirtualDisplay(std::string(name.c_str()), in nativeCreateVirtualDisplay()
41 SurfaceComposerClient::destroyVirtualDisplay(token); in nativeDestroyVirtualDisplay()
58 status_t error = SurfaceComposerClient::overrideHdrTypes(token, hdrTypesVector); in nativeOverrideHdrTypes()
91 SurfaceComposerClient::setHdrConversionStrategy(hdrConversionStrategy, &prefHdrType); in nativeSetHdrConversionMode()
101 SurfaceComposerClient::getHdrConversionCapabilities(&hdrConversionCapabilities); in nativeGetSupportedHdrOutputTypes()
127 SurfaceComposerClient::getHdrConversionCapabilities(&hdrConversionCapabilities); in nativeGetHdrOutputTypesWithLatency()
152 status_t err = SurfaceComposerClient::getHdrOutputConversionSupport(&isSupported); in nativeGetHdrOutputConversionSupport()
160 const auto displayIds = SurfaceComposerClient::getPhysicalDisplayIds(); in nativeGetPhysicalDisplayIds()
177 sp<IBinder> token = SurfaceComposerClient::getPhysicalDisplayToken(*id); in nativeGetPhysicalDisplayToken()
Dcom_android_server_app_GameManagerService.cpp30 SurfaceComposerClient::setGameModeFrameRateOverride(uid, frameRate); in android_server_app_GameManagerService_nativeSetGameModeFrameRateOverride()
35 SurfaceComposerClient::setGameDefaultFrameRateOverride(uid, frameRate); in android_server_app_GameManagerService_nativeSetGameDefaultFrameRateOverride()
/frameworks/native/libs/gui/include/gui/
DSurfaceControl.h42 class SurfaceComposerClient; variable
92 sp<SurfaceComposerClient> getClient() const;
101 SurfaceControl(const sp<SurfaceComposerClient>& client, const sp<IBinder>& handle,
115 friend class SurfaceComposerClient; variable
123 sp<SurfaceComposerClient> mClient;
DBLASTBufferQueue.h107 bool syncNextTransaction(std::function<void(SurfaceComposerClient::Transaction*)> callback,
112 void mergeWithNextTransaction(SurfaceComposerClient::Transaction* t, uint64_t frameNumber);
114 SurfaceComposerClient::Transaction* gatherPendingTransactions(uint64_t frameNumber);
147 const std::optional<SurfaceComposerClient::Transaction*> transaction) REQUIRES(mMutex);
152 void mergePendingTransactions(SurfaceComposerClient::Transaction* t, uint64_t frameNumber)
237 void setMatrix(SurfaceComposerClient::Transaction* t, const BufferInfo& bufferInfo)
246 std::function<void(SurfaceComposerClient::Transaction*)> mTransactionReadyCallback
248 SurfaceComposerClient::Transaction* mSyncTransaction GUARDED_BY(mMutex);
249 std::vector<std::tuple<uint64_t /* framenumber */, SurfaceComposerClient::Transaction>>
/frameworks/base/core/jni/include/android_runtime/
Dandroid_view_SurfaceSession.h24 class SurfaceComposerClient; variable
27 extern sp<SurfaceComposerClient> android_view_SurfaceSession_getClient(
/frameworks/native/libs/nativedisplay/
DADisplay.cpp123 const std::vector<PhysicalDisplayId> ids = SurfaceComposerClient::getPhysicalDisplayIds(); in ADisplay_acquirePhysicalDisplays()
135 SurfaceComposerClient::getStaticDisplayInfo(ids[i].value, &staticInfo); in ADisplay_acquirePhysicalDisplays()
143 SurfaceComposerClient::getDynamicDisplayInfoFromId(ids[i].value, &dynamicInfo); in ADisplay_acquirePhysicalDisplays()
169 SurfaceComposerClient::getCompositionPreference(&defaultDataspace, &defaultPixelFormat, in ADisplay_acquirePhysicalDisplays()
257 SurfaceComposerClient::getDynamicDisplayInfoFromId(impl->id.value, &info); in ADisplay_getCurrentConfig()
/frameworks/native/services/surfaceflinger/
DHdrSdrRatioOverlay.cpp117 SurfaceComposerClient::Transaction() in HdrSdrRatioOverlay()
133 SurfaceComposerClient::Transaction().setLayerStack(mSurfaceControl->get(), stack).apply(); in setLayerStack()
144 SurfaceComposerClient::Transaction() in setViewport()
170 SurfaceComposerClient::Transaction().setTransform(mSurfaceControl->get(), transform).apply(); in getOrCreateBuffers()
197 SurfaceComposerClient::Transaction() in animate()

1234