Searched refs:interval (Results 1 - 25 of 92) sorted by relevance

1234

/frameworks/rs/tests/lldb/tests/harness/
H A Dutil_timer.py23 '''A Timer utility to execute a callback after a certain interval.'''
25 def __init__(self, interval, callback):
29 interval: int or float, interval in seconds to count, before
36 if not isinstance(interval, (int, float)):
37 raise TypeError('Argument "interval" is not a number: '
38 '{0}'.format(type(interval)))
45 self._interval = interval
/frameworks/base/core/java/android/bluetooth/le/
H A DPeriodicAdvertisingParameters.java35 private PeriodicAdvertisingParameters(boolean includeTxPower, int interval) { argument
37 mInterval = interval;
53 * Returns the periodic advertising interval, in 1.25ms unit.
99 * Set advertising interval for periodic advertising, in 1.25ms unit.
101 * Value from range [interval, interval+20ms] will be picked as the actual value.
103 * @throws IllegalArgumentException If the interval is invalid.
105 public Builder setInterval(int interval) { argument
106 if (interval < INTERVAL_MIN || interval > INTERVAL_MA
[all...]
H A DAdvertisingSetParameters.java53 * Minimum value for advertising interval.
58 * Maximum value for advertising interval.
113 int interval, int txPowerLevel) {
121 mInterval = interval;
187 * Returns the advertising interval.
208 + ", interval=" + mInterval
366 * Set advertising interval.
368 * @param interval Bluetooth LE Advertising interval, in 0.625ms unit. Valid range is from
372 * @throws IllegalArgumentException If the interval i
110 AdvertisingSetParameters(boolean connectable, boolean scannable, boolean isLegacy, boolean isAnonymous, boolean includeTxPower, int primaryPhy, int secondaryPhy, int interval, int txPowerLevel) argument
374 setInterval(int interval) argument
[all...]
/frameworks/base/libs/common_time/
H A Dcommon_time_config_service.cpp76 status_t CommonTimeConfigService::getMasterAnnounceInterval(int *interval) { argument
77 return mTimeServer.getMasterAnnounceInterval(interval);
80 status_t CommonTimeConfigService::setMasterAnnounceInterval(int interval) { argument
81 return mTimeServer.setMasterAnnounceInterval(interval);
84 status_t CommonTimeConfigService::getClientSyncInterval(int *interval) { argument
85 return mTimeServer.getClientSyncInterval(interval);
88 status_t CommonTimeConfigService::setClientSyncInterval(int interval) { argument
89 return mTimeServer.setClientSyncInterval(interval);
H A Dcommon_time_config_service.h41 virtual status_t getMasterAnnounceInterval(int *interval);
42 virtual status_t setMasterAnnounceInterval(int interval);
43 virtual status_t getClientSyncInterval(int *interval);
44 virtual status_t setClientSyncInterval(int interval);
H A Dcommon_time_server_api.cpp169 status_t CommonTimeServer::getMasterAnnounceInterval(int *interval) { argument
171 *interval = mMasterAnnounceIntervalMs;
175 status_t CommonTimeServer::setMasterAnnounceInterval(int interval) { argument
178 if (interval > (6 *3600000)) // Max interval is once every 6 hrs
181 if (interval < 500) // Min interval is once per 0.5 seconds
184 mMasterAnnounceIntervalMs = interval;
188 (pendingTimeout > interval)) {
197 status_t CommonTimeServer::getClientSyncInterval(int *interval) { argument
203 setClientSyncInterval(int interval) argument
[all...]
/frameworks/base/core/java/android/hardware/usb/
H A DUsbEndpoint.java43 public UsbEndpoint(int address, int attributes, int maxPacketSize, int interval) { argument
47 mInterval = interval;
122 * Returns the endpoint's interval field.
124 * @return the endpoint's interval
142 int interval = in.readInt();
143 return new UsbEndpoint(address, attributes, maxPacketSize, interval);
/frameworks/av/include/common_time/
H A DICommonTimeConfig.h46 virtual status_t getMasterAnnounceInterval(int *interval) = 0;
47 virtual status_t setMasterAnnounceInterval(int interval) = 0;
48 virtual status_t getClientSyncInterval(int *interval) = 0;
49 virtual status_t setClientSyncInterval(int interval) = 0;
/frameworks/base/location/java/com/android/internal/location/
H A DProviderRequest.java32 /** The smallest requested interval */
33 public long interval = Long.MAX_VALUE; field in class:ProviderRequest
45 * is a high power slow interval request and a
46 * low power fast interval request.
59 request.interval = in.readLong();
82 parcel.writeLong(interval);
96 s.append(" interval=");
97 TimeUtils.formatDuration(interval, s);
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DGestureLauncherServiceTest.java205 final long interval = GestureLauncherService.CAMERA_POWER_DOUBLE_TAP_MAX_TIME_MS - 1;
206 eventTime += interval;
223 assertEquals((int) interval, intervals.get(1).intValue());
249 final long interval = GestureLauncherService.CAMERA_POWER_DOUBLE_TAP_MAX_TIME_MS;
250 eventTime += interval;
267 assertEquals((int) interval, intervals.get(1).intValue());
274 // The interval is too long to launch the camera, but short enough to count as a
295 long interval = GestureLauncherService.POWER_SHORT_TAP_SEQUENCE_MAX_INTERVAL_MS;
296 eventTime += interval;
313 assertEquals((int) interval, interval
[all...]
/frameworks/av/media/common_time/
H A DICommonTimeConfig.cpp186 virtual status_t getMasterAnnounceInterval(int *interval) { argument
195 *interval = reply.readInt32();
202 virtual status_t setMasterAnnounceInterval(int interval) { argument
205 data.writeInt32(interval);
216 virtual status_t getClientSyncInterval(int *interval) { argument
225 *interval = reply.readInt32();
232 virtual status_t setClientSyncInterval(int interval) { argument
235 data.writeInt32(interval);
424 int interval; local
425 status_t status = getMasterAnnounceInterval(&interval);
435 int interval = data.readInt32(); local
443 int interval; local
454 int interval = data.readInt32(); local
[all...]
/frameworks/base/cmds/statsd/src/metrics/
H A DValueMetricProducer.cpp378 Interval& interval = mCurrentSlicedBucket[eventKey]; local
388 if (!interval.startUpdated) {
389 interval.start = value;
390 interval.startUpdated = true;
398 if (interval.startUpdated) {
399 if (value >= interval.start) {
400 interval.sum += (value - interval.start);
401 interval.hasValue = true;
404 interval
[all...]
/frameworks/base/wifi/java/android/net/wifi/aware/
H A DConfigRequest.java52 * Magic values for Discovery Window (DW) interval configuration
80 * Specifies the discovery window interval for the device on NAN_BAND_*.
195 "Invalid discovery window interval: must have 2 elements (2.4 & 5");
201 "Invalid discovery window interval for 2.4GHz: valid is UNSET or [1,5]");
207 "Invalid discovery window interval for 5GHz: valid is UNSET or [0,5]");
309 * The discovery window interval specifies the discovery windows in which the device will be
310 * awake. The configuration enables trading off latency vs. power (higher interval means
314 * @param interval A value of 1, 2, 3, 4, or 5 indicating an interval of 2^(interval
321 setDiscoveryWindowInterval(int band, int interval) argument
[all...]
/frameworks/native/services/surfaceflinger/tests/unittests/mock/system/window/
H A DMockNativeWindow.h33 MOCK_METHOD1(setSwapInterval, int(int interval));
/frameworks/base/core/java/android/app/admin/
H A DSystemUpdatePolicy.java494 for (FreezePeriod interval : mFreezePeriods) {
495 if (interval.contains(now)) {
496 return interval.toCurrentOrFutureRealDates(now);
510 for (FreezePeriod interval : sortedPeriods) {
511 if (interval.after(nowDate)) {
512 nextFreezeStart = interval.toCurrentOrFutureRealDates(nowDate).first;
514 } else if (interval.contains(nowDate)) {
519 // If no interval is after now, then it must be the one that starts at the beginning
709 FreezePeriod interval = mFreezePeriods.get(i);
710 dest.writeInt(interval
[all...]
H A DFreezePeriod.java133 * Instantiate the current interval to real calendar dates, given a calendar date
134 * {@code now}. If the interval contains now, the returned calendar dates should be the
135 * current interval (in real calendar dates) that includes now. If the interval does not
136 * include now, the returned dates represents the next future interval.
138 * interval itself.
145 // current interval
157 // next interval
208 * Sort, de-duplicate and merge an interval list
211 * simply flatten the interval ont
[all...]
/frameworks/base/core/java/android/app/
H A DIAlarmManager.aidl33 long interval, int flags, in PendingIntent operation, in IAlarmListener listener,
/frameworks/support/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/
H A DPlaybackSeekDiskDataProvider.java30 * Expects the seek positions are 1000ms interval, snapshots are stored at
37 PlaybackSeekDiskDataProvider(long duration, long interval, String pathPattern) { argument
39 int size = (int) (duration / interval) + 1;
/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/
H A DPlaybackSeekDiskDataProvider.java30 * Expects the seek positions are 1000ms interval, snapshots are stored at
37 PlaybackSeekDiskDataProvider(long duration, long interval, String pathPattern) { argument
39 int size = (int) (duration / interval) + 1;
/frameworks/opt/net/voip/src/java/com/android/server/sip/
H A DSipWakeupTimer.java97 int interval = (int) (e.mLastTriggerTime + e.mMaxPeriod
99 interval = interval / minPeriod * minPeriod;
100 e.mTriggerTime = minTriggerTime + interval;
126 int interval = event.mMaxPeriod;
127 interval -= (int) (firstEvent.mTriggerTime - now);
128 interval = interval / minPeriod * minPeriod;
129 event.mTriggerTime = firstEvent.mTriggerTime + interval;
/frameworks/base/services/backup/java/com/android/server/backup/
H A DKeyValueBackupJob.java60 final long interval;
66 interval = constants.getKeyValueBackupIntervalMilliseconds();
72 delay = interval + new Random().nextInt((int) fuzz);
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothGattCallback.java184 * @param interval Connection interval used on this connection, 1.25ms unit. Valid range is from
194 public void onConnectionUpdated(BluetoothGatt gatt, int interval, int latency, int timeout, argument
H A DBluetoothGattServerCallback.java188 * @param interval Connection interval used on this connection, 1.25ms unit. Valid range is from
198 public void onConnectionUpdated(BluetoothDevice device, int interval, int latency, int timeout, argument
/frameworks/base/core/java/android/os/
H A DCommonTimeConfig.java246 * @param interval The time (in milliseconds) between master announcements.
250 public int setMasterAnnounceInterval(int interval) { argument
253 return mUtils.transactSetInt(METHOD_SET_MASTER_ANNOUNCE_INTERVAL, interval);
273 * @param interval The time (in milliseconds) between time sync requests.
277 public int setClientSyncInterval(int interval) { argument
280 return mUtils.transactSetInt(METHOD_SET_CLIENT_SYNC_INTERVAL, interval);
/frameworks/base/location/lib/java/com/android/location/provider/
H A DProviderRequestUnbundled.java46 return mRequest.interval;

Completed in 468 milliseconds

1234