/frameworks/av/include/media/stagefright/foundation/ |
AUtils.h | 88 /* T must be integer type, period must be positive */ 90 inline static T periodicError(const T &val, const T &period) { 91 T err = abs(val) % period; 92 return (err < (period / 2)) ? err : (period - err);
|
/hardware/intel/img/hwcomposer/merrifield/common/observers/ |
SoftVsyncObserver.cpp | 125 const nsecs_t period = mRefreshPeriod * mDisplayDevice.getFpsDivider(); local 131 sleep = (period - ((now - next_vsync) % period)); 134 mNextFakeVSync = next_vsync + period;
|
/hardware/intel/img/hwcomposer/moorefield_hdmi/common/observers/ |
SoftVsyncObserver.cpp | 121 const nsecs_t period = mRefreshPeriod; local 127 sleep = (period - ((now - next_vsync) % period)); 130 mNextFakeVSync = next_vsync + period;
|
/libcore/luni/src/main/java/java/util/concurrent/ |
ScheduledExecutorService.java | 103 * period; that is, executions will commence after 104 * {@code initialDelay}, then {@code initialDelay + period}, then 105 * {@code initialDelay + 2 * period}, and so on. 121 * <p>If any execution of this task takes longer than its period, then 127 * @param period the period between successive executions 128 * @param unit the time unit of the initialDelay and period parameters 137 * @throws IllegalArgumentException if period less than or equal to zero 141 long period,
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/ |
hours.pass.cpp | 22 typedef D::period Period; 26 static_assert((std::is_same<Period, std::ratio<3600> >::value), "");
|
microseconds.pass.cpp | 22 typedef D::period Period; 26 static_assert((std::is_same<Period, std::micro>::value), "");
|
milliseconds.pass.cpp | 22 typedef D::period Period; 26 static_assert((std::is_same<Period, std::milli>::value), "");
|
minutes.pass.cpp | 22 typedef D::period Period; 26 static_assert((std::is_same<Period, std::ratio<60> >::value), "");
|
nanoseconds.pass.cpp | 22 typedef D::period Period; 26 static_assert((std::is_same<Period, std::nano>::value), "");
|
seconds.pass.cpp | 22 typedef D::period Period; 26 static_assert((std::is_same<Period, std::ratio<1> >::value), "");
|
/external/skia/gm/ |
SkAnimTimer.h | 93 * scaled by "speed" and (if not zero) mod by period. 96 SkScalar scaled(SkScalar speed, SkScalar period = 0) const { 98 if (period) { 99 value = ::fmod(value, SkScalarToDouble(period));
|
/external/sonic/ |
sonic.c | 617 int period, bestPeriod = 0, worstPeriod = 255; local 622 for(period = minPeriod; period <= maxPeriod; period++) { 625 p = samples + period; 626 for(i = 0; i < period; i++) { 635 if(diff*bestPeriod < minDiff*period) { 637 bestPeriod = period; 639 if(diff*worstPeriod > maxDiff*period) { 641 worstPeriod = period; 692 int period; local 847 int period, newPeriod, separation; local 1016 int position = 0, period, newSamples; local [all...] |
/system/extras/simpleperf/ |
sample_tree.cpp | 33 SampleEntry* SampleTree::AddSample(int pid, int tid, uint64_t ip, uint64_t time, uint64_t period, 39 SampleEntry value(ip, time, period, 0, 1, thread, map, symbol); 48 uint64_t branch_flags, uint64_t time, uint64_t period) { 61 SampleEntry value(to_ip, time, period, 0, 1, thread, to_map, to_symbol); 74 uint64_t period, bool in_kernel, 80 SampleEntry value(ip, time, 0, period, 0, thread, map, symbol); 129 result->period += value.period; 134 total_period_ += value.period; 146 uint64_t period) { [all...] |
/external/iptables/extensions/ |
libxt_limit.c | 121 static void print_rate(uint32_t period) 125 if (period == 0) { 131 if (period > rates[i].mult 132 || rates[i].mult/period < rates[i].mult%period) 135 printf(" %u/%s", rates[i-1].mult / period, rates[i-1].name);
|
/external/libnfc-nci/src/udrv/include/ |
utimer.h | 61 tUTIMER_TIME period; member in struct:__anon15951
|
/hardware/bsp/intel/peripheral/libmraa/src/pwm/ |
pwm.c | 51 mraa_pwm_write_period(mraa_pwm_context dev, int period) 54 mraa_result_t result = dev->advance_func->pwm_period_replace(dev, period); 56 dev->period = period; 61 snprintf(bu, MAX_SIZE, "/sys/class/pwm/pwmchip%d/pwm%d/period", dev->chipid, dev->pin); 65 syslog(LOG_ERR, "pwm: Failed to open period for writing"); 69 int length = snprintf(out, MAX_SIZE, "%d", period); 76 dev->period = period; 100 snprintf(bu, MAX_SIZE, "/sys/class/pwm/pwmchip%d/pwm%d/period", dev->chipid, dev->pin) 303 int period = mraa_pwm_read_period(dev); local [all...] |
/external/guava/guava/src/com/google/common/util/concurrent/ |
WrappingScheduledExecutorService.java | 52 Runnable command, long initialDelay, long period, TimeUnit unit) { 53 return delegate.scheduleAtFixedRate(wrapTask(command), initialDelay, period, unit);
|
/external/jmdns/src/javax/jmdns/impl/ |
DNSTaskStarter.java | 226 public synchronized void schedule(TimerTask task, long delay, long period) { 228 super.schedule(task, delay, period); 236 public synchronized void schedule(TimerTask task, Date firstTime, long period) { 238 super.schedule(task, firstTime, period); 246 public synchronized void scheduleAtFixedRate(TimerTask task, long delay, long period) { 248 super.scheduleAtFixedRate(task, delay, period); 256 public synchronized void scheduleAtFixedRate(TimerTask task, Date firstTime, long period) { 258 super.scheduleAtFixedRate(task, firstTime, period);
|
/hardware/bsp/intel/peripheral/libmraa/api/mraa/ |
pwm.h | 89 * Set the PWM period as seconds represented in a float 92 * @param seconds Period represented as a float in seconds 98 * Set period, milliseconds. 101 * @param ms Milliseconds for period 107 * Set period, microseconds 110 * @param us Microseconds as period 170 * Set Both Period and DutyCycle on a PWM context 173 * @param period represented in ms. 177 mraa_result_t mraa_pwm_config_ms(mraa_pwm_context dev, int period, float duty); 180 * Set Both Period and DutyCycle on a PWM context. Duty represented as percentage [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/ |
BasicPeriodBuilderFactory.java | 160 Period createLimited(long duration, boolean inPast) { 164 return Period.moreThan(maxLimit/1000f, maxUnit).inPast(inPast); 174 return Period.lessThan(eml/1000f, emu).inPast(inPast); 275 * largest period less than or equal to the duration. 285 * Starting with the largest period less than or equal to the duration. 286 * It formats two periods if the first period has a count < 2 287 * and the next period has a count >= 1. 297 * starting with the largest period less than or equal to the 311 public Period create(long duration) { 319 public Period createWithReferenceDate(long duration, long referenceDate) [all...] |
BasicDurationFormatter.java | 67 Period p = doBuild(duration, referenceDate); 109 protected Period doBuild(long duration, long referenceDate) { 113 protected String doFormat(Period period) { 114 if (!period.isSet()) { 115 throw new IllegalArgumentException("period is not set"); 117 return formatter.format(period);
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/ |
BasicPeriodBuilderFactory.java | 159 Period createLimited(long duration, boolean inPast) { 163 return Period.moreThan(maxLimit/1000f, maxUnit).inPast(inPast); 173 return Period.lessThan(eml/1000f, emu).inPast(inPast); 274 * largest period less than or equal to the duration. 284 * Starting with the largest period less than or equal to the duration. 285 * It formats two periods if the first period has a count < 2 286 * and the next period has a count >= 1. 296 * starting with the largest period less than or equal to the 310 public Period create(long duration) { 318 public Period createWithReferenceDate(long duration, long referenceDate) [all...] |
BasicDurationFormatter.java | 66 Period p = doBuild(duration, referenceDate); 108 protected Period doBuild(long duration, long referenceDate) { 112 protected String doFormat(Period period) { 113 if (!period.isSet()) { 114 throw new IllegalArgumentException("period is not set"); 116 return formatter.format(period);
|
/frameworks/base/core/tests/SvcMonitor/src/com/android/google/experimental/svcmoniter/ |
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);
|
/libcore/ojluni/src/main/java/java/sql/ |
Timestamp.java | 187 int period = 0; local 214 period = time_s.indexOf('.', secondColon+1); 244 if ((period > 0) & (period < time_s.length()-1)) { 246 Integer.parseInt(time_s.substring(secondColon+1, period)); 247 nanos_s = time_s.substring(period+1); 254 } else if (period > 0) {
|