Home
last modified time | relevance | path

Searched refs:interval (Results 1 – 25 of 112) sorted by relevance

12345

/frameworks/base/cmds/statsd/src/metrics/
DValueMetricProducer.cpp364 for (auto& interval : slice.second) { in resetBase() local
365 interval.hasBase = false; in resetBase()
560 for (auto& interval : slice.second) { in accumulateEvents() local
561 interval.hasBase = false; in accumulateEvents()
589 for (const auto& interval : it.second) { in dumpStatesLocked() local
593 interval.value.toString().c_str()); in dumpStatesLocked()
720 Interval& interval = multiIntervals[i]; in onMatchedLogEventInternalLocked() local
721 interval.valueIndex = i; in onMatchedLogEventInternalLocked()
728 interval.seenNewData = true; in onMatchedLogEventInternalLocked()
731 if (!interval.hasBase) { in onMatchedLogEventInternalLocked()
[all …]
/frameworks/base/core/java/android/bluetooth/le/
DPeriodicAdvertisingParameters.java35 private PeriodicAdvertisingParameters(boolean includeTxPower, int interval) { in PeriodicAdvertisingParameters() argument
37 mInterval = interval; in PeriodicAdvertisingParameters()
105 public Builder setInterval(int interval) { in setInterval() argument
106 if (interval < INTERVAL_MIN || interval > INTERVAL_MAX) { in setInterval()
110 mInterval = interval; in setInterval()
DAdvertisingSetParameters.java113 int interval, int txPowerLevel) { in AdvertisingSetParameters() argument
121 mInterval = interval; in AdvertisingSetParameters()
374 public Builder setInterval(int interval) { in setInterval() argument
375 if (interval < INTERVAL_MIN || interval > INTERVAL_MAX) { in setInterval()
376 throw new IllegalArgumentException("unknown interval " + interval); in setInterval()
378 mInterval = interval; in setInterval()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DGestureLauncherServiceTest.java208 final long interval = GestureLauncherService.CAMERA_POWER_DOUBLE_TAP_MAX_TIME_MS - 1; in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOffInteractive() local
209 eventTime += interval; in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOffInteractive()
226 assertEquals((int) interval, intervals.get(1).intValue()); in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOffInteractive()
252 final long interval = GestureLauncherService.CAMERA_POWER_DOUBLE_TAP_MAX_TIME_MS; in testInterceptPowerKeyDown_intervalMidBoundsCameraPowerGestureOffInteractive() local
253 eventTime += interval; in testInterceptPowerKeyDown_intervalMidBoundsCameraPowerGestureOffInteractive()
270 assertEquals((int) interval, intervals.get(1).intValue()); in testInterceptPowerKeyDown_intervalMidBoundsCameraPowerGestureOffInteractive()
298 long interval = GestureLauncherService.POWER_SHORT_TAP_SEQUENCE_MAX_INTERVAL_MS; in testInterceptPowerKeyDown_intervalOutOfBoundsCameraPowerGestureOffInteractive() local
299 eventTime += interval; in testInterceptPowerKeyDown_intervalOutOfBoundsCameraPowerGestureOffInteractive()
316 assertEquals((int) interval, intervals.get(1).intValue()); in testInterceptPowerKeyDown_intervalOutOfBoundsCameraPowerGestureOffInteractive()
344 final long interval = GestureLauncherService.CAMERA_POWER_DOUBLE_TAP_MAX_TIME_MS - 1; in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOnInteractiveSetupComplete() local
[all …]
/frameworks/rs/tests/lldb/tests/harness/
Dutil_timer.py25 def __init__(self, interval, callback): argument
36 if not isinstance(interval, (int, float)):
38 '{0}'.format(type(interval)))
45 self._interval = interval
/frameworks/opt/gamesdk/samples/bouncyball/app/src/main/java/com/prefabulated/bouncyball/
DSettingsFragment.java60 for(int interval = 0; interval < numEntries - 1; interval++) { in onCreatePreferences()
61 float fps = refreshRate / (interval + 1); in onCreatePreferences()
64 entries[interval] = String.format(Locale.US, "%.2fms (%.0ffps)", ms, fps); in onCreatePreferences()
65 entryValues[interval] = Float.toString(ms); in onCreatePreferences()
/frameworks/base/core/java/android/app/admin/
DSystemUpdatePolicy.java492 for (FreezePeriod interval : mFreezePeriods) { in getCurrentFreezePeriod()
493 if (interval.contains(now)) { in getCurrentFreezePeriod()
494 return interval.toCurrentOrFutureRealDates(now); in getCurrentFreezePeriod()
508 for (FreezePeriod interval : sortedPeriods) { in timeUntilNextFreezePeriod()
509 if (interval.after(nowDate)) { in timeUntilNextFreezePeriod()
510 nextFreezeStart = interval.toCurrentOrFutureRealDates(nowDate).first; in timeUntilNextFreezePeriod()
512 } else if (interval.contains(nowDate)) { in timeUntilNextFreezePeriod()
705 FreezePeriod interval = mFreezePeriods.get(i); in writeToParcel() local
706 dest.writeInt(interval.getStart().getMonthValue()); in writeToParcel()
707 dest.writeInt(interval.getStart().getDayOfMonth()); in writeToParcel()
[all …]
DFreezePeriod.java223 for (FreezePeriod interval : intervals) { in canonicalizePeriods()
224 for (int i = interval.mStartDay; i <= interval.getEffectiveEndDay(); i++) { in canonicalizePeriods()
318 for (FreezePeriod interval : allPeriods) { in validateAgainstPreviousFreezePeriod()
319 if (interval.contains(now) in validateAgainstPreviousFreezePeriod()
320 || interval.mStartDay > FreezePeriod.dayOfYearDisregardLeapYear(now)) { in validateAgainstPreviousFreezePeriod()
321 curOrNextFreezePeriod = interval; in validateAgainstPreviousFreezePeriod()
/frameworks/base/core/java/android/hardware/usb/
DUsbEndpoint.java43 public UsbEndpoint(int address, int attributes, int maxPacketSize, int interval) { in UsbEndpoint() argument
47 mInterval = interval; in UsbEndpoint()
142 int interval = in.readInt();
143 return new UsbEndpoint(address, attributes, maxPacketSize, interval);
/frameworks/base/wifi/java/android/net/wifi/aware/
DConfigRequest.java321 public Builder setDiscoveryWindowInterval(int band, int interval) { in setDiscoveryWindowInterval() argument
325 if ((band == NAN_BAND_24GHZ && (interval < 1 || interval > 5)) in setDiscoveryWindowInterval()
326 || (band == NAN_BAND_5GHZ && (interval < 0 || interval > 5))) { in setDiscoveryWindowInterval()
331 mDiscoveryWindowInterval[band] = interval; in setDiscoveryWindowInterval()
/frameworks/opt/net/voip/src/java/com/android/server/sip/
DSipWakeupTimer.java97 int interval = (int) (e.mLastTriggerTime + e.mMaxPeriod in recalculatePeriods() local
99 interval = interval / minPeriod * minPeriod; in recalculatePeriods()
100 e.mTriggerTime = minTriggerTime + interval; in recalculatePeriods()
126 int interval = event.mMaxPeriod; in insertEvent() local
127 interval -= (int) (firstEvent.mTriggerTime - now); in insertEvent()
128 interval = interval / minPeriod * minPeriod; in insertEvent()
129 event.mTriggerTime = firstEvent.mTriggerTime + interval; in insertEvent()
DSipService.java780 int interval = NAT_MEASUREMENT_RETRY_INTERVAL; in restartLater() local
782 mTimer.set(interval * 1000, this); in restartLater()
837 private void startKeepAliveProcess(int interval) { in startKeepAliveProcess() argument
838 if (SAR_DBG) log("startKeepAliveProcess: interval=" + interval); in startKeepAliveProcess()
845 mKeepAliveSession.startKeepAliveProcess(interval, this); in startKeepAliveProcess()
847 loge("startKeepAliveProcess: interval=" + interval, e); in startKeepAliveProcess()
864 int interval = getKeepAliveInterval(); in onResponse() local
868 + interval + ", past success count=" in onResponse()
871 if (interval > DEFAULT_KEEPALIVE_INTERVAL) { in onResponse()
873 mSession.getLocalProfile(), interval); in onResponse() local
[all …]
/frameworks/base/location/java/com/android/internal/location/
DProviderRequest.java36 public long interval = Long.MAX_VALUE; field in ProviderRequest
71 request.interval = in.readLong();
95 parcel.writeLong(interval); in writeToParcel()
111 TimeUtils.formatDuration(interval, s); in toString()
/frameworks/base/services/usage/java/com/android/server/usage/
DUserUsageStatsService.java626 for (int interval = 0; interval < mCurrentStats.length; interval++) { in dump()
628 pw.print(intervalToString(interval)); in dump()
630 printIntervalStats(pw, mCurrentStats[interval], !compact, true, pkg); in dump()
643 for (int interval = 0; interval < numIntervals; interval++) { in dumpFile()
644 ipw.println("interval=" + intervalToString(interval)); in dumpFile()
646 dumpFileDetailsForInterval(ipw, interval); in dumpFile()
650 final int interval; in dumpFile() local
654 interval = Integer.valueOf(args[0]); in dumpFile()
656 interval = intervalValue; in dumpFile()
662 if (interval < 0 || interval >= mDatabase.mSortedStatFiles.length) { in dumpFile()
[all …]
/frameworks/base/services/core/java/com/android/server/
DLocationUsageLogger.java61 private static int bucketizeIntervalToStatsdEnum(long interval) { in bucketizeIntervalToStatsdEnum() argument
63 if (interval < ONE_SEC_IN_MILLIS) { in bucketizeIntervalToStatsdEnum()
65 } else if (interval < ONE_SEC_IN_MILLIS * 5) { in bucketizeIntervalToStatsdEnum()
67 } else if (interval < ONE_MINUTE_IN_MILLIS) { in bucketizeIntervalToStatsdEnum()
69 } else if (interval < ONE_MINUTE_IN_MILLIS * 10) { in bucketizeIntervalToStatsdEnum()
71 } else if (interval < ONE_HOUR_IN_MILLIS) { in bucketizeIntervalToStatsdEnum()
/frameworks/av/include/media/
DInterpolator.h95 const S interval = high->first - low->first; in findY() local
99 const S t = (x - low->first) / interval; in findY()
133 sec = (high->second - low->second) / interval; in findY()
173 const S t = (x - low->first) / interval; in findY()
177 m0 *= interval; in findY()
178 m1 *= interval; in findY()
193 return h00 * low->second + (h10 * m0 + h11 * m1) * interval + h01 * high->second; in findY()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/display/
DDisplayDensityUtils.java120 final float interval = (1 - minScale) / numSmaller; in DisplayDensityUtils() local
123 final int density = ((int) (defaultDensity * (1 - (i + 1) * interval))) & ~1; in DisplayDensityUtils()
141 final float interval = (maxScale - 1) / numLarger; in DisplayDensityUtils() local
144 final int density = ((int) (defaultDensity * (1 + (i + 1) * interval))) & ~1; in DisplayDensityUtils()
/frameworks/base/tests/JankBench/scripts/external/
Dstatistics.py402 def median_grouped(data, interval=1): argument
437 for obj in (x, interval):
441 L = x - interval/2 # The lower limit of the median interval.
444 L = float(x) - float(interval)/2
448 return L + interval*(n/2 - cf)/f
/frameworks/opt/calendar/src/com/android/calendarcommon2/
DEventRecurrence.java54 public int interval; field in EventRecurrence
361 if (this.interval != 0) { in toString()
363 s.append(this.interval); in toString()
483 interval == er.interval && in equals()
515 freq = count = interval = bysecondCount = byminuteCount = byhourCount = in resetFields()
765 er.interval = parseIntRange(value, Integer.MIN_VALUE, Integer.MAX_VALUE, true); in parsePart()
766 if (er.interval < 1) { in parsePart()
768 er.interval = 1; in parsePart()
/frameworks/native/libs/gui/tests/
DSurface_test.cpp1100 EXPECT_EQ(initialCompositorTiming.interval, compositeInterval); in TEST_F()
1165 nsecs_t interval = 1000; in TEST_F() local
1170 timestamp, phase, interval)); in TEST_F()
1175 timestamp, phase, interval)); in TEST_F()
1180 timestamp, phase, interval)); in TEST_F()
1185 timestamp, phase, interval)); in TEST_F()
1190 timestamp, phase, interval)); in TEST_F()
1195 timestamp, phase, interval)); in TEST_F()
1200 timestamp, phase, interval)); in TEST_F()
1207 nsecs_t interval = 4000; in TEST_F() local
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/
DKeyValueBackupJob.java77 final long interval; in schedule() local
83 interval = constants.getKeyValueBackupIntervalMilliseconds(); in schedule()
89 delay = interval + new Random().nextInt((int) fuzz); in schedule()
/frameworks/base/cmds/statsd/src/shell/
DShellSubscriber.h77 PullInfo(const SimpleAtomMatcher& matcher, int64_t interval) in PullInfo()
78 : mPullerMatcher(matcher), mInterval(interval), mPrevPullElapsedRealtimeMs(0) { in PullInfo()
/frameworks/base/core/java/android/ddm/
DDdmHandleProfiling.java202 int interval = in.getInt(); in handleSPSS() local
205 + ", flags=" + flags + ", interval=" + interval); in handleSPSS()
209 Debug.startMethodTracingDdms(bufferSize, flags, true, interval); in handleSPSS()
/frameworks/native/services/surfaceflinger/tests/unittests/mock/system/window/
DMockNativeWindow.cpp23 int dispatch_setSwapInterval(struct ANativeWindow* window, int interval) { in dispatch_setSwapInterval() argument
24 return static_cast<NativeWindow*>(window)->setSwapInterval(interval); in dispatch_setSwapInterval()
/frameworks/native/services/surfaceflinger/Scheduler/
DIdleTimer.cpp25 IdleTimer::IdleTimer(const Interval& interval, const ResetCallback& resetCallback, in IdleTimer() argument
27 : mInterval(interval), mResetCallback(resetCallback), mTimeoutCallback(timeoutCallback) {} in IdleTimer()

12345