Home
last modified time | relevance | path

Searched refs:period (Results 1 – 25 of 82) sorted by relevance

1234

/frameworks/base/core/java/android/util/
DRecurrenceRule.java56 public final Period period; field in RecurrenceRule
58 public RecurrenceRule(ZonedDateTime start, ZonedDateTime end, Period period) { in RecurrenceRule() argument
61 this.period = period; in RecurrenceRule()
83 period = convertPeriod(source.readString()); in RecurrenceRule()
95 dest.writeString(convertPeriod(period)); in writeToParcel()
104 period = convertPeriod(BackupUtils.readString(in)); in RecurrenceRule()
115 BackupUtils.writeString(out, convertPeriod(period)); in writeToStream()
123 .append(" period=").append(period) in toString()
129 return Objects.hash(start, end, period); in hashCode()
138 && Objects.equals(period, other.period); in equals()
[all …]
/frameworks/base/core/java/android/content/
DPeriodicSync.java37 public final long period; field in PeriodicSync
55 this.period = periodInSeconds; in PeriodicSync()
68 this.period = other.period; in PeriodicSync()
77 long period, long flexTime) { in PeriodicSync() argument
81 this.period = period; in PeriodicSync()
89 this.period = in.readLong(); in PeriodicSync()
103 dest.writeLong(period); in writeToParcel()
130 && period == other.period in equals()
162 ". period: " + period + "s " + in toString()
/frameworks/av/media/libaaudio/src/utility/
DMonotonicCounter.h99 void roundUp64(int32_t period) { in roundUp64() argument
100 if (period > 0) { in roundUp64()
101 int64_t numPeriods = (mCounter64 + period - 1) / period; in roundUp64()
102 mCounter64 = numPeriods * period; in roundUp64()
/frameworks/native/services/surfaceflinger/Scheduler/
DVSyncReactor.cpp78 nsecs_t period, nsecs_t offset, nsecs_t notBefore) in CallbackRepeater() argument
85 mPeriod(period), in CallbackRepeater()
104 void setPeriod(nsecs_t period) { in setPeriod() argument
106 if (period == mPeriod) { in setPeriod()
109 mPeriod = period; in setPeriod()
250 void VSyncReactor::setPeriod(nsecs_t period) { in setPeriod() argument
251 ATRACE_INT64("VSR-setPeriod", period); in setPeriod()
255 if (!mSupportKernelIdleTimer && period == getPeriod()) { in setPeriod()
258 startPeriodTransition(period); in setPeriod()
288 auto const period = mPeriodTransitioningTo ? *mPeriodTransitioningTo : getPeriod(); in periodConfirmed() local
[all …]
DLayerInfo.cpp40 const nsecs_t period = lastPresentTime - mLastPresentTime; in setLastPresentTime() local
43 if (period > MAX_ACTIVE_LAYER_PERIOD_NS.count()) return; in setLastPresentTime()
45 const float fps = std::min(1e9f / period, mHighRefreshRate); in setLastPresentTime()
DDispSyncSource.cpp72 const nsecs_t period = mDispSync->getPeriod(); in setPhaseOffset() local
75 const int numPeriods = phaseOffset / period; in setPhaseOffset()
76 phaseOffset -= numPeriods * period; in setPhaseOffset()
DVSyncPredictor.cpp227 void VSyncPredictor::setPeriod(nsecs_t period) { in setPeriod() argument
236 mIdealPeriod = period; in setPeriod()
237 if (mRateMap.find(period) == mRateMap.end()) { in setPeriod()
238 mRateMap[mIdealPeriod] = {period, 0}; in setPeriod()
DDispSync.cpp81 void updateModel(nsecs_t period, nsecs_t phase, nsecs_t referenceTime) { in updateModel() argument
88 if (mPeriod != 0 && mPeriod != period && mReferenceTime != 0) { in updateModel()
96 mPeriod = period; in updateModel()
656 void DispSync::setPeriod(nsecs_t period) { in setPeriod() argument
660 period != mIntendedPeriod || (period == mIntendedPeriod && mPendingPeriod != 0); in setPeriod()
663 mPendingPeriod = period; in setPeriod()
/frameworks/native/services/surfaceflinger/tests/unittests/
DVSyncReactorTest.cpp58 void setPeriod(nsecs_t period) final { mTracker->setPeriod(period); } in setPeriod() argument
163 ON_CALL(*mMockTracker, currentPeriod()).WillByDefault(Return(period)); in VSyncReactorTest()
173 static constexpr nsecs_t period = 10000; member in android::scheduler::VSyncReactorTest
329 EXPECT_TRUE(mReactor.addResyncSample(sampleTime += period, std::nullopt, &periodFlushed)); in TEST_F()
332 EXPECT_TRUE(mReactor.addResyncSample(sampleTime += period, std::nullopt, &periodFlushed)); in TEST_F()
335 mReactor.setPeriod(period); in TEST_F()
336 EXPECT_FALSE(mReactor.addResyncSample(sampleTime += period, std::nullopt, &periodFlushed)); in TEST_F()
347 EXPECT_TRUE(mReactor.addResyncSample(sampleTime += period, std::nullopt, &periodFlushed)); in TEST_F()
349 EXPECT_TRUE(mReactor.addResyncSample(sampleTime += period, std::nullopt, &periodFlushed)); in TEST_F()
366 nsecs_t skewyPeriod = period >> 1; in TEST_F()
[all …]
/frameworks/av/media/libstagefright/
DVideoFrameSchedulerBase.cpp95 nsecs_t period = VideoFrameSchedulerBase::kNanosIn1s / 60;
97 mTimes[1] = period;
98 mTimes[2] = period * 3;
99 mTimes[3] = period * 4;
100 mTimes[4] = period * 7;
101 mTimes[5] = period * 8;
102 mTimes[6] = period * 10;
103 mTimes[7] = period * 12;
106 fit(0, period * 12 / 7, 8, &a, &b, &err);
123 nsecs_t phase, nsecs_t period, size_t numSamplesToUse, in fit() argument
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/util/
DBurnInHelper.kt47 private fun zigzag(x: Float, amplitude: Float, period: Float): Float { in zigzag()
48 val xprime = x % period / (period / 2) in zigzag()
/frameworks/base/core/tests/SvcMonitor/src/com/android/google/experimental/svcmoniter/
DSvcMonitor.java21 int period; field in SvcMonitor
60 period = intent.getIntExtra("period", 1000); in startMonitor()
61 if (javaProc == null || halProc == null || period < 100) { in startMonitor()
107 int period; field in SvcMonitor.MonitorRunnable
111 this.period = svcmonitor.period; in MonitorRunnable()
129 SystemClock.sleep(period); in run()
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
DAUtils.h90 inline static T periodicError(const T &val, const T &period) { in periodicError() argument
91 T err = abs(val) % period; in periodicError()
92 return (err < (period / 2)) ? err : (period - err); in periodicError()
/frameworks/base/core/java/android/telephony/
DSubscriptionPlan.java247 public Builder(ZonedDateTime start, ZonedDateTime end, Period period) { in Builder() argument
248 plan = new SubscriptionPlan(new RecurrenceRule(start, end, period)); in Builder()
280 public static Builder createRecurring(ZonedDateTime start, Period period) { in createRecurring() argument
281 if (period.isZero() || period.isNegative()) { in createRecurring()
282 throw new IllegalArgumentException("Period " + period + " must be positive"); in createRecurring()
284 return new Builder(start, null, period); in createRecurring()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DScanTestUtil.java54 int period, int batch, int bssidsPerScan, int reportEvents) { in createRequest() argument
58 request.periodInMs = period; in createRequest()
65 public static WifiScanner.ScanSettings createRequest(int type, int band, int period, int batch, in createRequest() argument
67 return createRequest(WifiScanner.SCAN_TYPE_HIGH_ACCURACY, band, period, 0, 0, in createRequest()
71 public static WifiScanner.ScanSettings createRequest(int band, int period, int batch, in createRequest() argument
73 return createRequest(WifiScanner.SCAN_TYPE_HIGH_ACCURACY, band, period, 0, 0, batch, in createRequest()
80 public static WifiScanner.ScanSettings createRequest(int type, int band, int period, in createRequest() argument
86 request.periodInMs = period; in createRequest()
143 int period, int reportEvents, int band) { in addBucketWithBand() argument
147 bucket.period_ms = period; in addBucketWithBand()
[all …]
/frameworks/wilhelm/src/itf/
DIPrefetchStatus.cpp116 static SLresult IPrefetchStatus_SetFillUpdatePeriod(SLPrefetchStatusItf self, SLpermille period) in IPrefetchStatus_SetFillUpdatePeriod() argument
120 if (0 == period) { in IPrefetchStatus_SetFillUpdatePeriod()
125 thiz->mFillUpdatePeriod = period; in IPrefetchStatus_SetFillUpdatePeriod()
129 android_audioPlayer_setBufferingUpdateThresholdPerMille(ap, period); in IPrefetchStatus_SetFillUpdatePeriod()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DBackgroundScanScheduler.java131 public int period; field in BackgroundScanScheduler.Bucket
136 Bucket(int period) { in Bucket() argument
137 this.period = period; in Bucket()
147 this(originalBucket.period); in Bucket()
226 period = PREDEFINED_BUCKET_PERIODS[bucketIndex]; in createBucketSettings()
227 maxPeriodInMs = (setting.maxPeriodInMs < period) in createBucketSettings()
228 ? period in createBucketSettings()
237 bucketSettings.period_ms = period; in createBucketSettings()
253 return b1.period - b2.period;
/frameworks/native/libs/input/
DLatencyStatistics.cpp26 LatencyStatistics::LatencyStatistics(std::chrono::seconds period) : mReportPeriod(period) { in LatencyStatistics() argument
/frameworks/base/core/tests/BTtraffic/src/com/android/google/experimental/bttraffic/
DBTtraffic.java254 private final int pkgsize, period; field in BTtraffic.SenderRunnable
263 this.period = intent.getIntExtra("period", defaultperiod); in SenderRunnable()
308 if (period < 0) in doSending()
310 if (period == 0) in doSending()
313 SystemClock.sleep(period); in doSending()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobPackageTracker.java297 void printDuration(PrintWriter pw, long period, long duration, int count, String suffix) { in printDuration() argument
298 float fraction = duration / (float) period; in printDuration()
317 final long period = getTotalTime(now); in dump() local
323 TimeUtils.formatDuration(period, pw); in dump()
340 printDuration(pw, period, pe.getPendingTime(now), pe.pendingCount, "pending"); in dump()
341 printDuration(pw, period, pe.getActiveTime(now), pe.activeCount, "active"); in dump()
342 printDuration(pw, period, pe.getActiveTopTime(now), pe.activeTopCount, in dump()
384 final long period = getTotalTime(now); in dump() local
388 proto.write(DataSetProto.PERIOD_MS, period); in dump()
515 long period = mCurDataSet.getTotalTime(now); in getLoadFactor() local
[all …]
/frameworks/base/core/tests/SvcMonitor/
DREADME27 --ei period: period between each measurement (frequency). Unit: ms, Default:1000, Min: 100
/frameworks/opt/net/voip/src/java/com/android/server/sip/
DSipWakeupTimer.java151 public synchronized void set(int period, Runnable callback) { in set() argument
155 MyEvent event = new MyEvent(period, callback, now); in set()
294 MyEvent(int period, Runnable callback, long now) { in MyEvent() argument
295 mPeriod = mMaxPeriod = period; in MyEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DDataUsageDetailView.java110 final TextView period = findViewById(R.id.usage_period_text); in bind() local
111 period.setText(info.period); in bind()
/frameworks/opt/net/wifi/service/proto/src/
Dscorecard.proto25 optional int64 start_time_millis = 1; // Start of collection period
26 optional int64 end_time_millis = 2; // End of collection period
86 // Short-term statistics (for current collection period)
90 optional double min_value = 4; // Minimum value during period
91 optional double max_value = 5; // Maximum value during period
/frameworks/hardware/interfaces/sensorservice/1.0/
DIEventQueue.hal25 * Enable the selected sensor with a specified sampling period and
32 * sampling period in microseconds.

1234