/frameworks/libs/systemui/toruslib/torus-core/src/main/java/com/google/android/torus/core/power/ |
D | FpsThrottler.kt | 40 private var fps: Float = FPS_60 variable in com.google.android.torus.core.power.FpsThrottler 43 private var frameTimeMillis: Double = 1000.0 / fps.toDouble() 53 frameTimeMillis = 1000.0 / fps.toDouble() in updateFrameTime() 63 fun updateFps(fps: Float) { in updateFps() 64 if (fps <= 0f) { in updateFps() 68 this.fps = fps in updateFps() 105 return (deltaMillis >= frameTimeMillis) && (fps > 0f) in canRender()
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | FpsTest.cpp | 35 const Fps fps = Fps::fromPeriodNsecs(16'666'667); in TEST() local 36 EXPECT_TRUE(fps.isValid()); in TEST() 37 EXPECT_EQ(fps, 60_Hz); in TEST() 72 const auto fps = Fps::fromPeriodNsecs(16'666'665); in TEST() local 74 EXPECT_TRUE((FpsRange{60.000004_Hz, 60.000004_Hz}.includes(fps))); in TEST() 75 EXPECT_TRUE((FpsRange{59_Hz, 60.1_Hz}.includes(fps))); in TEST() 76 EXPECT_FALSE((FpsRange{75_Hz, 90_Hz}.includes(fps))); in TEST() 77 EXPECT_FALSE((FpsRange{60.0011_Hz, 90_Hz}.includes(fps))); in TEST() 78 EXPECT_FALSE((FpsRange{50_Hz, 59.998_Hz}.includes(fps))); in TEST()
|
D | LayerInfoTest.cpp | 51 void setLastRefreshRate(Fps fps) { in setLastRefreshRate() argument 52 layerInfo.mLastRefreshRate.reported = fps; in setLastRefreshRate() 53 layerInfo.mLastRefreshRate.calculated = fps; in setLastRefreshRate() 201 .fps = 20_Hz}; in TEST_F() 208 ASSERT_EQ(actualVotes[0].fps, vote.fps); in TEST_F() 215 .fps = 20_Hz, in TEST_F() 227 ASSERT_EQ(actualVotes[1].fps, vote.fps); in TEST_F() 243 ASSERT_EQ(actualVotes[0].fps, 0_Hz); in TEST_F() 256 ASSERT_EQ(actualVotes[0].fps, 0_Hz); in TEST_F() 269 ASSERT_EQ(actualVotes[0].fps, vote.fps); in TEST_F()
|
D | RefreshRateSelectorTest.cpp | 1040 for (float fps = 23.0f; fps < 25.0f; fps += 0.1f) { in TEST_P() local 1041 lr.desiredRefreshRate = Fps::fromValue(fps); in TEST_P() 1056 for (float fps = 23.0f; fps < 25.0f; fps += 0.1f) { in TEST_P() local 1057 lr.desiredRefreshRate = Fps::fromValue(fps); in TEST_P() 1098 for (float fps = 75.0f; fps < 100.0f; fps += 0.1f) { in TEST_P() local 1099 lr.desiredRefreshRate = Fps::fromValue(fps); in TEST_P() 1288 << "Expected " << expectedRefreshRates[i].fps.getIntValue() << " (" in TEST_P() 1290 << " Actual " << refreshRates[i].frameRateMode.fps.getIntValue() << " (" in TEST_P() 1317 << "Expected " << expectedRefreshRates[i].fps.getIntValue() << " (" in TEST_P() 1319 << " Actual " << refreshRates[i].frameRateMode.fps.getIntValue() << " (" in TEST_P() [all …]
|
D | EventThreadTest.cpp | 738 const Fps fps = mode->getPeakFps() / 2; in TEST_F() local 740 mThread->onModeChanged({fps, ftl::as_non_null(mode)}); in TEST_F() 741 expectConfigChangedEventReceivedByConnection(INTERNAL_DISPLAY_ID, 7, fps.getPeriodNsecs()); in TEST_F() 752 const Fps fps = mode->getPeakFps() / 2; in TEST_F() local 754 mThread->onModeChanged({fps, ftl::as_non_null(mode)}); in TEST_F() 755 expectConfigChangedEventReceivedByConnection(EXTERNAL_DISPLAY_ID, 5, fps.getPeriodNsecs()); in TEST_F() 766 const Fps fps = mode->getPeakFps() / 2; in TEST_F() local 767 mThread->onModeChanged({fps, ftl::as_non_null(mode)}); in TEST_F() 768 expectConfigChangedEventReceivedByConnection(DISPLAY_ID_64BIT, 7, fps.getPeriodNsecs()); in TEST_F() 783 const Fps fps = mode->getPeakFps() / 2; in TEST_F() local [all …]
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | RefreshRateSelector.cpp | 164 Fps fps; in createFrameRateModes() member 171 if (a.fps != b.fps) { in createFrameRateModes() 172 return a.fps < b.fps; in createFrameRateModes() 194 const auto fps = vsyncRate / divisor; in createFrameRateModes() local 196 if (divisor > 1 && fps < kMinSupportedFrameRate) { in createFrameRateModes() 201 !renderRange.includes(fps)) { in createFrameRateModes() 207 !isNativeRefreshRate(fps)) { in createFrameRateModes() 212 ratesMap.try_emplace(Key{fps, mode->getGroup()}, it); in createFrameRateModes() 214 ALOGV("%s: including %s (%s(%s))", __func__, to_string(fps).c_str(), in createFrameRateModes() 230 __func__, to_string(fps).c_str(), to_string(peakFps).c_str(), in createFrameRateModes() [all …]
|
D | VsyncConfiguration.h | 42 virtual VsyncConfigSet getConfigsForRefreshRate(Fps fps) const = 0; 45 virtual void setRefreshRateFps(Fps fps) = 0; 61 VsyncConfigSet getConfigsForRefreshRate(Fps fps) const override EXCLUDES(mLock); 77 void setRefreshRateFps(Fps fps) override EXCLUDES(mLock) { in setRefreshRateFps() argument 79 mRefreshRateFps = fps; in setRefreshRateFps() 88 VsyncConfigSet getConfigsForRefreshRateLocked(Fps fps) const REQUIRES(mLock);
|
D | RefreshRateStats.h | 88 for (const auto& [fps, time] : mFpsTotalTimes) { in getTotalTimes() 89 const auto string = to_string(fps); in getTotalTimes() 124 uint32_t fps = 0; in flushTime() local 138 fps = static_cast<uint32_t>(mCurrentRefreshRate.getIntValue()); in flushTime() 142 mTimeStats.recordRefreshRate(fps, timeElapsed); in flushTime()
|
D | LayerHistory.cpp | 73 void trace(const LayerInfo& info, LayerHistory::LayerVoteType type, int fps) { in trace() argument 79 traceType(LayerHistory::LayerVoteType::Heuristic, fps); in trace() 80 traceType(LayerHistory::LayerVoteType::ExplicitDefault, fps); in trace() 81 traceType(LayerHistory::LayerVoteType::ExplicitExactOrMultiple, fps); in trace() 82 traceType(LayerHistory::LayerVoteType::ExplicitExact, fps); in trace() 87 ALOGD("%s: %s @ %d Hz", __FUNCTION__, info.getName().c_str(), fps); in trace() 226 to_string(vote.fps).c_str(), categoryString.c_str(), weight); in summarize() 227 summary.push_back({info->getName(), info->getOwnerUid(), vote.type, vote.fps, in summarize() 232 trace(*info, vote.type, vote.fps.getIntValue()); in summarize()
|
D | VsyncConfiguration.cpp | 45 VsyncConfigSet VsyncConfiguration::getConfigsForRefreshRate(Fps fps) const { in getConfigsForRefreshRate() 47 return getConfigsForRefreshRateLocked(fps); in getConfigsForRefreshRate() 50 VsyncConfigSet VsyncConfiguration::getConfigsForRefreshRateLocked(Fps fps) const { in getConfigsForRefreshRateLocked() 51 if (const auto offsets = mOffsetsCache.get(fps)) { in getConfigsForRefreshRateLocked() 55 const auto [it, _] = mOffsetsCache.try_emplace(fps, constructOffsets(fps.getPeriodNsecs())); in getConfigsForRefreshRateLocked()
|
D | Scheduler.cpp | 312 const auto refreshRate = frameRateMode.fps; in getVsyncPeriod() 344 frameRateMode.fps); in onExpectedPresentTimePosted() 586 LOG_ALWAYS_FATAL_IF(renderFrameRate != mode.fps, in setRenderRate() 589 to_string(mode.fps).c_str(), to_string(renderFrameRate).c_str(), id.value); in setRenderRate() 591 ALOGV("%s %s (%s)", __func__, to_string(mode.fps).c_str(), in setRenderRate() 720 updateAttachedChoreographers(*hierarchy, modeOpt->fps); in chooseRefreshRateForContent() 995 const surfaceflinger::frontend::RequestedLayerState& layer, Fps fps) { in updateAttachedChoreographersFrameRate() argument 1006 layerChoreographers.frameRate = fps; in updateAttachedChoreographersFrameRate() 1007 ATRACE_FORMAT_INSTANT("%s: %s for %s", __func__, to_string(fps).c_str(), layer.name.c_str()); in updateAttachedChoreographersFrameRate() 1008 ALOGV("%s: %s for %s", __func__, to_string(fps).c_str(), layer.name.c_str()); in updateAttachedChoreographersFrameRate() [all …]
|
/frameworks/native/services/surfaceflinger/Scheduler/include/scheduler/ |
D | FrameRateMode.h | 28 Fps fps; // The render frame rate, which is a divisor of modePtr->getFps(). member 32 return isApproxEqual(fps, other.fps) && modePtr == other.modePtr; 40 to_string(mode.fps).c_str(), in to_string()
|
D | Fps.h | 170 constexpr Fps operator/(Fps fps, unsigned divisor) { 171 return Fps::fromPeriodNsecs(fps.getPeriodNsecs() * static_cast<nsecs_t>(divisor)); 174 inline bool FpsRange::includes(Fps fps) const { in includes() argument 176 return min <= fps && fps <= max; in includes() 193 inline std::string to_string(Fps fps) { in to_string() argument 194 return base::StringPrintf("%.2f Hz", fps.getValue()); in to_string() 197 inline std::ostream& operator<<(std::ostream& stream, Fps fps) { 198 return stream << to_string(fps);
|
/frameworks/base/tests/GamePerformance/src/android/gameperformance/ |
D | BaseTest.java | 124 double fps = 0.0f; in run() local 127 fps = getActivity().getFps(); in run() 128 if (fps < obviousBadFps) { in run() 137 " " + getUnitName() + " - " + DOUBLE_FORMATTER.format(fps) + " FPS."); in run() 138 if (fps < passFps) { in run()
|
/frameworks/base/core/java/android/window/ |
D | TaskFpsCallback.java | 43 public abstract void onFpsReported(float fps); in onFpsReported() argument 52 @NonNull ITaskFpsCallback listener, float fps) { in dispatchOnFpsReported() argument 54 listener.onFpsReported(fps); in dispatchOnFpsReported()
|
/frameworks/av/services/camera/virtualcamera/ |
D | VirtualCameraTestInstance.cc | 62 std::shared_ptr<ANativeWindow> nativeWindow, int fps) in TestPatternRenderer() argument 63 : mFps(fps), mNativeWindow(nativeWindow) { in TestPatternRenderer() 118 VirtualCameraTestInstance::VirtualCameraTestInstance(const int fps) in VirtualCameraTestInstance() argument 119 : mFps(fps) { in VirtualCameraTestInstance()
|
D | VirtualCameraTestInstance.h | 37 TestPatternRenderer(std::shared_ptr<ANativeWindow> nativeWindow, int fps); 66 explicit VirtualCameraTestInstance(int fps = 30);
|
/frameworks/base/libs/hostgraphics/ |
D | ADisplay.cpp | 40 float fps{60.0}; member 119 return impl->config.fps; in ADisplay_getMaxSupportedFps() 148 return reinterpret_cast<DisplayConfigImpl*>(config)->fps; in ADisplayConfig_getFps()
|
/frameworks/base/tests/ChoreographerTests/src/main/java/android/view/choreographertests/ |
D | AttachedChoreographerTest.java | 408 float fps = displayRefreshRate / divisor; in testChoreographerDivisorRefreshRate() 409 long callbackDurationMs = Math.round(1000 / fps); in testChoreographerDivisorRefreshRate() 411 transaction.setFrameRate(sc, fps, Surface.FRAME_RATE_COMPATIBILITY_FIXED_SOURCE) in testChoreographerDivisorRefreshRate() 474 float fps = displayRefreshRate / divisor; in testChoreographerAttachedAfterSetFrameRate() 475 long callbackDurationMs = Math.round(1000 / fps); in testChoreographerAttachedAfterSetFrameRate() 477 transaction.setFrameRate(sc, fps, Surface.FRAME_RATE_COMPATIBILITY_FIXED_SOURCE) in testChoreographerAttachedAfterSetFrameRate() 505 float fps = 61.7f; // hopefully not a divisor in testChoreographerNonDivisorFixedSourceRefreshRate() 508 transaction.setFrameRate(sc, fps, Surface.FRAME_RATE_COMPATIBILITY_FIXED_SOURCE) in testChoreographerNonDivisorFixedSourceRefreshRate() 531 float fps = 61.7f; // hopefully not a divisor in testChoreographerNonDivisorRefreshRate() 532 float expectedFps = displayRefreshRate / Math.round(displayRefreshRate / fps); in testChoreographerNonDivisorRefreshRate() [all …]
|
/frameworks/base/services/core/java/com/android/server/display/mode/ |
D | VoteSummary.java | 183 void disableModeSwitching(float fps) { in disableModeSwitching() argument 184 minPhysicalRefreshRate = maxPhysicalRefreshRate = fps; in disableModeSwitching() 185 maxRenderFrameRate = Math.min(maxRenderFrameRate, fps); in disableModeSwitching() 192 void disableRenderRateSwitching(float fps) { in disableRenderRateSwitching() argument 195 if (!isRenderRateAchievable(fps)) { in disableRenderRateSwitching() 196 minRenderFrameRate = maxRenderFrameRate = fps; in disableRenderRateSwitching()
|
/frameworks/base/tests/TouchLatency/app/src/main/java/com/prefabulated/touchlatency/ |
D | TouchLatencyView.java | 134 float fps = 0f; in drawBall() local 142 fps = 1f * SEC_TO_NANOS / tDiff; in drawBall() 146 if (Math.abs(mFps - fps) > FPS_UPDATE_THRESHOLD) { in drawBall() 147 mFps = fps; in drawBall()
|
/frameworks/av/media/libmedia/omx/1.0/ |
D | WGraphicBufferSource.cpp | 56 double fps, double captureFps) { in setTimeLapseConfig() argument 57 return toBinderStatus(mBase->setTimeLapseConfig(fps, captureFps)); in setTimeLapseConfig()
|
/frameworks/native/opengl/tests/testFramerate/src/com/android/testframerate/ |
D | TestFramerateView.java | 53 float fps = 1000000.f / elapsedTime_us; in registerTime() local 55 Log.v(TAG, "Long frame: " + elapsedTime_us/1000.f + " ms (" + fps + " fps)"); in registerTime()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_wm_TaskFpsCallbackController.cpp | 43 binder::Status onFpsReported(float fps) override { in onFpsReported() 54 static_cast<jfloat>(fps)); in onFpsReported()
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/ |
D | CameraSource.java | 316 private int[] findClosestFpsRange(int fps, Camera.Parameters params) { in findClosestFpsRange() argument 320 if (range[Camera.Parameters.PREVIEW_FPS_MIN_INDEX] < fps*1000 && in findClosestFpsRange() 321 range[Camera.Parameters.PREVIEW_FPS_MAX_INDEX] > fps*1000 && in findClosestFpsRange() 329 if (mLogVerbose) Log.v(TAG, "Requested fps: " + fps in findClosestFpsRange()
|