/frameworks/base/core/java/android/content/ |
H A D | PeriodicSync.java | 37 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 D | AUtils.h | 88 /* 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/foundation/ |
H A D | AUtils.h | 88 /* 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/foundation/ |
H A D | AUtils.h | 88 /* 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 D | SvcMonitor.java | 21 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 D | VideoFrameScheduler.cpp | 93 // 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 D | IPrefetchStatus.cpp | 116 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 D | ScanTestUtil.java | 52 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 D | BackgroundScanScheduler.java | 78 * 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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/ |
H A D | WificondScannerTest.java | 559 * starting the scan settings and then dispatching the scan period alarm to start the 574 ScanPeriod period = expectedPeriods[i]; 576 if (period != null) { // scan should be scheduled 589 * dispatching the period alarm. 592 WifiNative.ScanEventHandler eventHandler, ScanPeriod period, int periodId) { 596 if (period.getResultsToBeDelivered() != null) { 597 ScanResults lastPeriodResults = period.getResultsToBeDelivered() 598 [period.getResultsToBeDelivered().length - 1]; 600 if (period.expectResults()) { 602 new WifiScanner.ScanData[period 591 expectSuccessfulBackgroundScan(InOrder order, WifiNative.ScanEventHandler eventHandler, ScanPeriod period, int periodId) argument [all...] |
H A D | BackgroundScanSchedulerTest.java | 309 * 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 D | VideoFrameScheduler.h | 39 // 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/foundation/include/ |
H A D | VideoFrameScheduler.h | 39 // 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/ |
H A D | VideoFrameScheduler.h | 39 // 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 D | DispSync.h | 33 // display and uses that model to execute period callbacks at specific phase 87 // The setPeriod method sets the vsync event model's period to a specific 90 void setPeriod(nsecs_t period); 92 // The getPeriod method returns the current vsync period. 135 // mPeriod is the computed period of the modeled vsync events in
|
H A D | DispSync.cpp | 74 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 519 void DispSync::setPeriod(nsecs_t period) { argument 521 mPeriod = period; 584 // Artificially inflate the period if requested. 597 // Need to compare present fences against the un-adjusted refresh period, 599 nsecs_t period = mPeriod / (1 + mRefreshSkipCount); local 607 nsecs_t sampleErr = (sample - mPhase) % period; [all...] |
/frameworks/base/services/core/java/com/android/server/job/ |
H A D | JobPackageTracker.java | 270 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, 404 long period = mCurDataSet.getTotalTime(now); 407 period += mLastDataSets[0].getTotalTime(now); 409 return time / (float)period; [all...] |
/frameworks/base/core/tests/BTtraffic/src/com/android/google/experimental/bttraffic/ |
H A D | BTtraffic.java | 254 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 D | SipWakeupTimer.java | 113 // 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 D | DataUsageDetailView.java | 110 final TextView period = findViewById(R.id.usage_period_text); 111 period.setText(info.period);
|
/frameworks/base/core/java/android/text/method/ |
H A D | TextKeyListener.java | 298 boolean period = System.getInt(resolver, System.TEXT_AUTO_PUNCTUATE, 1) > 0; 303 (period ? AUTO_PERIOD : 0) |
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/ |
H A D | WifiP2pNative.java | 272 * @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 D | DataUsageController.java | 144 // period = determined from cycleDay 160 // period = last 4 wks 177 usage.period = formatDateRange(start, end); 260 public String period; field in class:DataUsageController.DataUsageInfo
|
/frameworks/base/core/jni/ |
H A D | android_media_AudioRecord.cpp | 610 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 D | android_media_AudioTrack.cpp | 898 jint period) { 905 return nativeToJavaStatus( lpTrack->setPositionUpdatePeriod(period) ); 912 uint32_t period = 0; local 919 lpTrack->getPositionUpdatePeriod(&period); 920 return (jint)period; 897 android_media_AudioTrack_set_pos_update_period(JNIEnv *env, jobject thiz, jint period) argument
|