/frameworks/base/tests/Input/src/com/android/test/input/ |
D | ViewFrameInfoTest.kt | 59 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/ |
D | FrameInfo.java | 43 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 …]
|
D | HardwareRenderer.java | 348 System.arraycopy(info.frameInfo, 0, mFrameInfo.frameInfo, 0, info.frameInfo.length); in setFrameInfo() 456 public int syncAndDrawFrame(@NonNull FrameInfo frameInfo) { in syncAndDrawFrame() argument 457 return nSyncAndDrawFrame(mNativeProxy, frameInfo.frameInfo, frameInfo.frameInfo.length); in syncAndDrawFrame() 1396 private static native int nSyncAndDrawFrame(long nativeProxy, long[] frameInfo, int size); in nSyncAndDrawFrame() argument
|
/frameworks/av/media/tests/benchmark/src/native/extractor/ |
D | Extractor.cpp | 44 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 …]
|
D | Extractor.h | 42 void *getCSDSample(AMediaCodecBufferInfo &frameInfo, int32_t csdIndex); 44 int32_t getFrameSample(AMediaCodecBufferInfo &frameInfo);
|
/frameworks/base/core/java/android/view/ |
D | ViewFrameInfo.java | 41 public void populateFrameInfo(FrameInfo frameInfo) { in populateFrameInfo() argument 42 frameInfo.frameInfo[FrameInfo.FLAGS] |= flags; in populateFrameInfo() 43 frameInfo.frameInfo[FrameInfo.DRAW_START] = drawStart; in populateFrameInfo() 44 frameInfo.frameInfo[FrameInfo.INPUT_EVENT_ID] = mInputEventId; in populateFrameInfo()
|
/frameworks/av/media/libheif/ |
D | HeifDecoderImpl.h | 41 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; 86 bool reinit(HeifFrameInfo* frameInfo);
|
D | HeifDecoderImpl.cpp | 330 bool HeifDecoderImpl::init(HeifStream* stream, HeifFrameInfo* frameInfo) { in init() argument 340 return reinit(frameInfo); in init() 343 bool HeifDecoderImpl::reinit(HeifFrameInfo* frameInfo) { in reinit() argument 446 if (frameInfo != nullptr) { in reinit() 447 *frameInfo = *defaultInfo; in reinit() 457 HeifFrameInfo* frameInfo, size_t *frameCount) { in getSequenceInfo() argument 462 if (frameInfo != nullptr) { in getSequenceInfo() 463 *frameInfo = mSequenceInfo; in getSequenceInfo() 544 bool HeifDecoderImpl::decode(HeifFrameInfo* frameInfo) { in decode() argument 580 if (frameInfo != nullptr) { in decode() [all …]
|
/frameworks/av/media/libheif/include/ |
D | HeifDecoderAPI.h | 120 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/ |
D | C2Decoder.cpp | 75 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()
|
D | Decoder.cpp | 25 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()
|
D | C2Decoder.h | 30 int32_t decodeFrames(uint8_t *inputBuffer, vector<AMediaCodecBufferInfo> &frameInfo);
|
/frameworks/av/media/tests/benchmark/tests/ |
D | C2DecoderTest.cpp | 91 vector<AMediaCodecBufferInfo> frameInfo; in TEST_P() local 104 frameInfo.push_back(info); in TEST_P() 117 frameInfo.push_back(info); in TEST_P() 130 status = mDecoder->decodeFrames(inputBuffer, frameInfo); in TEST_P()
|
D | DecoderTest.cpp | 63 vector<AMediaCodecBufferInfo> frameInfo; in TEST_P() local 76 frameInfo.push_back(info); in TEST_P() 83 status = decoder->decode(inputBuffer, frameInfo, codecName, asyncMode); in TEST_P()
|
D | C2EncoderTest.cpp | 94 vector<AMediaCodecBufferInfo> frameInfo; in TEST_P() local 106 frameInfo.push_back(info); in TEST_P() 117 status = decoder->decode(inputBuffer, frameInfo, decName, false /*asyncMode */, outFp); in TEST_P()
|
D | EncoderTest.cpp | 67 vector<AMediaCodecBufferInfo> frameInfo; in TEST_P() local 80 frameInfo.push_back(info); in TEST_P() 91 status = decoder->decode(inputBuffer, frameInfo, decName, false /*asyncMode */, outFp); in TEST_P()
|
/frameworks/native/services/surfaceflinger/fuzzer/ |
D | surfaceflinger_layer_fuzzer.cpp | 91 const FrameTimelineInfo frameInfo = getFuzzedFrameTimelineInfo(); in invokeEffectLayer() local 93 effectLayer->setFrameTimelineVsyncForBufferTransaction(frameInfo, postTime); in invokeEffectLayer() 94 effectLayer->setFrameTimelineVsyncForBufferlessTransaction(frameInfo, postTime); in invokeEffectLayer() 95 auto surfaceFrame = effectLayer->createSurfaceFrameForTransaction(frameInfo, postTime); in invokeEffectLayer() 97 effectLayer->createSurfaceFrameForBuffer(frameInfo, postTime, in invokeEffectLayer()
|
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/cpp/ |
D | NativeDecoder.cpp | 79 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/ |
D | CanvasContext.cpp | 637 next.frameInfo = mCurrentFrameInfo; in draw() 692 forthBehind = frameMetricsInfo.frameInfo; in reportMetricsWithPresentTime() 744 return mLast4FrameMetricsInfos[i].frameInfo; in getFrameInfoFromLast4() 764 FrameInfo* frameInfo = instance->getFrameInfoFromLast4(frameNumber, surfaceControlId); in onSurfaceStatsAvailable() local 766 if (frameInfo != nullptr) { in onSurfaceStatsAvailable() 768 frameInfo->set(FrameInfoIndex::FrameCompleted) = std::max(gpuCompleteTime, in onSurfaceStatsAvailable() 769 frameInfo->get(FrameInfoIndex::SwapBuffersCompleted)); in onSurfaceStatsAvailable() 770 frameInfo->set(FrameInfoIndex::GpuCompleted) = std::max( in onSurfaceStatsAvailable() 771 gpuCompleteTime, frameInfo->get(FrameInfoIndex::CommandSubmissionCompleted)); in onSurfaceStatsAvailable() 772 instance->mJankTracker.finishFrame(*frameInfo, instance->mFrameMetricsReporter, frameNumber, in onSurfaceStatsAvailable() [all …]
|
D | CanvasContext.h | 236 void finishFrame(FrameInfo* frameInfo); 245 FrameInfo* frameInfo; member
|
/frameworks/base/libs/hwui/hwui/ |
D | ImageDecoder.cpp | 258 SkCodec::FrameInfo frameInfo; in advanceFrame() local 259 if (!mCodec->codec()->getFrameInfo(frameIndex, &frameInfo) in advanceFrame() 260 || !frameInfo.fFullyReceived) { in advanceFrame() 266 mCurrentFrameIsIndependent = frameInfo.fRequiredFrame == SkCodec::kNoFrame; in advanceFrame() 267 mCurrentFrameIsOpaque = frameInfo.fAlphaType == kOpaque_SkAlphaType; in advanceFrame() 269 if (frameInfo.fDisposalMethod == SkCodecAnimation::DisposalMethod::kRestorePrevious) { in advanceFrame()
|
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/androidTest/java/com/android/media/benchmark/tests/ |
D | DecoderTest.java | 131 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()
|
D | EncoderTest.java | 180 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/jni/ |
D | AnimatedImageDrawable.cpp | 58 SkCodec::FrameInfo frameInfo; in AnimatedImageDrawable_nCreate() local 59 if (!imageDecoder->mCodec->codec()->getFrameInfo(i, &frameInfo)) { in AnimatedImageDrawable_nCreate() 63 if (frameInfo.fDisposalMethod == SkCodecAnimation::DisposalMethod::kRestorePrevious) { in AnimatedImageDrawable_nCreate()
|
/frameworks/base/libs/hwui/tests/macrobench/ |
D | TestSceneRunner.cpp | 142 UiFrameInfoBuilder(proxy->frameInfo()) in doRun() 161 UiFrameInfoBuilder(proxy->frameInfo()) in doRun()
|