/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | LayerSnapshotTest.cpp | 316 EXPECT_EQ(getSnapshot(11)->frameRate.vote.rate.getIntValue(), 90); in TEST_F() 317 EXPECT_EQ(getSnapshot(11)->frameRate.vote.type, scheduler::FrameRateCompatibility::Exact); in TEST_F() 318 EXPECT_EQ(getSnapshot(111)->frameRate.vote.rate.getIntValue(), 90); in TEST_F() 319 EXPECT_EQ(getSnapshot(111)->frameRate.vote.type, scheduler::FrameRateCompatibility::Exact); in TEST_F() 320 EXPECT_EQ(getSnapshot(1)->frameRate.vote.rate.getIntValue(), 0); in TEST_F() 321 EXPECT_EQ(getSnapshot(1)->frameRate.vote.type, scheduler::FrameRateCompatibility::NoVote); in TEST_F() 341 EXPECT_EQ(getSnapshot(11)->frameRate.vote.rate.getIntValue(), 90); in TEST_F() 342 EXPECT_EQ(getSnapshot(11)->frameRate.vote.type, scheduler::FrameRateCompatibility::Exact); in TEST_F() 343 EXPECT_EQ(getSnapshot(111)->frameRate.vote.rate.getIntValue(), 90); in TEST_F() 344 EXPECT_EQ(getSnapshot(111)->frameRate.vote.type, scheduler::FrameRateCompatibility::Exact); in TEST_F() [all …]
|
D | SchedulerTest.cpp | 575 auto frameRate = Fps::fromPeriodNsecs(1000); in TEST_F() local 580 frameRate.getPeriodNsecs())})); in TEST_F() 596 vrrSelectorPtr->setActiveMode(kMode->getId(), frameRate); in TEST_F() 597 scheduler.setRenderRate(kMode->getPhysicalDisplayId(), frameRate, /*applyImmediately*/ false); in TEST_F() 615 frameRate = Fps::fromPeriodNsecs(2000); in TEST_F() 616 vrrSelectorPtr->setActiveMode(kMode->getId(), frameRate); in TEST_F() 617 scheduler.setRenderRate(kMode->getPhysicalDisplayId(), frameRate, /*applyImmediately*/ false); in TEST_F() 726 mScheduler->mutableAttachedChoreographers()[layer->getSequence()].frameRate.isValid()); in TEST_F() 757 mScheduler->mutableAttachedChoreographers()[layer->getSequence()].frameRate.isValid()); in TEST_F() 779 mScheduler->mutableAttachedChoreographers()[layer1->getSequence()].frameRate.isValid()); in TEST_F() [all …]
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | LayerHistory.cpp | 50 const auto frameRate = info.getSetFrameRateVote(); in isLayerActive() local 51 if (frameRate.isValid() && !frameRate.isNoVote() && frameRate.isVoteValidForMrr(isVrrDevice)) { in isLayerActive() 268 const auto frameRate = info->getSetFrameRateVote(); in partitionLayers() local 271 switch (frameRate.vote.type) { in partitionLayers() 318 } else if (frameRate.isValid() && frameRate.isVoteValidForMrr(isVrrDevice)) { in partitionLayers() 320 isValuelessVote ? 0_Hz : frameRate.vote.rate, in partitionLayers() 321 frameRate.vote.seamlessness, frameRate.category}); in partitionLayers() 324 frameRate.vote.rate.getIntValue()); in partitionLayers() 335 if (frameRate.isValid() && !frameRate.isVoteValidForMrr(isVrrDevice)) { in partitionLayers() 339 ftl::enum_string(frameRate.vote.type).c_str(), in partitionLayers() [all …]
|
D | FrameRateOverrideMappings.cpp | 62 for (const auto& [uid, frameRate] : mFrameRateOverridesFromBackdoor) { in getAllFrameRateOverrides() 63 overrides.emplace_back(FrameRateOverride{uid, frameRate.getValue()}); in getAllFrameRateOverrides() 67 for (const auto& [uid, frameRate] : mFrameRateOverridesFromGameManager) { in getAllFrameRateOverrides() 70 overrides.emplace_back(FrameRateOverride{uid, frameRate.getValue()}); in getAllFrameRateOverrides() 79 for (const auto& [uid, frameRate] : mFrameRateOverridesByContent) { in getAllFrameRateOverrides() 82 overrides.emplace_back(FrameRateOverride{uid, frameRate.getValue()}); in getAllFrameRateOverrides() 114 for (const auto& [uid, frameRate] : overrides) { in dump() 116 dumper.dump("(uid, frameRate)"sv, uid, frameRate); in dump()
|
D | Scheduler.cpp | 288 const auto frameRate = getFrameRateOverride(uid); in isVsyncValid() local 289 if (!frameRate.has_value()) { in isVsyncValid() 293 ATRACE_FORMAT("%s uid: %d frameRate: %s", __func__, uid, to_string(*frameRate).c_str()); in isVsyncValid() 294 return getVsyncSchedule()->getTracker().isVSyncInPhase(expectedVsyncTime.ns(), *frameRate); in isVsyncValid() 297 bool Scheduler::isVsyncInPhase(TimePoint expectedVsyncTime, Fps frameRate) const { in isVsyncInPhase() 298 return getVsyncSchedule()->getTracker().isVSyncInPhase(expectedVsyncTime.ns(), frameRate); in isVsyncInPhase() 320 const auto frameRate = getFrameRateOverride(uid); in getVsyncPeriod() local 321 if (!frameRate.has_value()) { in getVsyncPeriod() 325 const auto divisor = RefreshRateSelector::getFrameRateDivisor(refreshRate, *frameRate); in getVsyncPeriod() 381 connection->frameRate = iter->second.frameRate; in createDisplayEventConnection() [all …]
|
/frameworks/base/services/core/jni/ |
D | com_android_server_app_GameManagerService.cpp | 29 JNIEnv* env, jclass clazz, jint uid, jfloat frameRate) { in android_server_app_GameManagerService_nativeSetGameModeFrameRateOverride() argument 30 SurfaceComposerClient::setGameModeFrameRateOverride(uid, frameRate); in android_server_app_GameManagerService_nativeSetGameModeFrameRateOverride() 34 JNIEnv* env, jclass clazz, jint uid, jfloat frameRate) { in android_server_app_GameManagerService_nativeSetGameDefaultFrameRateOverride() argument 35 SurfaceComposerClient::setGameDefaultFrameRateOverride(uid, frameRate); in android_server_app_GameManagerService_nativeSetGameDefaultFrameRateOverride()
|
/frameworks/native/libs/gui/ |
D | FrameRateUtils.cpp | 34 bool ValidateFrameRate(float frameRate, int8_t compatibility, int8_t changeFrameRateStrategy, in ValidateFrameRate() argument 37 int floatClassification = std::fpclassify(frameRate); in ValidateFrameRate() 38 if (frameRate < 0 || floatClassification == FP_INFINITE || floatClassification == FP_NAN) { in ValidateFrameRate() 39 ALOGE("%s failed - invalid frame rate %f", functionName, frameRate); in ValidateFrameRate()
|
/frameworks/av/media/module/codecs/m4v_h263/enc/test/ |
D | m4v_h263_enc_test.cpp | 87 int32_t frameRate; in main() local 88 frameRate = atoi(argv[6]); in main() 89 if (frameRate > kMaxFrameRate || frameRate <= 0) { in main() 90 fprintf(stderr, "Unsupported frame rate %d\n", frameRate); in main() 148 encParams.encFrameRate[0] = frameRate; in main() 156 encParams.tickPerSrc = encParams.timeIncRes / frameRate; in main() 168 encParams.intraPeriod = (IDRFrameRefreshIntervalInSec * frameRate); in main() 224 vin.timestamp = (numFramesEncoded * 1000) / frameRate; // in ms. in main()
|
/frameworks/base/media/java/android/media/ |
D | EncoderProfiles.java | 173 return frameRate; in getFrameRate() 244 int frameRate, in VideoProfile() argument 253 this.frameRate = frameRate; in VideoProfile() 264 int frameRate, in VideoProfile() argument 267 this(codec, width, height, frameRate, bitrate, profile, in VideoProfile() 274 private int frameRate; field in EncoderProfiles.VideoProfile
|
D | SyncParams.java | 261 public SyncParams setFrameRate(float frameRate) { in setFrameRate() argument 262 mFrameRate = frameRate; in setFrameRate()
|
/frameworks/av/media/libstagefright/ |
D | CameraSource.cpp | 100 int32_t frameRate, in CreateFromCamera() argument 104 clientName, clientUid, clientPid, videoSize, frameRate, surface); in CreateFromCamera() 116 int32_t frameRate, in CameraSource() argument 140 videoSize, frameRate); in CameraSource() 267 int32_t frameRate) { in configureCamera() argument 295 if (frameRate != -1) { in configureCamera() 296 CHECK(frameRate > 0 && frameRate <= 120); in configureCamera() 302 snprintf(buf, 4, "%d", frameRate); in configureCamera() 305 frameRate, supportedFrameRates); in configureCamera() 310 params->setPreviewFrameRate(frameRate); in configureCamera() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/ |
D | MediaPlayerPerformance.java | 219 private boolean stressVideoRecord(int frameRate, int width, int height, int videoFormat, in stressVideoRecord() argument 234 mRecorder.setVideoFrameRate(frameRate); in stressVideoRecord() 453 int frameRate = MediaProfileReader in testH263RecordVideoOnlyMemoryUsage() local 455 assertTrue("H263 video recording frame rate", frameRate != -1); in testH263RecordVideoOnlyMemoryUsage() 457 assertTrue(stressVideoRecord(frameRate, mVideoWidth, mVideoHeight, in testH263RecordVideoOnlyMemoryUsage() 474 int frameRate = MediaProfileReader.getMaxFrameRateForCodec in testMpeg4RecordVideoOnlyMemoryUsage() local 476 assertTrue("MPEG4 video recording frame rate", frameRate != -1); in testMpeg4RecordVideoOnlyMemoryUsage() 478 assertTrue(stressVideoRecord(frameRate, mVideoWidth, mVideoHeight, in testMpeg4RecordVideoOnlyMemoryUsage() 496 int frameRate = MediaProfileReader in testRecordVideoAudioMemoryUsage() local 498 assertTrue("H263 video recording frame rate", frameRate != -1); in testRecordVideoAudioMemoryUsage() [all …]
|
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/ |
D | FrameReleaseQueue.java | 130 public FrameReleaseQueue(boolean render, int frameRate) { in FrameReleaseQueue() argument 135 this.mWaitTime = 1000 / frameRate; // wait time in milliseconds per frame in FrameReleaseQueue() 136 int waitTimeRemainder = 1000 % frameRate; in FrameReleaseQueue() 137 int gcd = gcd(frameRate, waitTimeRemainder); in FrameReleaseQueue() 138 this.mCorrectionLoopCount = frameRate / gcd; in FrameReleaseQueue()
|
D | Decoder.java | 93 boolean useFrameReleaseQueue, int frameRate) { in setupDecoder() argument 94 setupDecoder(surface, render, useFrameReleaseQueue, frameRate, -1); in setupDecoder() 97 boolean useFrameReleaseQueue, int frameRate, int numInFramesRequired) { in setupDecoder() argument 103 Log.i(TAG, "Using FrameReleaseQueue with frameRate " + frameRate); in setupDecoder() 104 mFrameReleaseQueue = new FrameReleaseQueue(mRender, frameRate); in setupDecoder()
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | CameraSource.h | 79 int32_t frameRate, 183 Size videoSize, int32_t frameRate, 248 Size videoSize, int32_t frameRate); 253 Size videoSize, int32_t frameRate); 269 int32_t frameRate); 275 int32_t frameRate);
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/ |
D | MediaRecorderTest.java | 76 private void recordVideo(int frameRate, int width, int height, in recordVideo() argument 88 mRecorder.setVideoFrameRate(frameRate); in recordVideo() 223 int frameRate, int captureRate, int width, int height, in recordVideoFromSurface() argument 237 recorder.setVideoFrameRate(frameRate); in recordVideoFromSurface() 369 private boolean invalidRecordSetting(int frameRate, int width, int height, in invalidRecordSetting() argument 380 mRecorder.setVideoFrameRate(frameRate); in invalidRecordSetting() 479 int frameRate = MediaProfileReader.getMaxFrameRateForCodec(codec); in testPortraitH263() local 480 recordVideo(frameRate, 352, 288, codec, in testPortraitH263() 555 int frameRate = MediaProfileReader.getMaxFrameRateForCodec(codec); in testSurfaceRecording() local 560 success = recordVideoFromSurface(frameRate, 0, 352, 288, codec, in testSurfaceRecording() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | SurfaceTexture.java | 116 @FloatRange(from = 0.0) float frameRate, in onSetFrameRate() 247 SetFrameRateArgs(@FloatRange(from = 0.0) float frameRate, in SetFrameRateArgs() 250 this.mFrameRate = frameRate; in SetFrameRateArgs() 487 @FloatRange(from = 0.0) float frameRate, in postOnSetFrameRateEventFromNative() 498 msg.obj = new SetFrameRateArgs(frameRate, compatibility, in postOnSetFrameRateEventFromNative()
|
/frameworks/av/media/libaaudio/examples/utils/ |
D | SineGenerator.h | 28 void setup(double frequency, double frameRate) { in setup() argument 29 mFrameRate = frameRate; in setup() 30 mPhaseIncrement = frequency * M_PI * 2 / frameRate; in setup()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
D | MediaRecorderStressTestRunner.java | 67 String frameRate = (String) icicle.get("frame_rate"); in onCreate() local 83 if (frameRate != null) { in onCreate() 84 mFrameRate = Integer.parseInt(frameRate); in onCreate()
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
D | CameraSettings.java | 209 public void setPreviewFrameRate(int frameRate) { in setPreviewFrameRate() argument 210 if (frameRate > 0) { in setPreviewFrameRate() 211 mPreviewFrameRate = frameRate; in setPreviewFrameRate() 212 mPreviewFpsRangeMax = frameRate; in setPreviewFrameRate() 213 mPreviewFpsRangeMin = frameRate; in setPreviewFrameRate()
|
/frameworks/native/libs/nativewindow/include/android/ |
D | native_window.h | 270 int32_t ANativeWindow_setFrameRate(ANativeWindow* window, float frameRate, int8_t compatibility) 343 int32_t ANativeWindow_setFrameRateWithChangeStrategy(ANativeWindow* window, float frameRate,
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/ |
D | MediaRecorderStressTest.java | 177 int frameRate; in recordVideoAndPlayback() local 188 frameRate = camcorderProfile.videoFrameRate; in recordVideoAndPlayback() 195 frameRate = MediaRecorderStressTestRunner.mFrameRate; in recordVideoAndPlayback() 224 Log.v(TAG, "frame rate : " + frameRate); in recordVideoAndPlayback() 235 mRecorder.setVideoFrameRate(frameRate); in recordVideoAndPlayback()
|
/frameworks/native/libs/gui/include/gui/ |
D | FrameRateUtils.h | 23 bool ValidateFrameRate(float frameRate, int8_t compatibility, int8_t changeFrameRateStrategy,
|
/frameworks/native/services/surfaceflinger/ |
D | Layer.cpp | 105 TimeStats::SetFrameRateVote frameRateToSetFrameRateVotePayload(Layer::FrameRate frameRate) { in frameRateToSetFrameRateVotePayload() argument 108 const auto frameRateCompatibility = [frameRate] { in frameRateToSetFrameRateVotePayload() 109 switch (frameRate.vote.type) { in frameRateToSetFrameRateVotePayload() 119 const auto seamlessness = [frameRate] { in frameRateToSetFrameRateVotePayload() 120 switch (frameRate.vote.seamlessness) { in frameRateToSetFrameRateVotePayload() 130 return TimeStats::SetFrameRateVote{.frameRate = frameRate.vote.rate.getValue(), in frameRateToSetFrameRateVotePayload() 1244 const auto frameRate = [&] { in propagateFrameRateForLayerTree() local 1249 if (mDrawingState.frameRate.isValid()) { in propagateFrameRateForLayerTree() 1250 return mDrawingState.frameRate; in propagateFrameRateForLayerTree() 1257 *transactionNeeded |= setFrameRateForLayerTreeLegacy(frameRate, now); in propagateFrameRateForLayerTree() [all …]
|
/frameworks/av/media/libstagefright/tests/HEVC/ |
D | HEVCUtilsUnitTest.cpp | 177 int16_t frameRate = hvcc[kHvccBoxMinSize - 1] | (hvcc[kHvccBoxMinSize] << 8); in TEST_P() local 178 if (frameRate != mFrameRate) in TEST_P() 179 cout << "[ WARN ] Expected frame rate: " << mFrameRate << " Found: " << frameRate in TEST_P()
|