Home
last modified time | relevance | path

Searched refs:mFlinger (Results 1 – 25 of 58) sorted by relevance

123

/frameworks/native/services/surfaceflinger/tests/unittests/
DSurfaceFlinger_FoldableTest.cpp38 ASSERT_EQ(mFlinger.scheduler()->pacesetterDisplayId(), kInnerDisplayId); in TEST_F()
41 mFlinger.setPowerModeInternal(mInnerDisplay, PowerMode::ON); in TEST_F()
42 ASSERT_EQ(mFlinger.scheduler()->pacesetterDisplayId(), kInnerDisplayId); in TEST_F()
46 mFlinger.setPowerModeInternal(mInnerDisplay, PowerMode::ON); in TEST_F()
49 mFlinger.setPowerModeInternal(mInnerDisplay, PowerMode::OFF); in TEST_F()
50 mFlinger.setPowerModeInternal(mOuterDisplay, PowerMode::ON); in TEST_F()
51 ASSERT_EQ(mFlinger.scheduler()->pacesetterDisplayId(), kOuterDisplayId); in TEST_F()
54 mFlinger.setPowerModeInternal(mOuterDisplay, PowerMode::OFF); in TEST_F()
55 mFlinger.setPowerModeInternal(mInnerDisplay, PowerMode::ON); in TEST_F()
56 ASSERT_EQ(mFlinger.scheduler()->pacesetterDisplayId(), kInnerDisplayId); in TEST_F()
[all …]
DSurfaceFlinger_NotifyExpectedPresentTest.cpp35 .inject(&mFlinger, mComposer); in SetUp()
37 ASSERT_NO_FATAL_FAILURE(mFlinger.setNotifyExpectedPresentData(mPhysicalDisplayId, in SetUp()
40 mCompositor = std::make_unique<Compositor>(mPhysicalDisplayId, mFlinger); in SetUp()
45 ASSERT_TRUE(mFlinger.getTransactionQueue().isEmpty()); in setTransactionState()
47 mFlinger.setTransactionState(FrameTimelineInfo{}, transaction.states, transaction.displays, in setTransactionState()
134 mFlinger.setNotifyExpectedPresentData(mPhysicalDisplayId, in TEST_F()
140 mFlinger.notifyExpectedPresentIfRequired(mPhysicalDisplayId, kVsyncPeriod, in TEST_F()
144 mFlinger.verifyLastExpectedPresentTime(mPhysicalDisplayId, expectedPresentTime)); in TEST_F()
145 ASSERT_TRUE(mFlinger.verifyHintStatusIsStart(mPhysicalDisplayId)); in TEST_F()
156 mFlinger.notifyExpectedPresentIfRequired(mPhysicalDisplayId, kVsyncPeriod, in TEST_F()
[all …]
DSurfaceFlinger_ColorMatrixTest.cpp23 EXPECT_EQ(current, mFlinger.currentState().colorMatrixChanged); \
24 EXPECT_EQ(drawing, mFlinger.drawingState().colorMatrixChanged);
31 mFlinger.enableLayerLifecycleManager(); in TEST_F()
33 mFlinger.mutableTransactionFlags() |= eTransactionNeeded; in TEST_F()
35 mFlinger.commitAndComposite(); in TEST_F()
38 mFlinger.setDaltonizerType(ColorBlindnessType::Deuteranomaly); in TEST_F()
41 mFlinger.commit(); in TEST_F()
44 mFlinger.commitAndComposite(); in TEST_F()
49 mFlinger.enableLayerLifecycleManager(); in TEST_F()
51 mFlinger.mutableTransactionFlags() |= eTransactionNeeded; in TEST_F()
[all …]
DActiveDisplayRotationFlagsTest.cpp38 mOldRotationFlags = mFlinger.mutableActiveDisplayRotationFlags(); in SetUp()
41 mFlinger.mutableActiveDisplayRotationFlags() = ui::Transform::ROT_0; in SetUp()
44 void TearDown() override { mFlinger.mutableActiveDisplayRotationFlags() = mOldRotationFlags; } in TearDown()
55 mFlinger.mutableDrawingState().displays.editValueFor(displayToken).orientation = ui::ROTATION_0; in TEST_F()
56 mFlinger.mutableCurrentState().displays.editValueFor(displayToken).orientation = in TEST_F()
59 mFlinger.commitTransactionsLocked(eDisplayTransactionNeeded); in TEST_F()
65 mFlinger.mutableDrawingState().displays.editValueFor(displayToken).orientation = ui::ROTATION_0; in TEST_F()
66 mFlinger.mutableCurrentState().displays.editValueFor(displayToken).orientation = in TEST_F()
69 mFlinger.commitTransactionsLocked(eDisplayTransactionNeeded); in TEST_F()
75 mFlinger.mutableDrawingState().displays.editValueFor(displayToken).orientation = ui::ROTATION_0; in TEST_F()
[all …]
DTestableSurfaceFlinger.h174 TestableSurfaceFlinger(sp<SurfaceFlinger> flinger = nullptr) : mFlinger(flinger) { in mFlinger() function
175 if (!mFlinger) { in mFlinger()
176 mFlinger = sp<SurfaceFlinger>::make(mFactory, SurfaceFlinger::SkipInitialization); in mFlinger()
180 SurfaceFlinger* flinger() { return mFlinger.get(); } in flinger()
187 mFlinger->mRenderEngine = std::move(renderEngine); in setupRenderEngine()
188 mFlinger->mCompositionEngine->setRenderEngine(mFlinger->mRenderEngine.get()); in setupRenderEngine()
192 mFlinger->mCompositionEngine->setHwComposer( in setupComposer()
194 mFlinger->mDisplayModeController.setHwComposer( in setupComposer()
195 &mFlinger->mCompositionEngine->getHwComposer()); in setupComposer()
199 mFlinger->mPowerAdvisor = std::move(powerAdvisor); in setupPowerAdvisor()
[all …]
DCommitTest.cpp38 TestableSurfaceFlinger mFlinger; member in android::CommitTest
42 mFlinger.setupMockScheduler(); in flinger_setup()
43 mFlinger.setupComposer(std::make_unique<Hwc2::mock::Composer>()); in flinger_setup()
44 mFlinger.setupRenderEngine(std::unique_ptr<renderengine::RenderEngine>(mRenderEngine)); in flinger_setup()
48 LayerCreationArgs args(mFlinger.flinger(), nullptr, "layer", in createArgs()
60 bool mustComposite = mFlinger.updateLayerSnapshots(VsyncId{1}, /*frameTimeNs=*/0, in TEST_F()
69 mFlinger.setDaltonizerType(ColorBlindnessType::Deuteranomaly); in TEST_F()
71 bool mustComposite = mFlinger.updateLayerSnapshots(VsyncId{1}, /*frameTimeNs=*/0, in TEST_F()
77 mFlinger.setupMockScheduler(); in TEST_F()
78 mFlinger.setupRenderEngine(std::unique_ptr<renderengine::RenderEngine>(mRenderEngine)); in TEST_F()
[all …]
DDisplayTransactionTest.cpp37 mFlinger.mutableSupportsWideColor() = false; in DisplayTransactionTest()
38 mFlinger.mutableDisplayColorSetting() = DisplayColorSetting::kUnmanaged; in DisplayTransactionTest()
40 mFlinger.setCreateBufferQueueFunction([](auto, auto, auto) { in DisplayTransactionTest()
44 mFlinger.setCreateNativeWindowSurface([](auto) { in DisplayTransactionTest()
53 mFlinger.setupRenderEngine(std::unique_ptr<renderengine::RenderEngine>(mRenderEngine)); in DisplayTransactionTest()
62 mFlinger.resetScheduler(nullptr); in ~DisplayTransactionTest()
66 LOG_ALWAYS_FATAL_IF(mFlinger.scheduler()); in injectMockScheduler()
78 mFlinger.setupScheduler(std::make_unique<mock::VsyncController>(), in injectMockScheduler()
89 mFlinger.enableHalVirtualDisplays(false); in injectMockComposer()
93 mFlinger.setupComposer(std::unique_ptr<Hwc2::Composer>(mComposer)); in injectMockComposer()
[all …]
DSurfaceFlinger_DisplayModeSwitching.cpp61 mFlinger.onComposerHalHotplugEvent(PrimaryDisplayVariant::HWC_DISPLAY_ID, in SetUp()
63 mFlinger.configureAndCommit(); in SetUp()
98 .inject(&mFlinger, mComposer); in injectOuterDisplay()
116 auto& dmc() { return mFlinger.mutableDisplayModeController(); } in dmc()
166 mFlinger.setupScheduler(std::move(vsyncController), std::move(vsyncTracker), in setupScheduler()
178 mFlinger.onActiveDisplayChanged(nullptr, *mDisplay); in TEST_F()
180 mFlinger.setDesiredDisplayModeSpecs(mDisplay->getDisplayToken().promote(), in TEST_F()
191 mFlinger.commit(); in TEST_F()
203 mFlinger.commit(); in TEST_F()
215 mFlinger.onActiveDisplayChanged(nullptr, *mDisplay); in TEST_F()
[all …]
DSurfaceFlinger_HotplugTest.cpp33 EXPECT_CALL(*mFlinger.scheduler(), scheduleConfigure()).Times(2); in TEST_F()
36 mFlinger.onComposerHalHotplugEvent(hwcDisplayId1, DisplayHotplugEvent::CONNECTED); in TEST_F()
39 mFlinger.onComposerHalHotplugEvent(hwcDisplayId2, DisplayHotplugEvent::DISCONNECTED); in TEST_F()
41 const auto& pendingEvents = mFlinger.mutablePendingHotplugEvents(); in TEST_F()
50 EXPECT_CALL(*mFlinger.scheduler(), scheduleConfigure()).Times(1); in TEST_F()
51 EXPECT_CALL(*mFlinger.scheduler(), scheduleFrame()).Times(1); in TEST_F()
54 mFlinger.onComposerHalHotplugEvent(displayId1, DisplayHotplugEvent::DISCONNECTED); in TEST_F()
55 mFlinger.configure(); in TEST_F()
58 EXPECT_TRUE(mFlinger.mutablePendingHotplugEvents().empty()); in TEST_F()
76 EXPECT_CALL(*mFlinger.scheduler(), scheduleFrame()).Times(1); in TEST_F()
[all …]
DSetFrameRateTest.cpp76 mFlinger.setupComposer(std::make_unique<Hwc2::mock::Composer>()); in SetFrameRateTest()
96 EXPECT_CALL(*mFlinger.scheduler(), scheduleFrame()).Times(1); in TEST_P()
100 auto layer = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P()
107 EXPECT_CALL(*mFlinger.scheduler(), scheduleFrame()).Times(1); in TEST_P()
111 auto parent = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P()
112 auto child1 = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P()
113 auto child2 = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P()
132 EXPECT_CALL(*mFlinger.scheduler(), scheduleFrame()).Times(1); in TEST_P()
136 auto parent = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P()
137 auto child1 = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P()
[all …]
DSurfaceFlinger_NotifyPowerBoostTest.cpp48 mFlinger.scheduler()->replaceTouchTimer(10, [&](bool isReset) { in TEST_F()
58 EXPECT_TRUE(mFlinger.scheduler()->isTouchActive()); // Starting timer activates touch in TEST_F()
61 EXPECT_FALSE(mFlinger.scheduler()->isTouchActive()); // Stopping timer deactivates touch in TEST_F()
63 EXPECT_EQ(NO_ERROR, mFlinger.notifyPowerBoost(static_cast<int32_t>(Boost::CAMERA_SHOT))); in TEST_F()
65 EXPECT_FALSE(mFlinger.scheduler()->isTouchActive()); in TEST_F()
68 EXPECT_FALSE(mFlinger.scheduler()->isTouchActive()); in TEST_F()
71 EXPECT_FALSE(mFlinger.scheduler()->isTouchActive()); in TEST_F()
73 EXPECT_EQ(NO_ERROR, mFlinger.notifyPowerBoost(static_cast<int32_t>(Boost::INTERACTION))); in TEST_F()
75 EXPECT_TRUE(mFlinger.scheduler()->isTouchActive()); in TEST_F()
DCommitAndCompositeTest.h34 mFlinger.setupMockScheduler({.displayId = DEFAULT_DISPLAY_ID}); in SetUp()
37 mFlinger.setupRenderEngine(std::unique_ptr<renderengine::RenderEngine>(mRenderEngine)); in SetUp()
38 mFlinger.setupTimeStats(std::shared_ptr<TimeStats>(mTimeStats)); in SetUp()
39 mFlinger.setupComposer(std::unique_ptr<Hwc2::Composer>(mComposer)); in SetUp()
40 mFlinger.setupPowerAdvisor(std::unique_ptr<Hwc2::PowerAdvisor>(mPowerAdvisor)); in SetUp()
45 .inject(&mFlinger, mComposer); in SetUp()
54 compositionengine::impl::createDisplay(mFlinger.getCompositionEngine(), in SetUp()
56 mDisplay = FakeDisplayDeviceInjector(mFlinger, compositionDisplay, in SetUp()
62 .setRefreshRateSelector(mFlinger.scheduler()->refreshRateSelector()) in SetUp()
75 TestableSurfaceFlinger mFlinger; member
DSurfaceFlinger_UpdateLayerMetadataSnapshotTest.cpp14 SurfaceFlingerUpdateLayerMetadataSnapshotTest() { mFlinger.setupMockScheduler(); } in SurfaceFlingerUpdateLayerMetadataSnapshotTest()
19 LayerCreationArgs{mFlinger.flinger(), nullptr, name, 0, inOutlayerMetadata}; in createLayer()
24 TestableSurfaceFlinger mFlinger; member in android::SurfaceFlingerUpdateLayerMetadataSnapshotTest
61 mFlinger.mutableDrawingState().layersSortedByZ.add(layer); in TEST_F()
63 mFlinger.updateLayerMetadataSnapshot(); in TEST_F()
80 mFlinger.mutableDrawingState().layersSortedByZ.add(layerA); in TEST_F()
82 mFlinger.updateLayerMetadataSnapshot(); in TEST_F()
99 mFlinger.mutableDrawingState().layersSortedByZ.add(layerA); in TEST_F()
100 mFlinger.mutableDrawingState().layersSortedByZ.add(layerB); in TEST_F()
102 mFlinger.updateLayerMetadataSnapshot(); in TEST_F()
[all …]
DTransactionFrameTracerTest.cpp46 mFlinger.setupMockScheduler(); in TransactionFrameTracerTest()
47 mFlinger.setupComposer(std::make_unique<Hwc2::mock::Composer>()); in TransactionFrameTracerTest()
48 mFlinger.setupRenderEngine(std::unique_ptr<renderengine::RenderEngine>(mRenderEngine)); in TransactionFrameTracerTest()
59 LayerCreationArgs args(mFlinger.flinger(), client, "buffer-state-layer", 0, in createLayer()
66 TestableSurfaceFlinger mFlinger; member in android::TransactionFrameTracerTest
80 EXPECT_CALL(*mFlinger.getFrameTracer(), traceNewLayer(layerId, "buffer-state-layer")); in BLASTTransactionSendsFrameTracerEvents()
81 EXPECT_CALL(*mFlinger.getFrameTracer(), in BLASTTransactionSendsFrameTracerEvents()
84 EXPECT_CALL(*mFlinger.getFrameTracer(), in BLASTTransactionSendsFrameTracerEvents()
101 EXPECT_CALL(*mFlinger.getFrameTracer(), in BLASTTransactionSendsFrameTracerEvents()
104 EXPECT_CALL(*mFlinger.getFrameTracer(), in BLASTTransactionSendsFrameTracerEvents()
[all …]
DTunnelModeEnabledReporterTest.cpp63 TestableSurfaceFlinger mFlinger; member in android::TunnelModeEnabledReporterTest
78 mFlinger.setupMockScheduler(); in TunnelModeEnabledReporterTest()
79 mFlinger.setupComposer(std::make_unique<Hwc2::mock::Composer>()); in TunnelModeEnabledReporterTest()
80 mFlinger.flinger()->mTunnelModeEnabledReporter = mTunnelModeEnabledReporter; in TunnelModeEnabledReporterTest()
94 LayerCreationArgs args(mFlinger.flinger(), client, "buffer-state-layer", LAYER_FLAGS, metadata);
131 mFlinger.mutableCurrentState().layersSortedByZ.add(layer); in TEST_F()
136 mFlinger.mutableCurrentState().layersSortedByZ.remove(layer); in TEST_F()
156 mFlinger.mutableCurrentState().layersSortedByZ.add(simpleLayer); in TEST_F()
157 mFlinger.mutableCurrentState().layersSortedByZ.add(layerWithSidebandStream); in TEST_F()
161 mFlinger.mutableCurrentState().layersSortedByZ.remove(layerWithSidebandStream); in TEST_F()
DFrameRateSelectionStrategyTest.cpp69 mFlinger.setupComposer(std::make_unique<Hwc2::mock::Composer>()); in FrameRateSelectionStrategyTest()
94 EXPECT_CALL(*mFlinger.scheduler(), scheduleFrame()).Times(1); in TEST_P()
97 auto layer = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P()
107 EXPECT_CALL(*mFlinger.scheduler(), scheduleFrame()).Times(1); in TEST_P()
110 auto parent = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P()
111 auto child1 = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P()
112 auto child2 = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P()
131 EXPECT_CALL(*mFlinger.scheduler(), scheduleFrame()).Times(1); in TEST_P()
134 auto layer1 = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P()
135 auto layer2 = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P()
[all …]
DTransactionApplicationTest.cpp56 mFlinger.setupComposer(std::make_unique<Hwc2::mock::Composer>()); in TransactionApplicationTest()
57 mFlinger.setupMockScheduler(); in TransactionApplicationTest()
58 mFlinger.flinger()->addTransactionReadyFilters(); in TransactionApplicationTest()
67 TestableSurfaceFlinger mFlinger; member in android::TransactionApplicationTest
104 ASSERT_TRUE(mFlinger.getTransactionQueue().isEmpty()); in NotPlacedOnTransactionQueue()
105 EXPECT_CALL(*mFlinger.scheduler(), scheduleFrame()).Times(1); in NotPlacedOnTransactionQueue()
111 mFlinger.setTransactionState(transaction.frameTimelineInfo, transaction.states, in NotPlacedOnTransactionQueue()
123 auto& transactionQueue = mFlinger.getTransactionQueue(); in NotPlacedOnTransactionQueue()
128 ASSERT_TRUE(mFlinger.getTransactionQueue().isEmpty()); in PlaceOnTransactionQueue()
129 EXPECT_CALL(*mFlinger.scheduler(), scheduleFrame()).Times(1); in PlaceOnTransactionQueue()
[all …]
DSurfaceFlinger_DisplayTransactionCommitTest.cpp143 const auto displayOpt = mFlinger.mutablePhysicalDisplays().get(displayId); in verifyPhysicalDisplayIsConnected()
176 mFlinger.configureAndCommit(); in processesHotplugConnectCommon()
205 mFlinger.configureAndCommit(); in ignoresHotplugConnectCommon()
240 mFlinger.configureAndCommit(); in processesHotplugDisconnectCommon()
251 ASSERT_FALSE(mFlinger.mutablePhysicalDisplays().contains(displayId)); in processesHotplugDisconnectCommon()
322 mFlinger.configureAndCommit(); in TEST_F()
333 ASSERT_FALSE(mFlinger.mutablePhysicalDisplays().contains(displayId)); in TEST_F()
367 mFlinger.configureAndCommit(); in TEST_F()
377 const auto displayOpt = mFlinger.mutablePhysicalDisplays().get(displayId); in TEST_F()
416 mFlinger.mutableCurrentState().displays.add(displayToken, state); in TEST_F()
[all …]
DSurfaceFlinger_GetDisplayStatsTest.cpp34 status_t status = mFlinger.getDisplayStats(nullptr, &info); in TEST_F()
40 status_t status = mFlinger.getDisplayStats(mDisplay->getDisplayToken().promote(), &info); in TEST_F()
46 sp<IBinder> displayToken = mFlinger.createVirtualDisplay(kDisplayName, false /*isSecure*/); in TEST_F()
48 status_t status = mFlinger.getDisplayStats(displayToken, &info); in TEST_F()
DSurfaceFlinger_SetDisplayStateTest.cpp48 uint32_t flags = mFlinger.setDisplayStateLocked(state); in TEST_F()
78 uint32_t flags = mFlinger.setDisplayStateLocked(state); in TEST_F()
112 uint32_t flags = mFlinger.setDisplayStateLocked(state); in TEST_F()
149 uint32_t flags = mFlinger.setDisplayStateLocked(state); in TEST_F()
183 uint32_t flags = mFlinger.setDisplayStateLocked(state); in TEST_F()
217 uint32_t flags = mFlinger.setDisplayStateLocked(state); in TEST_F()
251 uint32_t flags = mFlinger.setDisplayStateLocked(state); in TEST_F()
285 uint32_t flags = mFlinger.setDisplayStateLocked(state); in TEST_F()
326 uint32_t flags = mFlinger.setDisplayStateLocked(state); in TEST_F()
366 uint32_t flags = mFlinger.setDisplayStateLocked(state); in TEST_F()
[all …]
DSurfaceFlinger_CreateDisplayTest.cpp40 sp<IBinder> displayToken = mFlinger.createVirtualDisplay(name, false, requestedRefreshRate); in createDisplayWithRequestedRefreshRate()
57 mFlinger.createVirtualDisplayDevice(displayToken, *vid, requestedRefreshRate); in createDisplayWithRequestedRefreshRate()
84 sp<IBinder> displayToken = mFlinger.createVirtualDisplay(name, false); in TEST_F()
100 EXPECT_CALL(*mFlinger.scheduler(), scheduleFrame()).Times(1); in TEST_F()
115 sp<IBinder> displayToken = mFlinger.createVirtualDisplay(kDisplayName, true); in TEST_F()
132 EXPECT_CALL(*mFlinger.scheduler(), scheduleFrame()).Times(1); in TEST_F()
145 sp<IBinder> displayToken = mFlinger.createVirtualDisplay(kDisplayName, false, kUniqueId); in TEST_F()
162 EXPECT_CALL(*mFlinger.scheduler(), scheduleFrame()).Times(1); in TEST_F()
DSurfaceFlinger_SetPowerModeInternalTest.cpp73 EXPECT_CALL(test->mFlinger.scheduler()->mockRequestHardwareVsync, Call(_, _)).Times(0); in setupVsyncNoCallExpectations()
80 EXPECT_CALL(test->mFlinger.scheduler()->mockRequestHardwareVsync, Call(_, true)).Times(1); in setupEnableVsyncCallExpectations()
85 EXPECT_CALL(test->mFlinger.scheduler()->mockRequestHardwareVsync, Call(_, false)).Times(1); in setupDisableVsyncCallExpectations()
93 EXPECT_CALL(test->mFlinger.scheduler()->mockRequestHardwareVsync, Call(_, true)).Times(1); in setupEnableVsyncCallExpectations()
99 EXPECT_CALL(test->mFlinger.scheduler()->mockRequestHardwareVsync, Call(_, false)).Times(1); in setupDisableVsyncCallExpectations()
106 auto vsyncSchedule = test->mFlinger.scheduler()->getVsyncSchedule(); in setupResetModelCallExpectations()
145 EXPECT_TRUE(test->mFlinger.getVisibleRegionsDirty()); in verifyPostconditions()
159 EXPECT_TRUE(test->mFlinger.getVisibleRegionsDirty()); in verifyPostconditions()
171 EXPECT_TRUE(test->mFlinger.getVisibleRegionsDirty()); in verifyPostconditions()
184 EXPECT_TRUE(test->mFlinger.getVisibleRegionsDirty()); in verifyPostconditions()
[all …]
DSchedulerTest.cpp104 TestableSurfaceFlinger mFlinger; member in android::scheduler::__anon810a6bab0111::SchedulerTest
105 TestableScheduler* mScheduler = new TestableScheduler{mSelector, mFlinger, mSchedulerCallback};
126 mFlinger.resetScheduler(mScheduler); in SchedulerTest()
160 sp<MockLayer> layer = sp<MockLayer>::make(mFlinger.flinger()); in TEST_F()
181 sp<MockLayer> layer = sp<MockLayer>::make(mFlinger.flinger()); in TEST_F()
203 EXPECT_EQ(1, mFlinger.calculateMaxAcquiredBufferCount(60_Hz, 30ms)); in TEST_F()
204 EXPECT_EQ(2, mFlinger.calculateMaxAcquiredBufferCount(90_Hz, 30ms)); in TEST_F()
205 EXPECT_EQ(3, mFlinger.calculateMaxAcquiredBufferCount(120_Hz, 30ms)); in TEST_F()
207 EXPECT_EQ(2, mFlinger.calculateMaxAcquiredBufferCount(60_Hz, 40ms)); in TEST_F()
209 EXPECT_EQ(1, mFlinger.calculateMaxAcquiredBufferCount(60_Hz, 10ms)); in TEST_F()
[all …]
DSurfaceFlinger_DestroyDisplayTest.cpp41 EXPECT_CALL(*mFlinger.scheduler(), scheduleFrame()).Times(1); in TEST_F()
46 EXPECT_EQ(NO_ERROR, mFlinger.destroyVirtualDisplay(existing.token())); in TEST_F()
70 EXPECT_EQ(NAME_NOT_FOUND, mFlinger.destroyVirtualDisplay(displayToken)); in TEST_F()
/frameworks/native/services/surfaceflinger/
DClient.cpp44 : mFlinger(flinger) in Client()
57 LayerCreationArgs args(mFlinger.get(), sp<Client>::fromExisting(this), name.c_str(), in createSurface()
60 const status_t status = mFlinger->createLayer(args, *outResult); in createSurface()
105 LayerCreationArgs args(mFlinger.get(), sp<Client>::fromExisting(this), "MirrorRoot", in mirrorSurface()
107 status_t status = mFlinger->mirrorLayer(args, mirrorFromHandle, *outResult); in mirrorSurface()
113 LayerCreationArgs args(mFlinger.get(), sp<Client>::fromExisting(this), in mirrorDisplay()
117 status_t status = mFlinger->mirrorDisplay(*id, args, *outResult); in mirrorDisplay()

123