/cts/tests/mediapc/src/android/mediapc/cts/ |
D | FrameDropTest.java | 58 private int testDecodeToSurface(int frameRate, String[] testFiles) throws Exception { in testDecodeToSurface() argument 60 testFiles, mSurface, frameRate, mIsAsync); in testDecodeToSurface() 76 int frameRate = 30; in test30Fps() local 82 int framesDropped = testDecodeToSurface(frameRate, testFiles); in test30Fps() 85 r5_3__H_1_1_R.setFrameRate(frameRate); in test30Fps() 102 int frameRate = 60; in test60Fps() local 108 int framesDropped = testDecodeToSurface(frameRate, testFiles); in test60Fps() 111 r5_3__H_1_1_ST.setFrameRate(frameRate); in test60Fps() 128 int frameRate = 60; in test4k() local 134 int framesDropped = testDecodeToSurface(frameRate, testFiles); in test4k() [all …]
|
D | AdaptivePlaybackFrameDropTest.java | 60 private int testAdaptivePlaybackFrameDrop(int frameRate, String[] testFiles) throws Exception { in testAdaptivePlaybackFrameDrop() argument 62 testFiles, mSurface, frameRate, mIsAsync); in testAdaptivePlaybackFrameDrop() 80 int frameRate = 30; in test30Fps() local 88 int framesDropped = testAdaptivePlaybackFrameDrop(frameRate, testFiles); in test30Fps() 91 r5_3__H_1_2_R.setFrameRate(frameRate); in test30Fps() 109 int frameRate = 60; in test60Fps() local 117 int framesDropped = testAdaptivePlaybackFrameDrop(frameRate, testFiles); in test60Fps() 120 r5_3__H_1_2_ST.setFrameRate(frameRate); in test60Fps() 138 int frameRate = 60; in test4k() local 146 int framesDropped = testAdaptivePlaybackFrameDrop(frameRate, testFiles); in test4k() [all …]
|
D | PlaybackFrameDrop.java | 135 int frameRate, boolean isAsync) { in PlaybackFrameDrop() argument 140 mEachFrameTimeIntervalUs = 1000000 / frameRate; in PlaybackFrameDrop() 151 mMaxNumFrames = frameRate * 30 + mInitialDelay + 1; in PlaybackFrameDrop()
|
D | FrameDropTestBase.java | 194 protected int getAchievedPerfClass(int frameRate, int frameDropCount) { in getAchievedPerfClass() argument 196 if (frameRate == 30) { in getAchievedPerfClass()
|
/cts/tests/media/common/src/android/mediav2/common/cts/ |
D | EncoderProfileLevelTestBase.java | 89 public static int getMinLevel(String mediaType, int width, int height, int frameRate, in getMinLevel() argument 93 return getMinLevelAVC(width, height, frameRate, bitrate); in getMinLevel() 95 return getMinLevelHEVC(width, height, frameRate, bitrate); in getMinLevel() 97 return getMinLevelH263(width, height, frameRate, bitrate); in getMinLevel() 99 return getMinLevelMPEG2(width, height, frameRate, bitrate); in getMinLevel() 101 return getMinLevelMPEG4(width, height, frameRate, bitrate, profile); in getMinLevel() 103 return getMinLevelVP9(width, height, frameRate, bitrate); in getMinLevel() 105 return getMinLevelAV1(width, height, frameRate, bitrate); in getMinLevel() 111 private static int getMinLevelAVC(int width, int height, int frameRate, int bitrate) { in getMinLevelAVC() argument 149 float mbsPerSec = mbs * frameRate; in getMinLevelAVC() [all …]
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | FrameRateCtsActivity.java | 120 float frameRate = mode.getRefreshRate(); 121 if (frameRate != mDeviceFrameRate) { 124 frameRate)); 125 mDeviceFrameRate = frameRate; 226 public int setFrameRate(float frameRate, int compatibility, int changeFrameRateStrategy) { in setFrameRate() argument 229 frameRate, frameRateCompatibilityToString(compatibility))); in setFrameRate() 234 mSurface.setFrameRate(frameRate, compatibility); in setFrameRate() 236 mSurface.setFrameRate(frameRate, compatibility, changeFrameRateStrategy); in setFrameRate() 239 rc = nativeWindowSetFrameRate(mSurface, frameRate, compatibility, in setFrameRate() 245 .setFrameRate(mSurfaceControl, frameRate, compatibility); in setFrameRate() [all …]
|
/cts/tests/videocodec/src/android/videocodec/cts/ |
D | VideoEncoderMinMaxTest.java | 128 int frameRate = rates.clamp((double) TARGET_FRAME_RATE).intValue(); in applyMinMaxRanges() local 130 .setFrameRate(frameRate).setBitRate(minBitRate).build()); in applyMinMaxRanges() 132 frameRate = rates.clamp((double) TARGET_FRAME_RATE).intValue(); in applyMinMaxRanges() 134 .setFrameRate(frameRate).setBitRate(maxBitRate).build()); in applyMinMaxRanges() 138 frameRate = rates.clamp((double) TARGET_FRAME_RATE).intValue(); in applyMinMaxRanges() 142 .setFrameRate(frameRate).setBitRate(bitrate).build()); in applyMinMaxRanges() 146 frameRate = rates.clamp((double) TARGET_FRAME_RATE).intValue(); in applyMinMaxRanges() 150 .setFrameRate(frameRate).setBitRate(bitrate).build()); in applyMinMaxRanges() 154 frameRate = rates.clamp((double) TARGET_FRAME_RATE).intValue(); in applyMinMaxRanges() 158 .setFrameRate(frameRate).setBitRate(bitrate).build()); in applyMinMaxRanges() [all …]
|
D | VideoEncoderMultiResTest.java | 68 int height, int frameRate, int bitRateMode, int maxBFrames, int intraFrameInterval) { in getVideoEncoderCfgParams() argument 72 .setFrameRate(frameRate) in getVideoEncoderCfgParams() 80 private static void addParams(int width, int height, int frameRate) { in addParams() argument 97 height, frameRate, maxBFrames, bitRateModeToString(bitRateMode), in addParams() 100 getVideoEncoderCfgParams(mediaType, width, height, frameRate, in addParams()
|
D | VideoEncoderQualityRegressionTestBase.java | 106 int height, int bitRate, int bitRateMode, int keyFrameInterval, int frameRate, in getVideoEncoderCfgParams() argument 114 .setFrameRate(frameRate) in getVideoEncoderCfgParams() 127 int frameLimit, int frameRate, Map<Long, List<Rect>> frameCropRects, in getQualityRegressionForCfgs() argument 146 double achievedBitRate = ((double) outSize * 8 * frameRate) / (1000 * frameLimit); in getQualityRegressionForCfgs()
|
/cts/tests/tests/mediaediting/src/android/media/mediaediting/cts/ |
D | TranscodeQualityTest.java | 57 private final float frameRate; field in TranscodeQualityTest 63 float frameRate, String testFile, boolean isWithinCddRequirements, String testId) { in TranscodeQualityTest() argument 68 this.frameRate = frameRate; in TranscodeQualityTest() 167 .setFrameRate(frameRate) in transcodeTest() 173 .setFrameRate(frameRate) in transcodeTest()
|
/cts/tests/tests/graphics/jni/ |
D | android_graphics_cts_FrameRateCtsActivity.cpp | 170 jint nativeWindowSetFrameRate(JNIEnv* env, jclass, jobject jSurface, jfloat frameRate, in nativeWindowSetFrameRate() argument 177 return ANativeWindow_setFrameRate(window.mNw, frameRate, compatibility); in nativeWindowSetFrameRate() 180 return ANativeWindow_setFrameRateWithChangeStrategy(window.mNw, frameRate, compatibility, in nativeWindowSetFrameRate() 223 void surfaceControlSetFrameRate(JNIEnv*, jclass, jlong surfaceControlLong, jfloat frameRate, in surfaceControlSetFrameRate() argument 229 ASurfaceTransaction_setFrameRate(transaction, surfaceControl, frameRate, in surfaceControlSetFrameRate() 232 ASurfaceTransaction_setFrameRateWithChangeStrategy(transaction, surfaceControl, frameRate, in surfaceControlSetFrameRate()
|
/cts/tests/tests/media/encoder/src/android/media/encoder/cts/ |
D | VideoEncoderCapabilitiesTest.java | 83 public VideoEncoderCapabilitiesTest(String mediaType, int width, int height, int frameRate, in VideoEncoderCapabilitiesTest() argument 88 mFrameRate = frameRate; in VideoEncoderCapabilitiesTest()
|
D | VideoEncoderTest.java | 497 public void setFrameAndBitRates(int frameRate, int bitRate) { in setFrameAndBitRates() argument 498 mFrameRate = frameRate; in setFrameAndBitRates() 1199 int width, int height, int frameRate, int bitRate, boolean flexYUV) { in testDetailed() argument 1208 return test(width, height, frameRate, bitRate, true /* optional */, flexYUV, in testDetailed() 1212 public boolean testSupport(int width, int height, int frameRate, int bitRate) { in testSupport() argument 1213 return mVideoCaps.areSizeAndRateSupported(width, height, frameRate) && in testSupport() 1232 int width, int height, int frameRate, int bitRate, boolean optional, in test() argument 1242 processor.setFrameAndBitRates(frameRate, bitRate); in test() 1371 int frameRate = 30; in testEncode() local 1388 detailed(new Encoder[]{mEncHandle}, mWidth, mHeight, frameRate, bitRate, mFlexYuv); in testEncode() [all …]
|
/cts/tests/media/src/android/mediav2/cts/ |
D | VideoEncoderTest.java | 76 int width, int height, int frameRate, int colorFormat, int maxBFrames) { in getVideoEncoderCfgParams() argument 82 .setFrameRate(frameRate) in getVideoEncoderCfgParams() 98 int frameRate = (int) arg[4]; in prepareTestArgs() local 110 testArgs[1] = getVideoEncoderCfgParams(mediaType, bitRate, width, height, frameRate, in prepareTestArgs()
|
D | EncoderLevelTest.java | 73 int width, int height, int frameRate, int colorFormat, int[] profiles, int level) { in getVideoEncoderCfgParams() argument 80 .setFrameRate(frameRate) in getVideoEncoderCfgParams()
|
/cts/tests/tests/media/codec/src/android/media/codec/cts/ |
D | VideoCodecTestBase.java | 221 int frameRate; field in VideoCodecTestBase.EncoderOutputStreamParameters 307 int frameRate, in getDefaultEncodingParameterList() argument 330 params.frameCount = encodeSeconds * frameRate; in getDefaultEncodingParameterList() 331 params.frameRate = frameRate; in getDefaultEncodingParameterList() 361 int frameRate, in getDefaultEncodingParameters() argument 376 frameRate, in getDefaultEncodingParameters() 589 int frameRate, in decode() argument 667 inPresentationTimeUs = (inputFrameIndex * 1000000) / frameRate; in decode() 1460 format.setInteger(MediaFormat.KEY_FRAME_RATE, streamParams.frameRate); in encode() 1461 int syncFrameInterval = (streamParams.syncFrameInterval + streamParams.frameRate/2) / in encode() [all …]
|
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/ |
D | VideoDecoderPerfTest.java | 247 double frameRate = 0.; // default - 0 is used for using zero PTS offset in doDecode() local 249 frameRate = format.getInteger(MediaFormat.KEY_FRAME_RATE); in doDecode() 274 if (frameRate > 0.) { in doDecode() 277 (extractor.getSampleTime() - firstPTS) * frameRate / 1e6 - index; in doDecode() 297 frameRate = cap.getSupportedFrameRatesFor(w, h).getUpper(); in doDecode() 329 long presentationTimeUs = (long)((inputNum + sample.second) * 1e6 / frameRate); in doDecode()
|
/cts/tests/tests/media/common/src/android/media/cts/ |
D | NdkMediaCodec.java | 70 int frameRate, in AMediaCodecConfigure() argument 127 int frameRate = format.getInteger(MediaFormat.KEY_FRAME_RATE, -1); in configure() local 163 frameRate, in configure()
|
/cts/tests/tests/media/misc/src/android/media/misc/cts/ |
D | ResourceManagerRecorderActivity.java | 262 int frameRate = params.getPreviewFrameRate(); in recordVideoUsingCamera() local 290 mMediaRecorder.setVideoFrameRate(frameRate); in recordVideoUsingCamera() 299 + " Framerate: " + frameRate); in recordVideoUsingCamera()
|
/cts/tests/mediapc/common/src/android/mediapc/cts/common/ |
D | PerformanceClassEvaluator.java | 1018 public void setFrameRate(double frameRate) { in setFrameRate() argument 1019 this.setMeasuredValue(RequirementConstants.FRAME_RATE, frameRate); in setFrameRate() 1041 RequiredMeasurement<Double> frameRate = RequiredMeasurement in createR5_3__H_1_1_R() local 1055 RequirementConstants.R5_3__H_1_1, frameDropped, frameRate, testResolution); in createR5_3__H_1_1_R() 1073 RequiredMeasurement<Double> frameRate = RequiredMeasurement in createR5_3__H_1_2_R() local 1087 RequirementConstants.R5_3__H_1_2, frameDropped, frameRate, testResolution); in createR5_3__H_1_2_R() 1107 RequiredMeasurement<Double> frameRate = RequiredMeasurement in createR5_3__H_1_1_ST() local 1121 RequirementConstants.R5_3__H_1_1, frameDropped, frameRate, testResolution); in createR5_3__H_1_1_ST() 1140 RequiredMeasurement<Double> frameRate = RequiredMeasurement in createR5_3__H_1_1_U() local 1156 RequirementConstants.R5_3__H_1_1, frameDropped, frameRate, testResolution); in createR5_3__H_1_1_U() [all …]
|
/cts/tests/tests/mediatranscoding/src/android/media/mediatranscoding/cts/ |
D | MediaTranscodingManagerTest.java | 140 private static MediaFormat createMediaFormat(String mime, int width, int height, int frameRate, in createMediaFormat() argument 152 if (frameRate != INT_NOT_SET) { in createMediaFormat() 153 format.setInteger(MediaFormat.KEY_FRAME_RATE, frameRate); in createMediaFormat() 555 int frameRate) { in testVideoFormatResolverShouldTranscode() argument 559 MediaFormat mediaFormat = createMediaFormat(mime, width, height, frameRate, BIT_RATE); in testVideoFormatResolverShouldTranscode() 592 int frameRate) { in testVideoFormatResolverInvalidArgs() argument 596 MediaFormat mediaFormat = createMediaFormat(mime, width, height, frameRate, BIT_RATE); in testVideoFormatResolverInvalidArgs()
|
/cts/tests/tests/gameframerate/src/ |
D | GameFrameRateCtsActivity.java | 335 float frameRate = refreshRateRounded / divisor; in getExpectedFrameRate() local 336 if (frameRate > frameRateOverride) { in getExpectedFrameRate() 339 if (Math.abs(frameRateOverride - frameRate) <= divisorOverrideGap) { in getExpectedFrameRate() 340 divisorOverrideGap = Math.abs(frameRateOverride - frameRate); in getExpectedFrameRate()
|
/cts/tests/tests/media/recorder/src/android/media/recorder/cts/ |
D | MediaRecorderTest.java | 474 int frameRate = params.getPreviewFrameRate(); in recordVideoUsingCamera() local 483 mMediaRecorder.setVideoFrameRate(frameRate); in recordVideoUsingCamera() 507 int targetDurMs = timelapse? ((int) (durMs * (captureRate / frameRate))): durMs; in recordVideoUsingCamera() 510 checkTracksAndDuration(targetDurMs, hasVideo, hasAudio, fileName, frameRate); in recordVideoUsingCamera() 515 float frameRate) throws Exception { in checkTracksAndDuration() argument 530 float toleranceMs = RECORDED_DUR_TOLERANCE_FRAMES * (1000f / frameRate); in checkTracksAndDuration() 919 long startTimeOffset, int frameIndex, int frameRate) { in computePresentationTime() argument 920 return startTimeOffset + frameIndex * 1000000 / frameRate; in computePresentationTime() 1328 int frameRate = getMaxFrameRateForCodec(codec); in setupRecorder() local 1336 frameRate = params.getPreviewFrameRate(); in setupRecorder() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | AudioTap2ToneActivity.java | 410 public int frameRate; field in AudioTap2ToneActivity.TestResult 428 double latencyMillis = 1000 * latencySamples / result.frameRate; in processTest() 448 / result.frameRate; in processTest() 468 result.frameRate = sampleRate; in analyzeCapturedAudio()
|
/cts/tests/tests/media/common/jni/ |
D | NdkMediaCodec-jni.cpp | 87 jint frameRate, in Java_android_media_cts_NdkMediaCodec_AMediaCodecConfigure() argument 127 jint values[] = {width, height, colorFormat, bitRate, frameRate, iFrameInterval, lowLatency, in Java_android_media_cts_NdkMediaCodec_AMediaCodecConfigure()
|