Home
last modified time | relevance | path

Searched refs:frameNumber (Results 1 – 25 of 170) sorted by relevance

1234567

/frameworks/base/libs/hwui/tests/unit/
DFrameMetricsReporterTests.cpp49 uint64_t frameNumber = 1; in TEST() local
51 reporter->reportFrameMetrics(stats, hasPresentTime, frameNumber, surfaceControlId); in TEST()
53 frameNumber = 10; in TEST()
55 reporter->reportFrameMetrics(stats, hasPresentTime, frameNumber, surfaceControlId); in TEST()
57 frameNumber = 0; in TEST()
59 reporter->reportFrameMetrics(stats, hasPresentTime, frameNumber, surfaceControlId); in TEST()
61 frameNumber = 10; in TEST()
63 reporter->reportFrameMetrics(stats, hasPresentTime, frameNumber, surfaceControlId); in TEST()
69 uint64_t frameNumber = 3; in TEST() local
75 observer->reportMetricsFrom(frameNumber, surfaceControlId); in TEST()
[all …]
DJankTrackerTests.cpp37 uint64_t frameNumber = 0; in TEST() local
48 jankTracker.finishFrame(*info, reporter, frameNumber, surfaceId); in TEST()
58 jankTracker.finishFrame(*info, reporter, frameNumber, surfaceId); in TEST()
71 uint64_t frameNumber = 0; in TEST() local
82 jankTracker.finishFrame(*info, reporter, frameNumber, surfaceId); in TEST()
94 uint64_t frameNumber = 0; in TEST() local
105 jankTracker.finishFrame(*info, reporter, frameNumber, surfaceId); in TEST()
118 uint64_t frameNumber = 0; in TEST() local
130 jankTracker.finishFrame(*info, reporter, frameNumber, surfaceId); in TEST()
143 jankTracker.finishFrame(*info, reporter, frameNumber, surfaceId); in TEST()
[all …]
/frameworks/base/core/java/android/hardware/camera2/impl/
DFrameNumberTracker.java124 public void updateTracker(long frameNumber, boolean isError, int requestType) { in updateTracker() argument
126 mFutureErrorMap.put(frameNumber, requestType); in updateTracker()
129 updateCompletedFrameNumber(frameNumber, requestType); in updateTracker()
148 public void updateTracker(long frameNumber, CaptureResult result, boolean partial, in updateTracker() argument
152 updateTracker(frameNumber, /*isError*/false, requestType); in updateTracker()
164 List<CaptureResult> partials = mPartialResults.get(frameNumber); in updateTracker()
167 mPartialResults.put(frameNumber, partials); in updateTracker()
183 public List<CaptureResult> popPartialResults(long frameNumber) { in popPartialResults() argument
184 return mPartialResults.remove(frameNumber); in popPartialResults()
209 private void updateCompletedFrameNumber(long frameNumber, in updateCompletedFrameNumber() argument
[all …]
DRequestLastFrameNumbersHolder.java54 long frameNumber = requestInfo.getLastFrameNumber(); in RequestLastFrameNumbersHolder() local
70 lastReprocessFrameNumber = frameNumber; in RequestLastFrameNumbersHolder()
74 lastZslStillFrameNumber = frameNumber; in RequestLastFrameNumbersHolder()
78 lastRegularFrameNumber = frameNumber; in RequestLastFrameNumbersHolder()
89 frameNumber--; in RequestLastFrameNumbersHolder()
121 long frameNumber = lastFrameNumber; in RequestLastFrameNumbersHolder() local
126 lastZslStillFrameNumber = frameNumber; in RequestLastFrameNumbersHolder()
130 lastRegularFrameNumber = frameNumber; in RequestLastFrameNumbersHolder()
139 frameNumber--; in RequestLastFrameNumbersHolder()
DCaptureResultExtras.java29 private long frameNumber; field in CaptureResultExtras
57 int precaptureTriggerId, long frameNumber, in CaptureResultExtras() argument
67 this.frameNumber = frameNumber; in CaptureResultExtras()
89 dest.writeLong(frameNumber); in writeToParcel()
112 frameNumber = in.readLong(); in readFromParcel()
149 return frameNumber; in getFrameNumber()
DCaptureCallback.java66 CaptureRequest request, long timestamp, long frameNumber); in onCaptureStarted() argument
73 CaptureRequest request, long timestamp, long frameNumber); in onReadoutStarted() argument
113 int sequenceId, long frameNumber); in onCaptureSequenceCompleted() argument
130 CaptureRequest request, Surface target, long frameNumber); in onCaptureBufferLost() argument
/frameworks/base/graphics/java/android/graphics/
DBLASTBufferQueue.java42 long frameNumber); in nativeMergeWithNextTransaction() argument
44 private static native void nativeApplyPendingTransactions(long ptr, long frameNumber); in nativeApplyPendingTransactions() argument
47 long frameNumber); in nativeGatherPendingTransactions() argument
157 public void mergeWithNextTransaction(SurfaceControl.Transaction t, long frameNumber) { in mergeWithNextTransaction() argument
158 nativeMergeWithNextTransaction(mNativeObject, t.mNativeObject, frameNumber); in mergeWithNextTransaction()
165 public void mergeWithNextTransaction(long nativeTransaction, long frameNumber) { in mergeWithNextTransaction() argument
166 nativeMergeWithNextTransaction(mNativeObject, nativeTransaction, frameNumber); in mergeWithNextTransaction()
176 public void applyPendingTransactions(long frameNumber) { in applyPendingTransactions() argument
177 nativeApplyPendingTransactions(mNativeObject, frameNumber); in applyPendingTransactions()
200 public SurfaceControl.Transaction gatherPendingTransactions(long frameNumber) { in gatherPendingTransactions() argument
[all …]
DRenderNode.java273 void positionChanged(long frameNumber, int left, int top, int right, int bottom); in positionChanged() argument
281 default void positionChanged(long frameNumber, int left, int top, int right, int bottom, in positionChanged() argument
283 positionChanged(frameNumber, left, top, right, bottom); in positionChanged()
291 long frameNumber, int left, int top, int right, int bottom) { in callPositionChanged() argument
294 listener.positionChanged(frameNumber, left, top, right, bottom); in callPositionChanged()
306 long frameNumber, int left, int top, int right, int bottom, in callPositionChanged2() argument
310 listener.positionChanged(frameNumber, left, top, right, bottom, clipLeft, in callPositionChanged2()
327 default void applyStretch(long frameNumber, float width, float height, in applyStretch() argument
337 long frameNumber, float width, float height, in callApplyStretch() argument
343 listener.applyStretch(frameNumber, width, height, vecX, vecY, maxStretchX, in callApplyStretch()
[all …]
/frameworks/av/services/camera/libcameraservice/api2/
DCompositeStream.cpp96 void CompositeStream::onBufferRequestForFrameNumber(uint64_t frameNumber, int streamId, in onBufferRequestForFrameNumber() argument
100 mPendingCaptureResults.emplace(frameNumber, CameraMetadata()); in onBufferRequestForFrameNumber()
102 mRequestTimeMap.emplace(frameNumber, ts); in onBufferRequestForFrameNumber()
114 void CompositeStream::eraseResult(int64_t frameNumber) { in eraseResult() argument
117 auto requestTimeIt = mRequestTimeMap.find(frameNumber); in eraseResult()
122 auto it = mPendingCaptureResults.find(frameNumber); in eraseResult()
135 uint64_t frameNumber = result.mResultExtras.frameNumber; in onResultAvailable() local
137 auto it = mPendingCaptureResults.find(frameNumber); in onResultAvailable()
144 mCaptureResults.emplace(ts, std::make_tuple(frameNumber, it->second)); in onResultAvailable()
148 __FUNCTION__, frameNumber); in onResultAvailable()
[all …]
DHeicCompositeStream.cpp296 void HeicCompositeStream::onBufferRequestForFrameNumber(uint64_t frameNumber, int streamId, in onBufferRequestForFrameNumber() argument
298 ATRACE_ASYNC_BEGIN("HEIC capture", frameNumber); in onBufferRequestForFrameNumber()
305 mPendingCaptureResults.emplace(frameNumber, CameraMetadata()); in onBufferRequestForFrameNumber()
321 mSettingsByFrameNumber[frameNumber] = {orientation, quality}; in onBufferRequestForFrameNumber()
600 if (mSettingsByFrameNumber.find(resultExtras.frameNumber) != mSettingsByFrameNumber.end()) { in onShutter()
602 resultExtras.frameNumber, timestamp, resultExtras.requestId); in onShutter()
603 mSettingsByFrameNumber[resultExtras.frameNumber].shutterNotified = true; in onShutter()
604 mSettingsByFrameNumber[resultExtras.frameNumber].timestamp = timestamp; in onShutter()
605 mSettingsByFrameNumber[resultExtras.frameNumber].requestId = resultExtras.requestId; in onShutter()
668 int64_t frameNumber = mAppSegmentFrameNumbers.front(); in compilePendingInputLocked() local
[all …]
/frameworks/native/services/surfaceflinger/FrameTracer/
DFrameTracer.cpp61 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()
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
82 FrameTracerDataSource::Trace([this, layerId, bufferID, frameNumber, &fence, type, in traceFence()
95 traceSpanLocked(ctx, layerId, bufferID, frameNumber, type, startTime, signalTime); in traceFence()
98 {.frameNumber = frameNumber, in traceFence()
124 traceSpanLocked(ctx, layerId, bufferID, pendingFence.frameNumber, pendingFence.type, in tracePendingFencesLocked()
135 uint64_t bufferID, uint64_t frameNumber, nsecs_t timestamp, in traceLocked() argument
142 if (frameNumber != UNSPECIFIED_FRAME_NUMBER) { in traceLocked()
[all …]
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3OutputUtils.cpp212 void insertResultLocked(CaptureOutputStates& states, CaptureResult *result, uint32_t frameNumber) { in insertResultLocked() argument
222 (int32_t*)&frameNumber, 1) != OK) { in insertResultLocked()
223 SET_ERR("Failed to set frame number %d in metadata", frameNumber); in insertResultLocked()
228 SET_ERR("Failed to set request ID in metadata for frame %d", frameNumber); in insertResultLocked()
247 queuedResult->mResultExtras.frameNumber, in insertResultLocked()
256 const CaptureResultExtras &resultExtras, uint32_t frameNumber) { in sendPartialCaptureResult() argument
296 insertResultLocked(states, &captureResult, frameNumber); in sendPartialCaptureResult()
305 uint32_t frameNumber, in sendCaptureResult() argument
317 if (frameNumber < states.nextReprocResultFrameNum) { in sendCaptureResult()
320 frameNumber, states.nextReprocResultFrameNum); in sendCaptureResult()
[all …]
DCamera3OutputUtilsTemplated.h160 r.frame_number = result.frameNumber; in processOneCaptureResultLockedT()
169 __FUNCTION__, result.frameNumber); in processOneCaptureResultLockedT()
186 __FUNCTION__, result.frameNumber, in processOneCaptureResultLockedT()
207 __FUNCTION__, result.frameNumber, i, bSrc.streamId); in processOneCaptureResultLockedT()
222 __FUNCTION__, result.frameNumber, i, bSrc.streamId); in processOneCaptureResultLockedT()
233 res = bufferRecords.popInflightBuffer(result.frameNumber, bSrc.streamId, &buffer); in processOneCaptureResultLockedT()
238 __FUNCTION__, result.frameNumber, i, bSrc.streamId); in processOneCaptureResultLockedT()
254 __FUNCTION__, result.frameNumber, i, (int)numFdsInHandle(bSrc.releaseFence)); in processOneCaptureResultLockedT()
267 result.frameNumber, result.inputBuffer.streamId); in processOneCaptureResultLockedT()
272 res = bufferRecords.popInflightBuffer(result.frameNumber, result.inputBuffer.streamId, in processOneCaptureResultLockedT()
[all …]
/frameworks/av/services/camera/libcameraservice/api1/client2/
DFrameProcessor.cpp276 int32_t frameNumber = entry.data.i32[0]; in process3aState() local
279 if (frameNumber <= mLast3AFrameNumber) { in process3aState()
281 __FUNCTION__, frameNumber); in process3aState()
284 mPending3AStates.removeItem(frameNumber); in process3aState()
290 ssize_t index = mPending3AStates.indexOfKey(frameNumber); in process3aState()
300 &pendingState.afMode, frameNumber, cameraId); in process3aState()
303 &pendingState.awbMode, frameNumber, cameraId); in process3aState()
306 &pendingState.aeState, frameNumber, cameraId); in process3aState()
309 &pendingState.afState, frameNumber, cameraId); in process3aState()
312 &pendingState.awbState, frameNumber, cameraId); in process3aState()
[all …]
/frameworks/native/services/surfaceflinger/TimeStats/
DTimeStats.h75 virtual void setPostTime(int32_t layerId, uint64_t frameNumber, const std::string& layerName,
77 virtual void setLatchTime(int32_t layerId, uint64_t frameNumber, nsecs_t latchTime) = 0;
90 virtual void setDesiredTime(int32_t layerId, uint64_t frameNumber, nsecs_t desiredTime) = 0;
91 virtual void setAcquireTime(int32_t layerId, uint64_t frameNumber, nsecs_t acquireTime) = 0;
92 virtual void setAcquireFence(int32_t layerId, uint64_t frameNumber,
96 virtual void setPresentTime(int32_t layerId, uint64_t frameNumber, nsecs_t presentTime,
99 virtual void setPresentFence(int32_t layerId, uint64_t frameNumber,
176 virtual void removeTimeRecord(int32_t layerId, uint64_t frameNumber) = 0;
192 uint64_t frameNumber = 0; member
259 void setPostTime(int32_t layerId, uint64_t frameNumber, const std::string& layerName, uid_t uid,
[all …]
DTimeStats.cpp407 timeRecord->frameTime.frameNumber); in recordReadyLocked()
420 timeRecord->frameTime.frameNumber); in recordReadyLocked()
433 timeRecord->frameTime.frameNumber); in recordReadyLocked()
463 timeRecords[0].frameTime.frameNumber, timeRecords[0].frameTime.presentTime); in flushAvailableRecordsToStatsLocked()
499 timeRecords[0].frameTime.frameNumber, postToAcquireMs); in flushAvailableRecordsToStatsLocked()
505 timeRecords[0].frameTime.frameNumber, postToPresentMs); in flushAvailableRecordsToStatsLocked()
511 timeRecords[0].frameTime.frameNumber, acquireToPresentMs); in flushAvailableRecordsToStatsLocked()
517 timeRecords[0].frameTime.frameNumber, latchToPresentMs); in flushAvailableRecordsToStatsLocked()
523 timeRecords[0].frameTime.frameNumber, desiredToPresentMs); in flushAvailableRecordsToStatsLocked()
529 timeRecords[0].frameTime.frameNumber, presentToPresentMs); in flushAvailableRecordsToStatsLocked()
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DTransactionFrameTracerTest.cpp77 uint64_t frameNumber = 5; in BLASTTransactionSendsFrameTracerEvents() local
82 traceTimestamp(layerId, bufferId, frameNumber, dequeueTime, in BLASTTransactionSendsFrameTracerEvents()
85 traceTimestamp(layerId, bufferId, frameNumber, postTime, in BLASTTransactionSendsFrameTracerEvents()
89 bufferData.frameNumber = frameNumber; in BLASTTransactionSendsFrameTracerEvents()
102 traceFence(layerId, bufferId, frameNumber, _, in BLASTTransactionSendsFrameTracerEvents()
105 traceTimestamp(layerId, bufferId, frameNumber, latchTime, in BLASTTransactionSendsFrameTracerEvents()
113 traceFence(layerId, bufferId, frameNumber, presentFence, in BLASTTransactionSendsFrameTracerEvents()
DFrameTracerTest.cpp153 const uint64_t frameNumber = 3; in TEST_F() local
162 mFrameTracer->traceTimestamp(layerId, bufferID, frameNumber, timestamp, type, duration); in TEST_F()
176 mFrameTracer->traceTimestamp(layerId, bufferID, frameNumber, timestamp, type, duration); in TEST_F()
194 EXPECT_EQ(buffer_event1.frame_number(), frameNumber); in TEST_F()
218 const uint64_t frameNumber = 3; in TEST_F() local
228 mFrameTracer->traceFence(layerId, bufferID, frameNumber, fenceTime, type); in TEST_F()
253 mFrameTracer->traceFence(layerId, bufferID, frameNumber, fenceTime, type); in TEST_F()
273 EXPECT_EQ(buffer_event1.frame_number(), frameNumber); in TEST_F()
289 EXPECT_EQ(buffer_event2.frame_number(), frameNumber); in TEST_F()
318 const uint64_t frameNumber = 3; in TEST_F() local
[all …]
/frameworks/base/core/java/com/android/internal/graphics/drawable/
DBackgroundBlurDrawable.java81 public void positionChanged(long frameNumber, int left, int top, int right,
83 mAggregator.onRenderNodePositionChanged(frameNumber, () -> {
89 public void positionLost(long frameNumber) {
90 mAggregator.onRenderNodePositionChanged(frameNumber, () -> {
319 void onRenderNodePositionChanged(long frameNumber, Runnable update) { in onRenderNodePositionChanged() argument
323 ArraySet<Runnable> frameRtUpdates = mFrameRtUpdates.get(frameNumber); in onRenderNodePositionChanged()
326 mFrameRtUpdates.put(frameNumber, frameRtUpdates); in onRenderNodePositionChanged()
330 if (mLastFrameNumber == frameNumber) { in onRenderNodePositionChanged()
333 handleDispatchBlurTransactionLocked(frameNumber, mLastFrameBlurRegions, true); in onRenderNodePositionChanged()
379 public float[][] getBlurRegionsForFrameLocked(long frameNumber, in getBlurRegionsForFrameLocked() argument
[all …]
/frameworks/native/libs/gui/
DFrameTimestamps.cpp111 StringAppendF(&outString, "-- Frame %" PRIu64 "\n", frameNumber); in dump()
162 explicit FrameNumberEqual(uint64_t frameNumber) : mFrameNumber(frameNumber) {} in FrameNumberEqual()
164 return frame.valid && mFrameNumber == frame.frameNumber; in operator ()()
179 FrameEvents* FrameEventHistory::getFrame(uint64_t frameNumber) { in getFrame() argument
181 mFrames.begin(), mFrames.end(), FrameNumberEqual(frameNumber)); in getFrame()
185 FrameEvents* FrameEventHistory::getFrame(uint64_t frameNumber, size_t* iHint) { in getFrame() argument
189 hint, mFrames.end(), FrameNumberEqual(frameNumber)); in getFrame()
192 mFrames.begin(), hint, FrameNumberEqual(frameNumber)); in getFrame()
211 return lhs.frameNumber < rhs.frameNumber; in FrameNumberLessThan()
255 uint64_t frameNumber, std::shared_ptr<FenceTime>&& acquire) { in updateAcquireFence() argument
[all …]
/frameworks/base/core/java/android/hardware/camera2/extension/
DIRequestCallback.aidl25 void onCaptureStarted(int requestId, long frameNumber, long timestamp); in onCaptureStarted() argument
29 void onCaptureBufferLost(int requestId, long frameNumber, int outputStreamId); in onCaptureBufferLost() argument
30 void onCaptureSequenceCompleted(int sequenceId, long frameNumber); in onCaptureSequenceCompleted() argument
DRequestProcessor.java80 void onCaptureStarted(@NonNull Request request, long frameNumber, long timestamp); in onCaptureStarted() argument
186 void onCaptureBufferLost(@NonNull Request request, long frameNumber, int outputStreamId); in onCaptureBufferLost() argument
207 void onCaptureSequenceCompleted(int sequenceId, long frameNumber); in onCaptureSequenceCompleted() argument
450 public void onCaptureStarted(int requestId, long frameNumber, long timestamp) { in onCaptureStarted() argument
455 mRequests.get(requestId), frameNumber, timestamp)); in onCaptureStarted() local
469 partialResult.frameNumber); in onCaptureProgressed()
499 parcelResult.frameNumber)); in onCaptureCompleted()
504 totalCaptureResult.frameNumber, partials, totalCaptureResult.sessionId, in onCaptureCompleted()
526 captureFailure.sequenceId, captureFailure.frameNumber, in onCaptureFailed()
541 public void onCaptureBufferLost(int requestId, long frameNumber, int outputStreamId) { in onCaptureBufferLost() argument
[all …]
/frameworks/ex/camera2/extensions/service_based_sample/oem_library/src/java/androidx/camera/extensions/impl/service/
DIRequestCallback.aidl26 void onCaptureStarted(int requestId, long frameNumber, long timestamp); in onCaptureStarted() argument
30 void onCaptureBufferLost(int requestId, long frameNumber, int outputStreamId); in onCaptureBufferLost() argument
31 void onCaptureSequenceCompleted(int sequenceId, long frameNumber); in onCaptureSequenceCompleted() argument
/frameworks/av/services/camera/virtualcamera/tests/
DVirtualCameraRenderThreadTest.cc79 Field(&ErrorMsg::frameNumber, Eq(frameId))), in IsRequestErrorNotifyMsg()
118 const int frameNumber = 42; in TEST_F() local
126 notify(ElementsAre(IsRequestErrorNotifyMsg(frameNumber)))) in TEST_F()
133 Field(&CaptureResult::frameNumber, frameNumber), in TEST_F()
143 frameNumber, in TEST_F()
/frameworks/native/libs/gui/include/gui/
DFrameTimestamps.h67 uint64_t frameNumber{0};
95 FrameEvents* getFrame(uint64_t frameNumber);
96 FrameEvents* getFrame(uint64_t frameNumber, size_t* iHint);
129 uint64_t frameNumber, std::shared_ptr<FenceTime>&& acquire);
160 uint64_t frameNumber{0};
204 void addLatch(uint64_t frameNumber, nsecs_t latchTime);
205 void addPreComposition(uint64_t frameNumber, nsecs_t refreshStartTime);
206 void addPostComposition(uint64_t frameNumber,
210 void addRelease(uint64_t frameNumber, nsecs_t dequeueReadyTime,

1234567