Home
last modified time | relevance | path

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

123

/frameworks/native/libs/gui/
DSurfaceComposerClient.cpp110 sp<SurfaceComposerClient> mClient;
113 static sp<SurfaceComposerClient> getComposerClient() { in getComposerClient()
117 dc.mClient = new SurfaceComposerClient; in getComposerClient()
125 sp<SurfaceComposerClient> SurfaceComposerClient::getDefault() { in getDefault()
161 const std::unordered_set<sp<SurfaceControl>, SurfaceComposerClient::SCHash>& in addCallbackFunction()
278 SurfaceComposerClient::doUncacheBufferTransaction(cacheId); in uncacheLocked()
320 SurfaceComposerClient::Transaction::Transaction(const Transaction& other) in Transaction()
331 SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::merge(Transaction&& other) { in merge()
374 void SurfaceComposerClient::doDropReferenceTransaction(const sp<IBinder>& handle, in doDropReferenceTransaction()
391 void SurfaceComposerClient::doUncacheBufferTransaction(uint64_t cacheId) { in doUncacheBufferTransaction()
[all …]
DSurfaceControl.cpp49 const sp<SurfaceComposerClient>& client, in SurfaceControl()
69 SurfaceComposerClient::doDropReferenceTransaction(mHandle, mClient->getClient()); in ~SurfaceControl()
77 SurfaceComposerClient::Transaction().reparent(this, nullptr).apply(); in destroy()
110 const sp<SurfaceComposerClient>& client(mClient); in clearLayerFrameStats()
117 const sp<SurfaceComposerClient>& client(mClient); in getLayerFrameStats()
177 sp<SurfaceComposerClient> SurfaceControl::getClient() const in getClient()
202 return new SurfaceControl(new SurfaceComposerClient( in readFromParcel()
/frameworks/native/services/surfaceflinger/tests/
DCredentials_test.cpp20 using Transaction = SurfaceComposerClient::Transaction;
54 sp<SurfaceComposerClient> mComposerClient;
59 mComposerClient = new SurfaceComposerClient; in initClient()
64 mDisplay = SurfaceComposerClient::getInternalDisplayToken(); in setupBackgroundSurface()
68 ASSERT_EQ(NO_ERROR, SurfaceComposerClient::getDisplayInfo(mDisplay, &info)); in setupBackgroundSurface()
86 mVirtualDisplay = SurfaceComposerClient::createDisplay(DISPLAY_NAME, true); in setupVirtualDisplay()
169 mComposerClient = new SurfaceComposerClient; in TEST_F()
175 return SurfaceComposerClient::getInternalDisplayToken() != nullptr; in TEST_F()
185 const auto display = SurfaceComposerClient::getInternalDisplayToken(); in TEST_F()
189 ASSERT_EQ(NO_ERROR, SurfaceComposerClient::getDisplayInfo(display, &info)); in TEST_F()
[all …]
DVirtualDisplay_test.cpp45 SurfaceComposerClient::createDisplay(String8("VirtualDisplay"), false /*secure*/); in TEST_F()
47 SurfaceComposerClient::Transaction t; in TEST_F()
51 SurfaceComposerClient::destroyDisplay(virtualDisplay); in TEST_F()
DInvalidHandles_test.cpp37 sp<SurfaceComposerClient> mScc;
40 mScc = new SurfaceComposerClient; in SetUp()
/frameworks/native/cmds/surfacereplayer/replayer/
DReplayer.h78 status_t doSurfaceTransaction(SurfaceComposerClient::Transaction& transaction,
80 void doDisplayTransaction(SurfaceComposerClient::Transaction& transaction,
83 void setPosition(SurfaceComposerClient::Transaction& t,
85 void setSize(SurfaceComposerClient::Transaction& t,
87 void setAlpha(SurfaceComposerClient::Transaction& t,
89 void setLayer(SurfaceComposerClient::Transaction& t,
91 void setCrop(SurfaceComposerClient::Transaction& t,
93 void setCornerRadius(SurfaceComposerClient::Transaction& t,
95 void setMatrix(SurfaceComposerClient::Transaction& t,
97 void setOverrideScalingMode(SurfaceComposerClient::Transaction& t,
[all …]
DReplayer.cpp115 SurfaceComposerClient::enableVSyncInjections(true); in replay()
147 SurfaceComposerClient::enableVSyncInjections(false); in replay()
156 SurfaceComposerClient::enableVSyncInjections(false); in replay()
176 SurfaceComposerClient::enableVSyncInjections(false); in stopAutoReplayHandler()
254 SurfaceComposerClient::enableVSyncInjections(false); in waitForConsoleCommmand()
337 SurfaceComposerClient::Transaction liveTransaction; in doTransaction()
358 SurfaceComposerClient::Transaction& transaction, in doSurfaceTransaction()
428 void Replayer::doDisplayTransaction(SurfaceComposerClient::Transaction& t, in doDisplayTransaction()
456 void Replayer::setPosition(SurfaceComposerClient::Transaction& t, in setPosition()
462 void Replayer::setSize(SurfaceComposerClient::Transaction& t, in setSize()
[all …]
/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()
55 SurfaceComposerClient* client = reinterpret_cast<SurfaceComposerClient*>(ptr); in nativeKill()
Dandroid_view_SurfaceControl.cpp167 return reinterpret_cast<jlong>(new SurfaceComposerClient::Transaction); in nativeCreateTransaction()
170 static void releaseTransaction(SurfaceComposerClient::Transaction* t) { in releaseTransaction()
182 sp<SurfaceComposerClient> client; in nativeCreate()
186 client = SurfaceComposerClient::getDefault(); in nativeCreate()
242 const ui::ColorMode colorMode = SurfaceComposerClient::getActiveColorMode(displayToken); in nativeScreenshot()
302 const ui::ColorMode colorMode = SurfaceComposerClient::getActiveColorMode(displayToken); in nativeCaptureLayers()
325 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); in nativeApplyTransaction()
331 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); in nativeMergeTransaction()
332 auto otherTransaction = reinterpret_cast<SurfaceComposerClient::Transaction*>( in nativeMergeTransaction()
338 auto transaction = reinterpret_cast<SurfaceComposerClient::Transaction*>(transactionObj); in nativeSetAnimationTransaction()
[all …]
/frameworks/native/libs/gui/tests/
DSamplingDemo.cpp39 sp<SurfaceComposerClient> client = new SurfaceComposerClient; in Button()
47 SurfaceComposerClient::Transaction{} in Button()
60 SurfaceComposerClient::Transaction{} in Button()
78 SurfaceComposerClient::Transaction{} in Button()
98 SurfaceComposerClient::Transaction{} in setColor()
109 sp<SurfaceComposerClient> mClient;
DEndToEndNativeInputTest.cpp52 using Transaction = SurfaceComposerClient::Transaction;
82 static std::unique_ptr<InputSurface> makeColorInputSurface(const sp<SurfaceComposerClient> &scc, in makeColorInputSurface()
91 const sp<SurfaceComposerClient> &scc, int width, int height) { in makeBufferInputSurface()
99 const sp<SurfaceComposerClient> &scc, int width, int height) { in makeContainerInputSurface()
140 void doTransaction(std::function<void(SurfaceComposerClient::Transaction&, in doTransaction()
142 SurfaceComposerClient::Transaction t; in doTransaction()
148 SurfaceComposerClient::Transaction t; in showAt()
212 mComposerClient = new SurfaceComposerClient; in SetUp()
247 sp<SurfaceComposerClient> mComposerClient;
DDisplayedContentSampling_test.cpp27 using Transaction = SurfaceComposerClient::Transaction;
33 mComposerClient = new SurfaceComposerClient; in SetUp()
56 sp<SurfaceComposerClient> mComposerClient;
DRegionSampling_test.cpp180 mSurfaceComposerClient = new SurfaceComposerClient; in SetUp()
188 SurfaceComposerClient::Transaction{} in SetUp()
198 SurfaceComposerClient::Transaction{} in SetUp()
207 SurfaceComposerClient::Transaction{} in SetUp()
230 sp<SurfaceComposerClient> mSurfaceComposerClient;
/frameworks/native/opengl/tests/lib/
DWindowSurface.cpp29 sp<SurfaceComposerClient> surfaceComposerClient = new SurfaceComposerClient; in WindowSurface()
37 const auto mainDpy = SurfaceComposerClient::getInternalDisplayToken(); in WindowSurface()
44 err = SurfaceComposerClient::getDisplayInfo(mainDpy, &mainDpyInfo); in WindowSurface()
69 SurfaceComposerClient::Transaction{} in WindowSurface()
/frameworks/native/libs/gui/include/gui/
DSurfaceControl.h40 class SurfaceComposerClient; variable
83 sp<SurfaceComposerClient> getClient() const;
87 SurfaceControl(const sp<SurfaceComposerClient>& client, const sp<IBinder>& handle,
95 friend class SurfaceComposerClient; variable
103 sp<SurfaceComposerClient> mClient;
/frameworks/wilhelm/tests/sandbox/
Dnativewindow.cpp40 sp<SurfaceComposerClient> gComposerClient;
49 sp<SurfaceComposerClient> composerClient = new SurfaceComposerClient; in getNativeWindow_()
63 SurfaceComposerClient::Transaction{} in getNativeWindow_()
/frameworks/base/libs/hwui/
DDeviceInfo.cpp58 const sp<IBinder> token = SurfaceComposerClient::getInternalDisplayToken(); in QueryDisplayInfo()
63 status_t status = SurfaceComposerClient::getDisplayInfo(token, &displayInfo); in QueryDisplayInfo()
73 const sp<IBinder> token = SurfaceComposerClient::getInternalDisplayToken(); in QueryMaxRefreshRate()
79 status_t status = SurfaceComposerClient::getDisplayConfigs(token, &configs); in QueryMaxRefreshRate()
98 SurfaceComposerClient::getCompositionPreference(&defaultDataspace, &defaultPixelFormat, in queryWideColorGamutPreference()
/frameworks/base/libs/hwui/tests/common/
DTestContext.cpp43 const sp<IBinder> token = SurfaceComposerClient::getInternalDisplayToken(); in getInternalDisplay()
46 status_t status = SurfaceComposerClient::getDisplayInfo(token, &display); in getInternalDisplay()
59 mSurfaceComposerClient = new SurfaceComposerClient(); in TestContext()
85 SurfaceComposerClient::Transaction t; in createWindowSurface()
/frameworks/base/core/jni/include/android_runtime/
Dandroid_view_SurfaceSession.h24 class SurfaceComposerClient; variable
27 extern sp<SurfaceComposerClient> android_view_SurfaceSession_getClient(
/frameworks/av/cmds/stagefright/
Dstream.cpp318 sp<SurfaceComposerClient> composerClient = new SurfaceComposerClient; in main()
321 const sp<IBinder> display = SurfaceComposerClient::getInternalDisplayToken(); in main()
325 CHECK_EQ(SurfaceComposerClient::getDisplayInfo(display, &info), NO_ERROR); in main()
343 SurfaceComposerClient::Transaction{} in main()
Dcodec.cpp406 sp<SurfaceComposerClient> composerClient; in main()
411 composerClient = new SurfaceComposerClient; in main()
414 const sp<IBinder> display = SurfaceComposerClient::getInternalDisplayToken(); in main()
418 CHECK_EQ(SurfaceComposerClient::getDisplayInfo(display, &info), NO_ERROR); in main()
435 SurfaceComposerClient::Transaction{} in main()
/frameworks/native/services/surfaceflinger/tests/fakehwc/
DSFFakeHwc_test.cpp63 using Transaction = SurfaceComposerClient::Transaction;
152 sp<SurfaceComposerClient> mComposerClient;
195 mComposerClient = new SurfaceComposerClient; in SetUp()
302 const auto display = SurfaceComposerClient::getPhysicalDisplayToken(EXTERNAL_DISPLAY); in TEST_F()
306 ASSERT_EQ(NO_ERROR, SurfaceComposerClient::getDisplayInfo(display, &info)); in TEST_F()
338 const auto display = SurfaceComposerClient::getPhysicalDisplayToken(EXTERNAL_DISPLAY); in TEST_F()
342 ASSERT_EQ(NO_ERROR, SurfaceComposerClient::getDisplayInfo(display, &info)); in TEST_F()
374 const auto display = SurfaceComposerClient::getPhysicalDisplayToken(PRIMARY_DISPLAY); in TEST_F()
378 auto result = SurfaceComposerClient::getDisplayInfo(display, &info); in TEST_F()
413 const auto display = SurfaceComposerClient::getPhysicalDisplayToken(PRIMARY_DISPLAY); in TEST_F()
[all …]
/frameworks/base/cmds/bootanimation/
DBootAnimation.h37 class SurfaceComposerClient; variable
122 sp<SurfaceComposerClient> session() const;
169 sp<SurfaceComposerClient> mSession;
/frameworks/native/cmds/flatland/
DGLHelper.h26 class SurfaceComposerClient; variable
83 sp<SurfaceComposerClient> mSurfaceComposerClient;
/frameworks/av/cmds/screenrecord/
Dscreenrecord.cpp79 using android::SurfaceComposerClient;
267 SurfaceComposerClient::Transaction& t, in setDisplayProjection()
338 sp<IBinder> dpy = SurfaceComposerClient::createDisplay( in prepareVirtualDisplay()
341 SurfaceComposerClient::Transaction t; in prepareVirtualDisplay()
426 err = SurfaceComposerClient::getDisplayInfo(mainDpy, in runEncoder()
432 SurfaceComposerClient::Transaction t; in runEncoder()
600 const sp<IBinder> mainDpy = SurfaceComposerClient::getInternalDisplayToken(); in recordScreen()
607 err = SurfaceComposerClient::getDisplayInfo(mainDpy, &mainDpyInfo); in recordScreen()
792 SurfaceComposerClient::destroyDisplay(dpy); in recordScreen()

123