Home
last modified time | relevance | path

Searched refs:layerId (Results 1 – 25 of 60) sorted by relevance

123

/frameworks/native/services/surfaceflinger/FrameTracer/
DFrameTracer.cpp52 void FrameTracer::traceNewLayer(int32_t layerId, const std::string& layerName) { in traceNewLayer() argument
53 FrameTracerDataSource::Trace([this, layerId, &layerName](FrameTracerDataSource::TraceContext) { in traceNewLayer()
54 if (mTraceTracker.find(layerId) == mTraceTracker.end()) { in traceNewLayer()
56 mTraceTracker[layerId].layerName = layerName; in traceNewLayer()
61 void FrameTracer::traceTimestamp(int32_t layerId, uint64_t bufferID, uint64_t frameNumber, in traceTimestamp() argument
64 FrameTracerDataSource::Trace([this, layerId, bufferID, frameNumber, timestamp, type, in traceTimestamp()
67 if (mTraceTracker.find(layerId) == mTraceTracker.end()) { in traceTimestamp()
72 tracePendingFencesLocked(ctx, layerId, bufferID); in traceTimestamp()
75 traceLocked(ctx, layerId, bufferID, frameNumber, timestamp, type, duration); in traceTimestamp()
79 void FrameTracer::traceFence(int32_t layerId, uint64_t bufferID, uint64_t frameNumber, in traceFence() argument
[all …]
DFrameTracer.h50 void traceNewLayer(int32_t layerId, const std::string& layerName);
52 void traceTimestamp(int32_t layerId, uint64_t bufferID, uint64_t frameNumber, nsecs_t timestamp,
59 void traceFence(int32_t layerId, uint64_t bufferID, uint64_t frameNumber,
64 void onDestroy(int32_t layerId);
/frameworks/native/services/surfaceflinger/tests/unittests/
DFrameTracerTest.cpp106 const int32_t layerId = 5; in TEST_F() local
107 mFrameTracer->traceNewLayer(layerId, layerName); in TEST_F()
116 mFrameTracer->traceNewLayer(layerId, layerName); in TEST_F()
127 const int32_t layerId = 5; in TEST_F() local
132 mFrameTracer->traceNewLayer(layerId, layerName); in TEST_F()
138 mFrameTracer->onDestroy(layerId); in TEST_F()
141 mFrameTracer->onDestroy(layerId); in TEST_F()
151 const int32_t layerId = 1; in TEST_F() local
162 mFrameTracer->traceTimestamp(layerId, bufferID, frameNumber, timestamp, type, duration); in TEST_F()
164 mFrameTracer->traceTimestamp(layerId, 0, 0, 0, FrameTracer::FrameEvent::UNSPECIFIED); in TEST_F()
[all …]
DTransactionFrameTracerTest.cpp78 int32_t layerId = layer->getSequence(); in BLASTTransactionSendsFrameTracerEvents() local
83 EXPECT_CALL(*mFlinger.getFrameTracer(), traceNewLayer(layerId, "buffer-state-layer")); in BLASTTransactionSendsFrameTracerEvents()
85 traceTimestamp(layerId, bufferId, frameNumber, dequeueTime, in BLASTTransactionSendsFrameTracerEvents()
88 traceTimestamp(layerId, bufferId, frameNumber, postTime, in BLASTTransactionSendsFrameTracerEvents()
105 traceFence(layerId, bufferId, frameNumber, _, in BLASTTransactionSendsFrameTracerEvents()
108 traceTimestamp(layerId, bufferId, frameNumber, latchTime, in BLASTTransactionSendsFrameTracerEvents()
116 traceFence(layerId, bufferId, frameNumber, presentFence, in BLASTTransactionSendsFrameTracerEvents()
DLayerHierarchyTest.h122 transactions.back().states.front().layerId = id; in reparentLayerTransaction()
136 transactions.back().states.front().layerId = id; in relativeLayerTransaction()
149 transactions.back().states.front().layerId = id; in removeRelativeZ()
167 transactions.back().states.front().layerId = id; in updateBackgroundColor()
196 transactions.back().states.front().layerId = id; in setZTransaction()
211 transactions.back().states.front().layerId = id; in setCrop()
224 transactions.back().states.front().layerId = id; in setFlags()
234 transactions.back().states.front().layerId = id; in setAlpha()
251 transactions.back().states.front().layerId = id;
261 transactions.back().states.front().layerId = id; in setLayerStack()
[all …]
DTransactionTracingTest.cpp81 LayerCreationArgs getLayerCreationArgs(uint32_t layerId, uint32_t parentId, in getLayerCreationArgs() argument
85 args.sequence = layerId; in getLayerCreationArgs()
146 layerState.layerId = mParentLayerId; in SetUp()
151 childState.layerId = mChildLayerId; in SetUp()
170 layerState.layerId = mParentLayerId; in SetUp()
280 layerState.layerId = mLayerId; in SetUp()
285 mirrorState.layerId = mMirrorLayerId; in SetUp()
DLayerLifecycleManagerTest.cpp73 uint32_t layerId) { in getRequestedLayerState() argument
74 return lifecycleManager.getLayerFromId(layerId); in getRequestedLayerState()
120 transactions.back().states.front().layerId = 1; in TEST_F()
313 transactions.back().states.front().layerId = 1; in TEST_F()
342 transactions.back().states.front().layerId = 1; in TEST_F()
347 transactions.back().states.front().layerId = 1; in TEST_F()
376 transactions.back().states.front().layerId = 1; in TEST_F()
DTransactionProtoParserTest.cpp53 s.layerId = 6 + i; in TEST()
99 ASSERT_EQ(t1.states[1].layerId, t2.states[1].layerId); in TEST()
DLayerSnapshotTest.cpp101 LayerSnapshot* getSnapshot(uint32_t layerId) { return mSnapshotBuilder.getSnapshot(layerId); } in getSnapshot() argument
273 transactions.back().states.front().layerId = 1; in TEST_F()
274 transactions.back().states.front().state.layerId = static_cast<int32_t>(1); in TEST_F()
304 transactions.back().states.front().layerId = 11; in TEST_F()
/frameworks/native/services/surfaceflinger/TimeStats/
DTimeStats.h78 virtual void setPostTime(int32_t layerId, uint64_t frameNumber, const std::string& layerName,
80 virtual void setLatchTime(int32_t layerId, uint64_t frameNumber, nsecs_t latchTime) = 0;
88 virtual void incrementLatchSkipped(int32_t layerId, LatchSkipReason reason) = 0;
92 virtual void incrementBadDesiredPresent(int32_t layerId) = 0;
93 virtual void setDesiredTime(int32_t layerId, uint64_t frameNumber, nsecs_t desiredTime) = 0;
94 virtual void setAcquireTime(int32_t layerId, uint64_t frameNumber, nsecs_t acquireTime) = 0;
95 virtual void setAcquireFence(int32_t layerId, uint64_t frameNumber,
99 virtual void setPresentTime(int32_t layerId, uint64_t frameNumber, nsecs_t presentTime,
102 virtual void setPresentFence(int32_t layerId, uint64_t frameNumber,
177 virtual void onDestroy(int32_t layerId) = 0;
[all …]
DTimeStats.cpp413 bool TimeStats::recordReadyLocked(int32_t layerId, TimeRecord* timeRecord) { in recordReadyLocked() argument
415 ALOGV("[%d]-[%" PRIu64 "]-presentFence is still not received", layerId, in recordReadyLocked()
428 ALOGV("[%d]-[%" PRIu64 "]-acquireFence signal time is invalid", layerId, in recordReadyLocked()
441 ALOGV("[%d]-[%" PRIu64 "]-presentFence signal time invalid", layerId, in recordReadyLocked()
453 void TimeStats::flushAvailableRecordsToStatsLocked(int32_t layerId, Fps displayRefreshRate, in flushAvailableRecordsToStatsLocked() argument
458 ALOGV("[%d]-flushAvailableRecordsToStatsLocked", layerId); in flushAvailableRecordsToStatsLocked()
460 LayerRecord& layerRecord = mTimeStatsTracker[layerId]; in flushAvailableRecordsToStatsLocked()
470 if (!recordReadyLocked(layerId, &timeRecords[0])) break; in flushAvailableRecordsToStatsLocked()
471 ALOGV("[%d]-[%" PRIu64 "]-presentFenceTime[%" PRId64 "]", layerId, in flushAvailableRecordsToStatsLocked()
507 ALOGV("[%d]-[%" PRIu64 "]-post2acquire[%d]", layerId, in flushAvailableRecordsToStatsLocked()
[all …]
/frameworks/native/services/surfaceflinger/FrontEnd/
DLayerLifecycleManager.cpp91 for (const auto& layerId : destroyedHandles) { in onHandlesDestroyed() local
92 auto it = mIdToLayer.find(layerId); in onHandlesDestroyed()
95 layerId); in onHandlesDestroyed()
105 layersToBeDestroyed.emplace_back(layerId); in onHandlesDestroyed()
114 uint32_t layerId = layersToBeDestroyed[i]; in onHandlesDestroyed() local
115 auto it = mIdToLayer.find(layerId); in onHandlesDestroyed()
117 LOG_ALWAYS_FATAL("%s Layer with id %d not found", __func__, layerId); in onHandlesDestroyed()
186 uint32_t layerId = resolvedComposerState.layerId; in applyTransactions() local
187 if (layerId == UNASSIGNED_LAYER_ID) { in applyTransactions()
192 RequestedLayerState* layer = getLayerFromId(layerId); in applyTransactions()
[all …]
DLayerHierarchy.cpp373 std::string LayerHierarchyBuilder::getDebugString(uint32_t layerId, uint32_t depth) const { in getDebugString() argument
375 if (layerId == UNASSIGNED_LAYER_ID) return ""; in getDebugString()
376 auto it = mLayerIdToHierarchy.find(layerId); in getDebugString()
393 LayerHierarchy LayerHierarchyBuilder::getPartialHierarchy(uint32_t layerId, in getPartialHierarchy() argument
395 auto it = mLayerIdToHierarchy.find(layerId); in getPartialHierarchy()
402 LayerHierarchy* LayerHierarchyBuilder::getHierarchyFromId(uint32_t layerId, bool crashOnFailure) { in getHierarchyFromId() argument
403 auto it = mLayerIdToHierarchy.find(layerId); in getHierarchyFromId()
406 LOG_ALWAYS_FATAL("Could not find hierarchy for layer id %d", layerId); in getHierarchyFromId()
452 uint32_t layerId, in ScopedAddToTraversalPath() argument
457 traversalPath.id = layerId; in ScopedAddToTraversalPath()
[all …]
DLayerHandle.h41 LayerHandle(uint32_t layerId) : mFlinger(nullptr), mLayer(nullptr), mLayerId(layerId) {} in LayerHandle() argument
DTransactionHandler.h68 uint32_t layerId; member
76 void onLayerDestroyed(uint32_t layerId);
DLayerHierarchy.h121 ScopedAddToTraversalPath(TraversalPath& traversalPath, uint32_t layerId,
192 std::string getDebugString(uint32_t layerId, uint32_t depth = 0) const;
205 LayerHierarchy* getHierarchyFromId(uint32_t layerId, bool crashOnFailure = true);
DLayerLifecycleManager.h90 uint32_t linkLayer(uint32_t layerId, uint32_t layerToLink);
91 uint32_t unlinkLayer(uint32_t layerId, uint32_t linkedLayer);
DTransactionHandler.cpp210 void TransactionHandler::onLayerDestroyed(uint32_t layerId) { in onLayerDestroyed() argument
213 if (it->second.layerId == layerId) { in onLayerDestroyed()
/frameworks/native/services/surfaceflinger/fuzzer/
Dsurfaceflinger_frametracer_fuzzer.cpp81 int32_t layerId = layerIds.at(mFdp.ConsumeIntegralInRange<size_t>(0, numLayerIds - 1)); in traceTimestamp() local
82 mFrameTracer->traceTimestamp(layerId, mFdp.ConsumeIntegral<uint64_t>() /*bufferID*/, in traceTimestamp()
94 int32_t layerId = layerIds.at(mFdp.ConsumeIntegralInRange<size_t>(0, numLayerIds - 1)); in traceFence() local
95 mFrameTracer->traceFence(layerId, mFdp.ConsumeIntegral<uint64_t>() /*bufferID*/, in traceFence()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerDecoder.cpp440 int32_t layerId; in onSetParameters() local
441 for (layerId = 0; layerId < mNumVideoTemporalLayerTotal - 1; ++layerId) { in onSetParameters()
442 if (mVideoTemporalLayerAggregateFps[layerId] * mPlaybackSpeed in onSetParameters()
447 mNumVideoTemporalLayerAllowed = layerId + 1; in onSetParameters()
448 decodeFrameRate = mVideoTemporalLayerAggregateFps[layerId]; in onSetParameters()
951 int32_t layerId = 0; in fetchInputData() local
952 bool haveLayerId = accessUnit->meta()->findInt32("temporal-layer-id", &layerId); in fetchInputData()
959 if (layerId > mCurrentMaxVideoTemporalLayerId + 1 in fetchInputData()
960 || layerId >= mNumVideoTemporalLayerAllowed) { in fetchInputData()
963 layerId, mPlaybackSpeed, mNumVideoTemporalLayerAllowed, in fetchInputData()
[all …]
/frameworks/native/libs/gui/
DSurfaceControl.cpp54 int32_t layerId, const std::string& name, uint32_t w, uint32_t h, in SurfaceControl() argument
58 mLayerId(layerId), in SurfaceControl()
254 int32_t layerId; in readFromParcel() local
263 SAFE_PARCEL(parcel.readInt32, &layerId); in readFromParcel()
273 handle.get(), layerId, layerName, width, height, format, in readFromParcel()
/frameworks/native/services/surfaceflinger/Tracing/
DTransactionTracing.cpp191 for (auto layerId : update.destroyedLayerHandles) { in addEntry() local
192 entryProto.mutable_destroyed_layer_handles()->Add(layerId); in addEntry()
248 void TransactionTracing::onLayerRemoved(int32_t layerId) { in onLayerRemoved() argument
249 mPendingDestroyedLayers.emplace_back(layerId); in onLayerRemoved()
277 startingState.layerId = addedLayer.layer_id(); in updateStartingStateLocked()
320 for (auto& [layerId, state] : mStartingStates) { in addStartingStateToProtoLocked()
/frameworks/native/services/surfaceflinger/tests/unittests/mock/
DMockTimeStats.h43 MOCK_METHOD2(incrementLatchSkipped, void(int32_t layerId, LatchSkipReason reason));
44 MOCK_METHOD1(incrementBadDesiredPresent, void(int32_t layerId));
/frameworks/native/libs/gui/aidl/android/gui/
DCreateSurfaceResult.aidl22 int layerId;
/frameworks/base/services/core/java/com/android/server/wm/
DTransitionTracer.java186 final int layerId; in dumpTransitionTargetsToProto() local
188 layerId = target.mContainer.mSurfaceControl.getLayerId(); in dumpTransitionTargetsToProto()
190 layerId = -1; in dumpTransitionTargetsToProto()
195 outputStream.write(com.android.server.wm.shell.Target.LAYER_ID, layerId); in dumpTransitionTargetsToProto()

123