Home
last modified time | relevance | path

Searched refs:layerState (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/native/services/surfaceflinger/CompositionEngine/tests/planner/
DFlattenerTest.cpp91 std::unique_ptr<LayerState> layerState; member
140 testLayer->layerState = std::make_unique<LayerState>(&testLayer->outputLayer); in SetUp()
141 testLayer->layerState->incrementFramesSinceBufferUpdate(); in SetUp()
200 auto& layerState1 = mTestLayers[0]->layerState; in TEST_F()
201 auto& layerState2 = mTestLayers[1]->layerState; in TEST_F()
211 auto& layerState1 = mTestLayers[0]->layerState; in TEST_F()
212 auto& layerState2 = mTestLayers[1]->layerState; in TEST_F()
229 auto& layerState1 = mTestLayers[0]->layerState; in TEST_F()
230 auto& layerState2 = mTestLayers[1]->layerState; in TEST_F()
250 auto& layerState1 = mTestLayers[0]->layerState; in TEST_F()
[all …]
DCachedSetTest.cpp90 std::unique_ptr<LayerState> layerState; member
123 testLayer->layerState = std::make_unique<LayerState>(&testLayer->outputLayer); in SetUp()
124 testLayer->layerState->incrementFramesSinceBufferUpdate(); in SetUp()
126 std::make_unique<CachedSet::Layer>(testLayer->layerState.get(), kStartTime); in SetUp()
152 void expectEqual(const CachedSet& cachedSet, const LayerState& layerState, in expectEqual() argument
154 CachedSet::Layer layer(&layerState, lastUpdate); in expectEqual()
179 LayerState& layerState = *mTestLayers[0]->layerState.get(); in TEST_F() local
180 CachedSet cachedSet(&layerState, kStartTime); in TEST_F()
181 expectEqual(cachedSet, layerState, kStartTime); in TEST_F()
228 LayerState& layerState = *mTestLayers[0]->layerState.get(); in TEST_F() local
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DTransactionTracingTest.cpp144 ResolvedComposerState layerState; in SetUp() local
145 layerState.layerId = mParentLayerId; in SetUp()
146 layerState.state.what = layer_state_t::eLayerChanged; in SetUp()
147 layerState.state.z = 42; in SetUp()
148 transaction.states.emplace_back(layerState); in SetUp()
168 ResolvedComposerState layerState; in SetUp() local
169 layerState.layerId = mParentLayerId; in SetUp()
170 layerState.state.what = layer_state_t::eLayerChanged | layer_state_t::ePositionChanged; in SetUp()
171 layerState.state.z = 41; in SetUp()
172 layerState.state.x = 22; in SetUp()
[all …]
DSchedulerTest.cpp814 RequestedLayerState layerState(LayerCreationArgs(layer->getSequence())); in TEST_F() local
815 LayerHierarchy hierarchy(&layerState); in TEST_F()
843 RequestedLayerState layerState(LayerCreationArgs(layer->getSequence())); in frameRateTestScenario() local
844 LayerHierarchy hierarchy(&layerState); in frameRateTestScenario()
846 layerState.frameRate = layerFps.getValue(); in frameRateTestScenario()
847 layerState.frameRateCompatibility = frameRateCompatibility; in frameRateTestScenario()
906 RequestedLayerState layerState(LayerCreationArgs(layer->getSequence())); in TEST_F() local
907 LayerHierarchy hierarchy(&layerState); in TEST_F()
911 layerState.frameRate = (30_Hz).getValue(); in TEST_F()
912 layerState.frameRateCompatibility = ANATIVEWINDOW_FRAME_RATE_COMPATIBILITY_DEFAULT; in TEST_F()
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DOutputLayer.cpp76 const auto& layerState = *getLayerFE().getCompositionState(); in calculateInitialCrop() local
84 reduce(layerState.geomLayerBounds, layerState.transparentRegionHint); in calculateInitialCrop()
87 const ui::Transform& layerTransform = layerState.geomLayerTransform; in calculateInitialCrop()
88 const ui::Transform& inverseLayerTransform = layerState.geomInverseLayerTransform; in calculateInitialCrop()
102 if (!activeCrop.intersect(layerState.geomBufferSize, &activeCrop)) { in calculateInitialCrop()
109 const auto& layerState = *getLayerFE().getCompositionState(); in calculateOutputSourceCrop() local
111 if (!layerState.geomUsesSourceCrop) { in calculateOutputSourceCrop()
117 FloatRect crop = layerState.geomContentCrop.toFloatRect(); in calculateOutputSourceCrop()
121 const Rect& bufferSize = layerState.geomBufferSize; in calculateOutputSourceCrop()
135 uint32_t invTransform = layerState.geomBufferTransform; in calculateOutputSourceCrop()
[all …]
DOutput.cpp1444 const auto& layerState = layer->getState(); in generateClientCompositionRequests() local
1449 const Region clip(viewportRegion.intersect(layerState.visibleRegion)); in generateClientCompositionRequests()
1467 layerState.clearClientTarget && layerFEState->isOpaque && !firstLayer; in generateClientCompositionRequests()
1474 !layerState.visibleRegion.subtract(layerState.shadowRegion).isEmpty(); in generateClientCompositionRequests()
1509 .whitePointNits = layerState.whitePointNits, in generateClientCompositionRequests()
/frameworks/base/graphics/java/android/graphics/drawable/
DLayerDrawable.java1031 final LayerState layerState = mLayerState; in getPadding() local
1032 if (layerState.mPaddingMode == PADDING_MODE_NEST) { in getPadding()
1038 final int paddingT = layerState.mPaddingTop; in getPadding()
1039 final int paddingB = layerState.mPaddingBottom; in getPadding()
1044 final int paddingRtlL = isLayoutRtl ? layerState.mPaddingEnd : layerState.mPaddingStart; in getPadding()
1045 final int paddingRtlR = isLayoutRtl ? layerState.mPaddingStart : layerState.mPaddingEnd; in getPadding()
1046 final int paddingL = paddingRtlL >= 0 ? paddingRtlL : layerState.mPaddingLeft; in getPadding()
1047 final int paddingR = paddingRtlR >= 0 ? paddingRtlR : layerState.mPaddingRight; in getPadding()
1092 final LayerState layerState = mLayerState; in setPadding() local
1093 layerState.mPaddingLeft = left; in setPadding()
[all …]
/frameworks/native/services/surfaceflinger/FrontEnd/
DLayerSnapshotBuilder.h109 static void updateRoundedCorner(LayerSnapshot& snapshot, const RequestedLayerState& layerState,
111 void updateLayerBounds(LayerSnapshot& snapshot, const RequestedLayerState& layerState,
/frameworks/base/tests/FlickerTests/ActivityEmbedding/src/com/android/server/wm/flicker/activityembedding/rotation/
DRotationTransition.kt94 dump.layerState.displays.filterNot { it.isOff }.minByOrNull { it.id } in <lambda>()
98 val navBarRegion = dump.layerState in <lambda>()
/frameworks/base/libs/WindowManager/Shell/tests/flicker/splitscreen/src/com/android/wm/shell/flicker/splitscreen/benchmark/
DSwitchAppByDoubleTapDividerBenchmark.kt98 it.layerState.visibleLayers.firstOrNull { window -> in <lambda>()
103 it.layerState.visibleLayers.firstOrNull { window -> in <lambda>()
/frameworks/base/libs/WindowManager/Shell/tests/flicker/service/src/com/android/wm/shell/flicker/service/splitscreen/scenarios/
DSwitchAppByDoubleTapDivider.kt111 it.layerState.visibleLayers.firstOrNull { window -> in <lambda>()
116 it.layerState.visibleLayers.firstOrNull { window -> in <lambda>()
/frameworks/native/services/surfaceflinger/Tracing/
DTransactionTracing.cpp384 for (const perfetto::protos::LayerState& layerState : transaction.layer_changes()) { in updateStartingStateLocked() local
385 auto it = mStartingStates.find(layerState.layer_id()); in updateStartingStateLocked()
388 ALOGW("Could not find layer id %d", layerState.layer_id()); in updateStartingStateLocked()
391 mProtoParser.mergeFromProto(layerState, it->second); in updateStartingStateLocked()
/frameworks/base/libs/WindowManager/Shell/tests/flicker/pip/src/com/android/wm/shell/flicker/pip/
DClosePipBySwipingDownTest.kt69 wmHelper.currentState.layerState in <lambda>()
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/utils/
DSplitScreenUtils.kt180 wmHelper.currentState.layerState.displays.firstOrNull { !it.isVirtual }?.layerStackSpace in <lambda>()
312 wmHelper.currentState.layerState.displays.firstOrNull { !it.isVirtual }?.layerStackSpace in <lambda>()
330 wmHelper.currentState.layerState.displays.firstOrNull { !it.isVirtual }?.layerStackSpace in <lambda>()
/frameworks/base/tests/FlickerTests/ActivityEmbedding/src/com/android/server/wm/flicker/activityembedding/close/
DCloseSecondaryActivityInSplitTest.kt59 wmHelper.currentState.layerState.physicalDisplayBounds in <lambda>()
/frameworks/base/tests/FlickerTests/ActivityEmbedding/src/com/android/server/wm/flicker/activityembedding/open/
DMainActivityStartsSecondaryWithAlwaysExpandTest.kt59 wmHelper.currentState.layerState.physicalDisplayBounds ?: error("Display not found") in <lambda>()
DOpenThirdActivityOverSplitTest.kt59 wmHelper.currentState.layerState.physicalDisplayBounds in <lambda>()
DOpenTrampolineActivityTest.kt57 wmHelper.currentState.layerState.physicalDisplayBounds in <lambda>()
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/planner/
DPredictor.h99 [](const LayerState* layerState) { return *layerState; }); in copyLayers()
/frameworks/base/libs/WindowManager/Shell/tests/flicker/appcompat/src/com/android/wm/shell/flicker/appcompat/
DRotateImmersiveAppInFullscreenTest.kt89 wmHelper.currentState.layerState.physicalDisplayBounds in <lambda>()
DQuickSwitchLauncherToLetterboxAppTest.kt70 wmHelper.currentState.layerState.physicalDisplayBounds ?: error("Display not found") in <lambda>()
/frameworks/base/tests/FlickerTests/ActivityEmbedding/src/com/android/server/wm/flicker/activityembedding/layoutchange/
DHorizontalSplitChangeRatioTest.kt57 wmHelper.currentState.layerState.physicalDisplayBounds ?: error("Display not found") in <lambda>()
/frameworks/base/tests/FlickerTests/QuickSwitch/src/com/android/server/wm/flicker/quickswitch/
DQuickSwitchBetweenTwoAppsBackTest.kt65 wmHelper.currentState.layerState.physicalDisplayBounds ?: error("Display not found") in <lambda>()
DQuickSwitchFromLauncherTest.kt72 wmHelper.currentState.layerState.physicalDisplayBounds ?: error("Display not found") in <lambda>()
/frameworks/base/tests/FlickerTests/ActivityEmbedding/src/com/android/server/wm/flicker/activityembedding/splitscreen/
DEnterSystemSplitTest.kt64 wmHelper.currentState.layerState.physicalDisplayBounds ?: error("Display not found") in <lambda>()

12