Home
last modified time | relevance | path

Searched refs:Period (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/native/services/surfaceflinger/Scheduler/tests/
DFrameTargeterTest.cpp34 VsyncSource(Period period, Period minFramePeriod, TimePoint deadline) in VsyncSource()
37 const Period vsyncPeriod;
38 const Period framePeriod;
41 Period period() const override { return vsyncPeriod; } in period()
45 Period minFramePeriod() const override { return framePeriod; } in minFramePeriod()
56 bool wouldPresentEarly(Period minFramePeriod) const { in wouldPresentEarly()
109 const Period period;
110 const Period minFramePeriod;
176 constexpr Period kPeriod = kRefreshRate.getPeriod(); in TEST_F()
193 constexpr Period kPeriod = kRefreshRate.getPeriod(); in TEST_F()
[all …]
/frameworks/native/services/surfaceflinger/Scheduler/src/
DFrameTargeter.cpp31 TimePoint FrameTarget::pastVsyncTime(Period minFramePeriod) const { in pastVsyncTime()
34 return mExpectedPresentTime - Period::fromNs(minFramePeriod.ns() << shift); in pastVsyncTime()
37 FenceTimePtr FrameTarget::presentFenceForPastVsync(Period minFramePeriod) const { in presentFenceForPastVsync()
45 bool FrameTarget::wouldPresentEarly(Period minFramePeriod) const { in wouldPresentEarly()
74 const Period vsyncPeriod = vsyncSource.period(); in beginFrame()
75 const Period minFramePeriod = vsyncSource.minFramePeriod(); in beginFrame()
133 std::optional<TimePoint> FrameTargeter::computeEarliestPresentTime(Period minFramePeriod, in computeEarliestPresentTime()
/frameworks/native/services/surfaceflinger/Scheduler/include/scheduler/
DFrameTargeter.h58 TimePoint pastVsyncTime(Period minFramePeriod) const;
65 FenceTimePtr presentFenceForPastVsync(Period minFramePeriod) const;
81 bool wouldPresentEarly(Period minFramePeriod) const;
84 TimePoint previousFrameVsyncTime(Period minFramePeriod) const { in previousFrameVsyncTime()
118 inline bool targetsVsyncsAhead(Period minFramePeriod) const { in targetsVsyncsAhead()
156 std::optional<TimePoint> computeEarliestPresentTime(Period minFramePeriod,
DIVsyncSource.h25 virtual Period period() const = 0;
27 virtual Period minFramePeriod() const = 0;
DTime.h61 using Period = Duration; variable
78 template <typename Period, typename Rep = Duration::rep>
80 using D = std::chrono::duration<Rep, Period>; in ticks()
DFps.h56 constexpr Period getPeriod() const { return Period::fromNs(mPeriod); } in getPeriod()
/frameworks/native/services/surfaceflinger/
DTracedOrdinal.h30 template <class Rep, class Period>
31 bool signbit(std::chrono::duration<Rep, Period> v) { in signbit()
50 template <class Rep, class Period>
51 int64_t to_int64(std::chrono::duration<Rep, Period> v) { in to_int64()
/frameworks/native/services/surfaceflinger/Scheduler/
DVSyncPredictor.h52 Period minFramePeriod() const final EXCLUDES(mMutex);
99 VsyncTimeline(TimePoint knownVsync, Period idealPeriod, std::optional<Fps> renderRateOpt);
101 Model model, std::optional<Period> minFramePeriodOpt, nsecs_t vsyncTime,
114 const Period mIdealPeriod = Duration::fromNs(0);
134 Period minFramePeriodLocked() const REQUIRES(mMutex);
163 Period mIdealPeriod GUARDED_BY(mMutex) = Duration::fromNs(0);
DVsyncSchedule.cpp80 Period VsyncSchedule::period() const { in period()
81 return Period::fromNs(mTracker->currentPeriod()); in period()
84 Period VsyncSchedule::minFramePeriod() const { in minFramePeriod()
159 bool VsyncSchedule::addResyncSample(TimePoint timestamp, ftl::Optional<Period> hwcVsyncPeriod) { in addResyncSample()
166 hwcVsyncPeriod.transform(&Period::ns), in addResyncSample()
DVsyncSchedule.h64 Period period() const override;
67 Period minFramePeriod() const override;
81 bool addResyncSample(TimePoint timestamp, ftl::Optional<Period> hwcVsyncPeriod);
DVSyncPredictor.cpp123 Period VSyncPredictor::minFramePeriod() const { in minFramePeriod()
125 return Period::fromNs(currentPeriod()); in minFramePeriod()
132 Period VSyncPredictor::minFramePeriodLocked() const { in minFramePeriodLocked()
134 return Period::fromNs(slope * mNumVsyncsForFrame); in minFramePeriodLocked()
312 std::optional<Period> minFramePeriodOpt; in nextAnticipatedVSyncTimeFrom()
557 mIdealPeriod = Period::fromNs(idealPeriod()); in clearTimestamps()
630 VSyncPredictor::VsyncTimeline::VsyncTimeline(TimePoint knownVsync, Period idealPeriod, in VsyncTimeline()
645 Model model, std::optional<Period> minFramePeriodOpt, nsecs_t vsync, in nextAnticipatedVSyncTimeFrom()
DVSyncTracker.h72 virtual Period minFramePeriod() const = 0;
DVSyncReactor.cpp167 const std::optional<Period> newPeriod = mModePtrTransitioningTo in periodConfirmed()
169 : std::optional<Period>{}; in periodConfirmed()
DScheduler.h313 Period getPacesetterVsyncPeriod() const EXCLUDES(mDisplayLock) { in getPacesetterVsyncPeriod()
378 void setVsyncConfig(const VsyncConfig&, Period vsyncPeriod);
465 Period getVsyncPeriod(uid_t) override EXCLUDES(mDisplayLock);
/frameworks/base/core/java/android/util/
DRecurrenceRule.java33 import java.time.Period;
59 public final Period period;
61 public RecurrenceRule(ZonedDateTime start, ZonedDateTime end, Period period) { in RecurrenceRule()
80 return new RecurrenceRule(start, null, Period.ofMonths(1)); in buildRecurringMonthly()
261 public static String convertPeriod(Period period) { in convertPeriod()
265 public static Period convertPeriod(String period) { in convertPeriod()
266 return period != null ? Period.parse(period) : null; in convertPeriod()
/frameworks/native/include/ftl/details/
Dfuture.h76 template <class Rep, class Period>
77 std::future_status wait_for(const std::chrono::duration<Rep, Period>& timeout_duration) const {
103 template <class Rep, class Period>
104 std::future_status wait_for(const std::chrono::duration<Rep, Period>& timeout_duration) const {
/frameworks/native/services/surfaceflinger/tests/unittests/
DSurfaceFlinger_NotifyExpectedPresentTest.cpp126 static constexpr Period kVsyncPeriod =
127 Period::fromNs(static_cast<Fps>(240_Hz).getPeriodNsecs());
128 static constexpr Period kTimeoutNs = Period::fromNs(kFrameInterval5HzNs);
178 Period::fromNs(0)); in TEST_F()
197 Period::fromNs(0)); in TEST_F()
319 static constexpr Period kTimeoutNs = Period::fromNs(static_cast<Fps>(1_Hz).getPeriodNsecs()); in TEST_F()
332 static constexpr Period kVsyncPeriod = in TEST_F()
333 Period::fromNs(static_cast<Fps>(240_Hz).getPeriodNsecs()); in TEST_F()
DSurfaceFlinger_PowerHintTest.cpp48 constexpr Period kMockVsyncPeriod = 15ms; in TEST_F()
69 constexpr Period kMockVsyncPeriod = 15ms; in TEST_F()
DVsyncScheduleTest.cpp194 const Period period = (60_Hz).getPeriod(); in TEST_F()
205 const Period period = (60_Hz).getPeriod(); in TEST_F()
218 const Period period = (60_Hz).getPeriod(); in TEST_F()
233 const Period period = (60_Hz).getPeriod(); in TEST_F()
DVSyncDispatchRealtimeTest.cpp48 Period minFramePeriod() const final { return Period::fromNs(currentPeriod()); } in minFramePeriod()
/frameworks/base/core/java/android/telephony/
DSubscriptionPlan.java35 import java.time.Period;
247 public Builder(ZonedDateTime start, ZonedDateTime end, Period period) { in Builder()
280 public static Builder createRecurring(ZonedDateTime start, Period period) { in createRecurring()
291 return new Builder(start, null, Period.ofMonths(1)); in createRecurringMonthly()
298 return new Builder(start, null, Period.ofDays(7)); in createRecurringWeekly()
305 return new Builder(start, null, Period.ofDays(1)); in createRecurringDaily()
/frameworks/base/core/tests/coretests/src/android/util/
DRecurrenceRuleTest.java33 import java.time.Period;
64 Period.ofMonths(1)); in testSimpleMonth()
85 Period.ofDays(3)); in testSimpleDays()
135 Period.ofMonths(1)); in testSane()
/frameworks/native/services/surfaceflinger/tests/unittests/mock/
DMockVSyncTracker.cpp26 ON_CALL(*this, minFramePeriod()).WillByDefault(Return(Period::fromNs(0))); in VSyncTracker()
DMockVSyncTracker.h34 MOCK_METHOD(Period, minFramePeriod, (), (const, override));
/frameworks/base/core/java/com/android/internal/foldables/
Dfold_lock_setting_flags.aconfig15 description: "Feature flag for Folding Grace Period"

12