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

12

/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/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/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/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/wilhelm/src/itf/
H A DIPrefetchStatus.c116 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;
124 int period, int reportEvents, int band) {
128 bucket.period_ms = period;
134 int period, in
51 createRequest(WifiScanner.ChannelSpec[] channels, int period, int batch, int bssidsPerScan, int reportEvents) argument
123 addBucketWithBand( int period, int reportEvents, int band) argument
133 addBucketWithChannels( int period, int reportEvents, WifiScanner.ChannelSpec... channels) argument
142 addBucketWithChannels( int period, int reportEvents, int... channels) argument
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
H A DBackgroundScanScheduler.java79 * Default period to use if no buckets are being scheduled
91 * the next smallest bucket with the smallest bucket having a period of PERIOD_MIN_GCD_MS.
94 * period and no unnecessary scan being scheduled. If this was not the case and two requests
99 * this would result in straying further from the requested period and possibly power
100 * implications if the scan is scheduled at a significantly lower period.
132 public int period; field in class:BackgroundScanScheduler.Bucket
137 Bucket(int period) { argument
138 this.period = period;
148 this(originalBucket.period);
[all...]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
H A DSupplicantWifiScannerTest.java560 * starting the scan settings and then dispatching the scan period alarm to start the
575 ScanPeriod period = expectedPeriods[i];
577 if (period != null) { // scan should be scheduled
590 * dispatching the period alarm.
593 WifiNative.ScanEventHandler eventHandler, ScanPeriod period, int periodId) {
597 if (period.getResultsToBeDelivered() != null) {
598 ScanResults lastPeriodResults = period.getResultsToBeDelivered()
599 [period.getResultsToBeDelivered().length - 1];
601 if (period.expectResults()) {
603 new WifiScanner.ScanData[period
592 expectSuccessfulBackgroundScan(InOrder order, WifiNative.ScanEventHandler eventHandler, ScanPeriod period, int periodId) argument
[all...]
H A DBackgroundScanSchedulerTest.java309 * period and not the bucket it is initially placed in. Here the 5 min period is
454 * common bucket with the lower time period setting.
487 * common bucket with the lower time period setting.
520 * across the lower time period bucket.
557 * across the lower time period buckets.
604 * across the lower time period buckets and the last bucket is split into 2 because the
656 * common bucket with the lower time period setting.
686 * across the lower time period bucket.
897 .append("=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/native/services/surfaceflinger/
H A DDispSync.h42 // display and uses that model to execute period callbacks at specific phase
96 // The setPeriod method sets the vsync event model's period to a specific
99 void setPeriod(nsecs_t period);
101 // The getPeriod method returns the current vsync period.
144 // mPeriod is the computed period of the modeled vsync events in
H A DDispSync.cpp78 void updateModel(nsecs_t period, nsecs_t phase, nsecs_t referenceTime) { argument
81 mPeriod = period;
314 // this period.
327 // Check that it's been slightly more than half a period since the last
513 void DispSync::setPeriod(nsecs_t period) { argument
515 mPeriod = period;
578 // Artificially inflate the period if requested.
591 // Need to compare present fences against the un-adjusted refresh period,
593 nsecs_t period = mPeriod / (1 + mRefreshSkipCount); local
601 nsecs_t sampleErr = (sample - mPhase) % period;
[all...]
/frameworks/base/services/core/java/com/android/server/job/
H A DJobPackageTracker.java270 void printDuration(PrintWriter pw, long period, long duration, int count, String suffix) { argument
271 float fraction = duration / (float) period;
290 final long period = getTotalTime(now);
296 TimeUtils.formatDuration(period, pw);
312 printDuration(pw, period, pe.getPendingTime(now), pe.pendingCount, "pending");
313 printDuration(pw, period, pe.getActiveTime(now), pe.activeCount, "active");
314 printDuration(pw, period, pe.getActiveTopTime(now), pe.activeTopCount,
399 long period = mCurDataSet.getTotalTime(now);
402 period += mLastDataSets[0].getTotalTime(now);
404 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/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.java104 final TextView period = (TextView) findViewById(R.id.usage_period_text);
105 period.setText(info.period);
/frameworks/base/core/java/android/text/method/
H A DTextKeyListener.java293 boolean period = System.getInt(resolver, System.TEXT_AUTO_PUNCTUATE, 1) > 0;
298 (period ? AUTO_PERIOD : 0) |
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/services/
H A DTestScheduledExecutorService.java128 public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, argument
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
H A DDataUsageController.java134 // period = determined from cycleDay
150 // period = last 4 wks
167 usage.period = formatDateRange(start, end);
250 public String period; field in class:DataUsageController.DataUsageInfo
/frameworks/base/core/jni/
H A Dandroid_media_AudioRecord.cpp610 jint period) {
619 return nativeToJavaStatus( lpRecorder->setPositionUpdatePeriod(period) );
627 uint32_t period = 0; local
634 lpRecorder->getPositionUpdatePeriod(&period);
635 return (jint)period;
609 android_media_AudioRecord_set_pos_update_period(JNIEnv *env, jobject thiz, jint period) argument
H A Dandroid_media_AudioTrack.cpp894 jint period) {
901 return nativeToJavaStatus( lpTrack->setPositionUpdatePeriod(period) );
908 uint32_t period = 0; local
915 lpTrack->getPositionUpdatePeriod(&period);
916 return (jint)period;
893 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.java507 private long clampPeriod(long period) { argument
509 if (period < minPeriod) {
510 Slog.w(TAG, "Requested poll frequency of " + period
512 period = minPeriod;
514 return period;
/frameworks/base/core/tests/coretests/src/android/os/
H A DPerformanceCollectorTest.java376 int period = minDuration + random.nextInt(maxDuration - minDuration);
380 while (Process.getElapsedCpuTime() - start < period) {
/frameworks/opt/net/wifi/service/jni/
H A Dcom_android_server_wifi_nan_WifiNanNative.cpp305 msg.period = 500;
373 msg.period = 500;
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DHWComposer_hwc1.cpp473 // the refresh period and whatever closest timestamp we have.
1292 const nsecs_t period = mRefreshPeriod;
1298 sleep = (period - ((now - next_vsync) % period));
1301 mNextFakeVSync = next_vsync + period;

Completed in 5882 milliseconds

12