/frameworks/base/cmds/statsd/src/metrics/ |
D | ValueMetricProducer.cpp | 359 for (auto& interval : slice.second) { in resetBase() local 360 interval.hasBase = false; in resetBase() 555 for (auto& interval : slice.second) { in accumulateEvents() local 556 interval.hasBase = false; in accumulateEvents() 584 for (const auto& interval : it.second) { in dumpStatesLocked() local 588 interval.value.toString().c_str()); in dumpStatesLocked() 715 Interval& interval = multiIntervals[i]; in onMatchedLogEventInternalLocked() local 716 interval.valueIndex = i; in onMatchedLogEventInternalLocked() 723 interval.seenNewData = true; in onMatchedLogEventInternalLocked() 726 if (!interval.hasBase) { in onMatchedLogEventInternalLocked() [all …]
|
/frameworks/base/core/java/android/bluetooth/le/ |
D | PeriodicAdvertisingParameters.java | 35 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()
|
D | AdvertisingSetParameters.java | 113 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/ |
D | GestureLauncherServiceTest.java | 208 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/ |
D | util_timer.py | 25 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/ |
D | SystemUpdatePolicy.java | 492 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 …]
|
D | FreezePeriod.java | 223 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/ |
D | UsbEndpoint.java | 43 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/ |
D | ConfigRequest.java | 321 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/ |
D | SipWakeupTimer.java | 97 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()
|
D | SipService.java | 782 int interval = NAT_MEASUREMENT_RETRY_INTERVAL; in restartLater() local 784 mTimer.set(interval * 1000, this); in restartLater() 839 private void startKeepAliveProcess(int interval) { in startKeepAliveProcess() argument 840 if (SAR_DBG) log("startKeepAliveProcess: interval=" + interval); in startKeepAliveProcess() 847 mKeepAliveSession.startKeepAliveProcess(interval, this); in startKeepAliveProcess() 849 loge("startKeepAliveProcess: interval=" + interval, e); in startKeepAliveProcess() 866 int interval = getKeepAliveInterval(); in onResponse() local 870 + interval + ", past success count=" in onResponse() 873 if (interval > DEFAULT_KEEPALIVE_INTERVAL) { in onResponse() 875 mSession.getLocalProfile(), interval); in onResponse() local [all …]
|
/frameworks/base/location/java/com/android/internal/location/ |
D | ProviderRequest.java | 36 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/ |
D | UserUsageStatsService.java | 625 for (int interval = 0; interval < mCurrentStats.length; interval++) { in dump() 627 pw.print(intervalToString(interval)); in dump() 629 printIntervalStats(pw, mCurrentStats[interval], !compact, true, pkg); in dump() 642 for (int interval = 0; interval < numIntervals; interval++) { in dumpFile() 643 ipw.println("interval=" + intervalToString(interval)); in dumpFile() 645 dumpFileDetailsForInterval(ipw, interval); in dumpFile() 649 final int interval; in dumpFile() local 653 interval = Integer.valueOf(args[0]); in dumpFile() 655 interval = intervalValue; in dumpFile() 661 if (interval < 0 || interval >= mDatabase.mSortedStatFiles.length) { in dumpFile() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | LocationUsageLogger.java | 61 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/ |
D | Interpolator.h | 95 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/ |
D | DisplayDensityUtils.java | 120 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/ |
D | statistics.py | 402 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/ |
D | EventRecurrence.java | 54 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/ |
D | KeyValueBackupJob.java | 77 final long interval; in schedule() local 83 interval = constants.getKeyValueBackupIntervalMilliseconds(); in schedule() 89 delay = interval + new Random().nextInt((int) fuzz); in schedule()
|
/frameworks/native/libs/gui/tests/ |
D | Surface_test.cpp | 1226 EXPECT_EQ(initialCompositorTiming.interval, compositeInterval); in TEST_F() 1291 nsecs_t interval = 1000; in TEST_F() local 1296 timestamp, phase, interval)); in TEST_F() 1301 timestamp, phase, interval)); in TEST_F() 1306 timestamp, phase, interval)); in TEST_F() 1311 timestamp, phase, interval)); in TEST_F() 1316 timestamp, phase, interval)); in TEST_F() 1321 timestamp, phase, interval)); in TEST_F() 1326 timestamp, phase, interval)); in TEST_F() 1333 nsecs_t interval = 4000; in TEST_F() local [all …]
|
/frameworks/base/cmds/statsd/src/shell/ |
D | ShellSubscriber.h | 76 PullInfo(const SimpleAtomMatcher& matcher, int64_t interval) in PullInfo() 77 : mPullerMatcher(matcher), mInterval(interval), mPrevPullElapsedRealtimeMs(0) { in PullInfo()
|
/frameworks/base/core/java/android/ddm/ |
D | DdmHandleProfiling.java | 202 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/ |
D | MockNativeWindow.cpp | 23 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/ |
D | IdleTimer.cpp | 25 IdleTimer::IdleTimer(const Interval& interval, const ResetCallback& resetCallback, in IdleTimer() argument 27 : mInterval(interval), mResetCallback(resetCallback), mTimeoutCallback(timeoutCallback) {} in IdleTimer()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/ |
D | UsageStatsDatabaseTest.java | 344 void runWriteReadTest(int interval) throws IOException { in runWriteReadTest() argument 345 mUsageStatsDatabase.putUsageStats(interval, mIntervalStats); in runWriteReadTest() 346 List<IntervalStats> stats = mUsageStatsDatabase.queryUsageStats(interval, 0, mEndTime, in runWriteReadTest() 370 void runVersionChangeTest(int oldVersion, int newVersion, int interval) throws IOException { in runVersionChangeTest() argument 374 prevDB.putUsageStats(interval, mIntervalStats); in runVersionChangeTest() 379 List<IntervalStats> stats = newDB.queryUsageStats(interval, 0, mEndTime, in runVersionChangeTest()
|