/frameworks/native/services/surfaceflinger/FrameTracer/ |
D | FrameTracer.cpp | 52 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 …]
|
D | FrameTracer.h | 50 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/ |
D | SurfaceInterceptor.cpp | 132 const int32_t layerId(getLayerId(layer)); in addInitialSurfaceStateLocked() local 133 addPositionLocked(transaction, layerId, layer->mDrawingState.transform.tx(), in addInitialSurfaceStateLocked() 135 addDepthLocked(transaction, layerId, layer->mDrawingState.z); in addInitialSurfaceStateLocked() 136 addAlphaLocked(transaction, layerId, layer->mDrawingState.color.a); in addInitialSurfaceStateLocked() 137 addTransparentRegionLocked(transaction, layerId, in addInitialSurfaceStateLocked() 139 addLayerStackLocked(transaction, layerId, layer->mDrawingState.layerStack); in addInitialSurfaceStateLocked() 140 addCropLocked(transaction, layerId, layer->mDrawingState.crop); in addInitialSurfaceStateLocked() 141 addCornerRadiusLocked(transaction, layerId, layer->mDrawingState.cornerRadius); in addInitialSurfaceStateLocked() 142 addBackgroundBlurRadiusLocked(transaction, layerId, layer->mDrawingState.backgroundBlurRadius); in addInitialSurfaceStateLocked() 143 addBlurRegionsLocked(transaction, layerId, layer->mDrawingState.blurRegions); in addInitialSurfaceStateLocked() [all …]
|
D | SurfaceInterceptor.h | 77 virtual void saveBufferUpdate(int32_t layerId, uint32_t width, uint32_t height, 116 void saveBufferUpdate(int32_t layerId, uint32_t width, uint32_t height, 144 void addBufferUpdateLocked(Increment* increment, int32_t layerId, uint32_t width, 152 SurfaceChange* createSurfaceChangeLocked(Transaction* transaction, int32_t layerId); 154 void addPositionLocked(Transaction* transaction, int32_t layerId, float x, float y); 155 void addDepthLocked(Transaction* transaction, int32_t layerId, uint32_t z); 156 void addSizeLocked(Transaction* transaction, int32_t layerId, uint32_t w, uint32_t h); 157 void addAlphaLocked(Transaction* transaction, int32_t layerId, float alpha); 158 void addMatrixLocked(Transaction* transaction, int32_t layerId, 160 void addTransparentRegionLocked(Transaction* transaction, int32_t layerId, [all …]
|
D | BufferQueueLayer.cpp | 230 const int32_t layerId = getSequence(); in updateTexImage() local 273 mFlinger->mTimeStats->removeTimeRecord(layerId, mQueueItems[0].item.mFrameNumber); in updateTexImage() 295 mFlinger->mTimeStats->onDestroy(layerId); in updateTexImage() 296 mFlinger->mFrameTracer->onDestroy(layerId); in updateTexImage() 318 mFlinger->mTimeStats->removeTimeRecord(layerId, mQueueItems[0].item.mFrameNumber); in updateTexImage() 327 mFlinger->mTimeStats->setLatchTime(layerId, currentFrameNumber, latchTime); in updateTexImage() 328 mFlinger->mFrameTracer->traceTimestamp(layerId, bufferID, currentFrameNumber, latchTime, in updateTexImage() 381 const int32_t layerId = getSequence(); in onFrameDequeued() local 382 mFlinger->mFrameTracer->traceNewLayer(layerId, getName().c_str()); in onFrameDequeued() 383 mFlinger->mFrameTracer->traceTimestamp(layerId, bufferId, FrameTracer::UNSPECIFIED_FRAME_NUMBER, in onFrameDequeued() [all …]
|
D | BufferLayer.cpp | 83 const int32_t layerId = getSequence(); in ~BufferLayer() local 84 mFlinger->mTimeStats->onDestroy(layerId); in ~BufferLayer() 85 mFlinger->mFrameTracer->onDestroy(layerId); in ~BufferLayer() 395 const int32_t layerId = getSequence(); in onPostComposition() local 396 mFlinger->mTimeStats->setDesiredTime(layerId, mCurrentFrameNumber, desiredPresentTime); in onPostComposition() 401 mFlinger->mFrameTracer->traceTimestamp(layerId, getCurrentBufferId(), mCurrentFrameNumber, in onPostComposition() 425 mFlinger->mTimeStats->setPresentFence(layerId, mCurrentFrameNumber, presentFence, in onPostComposition() 430 mFlinger->mFrameTracer->traceFence(layerId, getCurrentBufferId(), mCurrentFrameNumber, in onPostComposition() 440 mFlinger->mTimeStats->setPresentTime(layerId, mCurrentFrameNumber, actualPresentTime, in onPostComposition() 445 mFlinger->mFrameTracer->traceTimestamp(layerId, getCurrentBufferId(), mCurrentFrameNumber, in onPostComposition()
|
D | BufferStateLayer.cpp | 455 const int32_t layerId = getSequence(); in setBuffer() local 456 mFlinger->mTimeStats->setPostTime(layerId, mDrawingState.frameNumber, getName().c_str(), in setBuffer() 479 mFlinger->mFrameTracer->traceNewLayer(layerId, getName().c_str()); in setBuffer() 480 mFlinger->mFrameTracer->traceTimestamp(layerId, bufferId, frameNumber, *dequeueTime, in setBuffer() 482 mFlinger->mFrameTracer->traceTimestamp(layerId, bufferId, frameNumber, postTime, in setBuffer() 749 const int32_t layerId = getSequence(); in updateTexImage() local 753 mFlinger->mTimeStats->setAcquireFence(layerId, frameNumber, acquireFence); in updateTexImage() 754 mFlinger->mTimeStats->setLatchTime(layerId, frameNumber, latchTime); in updateTexImage() 756 mFlinger->mFrameTracer->traceFence(layerId, bufferId, frameNumber, acquireFence, in updateTexImage() 758 mFlinger->mFrameTracer->traceTimestamp(layerId, bufferId, frameNumber, latchTime, in updateTexImage()
|
D | RefreshRateOverlay.cpp | 185 int32_t layerId; in createLayer() local 191 &mIBinder, &mGbp, nullptr, &layerId); in createLayer()
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | FrameTracerTest.cpp | 106 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 …]
|
D | TransactionFrameTracerTest.cpp | 108 int32_t layerId = layer->getSequence(); in BLASTTransactionSendsFrameTracerEvents() local 113 EXPECT_CALL(*mFlinger.getFrameTracer(), traceNewLayer(layerId, "buffer-state-layer")); in BLASTTransactionSendsFrameTracerEvents() 115 traceTimestamp(layerId, bufferId, frameNumber, dequeueTime, in BLASTTransactionSendsFrameTracerEvents() 118 traceTimestamp(layerId, bufferId, frameNumber, postTime, in BLASTTransactionSendsFrameTracerEvents() 128 traceFence(layerId, bufferId, frameNumber, _, in BLASTTransactionSendsFrameTracerEvents() 131 traceTimestamp(layerId, bufferId, frameNumber, latchTime, in BLASTTransactionSendsFrameTracerEvents() 139 traceFence(layerId, bufferId, frameNumber, presentFence, in BLASTTransactionSendsFrameTracerEvents()
|
D | TimeStatsTest.cpp | 203 static std::string genLayerName(int32_t layerId) { in genLayerName() argument 204 return (layerId < 0 ? "PopupWindow:b54fcd1#0" : "com.example.fake#") + std::to_string(layerId); in genLayerName() 1468 const int32_t layerId = genRandomInt32(-1, 10); in TEST_F() local 1473 ASSERT_NO_FATAL_FAILURE(mTimeStats->removeTimeRecord(layerId, frameNumber)); in TEST_F() 1477 ASSERT_NO_FATAL_FAILURE(mTimeStats->onDestroy(layerId)); in TEST_F() 1482 ALOGV("type[%d], layerId[%d], frameNumber[%d], ts[%d]", type, layerId, frameNumber, ts); in TEST_F() 1483 setTimeStamp(type, layerId, frameNumber, ts, {}, kGameMode); in TEST_F()
|
/frameworks/native/services/surfaceflinger/TimeStats/ |
D | TimeStats.h | 81 virtual void setPostTime(int32_t layerId, uint64_t frameNumber, const std::string& layerName, 83 virtual void setLatchTime(int32_t layerId, uint64_t frameNumber, nsecs_t latchTime) = 0; 91 virtual void incrementLatchSkipped(int32_t layerId, LatchSkipReason reason) = 0; 95 virtual void incrementBadDesiredPresent(int32_t layerId) = 0; 96 virtual void setDesiredTime(int32_t layerId, uint64_t frameNumber, nsecs_t desiredTime) = 0; 97 virtual void setAcquireTime(int32_t layerId, uint64_t frameNumber, nsecs_t acquireTime) = 0; 98 virtual void setAcquireFence(int32_t layerId, uint64_t frameNumber, 102 virtual void setPresentTime(int32_t layerId, uint64_t frameNumber, nsecs_t presentTime, 105 virtual void setPresentFence(int32_t layerId, uint64_t frameNumber, 160 virtual void onDestroy(int32_t layerId) = 0; [all …]
|
D | TimeStats.cpp | 414 bool TimeStats::recordReadyLocked(int32_t layerId, TimeRecord* timeRecord) { in recordReadyLocked() argument 416 ALOGV("[%d]-[%" PRIu64 "]-presentFence is still not received", layerId, in recordReadyLocked() 429 ALOGV("[%d]-[%" PRIu64 "]-acquireFence signal time is invalid", layerId, in recordReadyLocked() 442 ALOGV("[%d]-[%" PRIu64 "]-presentFence signal time invalid", layerId, in recordReadyLocked() 454 void TimeStats::flushAvailableRecordsToStatsLocked(int32_t layerId, Fps displayRefreshRate, in flushAvailableRecordsToStatsLocked() argument 459 ALOGV("[%d]-flushAvailableRecordsToStatsLocked", layerId); in flushAvailableRecordsToStatsLocked() 461 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/av/media/libmediaplayerservice/nuplayer/ |
D | NuPlayerDecoder.cpp | 441 int32_t layerId; in onSetParameters() local 442 for (layerId = 0; layerId < mNumVideoTemporalLayerTotal - 1; ++layerId) { in onSetParameters() 443 if (mVideoTemporalLayerAggregateFps[layerId] * mPlaybackSpeed in onSetParameters() 448 mNumVideoTemporalLayerAllowed = layerId + 1; in onSetParameters() 449 decodeFrameRate = mVideoTemporalLayerAggregateFps[layerId]; in onSetParameters() 952 int32_t layerId = 0; in fetchInputData() local 953 bool haveLayerId = accessUnit->meta()->findInt32("temporal-layer-id", &layerId); in fetchInputData() 960 if (layerId > mCurrentMaxVideoTemporalLayerId + 1 in fetchInputData() 961 || layerId >= mNumVideoTemporalLayerAllowed) { in fetchInputData() 964 layerId, mPlaybackSpeed, mNumVideoTemporalLayerAllowed, in fetchInputData() [all …]
|
/frameworks/native/libs/gui/ |
D | SurfaceControl.cpp | 52 const sp<IGraphicBufferProducer>& gbp, int32_t layerId, in SurfaceControl() argument 58 mLayerId(layerId), in SurfaceControl() 229 int32_t layerId; in readFromParcel() local 237 SAFE_PARCEL(parcel.readInt32, &layerId); in readFromParcel() 247 handle.get(), nullptr, layerId, in readFromParcel()
|
/frameworks/native/services/surfaceflinger/tests/unittests/mock/ |
D | MockTimeStats.h | 45 MOCK_METHOD2(incrementLatchSkipped, void(int32_t layerId, LatchSkipReason reason)); 46 MOCK_METHOD1(incrementBadDesiredPresent, void(int32_t layerId));
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | HWC2.cpp | 126 HWLayerId layerId = 0; in createLayer() local 127 auto intError = mComposer.createLayer(mId, &layerId); in createLayer() 133 auto layer = std::make_shared<impl::Layer>(mComposer, mCapabilities, *this, layerId); in createLayer() 134 mLayers.emplace(layerId, layer); in createLayer() 138 void Display::onLayerDestroyed(hal::HWLayerId layerId) { in onLayerDestroyed() argument 139 mLayers.erase(layerId); in onLayerDestroyed() 570 HWC2::Display& display, HWLayerId layerId) in Layer() argument 574 mId(layerId), in Layer() 576 ALOGV("Created layer %" PRIu64 " on display %" PRIu64, layerId, display.getId()); in Layer()
|
D | HWC2.h | 84 virtual void onLayerDestroyed(hal::HWLayerId layerId) = 0; 221 void onLayerDestroyed(hal::HWLayerId layerId) override; 300 hal::HWLayerId layerId);
|
/frameworks/native/cmds/surfacereplayer/replayer/ |
D | Replayer.cpp | 295 auto layerId = increment.buffer_update().id(); in dispatchEvent() local 296 if (mBufferQueueSchedulers.count(layerId) == 0) { in dispatchEvent() 297 mBufferQueueSchedulers[layerId] = std::make_shared<BufferQueueScheduler>( in dispatchEvent() 298 mLayers[layerId], mColors[layerId], layerId); in dispatchEvent() 299 mBufferQueueSchedulers[layerId]->addEvent(bufferEvent); in dispatchEvent()
|
/frameworks/native/services/surfaceflinger/FrameTimeline/ |
D | FrameTimeline.h | 154 int32_t layerId, std::string layerName, std::string debugName, 283 int32_t layerId, std::string layerName, std::string debugName, bool isBuffer, 443 int32_t layerId, std::string layerName, std::string debugName, bool isBuffer,
|
D | FrameTimeline.cpp | 302 uid_t ownerUid, int32_t layerId, std::string layerName, in SurfaceFrame() argument 314 mLayerId(layerId), in SurfaceFrame() 780 const FrameTimelineInfo& frameTimelineInfo, pid_t ownerPid, uid_t ownerUid, int32_t layerId, in createSurfaceFrameForToken() argument 784 return std::make_shared<SurfaceFrame>(frameTimelineInfo, ownerPid, ownerUid, layerId, in createSurfaceFrameForToken() 793 return std::make_shared<SurfaceFrame>(frameTimelineInfo, ownerPid, ownerUid, layerId, in createSurfaceFrameForToken() 799 return std::make_shared<SurfaceFrame>(frameTimelineInfo, ownerPid, ownerUid, layerId, in createSurfaceFrameForToken()
|
/frameworks/av/media/ndk/ |
D | NdkMediaExtractor.cpp | 440 int32_t layerId; in AMediaExtractor_getSampleFormat() local 441 if (sampleMeta->findInt32(kKeyTemporalLayerId, &layerId)) { in AMediaExtractor_getSampleFormat() 442 meta->setInt32(AMEDIAFORMAT_KEY_TEMPORAL_LAYER_ID, layerId); in AMediaExtractor_getSampleFormat()
|
/frameworks/av/media/libstagefright/foundation/ |
D | avc_utils.cpp | 544 uint32_t layerId = 0; in FindAVCLayerId() local 548 layerId = (*(svcNAL->data() + 3) >> 5) & 0x7; in FindAVCLayerId() 550 return layerId; in FindAVCLayerId()
|
/frameworks/native/libs/gui/include/gui/ |
D | SurfaceControl.h | 95 const sp<IGraphicBufferProducer>& gbp, int32_t layerId,
|
/frameworks/native/services/surfaceflinger/tests/ |
D | SurfaceInterceptor_test.cpp | 109 int32_t layerId = 0; in getSurfaceId() local 113 layerId = increment.surface_creation().id(); in getSurfaceId() 117 return layerId; in getSurfaceId()
|