/frameworks/native/services/surfaceflinger/ |
D | Fps.h | 36 explicit constexpr Fps(float fps) in Fps() argument 37 : fps(fps), period(fps == 0.0f ? 0 : static_cast<nsecs_t>(1e9f / fps)) {} in Fps() 39 constexpr float getValue() const { return fps; } in getValue() 43 bool equalsWithMargin(const Fps& other) const { return std::abs(fps - other.fps) < kMargin; } in equalsWithMargin() 46 bool lessThanWithMargin(const Fps& other) const { return fps + kMargin < other.fps; } in lessThanWithMargin() 48 bool greaterThanWithMargin(const Fps& other) const { return fps > other.fps + kMargin; } in greaterThanWithMargin() 54 bool isValid() const { return fps > 0.0f; } in isValid() 56 int getIntValue() const { return static_cast<int>(std::round(fps)); } in getIntValue() 61 return left.fps < right.fps; in comparesLess() 81 inline friend std::string to_string(const Fps& fps) { in to_string() argument [all …]
|
D | RefreshRateOverlay.cpp | 213 RefreshRateOverlay::getOrCreateBuffers(uint32_t fps) { in getOrCreateBuffers() argument 214 if (mBufferCache.find(fps) == mBufferCache.end()) { in getOrCreateBuffers() 219 fps = std::max(fps, mLowFps); in getOrCreateBuffers() 220 fps = std::min(fps, mHighFps); in getOrCreateBuffers() 221 const auto fpsScale = static_cast<float>(fps - mLowFps) / rangeLength; in getOrCreateBuffers() 227 auto buffers = SevenSegmentDrawer::drawNumber(fps, color, mShowSpinner); in getOrCreateBuffers() 237 mBufferCache.emplace(fps, textures); in getOrCreateBuffers() 240 return mBufferCache[fps]; in getOrCreateBuffers() 257 void RefreshRateOverlay::changeRefreshRate(const Fps& fps) { in changeRefreshRate() argument 258 mCurrentFps = fps.getIntValue(); in changeRefreshRate()
|
/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/view/ |
D | SurfaceControlFpsListener.java | 57 public abstract void onFpsReported(float fps); in onFpsReported() argument 86 @NonNull SurfaceControlFpsListener listener, float fps) { in dispatchOnFpsReported() argument 87 listener.onFpsReported(fps); in dispatchOnFpsReported()
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | FpsTest.cpp | 88 for (float fps = 30.0f; fps < 31.0f; fps += kStep) { in TEST() local 89 const Fps left(fps); in TEST() 90 const Fps right(fps + kStep); in TEST()
|
D | LayerInfoTest.cpp | 36 void setLastRefreshRate(Fps fps) { in setLastRefreshRate() argument 37 layerInfo.mLastRefreshRate.reported = fps; in setLastRefreshRate() 38 layerInfo.mLastRefreshRate.calculated = fps; in setLastRefreshRate()
|
D | RefreshRateConfigsTest.cpp | 954 for (float fps = 23.0f; fps < 25.0f; fps += 0.1f) { in TEST_F() local 955 lr.desiredRefreshRate = Fps(fps); in TEST_F() 958 EXPECT_EQ(mExpected60Config, refreshRate) << fps << "Hz chooses " << refreshRate.getName(); in TEST_F() 972 for (float fps = 23.0f; fps < 25.0f; fps += 0.1f) { in TEST_F() local 973 lr.desiredRefreshRate = Fps(fps); in TEST_F() 976 EXPECT_EQ(mExpected60Config, refreshRate) << fps << "Hz chooses " << refreshRate.getName(); in TEST_F() 1029 for (float fps = 75.0f; fps < 100.0f; fps += 0.1f) { in TEST_F() local 1030 lr.desiredRefreshRate = Fps(fps); in TEST_F() 1033 EXPECT_EQ(mExpected90Config, refreshRate) << fps << "Hz chooses " << refreshRate.getName(); in TEST_F() 1677 auto getFrameRate = [&](LayerVoteType voteType, Fps fps, bool touchActive = false, in TEST_F() [all …]
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | VsyncConfiguration.h | 43 virtual VsyncConfigSet getConfigsForRefreshRate(Fps fps) const = 0; 46 virtual void setRefreshRateFps(Fps fps) = 0; 62 VsyncConfigSet getConfigsForRefreshRate(Fps fps) const override EXCLUDES(mLock); 78 void setRefreshRateFps(Fps fps) override EXCLUDES(mLock) { in setRefreshRateFps() argument 80 mRefreshRateFps = fps; in setRefreshRateFps() 89 VsyncConfigSet getConfigsForRefreshRateLocked(Fps fps) const REQUIRES(mLock);
|
D | LayerHistory.cpp | 61 void trace(const LayerInfo& info, LayerHistory::LayerVoteType type, int fps) { in trace() argument 67 traceType(LayerHistory::LayerVoteType::Heuristic, fps); in trace() 68 traceType(LayerHistory::LayerVoteType::ExplicitDefault, fps); in trace() 69 traceType(LayerHistory::LayerVoteType::ExplicitExactOrMultiple, fps); in trace() 70 traceType(LayerHistory::LayerVoteType::ExplicitExact, fps); in trace() 74 ALOGD("%s: %s @ %d Hz", __FUNCTION__, info.getName().c_str(), fps); in trace() 168 summary.push_back({info->getName(), info->getOwnerUid(), vote.type, vote.fps, in summarize() 172 trace(*info, vote.type, vote.fps.getIntValue()); in summarize()
|
D | RefreshRateConfigs.h | 67 RefreshRate(DisplayModeId modeId, DisplayModePtr mode, Fps fps, ConstructorTag) in RefreshRate() argument 68 : modeId(modeId), mode(mode), fps(std::move(fps)) {} in RefreshRate() 73 std::string getName() const { return to_string(fps); } in getName() 74 Fps getFps() const { return fps; } in getFps() 79 return minRefreshRate.lessThanOrEqualWithMargin(fps) && in inPolicy() 80 fps.lessThanOrEqualWithMargin(maxRefreshRate); in inPolicy() 105 const Fps fps{0.0f};
|
D | RefreshRateStats.h | 110 uint32_t fps = 0; in flushTime() local 117 fps = static_cast<uint32_t>(mCurrentRefreshRate.getIntValue()); in flushTime() 121 mTimeStats.recordRefreshRate(fps, timeElapsed); in flushTime()
|
D | VsyncConfiguration.cpp | 45 PhaseOffsets::VsyncConfigSet VsyncConfiguration::getConfigsForRefreshRate(Fps fps) const { in getConfigsForRefreshRate() 47 return getConfigsForRefreshRateLocked(fps); in getConfigsForRefreshRate() 50 PhaseOffsets::VsyncConfigSet VsyncConfiguration::getConfigsForRefreshRateLocked(Fps fps) const { in getConfigsForRefreshRateLocked() 51 const auto iter = mOffsetsCache.find(fps); in getConfigsForRefreshRateLocked() 56 const auto offset = constructOffsets(fps.getPeriodNsecs()); in getConfigsForRefreshRateLocked() 57 mOffsetsCache[fps] = offset; in getConfigsForRefreshRateLocked()
|
/frameworks/base/tests/TouchLatency/app/src/main/java/com/prefabulated/touchlatency/ |
D | TouchLatencyActivity.java | 141 float fps = 0f; in drawBall() local 149 fps = 1f * SEC_TO_NANOS / tDiff; in drawBall() 153 if (Math.abs(mFps - fps) > FPS_UPDATE_THRESHOLD) { in drawBall() 154 mFps = fps; in drawBall() 273 int fps = (int) displayMode.getRefreshRate(); in updateDisplayMode() local 274 menuItem.setTitle(fps + "hz"); in updateDisplayMode()
|
/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/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()
|
/frameworks/base/core/jni/ |
D | android_view_SurfaceControlFpsListener.cpp | 44 binder::Status onFpsReported(float fps) override { in onFpsReported() 55 static_cast<jfloat>(fps)); in onFpsReported()
|
/frameworks/native/libs/gui/aidl/android/gui/ |
D | IFpsListener.aidl | 23 void onFpsReported(float fps); in onFpsReported() argument
|
/frameworks/native/libs/nativedisplay/ |
D | ADisplay.cpp | 60 float fps{0.0}; member 242 maxFps = std::max(maxFps, impl->configs[i].fps); in ADisplay_getMaxSupportedFps() 307 return reinterpret_cast<DisplayConfigImpl*>(config)->fps; in ADisplayConfig_getFps()
|
/frameworks/av/media/libmedia/aidl/android/ |
D | IGraphicBufferSource.aidl | 31 void setTimeLapseConfig(double fps, double captureFps); in setTimeLapseConfig() argument
|
/frameworks/av/media/libstagefright/ |
D | VideoFrameSchedulerBase.cpp | 67 void VideoFrameSchedulerBase::PLL::reset(float fps) { in reset() argument 74 if (fps <= 0.f) { in reset() 78 ALOGV("reset at %.1f fps", fps); in reset() 79 mPeriod = (nsecs_t)(1e9 / fps + 0.5); in reset()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | SurfaceControlFpsListenerTest.java | 37 public void onFpsReported(float fps) { in registersAndUnregisters()
|
/frameworks/av/media/codec2/sfplugin/ |
D | Omx2IGraphicBufferSource.cpp | 109 double fps, double captureFps) { in setTimeLapseConfig() argument 110 return BnStatus::fromStatusT(mBase->setTimeLapseConfig(fps, captureFps)); in setTimeLapseConfig()
|
D | Omx2IGraphicBufferSource.h | 35 BnStatus setTimeLapseConfig(double fps, double captureFps) override;
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | VideoFrameSchedulerBase.h | 62 void reset(float fps = -1);
|