Home
last modified time | relevance | path

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

12345

/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/base/location/java/com/android/internal/location/
DProviderRequest.java43 public final long interval; field in ProviderRequest
70 private ProviderRequest(boolean reportLocation, long interval, boolean lowPowerMode, in ProviderRequest() argument
74 this.interval = interval; in ProviderRequest()
109 parcel.writeLong(interval); in writeToParcel()
122 TimeUtils.formatDuration(interval, s); in toString()
151 public Builder setInterval(long interval) { in setInterval() argument
152 this.mInterval = interval; in setInterval()
/frameworks/base/cmds/statsd/src/metrics/
DValueMetricProducer.cpp655 for (const auto& interval : it.second) { in dumpStatesLocked() local
659 interval.value.toString().c_str()); in dumpStatesLocked()
819 Interval& interval = intervals[i]; in onMatchedLogEventInternalLocked() local
820 interval.valueIndex = i; in onMatchedLogEventInternalLocked()
829 interval.seenNewData = true; in onMatchedLogEventInternalLocked()
890 if (interval.hasValue) { in onMatchedLogEventInternalLocked()
895 interval.value += value; in onMatchedLogEventInternalLocked()
898 interval.value = std::min(value, interval.value); in onMatchedLogEventInternalLocked()
901 interval.value = std::max(value, interval.value); in onMatchedLogEventInternalLocked()
907 interval.value = value; in onMatchedLogEventInternalLocked()
[all …]
/frameworks/base/wifi/java/android/net/wifi/aware/
DConfigRequest.java356 public Builder setDiscoveryWindowInterval(int band, int interval) { in setDiscoveryWindowInterval() argument
360 if ((band == NAN_BAND_24GHZ && (interval < 1 || interval > 5)) in setDiscoveryWindowInterval()
361 || (band == NAN_BAND_5GHZ && (interval < 0 || interval > 5)) in setDiscoveryWindowInterval()
362 || (band == NAN_BAND_6GHZ && (interval < 0 || interval > 5))) { in setDiscoveryWindowInterval()
367 mDiscoveryWindowInterval[band] = interval; in setDiscoveryWindowInterval()
/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/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/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()
/frameworks/base/services/core/java/com/android/server/location/
DLocationUsageLogger.java138 private static int bucketizeInterval(long interval) { in bucketizeInterval() argument
139 if (interval < ONE_SEC_IN_MILLIS) { in bucketizeInterval()
141 } else if (interval < ONE_SEC_IN_MILLIS * 5) { in bucketizeInterval()
143 } else if (interval < ONE_MINUTE_IN_MILLIS) { in bucketizeInterval()
145 } else if (interval < ONE_MINUTE_IN_MILLIS * 10) { in bucketizeInterval()
147 } else if (interval < ONE_HOUR_IN_MILLIS) { in bucketizeInterval()
/frameworks/base/services/usage/java/com/android/server/usage/
DUserUsageStatsService.java774 for (int interval = 0; interval < mCurrentStats.length; interval++) { in dump()
776 pw.print(intervalToString(interval)); in dump()
778 printIntervalStats(pw, mCurrentStats[interval], !compact, true, pkgs); in dump()
797 for (int interval = 0; interval < numIntervals; interval++) { in dumpFile()
798 ipw.println("interval=" + intervalToString(interval)); in dumpFile()
800 dumpFileDetailsForInterval(ipw, interval); in dumpFile()
804 final int interval; in dumpFile() local
808 interval = Integer.valueOf(args[0]); in dumpFile()
810 interval = intervalValue; in dumpFile()
816 if (interval < 0 || interval >= mDatabase.mSortedStatFiles.length) { in dumpFile()
[all …]
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DNekoService.java163 long interval = intervalMinutes * MINUTES; in registerJob() local
164 long jitter = (long) (INTERVAL_JITTER_FRAC * interval); in registerJob()
165 interval += (long) (Math.random() * (2 * jitter)) - jitter; in registerJob()
168 .setPeriodic(interval, INTERVAL_FLEX) in registerJob()
171 Log.v(TAG, "A cat will visit in " + interval + "ms: " + String.valueOf(jobInfo)); in registerJob()
178 .setContentTitle(String.format("Job scheduled in %d min", (interval / MINUTES))) in registerJob()
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DUsageStatsDatabaseTest.java379 void runWriteReadTest(int interval) throws IOException { in runWriteReadTest() argument
380 mUsageStatsDatabase.putUsageStats(interval, mIntervalStats); in runWriteReadTest()
381 List<IntervalStats> stats = mUsageStatsDatabase.queryUsageStats(interval, 0, mEndTime, in runWriteReadTest()
405 void runVersionChangeTest(int oldVersion, int newVersion, int interval) throws IOException { in runVersionChangeTest() argument
411 prevDB.putUsageStats(interval, mIntervalStats); in runVersionChangeTest()
420 List<IntervalStats> stats = newDB.queryUsageStats(interval, 0, mEndTime, in runVersionChangeTest()
572 private void compareObfuscatedData(int interval) throws IOException { in compareObfuscatedData() argument
577 prevDB.putUsageStats(interval, mIntervalStats); in compareObfuscatedData()
584 List<IntervalStats> stats = newDB.queryUsageStats(interval, 0, mEndTime, in compareObfuscatedData()
600 private void verifyPackageNotRetained(int interval) throws IOException { in verifyPackageNotRetained() argument
[all …]
/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/base/services/backup/java/com/android/server/backup/
DKeyValueBackupJob.java78 final long interval; in schedule() local
84 interval = constants.getKeyValueBackupIntervalMilliseconds(); in schedule()
90 delay = interval + new Random().nextInt((int) fuzz); in schedule()
/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/libs/gui/tests/
DSurface_test.cpp1259 EXPECT_EQ(initialCompositorTiming.interval, compositeInterval); in TEST_F()
1324 nsecs_t interval = 1000; in TEST_F() local
1329 timestamp, phase, interval)); in TEST_F()
1334 timestamp, phase, interval)); in TEST_F()
1339 timestamp, phase, interval)); in TEST_F()
1344 timestamp, phase, interval)); in TEST_F()
1349 timestamp, phase, interval)); in TEST_F()
1354 timestamp, phase, interval)); in TEST_F()
1359 timestamp, phase, interval)); in TEST_F()
1366 nsecs_t interval = 4000; in TEST_F() local
[all …]
/frameworks/base/cmds/statsd/src/shell/
DShellSubscriber.h71 PullInfo(const SimpleAtomMatcher& matcher, int64_t interval, in PullInfo()
74 mInterval(interval), in PullInfo()
/frameworks/native/services/surfaceflinger/Scheduler/
DOneShotTimer.cpp26 OneShotTimer::OneShotTimer(const Interval& interval, const ResetCallback& resetCallback, in OneShotTimer() argument
28 : mInterval(interval), mResetCallback(resetCallback), mTimeoutCallback(timeoutCallback) {} in OneShotTimer()

12345