Home
last modified time | relevance | path

Searched refs:frameInfo (Results 1 – 25 of 39) sorted by relevance

12

/frameworks/base/tests/Input/src/com/android/test/input/
DViewFrameInfoTest.kt59 val frameInfo = FrameInfo() in testUpdateFrameInfoFromViewFrameInfo() constant
61 assertThat(frameInfo.frameInfo[FrameInfo.INPUT_EVENT_ID]).isEqualTo(INVALID_INPUT_EVENT_ID) in testUpdateFrameInfoFromViewFrameInfo()
62 assertThat(frameInfo.frameInfo[FrameInfo.FLAGS]).isEqualTo(0) in testUpdateFrameInfoFromViewFrameInfo()
63 assertThat(frameInfo.frameInfo[FrameInfo.DRAW_START]).isEqualTo(0) in testUpdateFrameInfoFromViewFrameInfo()
66 mViewFrameInfo.populateFrameInfo(frameInfo) in testUpdateFrameInfoFromViewFrameInfo()
67 assertThat(frameInfo.frameInfo[FrameInfo.INPUT_EVENT_ID]).isEqualTo(139) in testUpdateFrameInfoFromViewFrameInfo()
68 assertThat(frameInfo.frameInfo[FrameInfo.FLAGS]).isEqualTo( in testUpdateFrameInfoFromViewFrameInfo()
70 assertThat(frameInfo.frameInfo[FrameInfo.DRAW_START]).isGreaterThan(mTimeStarted) in testUpdateFrameInfoFromViewFrameInfo()
/frameworks/base/graphics/java/android/graphics/
DFrameInfo.java43 public long[] frameInfo = new long[FRAME_INFO_SIZE]; field in FrameInfo
103 frameInfo[FRAME_TIMELINE_VSYNC_ID] = frameTimelineVsyncId; in setVsync()
104 frameInfo[INTENDED_VSYNC] = intendedVsync; in setVsync()
105 frameInfo[VSYNC] = usedVsync; in setVsync()
106 frameInfo[FLAGS] = 0; in setVsync()
107 frameInfo[FRAME_DEADLINE] = frameDeadline; in setVsync()
108 frameInfo[FRAME_START_TIME] = frameStartTime; in setVsync()
109 frameInfo[FRAME_INTERVAL] = frameInterval; in setVsync()
114 frameInfo[HANDLE_INPUT_START] = System.nanoTime(); in markInputHandlingStart()
119 frameInfo[ANIMATION_START] = System.nanoTime(); in markAnimationsStart()
[all …]
DHardwareRenderer.java377 System.arraycopy(info.frameInfo, 0, mFrameInfo.frameInfo, 0, info.frameInfo.length); in setFrameInfo()
485 public int syncAndDrawFrame(@NonNull FrameInfo frameInfo) { in syncAndDrawFrame() argument
486 return nSyncAndDrawFrame(mNativeProxy, frameInfo.frameInfo, frameInfo.frameInfo.length); in syncAndDrawFrame()
1521 private static native int nSyncAndDrawFrame(long nativeProxy, long[] frameInfo, int size); in nSyncAndDrawFrame() argument
/frameworks/av/media/tests/benchmark/src/native/extractor/
DExtractor.cpp44 void *Extractor::getCSDSample(AMediaCodecBufferInfo &frameInfo, int32_t csdIndex) { in getCSDSample() argument
47 frameInfo.presentationTimeUs = 0; in getCSDSample()
48 frameInfo.flags = AMEDIACODEC_BUFFER_FLAG_CODEC_CONFIG; in getCSDSample()
54 frameInfo.size = (int32_t)size; in getCSDSample()
55 mStats->addFrameSize(frameInfo.size); in getCSDSample()
60 int32_t Extractor::getFrameSample(AMediaCodecBufferInfo &frameInfo) { in getFrameSample() argument
64 frameInfo.flags = AMediaExtractor_getSampleFlags(mExtractor); in getFrameSample()
65 frameInfo.size = size; in getFrameSample()
66 mStats->addFrameSize(frameInfo.size); in getFrameSample()
67 frameInfo.presentationTimeUs = AMediaExtractor_getSampleTime(mExtractor); in getFrameSample()
[all …]
DExtractor.h42 void *getCSDSample(AMediaCodecBufferInfo &frameInfo, int32_t csdIndex);
44 int32_t getFrameSample(AMediaCodecBufferInfo &frameInfo);
/frameworks/base/core/java/android/view/
DViewFrameInfo.java43 public void populateFrameInfo(FrameInfo frameInfo) { in populateFrameInfo() argument
44 frameInfo.frameInfo[FrameInfo.FLAGS] |= flags; in populateFrameInfo()
45 frameInfo.frameInfo[FrameInfo.DRAW_START] = drawStart; in populateFrameInfo()
46 frameInfo.frameInfo[FrameInfo.INPUT_EVENT_ID] = mInputEventId; in populateFrameInfo()
/frameworks/av/media/libheif/
DHeifDecoderImpl.h41 bool init(HeifStream* stream, HeifFrameInfo* frameInfo) override;
43 bool getSequenceInfo(HeifFrameInfo* frameInfo, size_t *frameCount) override;
49 bool decode(HeifFrameInfo* frameInfo) override;
51 bool decodeSequence(int frameIndex, HeifFrameInfo* frameInfo) override;
88 bool reinit(HeifFrameInfo* frameInfo);
DHeifDecoderImpl.cpp333 bool HeifDecoderImpl::init(HeifStream* stream, HeifFrameInfo* frameInfo) { in init() argument
343 return reinit(frameInfo); in init()
346 bool HeifDecoderImpl::reinit(HeifFrameInfo* frameInfo) { in reinit() argument
452 if (frameInfo != nullptr) { in reinit()
453 *frameInfo = *defaultInfo; in reinit()
463 HeifFrameInfo* frameInfo, size_t *frameCount) { in getSequenceInfo() argument
468 if (frameInfo != nullptr) { in getSequenceInfo()
469 *frameInfo = mSequenceInfo; in getSequenceInfo()
567 bool HeifDecoderImpl::decode(HeifFrameInfo* frameInfo) { in decode() argument
614 if (frameInfo != nullptr) { in decode()
[all …]
/frameworks/base/native/graphics/jni/fuzz/
Dfuzz_imagedecoder.cpp62 AImageDecoderFrameInfo* frameInfo = AImageDecoderFrameInfo_create(); in LLVMFuzzerTestOneInput() local
116 [&]() { AImageDecoder_getFrameInfo(decoder, frameInfo); }, in LLVMFuzzerTestOneInput()
117 [&]() { AImageDecoderFrameInfo_getDuration(frameInfo); }, in LLVMFuzzerTestOneInput()
118 [&]() { AImageDecoderFrameInfo_hasAlphaWithinBounds(frameInfo); }, in LLVMFuzzerTestOneInput()
119 [&]() { AImageDecoderFrameInfo_getDisposeOp(frameInfo); }, in LLVMFuzzerTestOneInput()
120 [&]() { AImageDecoderFrameInfo_getBlendOp(frameInfo); }, in LLVMFuzzerTestOneInput()
140 AImageDecoderFrameInfo_delete(frameInfo); in LLVMFuzzerTestOneInput()
/frameworks/av/media/libheif/include/
DHeifDecoderAPI.h120 virtual bool init(HeifStream* stream, HeifFrameInfo* frameInfo) = 0;
128 virtual bool getSequenceInfo(HeifFrameInfo* frameInfo, size_t *frameCount) = 0;
138 virtual bool decode(HeifFrameInfo* frameInfo) = 0;
152 virtual bool decodeSequence(int frameIndex, HeifFrameInfo* frameInfo) = 0;
/frameworks/av/media/tests/benchmark/src/native/decoder/
DC2Decoder.cpp75 int32_t C2Decoder::decodeFrames(uint8_t *inputBuffer, vector<AMediaCodecBufferInfo> &frameInfo) { in decodeFrames() argument
81 if (mNumInputFrame == frameInfo.size()) break; in decodeFrames()
97 uint32_t flags = frameInfo[mNumInputFrame].flags; in decodeFrames()
101 if (mNumInputFrame == (frameInfo.size() - 1)) { in decodeFrames()
105 work->input.ordinal.timestamp = frameInfo[mNumInputFrame].presentationTimeUs; in decodeFrames()
108 int size = frameInfo[mNumInputFrame].size; in decodeFrames()
DDecoder.cpp25 vector<AMediaCodecBufferInfo> &frameInfo, in readSampleData() argument
28 if (frameID == (int32_t)frameInfo.size()) { in readSampleData()
31 uint32_t flags = frameInfo[frameID].flags; in readSampleData()
32 int64_t timestamp = frameInfo[frameID].presentationTimeUs; in readSampleData()
33 ssize_t bytesCount = frameInfo[frameID].size; in readSampleData()
152 int32_t Decoder::decode(uint8_t *inputBuffer, vector<AMediaCodecBufferInfo> &frameInfo, in decode() argument
156 mFrameMetaData = frameInfo; in decode()
DC2Decoder.h30 int32_t decodeFrames(uint8_t *inputBuffer, vector<AMediaCodecBufferInfo> &frameInfo);
/frameworks/av/media/tests/benchmark/tests/
DC2DecoderTest.cpp92 vector<AMediaCodecBufferInfo> frameInfo; in TEST_P() local
105 frameInfo.push_back(info); in TEST_P()
118 frameInfo.push_back(info); in TEST_P()
131 status = mDecoder->decodeFrames(inputBuffer.get(), frameInfo); in TEST_P()
DDecoderTest.cpp64 vector<AMediaCodecBufferInfo> frameInfo; in TEST_P() local
77 frameInfo.push_back(info); in TEST_P()
84 status = decoder->decode(inputBuffer.get(), frameInfo, codecName, asyncMode); in TEST_P()
DC2EncoderTest.cpp95 vector<AMediaCodecBufferInfo> frameInfo; in TEST_P() local
107 frameInfo.push_back(info); in TEST_P()
118 status = decoder->decode(inputBuffer.get(), frameInfo, decName, in TEST_P()
DEncoderTest.cpp68 vector<AMediaCodecBufferInfo> frameInfo; in TEST_P() local
81 frameInfo.push_back(info); in TEST_P()
92 … status = decoder->decode(inputBuffer.get(), frameInfo, decName, false /*asyncMode */, outFp); in TEST_P()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/cpp/
DNativeDecoder.cpp80 vector<AMediaCodecBufferInfo> frameInfo; in Java_com_android_media_benchmark_library_Native_Decode() local
94 frameInfo.push_back(info); in Java_com_android_media_benchmark_library_Native_Decode()
101 status = decoder->decode(inputBuffer, frameInfo, sCodecName, asyncMode); in Java_com_android_media_benchmark_library_Native_Decode()
/frameworks/base/libs/hwui/renderthread/
DCanvasContext.cpp766 next.frameInfo = mCurrentFrameInfo; in draw()
825 forthBehind = frameMetricsInfo.frameInfo; in reportMetricsWithPresentTime()
877 return mLast4FrameMetricsInfos[i].frameInfo; in getFrameInfoFromLast4()
897 FrameInfo* frameInfo = instance->getFrameInfoFromLast4(frameNumber, surfaceControlId); in onSurfaceStatsAvailable() local
899 if (frameInfo != nullptr) { in onSurfaceStatsAvailable()
901 frameInfo->set(FrameInfoIndex::FrameCompleted) = std::max(gpuCompleteTime, in onSurfaceStatsAvailable()
902 frameInfo->get(FrameInfoIndex::SwapBuffersCompleted)); in onSurfaceStatsAvailable()
903 frameInfo->set(FrameInfoIndex::GpuCompleted) = std::max( in onSurfaceStatsAvailable()
904 gpuCompleteTime, frameInfo->get(FrameInfoIndex::CommandSubmissionCompleted)); in onSurfaceStatsAvailable()
905 instance->mJankTracker.finishFrame(*frameInfo, instance->mFrameMetricsReporter, frameNumber, in onSurfaceStatsAvailable()
[all …]
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/androidTest/java/com/android/media/benchmark/tests/
DDecoderTest.java131 ArrayList<MediaCodec.BufferInfo> frameInfo = new ArrayList<>(); in testDecoder() local
150 frameInfo.add(bufInfo); in testDecoder()
173 int status = decoder.decode(inputBuffer, frameInfo, mAsyncMode, format, codecName); in testDecoder()
188 frameInfo.clear(); in testDecoder()
DEncoderTest.java180 ArrayList<MediaCodec.BufferInfo> frameInfo = new ArrayList<>(); in decodeFile() local
194 frameInfo.add(bufInfo); in decodeFile()
202 status = decoder.decode(inputBuffer, frameInfo, false, format, ""); in decodeFile()
210 frameInfo.clear(); in decodeFile()
/frameworks/base/libs/hwui/hwui/
DImageDecoder.cpp275 SkCodec::FrameInfo frameInfo; in advanceFrame() local
276 if (!mCodec->codec()->getFrameInfo(frameIndex, &frameInfo) in advanceFrame()
277 || !frameInfo.fFullyReceived) { in advanceFrame()
283 mCurrentFrameIsIndependent = frameInfo.fRequiredFrame == SkCodec::kNoFrame; in advanceFrame()
284 mCurrentFrameIsOpaque = frameInfo.fAlphaType == kOpaque_SkAlphaType; in advanceFrame()
286 if (frameInfo.fDisposalMethod == SkCodecAnimation::DisposalMethod::kRestorePrevious) { in advanceFrame()
/frameworks/av/media/codec2/hal/hidl/1.0/vts/functional/common/
Dmedia_c2_hidl_test_common.cpp251 int32_t populateInfoVector(std::string info, android::Vector<FrameInfo>* frameInfo, in populateInfoVector() argument
280 frameInfo->push_back({bytesCount, vtsFlags, timestamp, {}}); in populateInfoVector()
288 frameInfo->editItemAt(frameInfo->size() - 1).largeFrameInfo.push_back( in populateInfoVector()
/frameworks/base/libs/hwui/jni/
DAnimatedImageDrawable.cpp66 SkCodec::FrameInfo frameInfo; in AnimatedImageDrawable_nCreate() local
67 if (!imageDecoder->mCodec->codec()->getFrameInfo(i, &frameInfo)) { in AnimatedImageDrawable_nCreate()
71 if (frameInfo.fDisposalMethod == SkCodecAnimation::DisposalMethod::kRestorePrevious) { in AnimatedImageDrawable_nCreate()
/frameworks/base/libs/hwui/tests/macrobench/
DTestSceneRunner.cpp142 UiFrameInfoBuilder(proxy->frameInfo()) in doRun()
161 UiFrameInfoBuilder(proxy->frameInfo()) in doRun()

12