Searched refs:period (Results 1 - 25 of 45) sorted by relevance

12

/frameworks/av/media/libaaudio/src/utility/
H A DMonotonicCounter.h69 * If the counter wraps around every 24 hours then we should measure it with a period
93 * Round 64-bit counter up to a multiple of the period.
95 * @param period might be, for example, a buffer capacity
97 void roundUp64(int32_t period) { argument
98 if (period > 0) {
99 int64_t numPeriods = (mCounter64 + period - 1) / period;
100 mCounter64 = numPeriods * period;
/frameworks/base/core/java/android/content/
H A DPeriodicSync.java37 public final long period; field in class:PeriodicSync
55 this.period = periodInSeconds;
68 this.period = other.period;
77 long period, long flexTime) {
81 this.period = period;
89 this.period = in.readLong();
103 dest.writeLong(period);
130 && period
76 PeriodicSync(Account account, String authority, Bundle extras, long period, long flexTime) argument
[all...]
/frameworks/base/core/java/android/util/
H A DRecurrenceRule.java54 public final Period period; field in class:RecurrenceRule
56 public RecurrenceRule(ZonedDateTime start, ZonedDateTime end, Period period) { argument
59 this.period = period;
80 period = convertPeriod(source.readString());
92 dest.writeString(convertPeriod(period));
101 period = convertPeriod(BackupUtils.readString(in));
111 BackupUtils.writeString(out, convertPeriod(period));
119 .append(" period=").append(period)
250 convertPeriod(Period period) argument
254 convertPeriod(String period) argument
[all...]
/frameworks/av/include/media/stagefright/foundation/
H A DAUtils.h88 /* T must be integer type, period must be positive */
90 inline static T periodicError(const T &val, const T &period) { argument
91 T err = abs(val) % period;
92 return (err < (period / 2)) ? err : (period - err);
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
H A DAUtils.h88 /* T must be integer type, period must be positive */
90 inline static T periodicError(const T &val, const T &period) { argument
91 T err = abs(val) % period;
92 return (err < (period / 2)) ? err : (period - err);
/frameworks/av/media/libstagefright/include/media/stagefright/foundation/
H A DAUtils.h88 /* T must be integer type, period must be positive */
90 inline static T periodicError(const T &val, const T &period) { argument
91 T err = abs(val) % period;
92 return (err < (period / 2)) ? err : (period - err);
/frameworks/av/media/libstagefright/
H A DVideoFrameScheduler.cpp93 // reset PLL but keep previous period estimate
102 nsecs_t period = kNanosIn1s / 60;
104 mTimes[1] = period;
105 mTimes[2] = period * 3;
106 mTimes[3] = period * 4;
107 mTimes[4] = period * 7;
108 mTimes[5] = period * 8;
109 mTimes[6] = period * 10;
110 mTimes[7] = period * 12;
113 fit(0, period * 1
125 fit( nsecs_t phase, nsecs_t period, size_t numSamplesToUse, int64_t *a, int64_t *b, int64_t *err) argument
[all...]
/frameworks/base/core/tests/SvcMonitor/src/com/android/google/experimental/svcmoniter/
H A DSvcMonitor.java21 int period; field in class:SvcMonitor
60 period = intent.getIntExtra("period", 1000);
61 if (javaProc == null || halProc == null || period < 100) {
107 int period; field in class:SvcMonitor.MonitorRunnable
111 this.period = svcmonitor.period;
129 SystemClock.sleep(period);
/frameworks/wilhelm/src/itf/
H A DIPrefetchStatus.cpp116 static SLresult IPrefetchStatus_SetFillUpdatePeriod(SLPrefetchStatusItf self, SLpermille period) argument
120 if (0 == period) {
125 thiz->mFillUpdatePeriod = period;
129 android_audioPlayer_setBufferingUpdateThresholdPerMille(ap, period);
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DScanTestUtil.java52 int period, int batch, int bssidsPerScan, int reportEvents) {
56 request.periodInMs = period;
63 public static WifiScanner.ScanSettings createRequest(int band, int period, int batch, argument
65 return createRequest(band, period, 0, 0, batch, bssidsPerScan, reportEvents);
69 * Create an exponential back off scan request if maxPeriod != period && maxPeriod != 0.
71 public static WifiScanner.ScanSettings createRequest(int band, int period, int maxPeriod, argument
76 request.periodInMs = period;
128 int period, int reportEvents, int band) {
132 bucket.period_ms = period;
138 int period, in
51 createRequest(WifiScanner.ChannelSpec[] channels, int period, int batch, int bssidsPerScan, int reportEvents) argument
127 addBucketWithBand( int period, int reportEvents, int band) argument
137 addBucketWithChannels( int period, int reportEvents, WifiScanner.ChannelSpec... channels) argument
146 addBucketWithChannels( int period, int reportEvents, int... channels) argument
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
H A DBackgroundScanScheduler.java78 * Default period to use if no buckets are being scheduled
90 * the next smallest bucket with the smallest bucket having a period of PERIOD_MIN_GCD_MS.
93 * period and no unnecessary scan being scheduled. If this was not the case and two requests
98 * this would result in straying further from the requested period and possibly power
99 * implications if the scan is scheduled at a significantly lower period.
131 public int period; field in class:BackgroundScanScheduler.Bucket
136 Bucket(int period) { argument
137 this.period = period;
147 this(originalBucket.period);
[all...]
/frameworks/av/include/media/stagefright/
H A DVideoFrameScheduler.h39 // returns the vsync period for the main display
60 // returns period or 0 if not yet primed
68 bool mPrimed; // have an estimate for the period
79 bool fit(nsecs_t phase, nsecs_t period, size_t numSamples,
/frameworks/av/media/libstagefright/include/media/stagefright/
H A DVideoFrameScheduler.h39 // returns the vsync period for the main display
60 // returns period or 0 if not yet primed
68 bool mPrimed; // have an estimate for the period
79 bool fit(nsecs_t phase, nsecs_t period, size_t numSamples,
/frameworks/base/services/core/java/com/android/server/job/
H A DJobPackageTracker.java289 void printDuration(PrintWriter pw, long period, long duration, int count, String suffix) { argument
290 float fraction = duration / (float) period;
309 final long period = getTotalTime(now);
315 TimeUtils.formatDuration(period, pw);
332 printDuration(pw, period, pe.getPendingTime(now), pe.pendingCount, "pending");
333 printDuration(pw, period, pe.getActiveTime(now), pe.activeCount, "active");
334 printDuration(pw, period, pe.getActiveTopTime(now), pe.activeTopCount,
439 long period = mCurDataSet.getTotalTime(now);
442 period += mLastDataSets[0].getTotalTime(now);
444 return time / (float)period;
[all...]
/frameworks/base/core/tests/BTtraffic/src/com/android/google/experimental/bttraffic/
H A DBTtraffic.java254 private final int pkgsize, period; field in class:BTtraffic.SenderRunnable
263 this.period = intent.getIntExtra("period", defaultperiod);
308 if (period < 0)
310 if (period == 0)
313 SystemClock.sleep(period);
/frameworks/native/services/surfaceflinger/
H A DDispSync.cpp74 void updateModel(nsecs_t period, nsecs_t phase, nsecs_t referenceTime) { argument
77 mPeriod = period;
311 // this period.
324 // Check that it's been slightly more than half a period since the last
509 void DispSync::setPeriod(nsecs_t period) { argument
511 mPeriod = period;
574 // Artificially inflate the period if requested.
587 // Need to compare present fences against the un-adjusted refresh period,
589 nsecs_t period = mPeriod / (1 + mRefreshSkipCount); local
610 nsecs_t sampleErr = (sample - mPhase) % period;
[all...]
H A DDispSync.h37 // display and uses that model to execute period callbacks at specific phase
93 // The setPeriod method sets the vsync event model's period to a specific
96 void setPeriod(nsecs_t period);
98 // The getPeriod method returns the current vsync period.
142 // mPeriod is the computed period of the modeled vsync events in
/frameworks/opt/net/voip/src/java/com/android/server/sip/
H A DSipWakeupTimer.java113 // Determines the period and the trigger time of the new event and insert it
147 * @param period the timer period; in milli-second
151 public synchronized void set(int period, Runnable callback) { argument
155 MyEvent event = new MyEvent(period, callback, now);
294 MyEvent(int period, Runnable callback, long now) { argument
295 mPeriod = mMaxPeriod = period;
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DDataUsageDetailView.java110 final TextView period = findViewById(R.id.usage_period_text);
111 period.setText(info.period);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DKeyguardClockPositionAlgorithm.java197 * @param period period of the function, ie. zigzag(x + period) == zigzag(x)
201 private float zigzag(float x, float amplitude, float period) { argument
202 float xprime = (x % period) / (period / 2);
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
H A DWificondScannerTest.java619 * starting the scan settings and then dispatching the scan period alarm to start the
634 ScanPeriod period = expectedPeriods[i];
636 if (period != null) { // scan should be scheduled
649 * dispatching the period alarm.
652 WifiNative.ScanEventHandler eventHandler, ScanPeriod period, int periodId) {
656 if (period.getResultsToBeDelivered() != null) {
657 ScanResults lastPeriodResults = period.getResultsToBeDelivered()
658 [period.getResultsToBeDelivered().length - 1];
660 if (period.expectResults()) {
662 new WifiScanner.ScanData[period
651 expectSuccessfulBackgroundScan(InOrder order, WifiNative.ScanEventHandler eventHandler, ScanPeriod period, int periodId) argument
[all...]
/frameworks/base/core/java/android/text/method/
H A DTextKeyListener.java298 boolean period = System.getInt(resolver, System.TEXT_AUTO_PUNCTUATE, 1) > 0;
303 (period ? AUTO_PERIOD : 0) |
/frameworks/base/telephony/java/android/telephony/
H A DSubscriptionPlan.java202 public Builder(ZonedDateTime start, ZonedDateTime end, Period period) { argument
203 plan = new SubscriptionPlan(new RecurrenceRule(start, end, period));
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
H A DWifiP2pNative.java272 * @param period Period in milliseconds.
277 public boolean p2pExtListen(boolean enable, int period, int interval) { argument
278 return mSupplicantP2pIfaceHal.configureExtListen(enable, period, interval);
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
H A DDataUsageController.java143 // period = last 4 wks
160 usage.period = formatDateRange(start, end);
243 public String period; field in class:DataUsageController.DataUsageInfo

Completed in 3627 milliseconds

12