Searched defs:period (Results 1 - 25 of 26) 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/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/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/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/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/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));
112 BackupUtils.writeString(out, convertPeriod(period));
120 .append(" period=").append(period)
255 convertPeriod(Period period) argument
259 convertPeriod(String period) argument
[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/base/packages/SettingsLib/src/com/android/settingslib/net/
H A DDataUsageController.java143 // period = last 4 wks
160 usage.period = formatDateRange(start, end);
246 public String period; field in class:DataUsageController.DataUsageInfo
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DKeyguardClockPositionAlgorithm.java249 * @param period period of the function, ie. zigzag(x + period) == zigzag(x)
253 private float zigzag(float x, float amplitude, float period) { argument
254 float xprime = (x % period) / (period / 2);
/frameworks/base/telephony/java/android/telephony/
H A DSubscriptionPlan.java223 public Builder(ZonedDateTime start, ZonedDateTime end, Period period) { argument
224 plan = new SubscriptionPlan(new RecurrenceRule(start, end, period));
244 * time, and automatically recurs after each specific period of time,
247 * When the given period is set to exactly one month, the plan will
254 * @param period The period after which the plan automatically recurs.
256 public static Builder createRecurring(ZonedDateTime start, Period period) { argument
257 if (period.isZero() || period.isNegative()) {
258 throw new IllegalArgumentException("Period " + period
[all...]
/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/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 type, int band, int period, int batch, argument
65 return createRequest(WifiScanner.TYPE_HIGH_ACCURACY, band, period, 0, 0,
69 public static WifiScanner.ScanSettings createRequest(int band, int period, int batch, argument
71 return createRequest(WifiScanner.TYPE_HIGH_ACCURACY, band, period, 0, 0, batch,
76 * Create an exponential back off scan request if maxPeriod != period && maxPeriod != 0.
78 public static WifiScanner.ScanSettings createRequest(int type, int band, int period, argument
84 request.periodInMs = period;
141 int period, in
51 createRequest(WifiScanner.ChannelSpec[] channels, int period, int batch, int bssidsPerScan, int reportEvents) argument
140 addBucketWithBand( int period, int reportEvents, int band) argument
150 addBucketWithChannels( int period, int reportEvents, WifiScanner.ChannelSpec... channels) argument
159 addBucketWithChannels( int period, int reportEvents, int... channels) argument
[all...]
/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/services/core/java/com/android/server/job/
H A DJobPackageTracker.java297 void printDuration(PrintWriter pw, long period, long duration, int count, String suffix) { argument
298 float fraction = duration / (float) period;
317 final long period = getTotalTime(now);
323 TimeUtils.formatDuration(period, pw);
340 printDuration(pw, period, pe.getPendingTime(now), pe.pendingCount, "pending");
341 printDuration(pw, period, pe.getActiveTime(now), pe.activeCount, "active");
342 printDuration(pw, period, pe.getActiveTopTime(now), pe.activeTopCount,
383 final long period = getTotalTime(now);
387 proto.write(DataSetProto.PERIOD_MS, period);
514 long period
[all...]
/frameworks/native/services/surfaceflinger/
H A DDispSync.cpp73 void updateModel(nsecs_t period, nsecs_t phase, nsecs_t referenceTime) { argument
76 mPeriod = period;
319 // this period.
332 // Check that it's been slightly more than half a period since the last
517 void DispSync::setPeriod(nsecs_t period) { argument
519 mPeriod = period;
582 // Artificially inflate the period if requested.
595 // Need to compare present fences against the un-adjusted refresh period,
597 nsecs_t period = mPeriod / (1 + mRefreshSkipCount); local
617 nsecs_t sampleErr = (sample - mPhase) % period;
[all...]
H A DSurfaceFlinger.cpp551 // Normalize phaseOffset to [0, period)
552 auto period = mDispSync->getPeriod(); variable
553 phaseOffset %= period;
555 // If we're here, then phaseOffset is in (-period, 0). After this
556 // operation, it will be in (0, period)
557 phaseOffset += period;
894 // Normally it's one full refresh period (to give SF a chance to
1287 const nsecs_t period = activeConfig->getVsyncPeriod(); local
1290 mPrimaryDispSync.setPeriod(period);
1461 // Reset the timing values to account for the period o
1463 const nsecs_t period = activeConfig->getVsyncPeriod(); local
3678 const nsecs_t period = activeConfig->getVsyncPeriod(); local
3966 const nsecs_t period = activeConfig->getVsyncPeriod(); local
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
H A DWifiP2pNative.java418 * @param period Period in milliseconds.
423 public boolean p2pExtListen(boolean enable, int period, int interval) { argument
424 return mSupplicantP2pIfaceHal.configureExtListen(enable, period, interval);
/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/base/core/jni/
H A Dandroid_media_AudioRecord.cpp628 jint period) {
637 return nativeToJavaStatus( lpRecorder->setPositionUpdatePeriod(period) );
645 uint32_t period = 0; local
652 lpRecorder->getPositionUpdatePeriod(&period);
653 return (jint)period;
627 android_media_AudioRecord_set_pos_update_period(JNIEnv *env, jobject thiz, jint period) argument
H A Dandroid_media_AudioTrack.cpp902 jint period) {
909 return nativeToJavaStatus( lpTrack->setPositionUpdatePeriod(period) );
916 uint32_t period = 0; local
923 lpTrack->getPositionUpdatePeriod(&period);
924 return (jint)period;
901 android_media_AudioTrack_set_pos_update_period(JNIEnv *env, jobject thiz, jint period) argument
/frameworks/base/services/core/java/com/android/server/content/
H A DContentService.java545 private long clampPeriod(long period) { argument
547 if (period < minPeriod) {
548 Slog.w(TAG, "Requested poll frequency of " + period
550 period = minPeriod;
552 return period;
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiNative.java2689 * @param period Period to use for sending these packets.
2693 byte[] dstMac, byte[] packet, int protocol, int period) {
2696 ifaceName, slot, srcMac, dstMac, packet, protocol, period);
2692 startSendingOffloadedPacket(@onNull String ifaceName, int slot, byte[] dstMac, byte[] packet, int protocol, int period) argument
/frameworks/data-binding/prebuilds/1.0-rc0/
H A Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ...

Completed in 361 milliseconds

12