Home
last modified time | relevance | path

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

1234

/frameworks/base/libs/common_time/
Dcommon_time_config_service.cpp76 status_t CommonTimeConfigService::getMasterAnnounceInterval(int *interval) { in getMasterAnnounceInterval() argument
77 return mTimeServer.getMasterAnnounceInterval(interval); in getMasterAnnounceInterval()
80 status_t CommonTimeConfigService::setMasterAnnounceInterval(int interval) { in setMasterAnnounceInterval() argument
81 return mTimeServer.setMasterAnnounceInterval(interval); in setMasterAnnounceInterval()
84 status_t CommonTimeConfigService::getClientSyncInterval(int *interval) { in getClientSyncInterval() argument
85 return mTimeServer.getClientSyncInterval(interval); in getClientSyncInterval()
88 status_t CommonTimeConfigService::setClientSyncInterval(int interval) { in setClientSyncInterval() argument
89 return mTimeServer.setClientSyncInterval(interval); in setClientSyncInterval()
Dcommon_time_server_api.cpp169 status_t CommonTimeServer::getMasterAnnounceInterval(int *interval) { in getMasterAnnounceInterval() argument
171 *interval = mMasterAnnounceIntervalMs; in getMasterAnnounceInterval()
175 status_t CommonTimeServer::setMasterAnnounceInterval(int interval) { in setMasterAnnounceInterval() argument
178 if (interval > (6 *3600000)) // Max interval is once every 6 hrs in setMasterAnnounceInterval()
181 if (interval < 500) // Min interval is once per 0.5 seconds in setMasterAnnounceInterval()
184 mMasterAnnounceIntervalMs = interval; in setMasterAnnounceInterval()
188 (pendingTimeout > interval)) { in setMasterAnnounceInterval()
197 status_t CommonTimeServer::getClientSyncInterval(int *interval) { in getClientSyncInterval() argument
199 *interval = mSyncRequestIntervalMs; in getClientSyncInterval()
203 status_t CommonTimeServer::setClientSyncInterval(int interval) { in setClientSyncInterval() argument
[all …]
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);
Dcommon_time_server.h67 status_t getMasterAnnounceInterval(int *interval);
68 status_t setMasterAnnounceInterval(int interval);
69 status_t getClientSyncInterval(int *interval);
70 status_t setClientSyncInterval(int interval);
/frameworks/av/media/common_time/
DICommonTimeConfig.cpp186 virtual status_t getMasterAnnounceInterval(int *interval) { in getMasterAnnounceInterval() argument
195 *interval = reply.readInt32(); in getMasterAnnounceInterval()
202 virtual status_t setMasterAnnounceInterval(int interval) { in setMasterAnnounceInterval() argument
205 data.writeInt32(interval); in setMasterAnnounceInterval()
216 virtual status_t getClientSyncInterval(int *interval) { in getClientSyncInterval() argument
225 *interval = reply.readInt32(); in getClientSyncInterval()
232 virtual status_t setClientSyncInterval(int interval) { in setClientSyncInterval() argument
235 data.writeInt32(interval); in setClientSyncInterval()
424 int interval; in onTransact() local
425 status_t status = getMasterAnnounceInterval(&interval); in onTransact()
[all …]
/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/packages/EasterEgg/src/com/android/egg/neko/
DNekoService.java107 long interval = intervalMinutes * MINUTES; in registerJob() local
108 long jitter = (long)(INTERVAL_JITTER_FRAC * interval); in registerJob()
109 interval += (long)(Math.random() * (2 * jitter)) - jitter; in registerJob()
112 .setPeriodic(interval, INTERVAL_FLEX) in registerJob()
115 Log.v(TAG, "A cat will visit in " + interval + "ms: " + String.valueOf(jobInfo)); in registerJob()
122 .setContentTitle(String.format("Job scheduled in %d min", (interval / MINUTES))) in registerJob()
/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/av/include/common_time/
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/
DProviderRequest.java33 public long interval = Long.MAX_VALUE; field in ProviderRequest
52 request.interval = in.readLong();
73 parcel.writeLong(interval); in writeToParcel()
87 TimeUtils.formatDuration(interval, s); in toString()
/frameworks/base/core/java/android/os/
DCommonTimeConfig.java250 public int setMasterAnnounceInterval(int interval) { in setMasterAnnounceInterval() argument
253 return mUtils.transactSetInt(METHOD_SET_MASTER_ANNOUNCE_INTERVAL, interval); in setMasterAnnounceInterval()
277 public int setClientSyncInterval(int interval) { in setClientSyncInterval() argument
280 return mUtils.transactSetInt(METHOD_SET_CLIENT_SYNC_INTERVAL, interval); in setClientSyncInterval()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/display/
DDisplayDensityUtils.java117 final float interval = (1 - minScale) / numSmaller; in DisplayDensityUtils() local
120 final int density = ((int) (defaultDensity * (1 - (i + 1) * interval))) & ~1; in DisplayDensityUtils()
138 final float interval = (maxScale - 1) / numLarger; in DisplayDensityUtils() local
141 final int density = ((int) (defaultDensity * (1 + (i + 1) * interval))) & ~1; in DisplayDensityUtils()
/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/core/java/android/app/
DProfilerInfo.java42 public ProfilerInfo(String filename, ParcelFileDescriptor fd, int interval, boolean autoStop) { in ProfilerInfo() argument
45 samplingInterval = interval; in ProfilerInfo()
DIAlarmManager.aidl33 long interval, int flags, in PendingIntent operation, in IAlarmListener listener, in set() argument
/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/base/docs/html/training/efficient-downloads/
Dregular_updates.jd58 long interval = AlarmManager.INTERVAL_HOUR;
59 long start = System.currentTimeMillis() + interval;
61 alarmManager.setInexactRepeating(alarmType, start, interval, pi);</pre>
93 <pre>private void retryIn(long interval) {
97 retryIn(interval*2 < MAX_RETRY_INTERVAL ?
98 interval*2 : MAX_RETRY_INTERVAL);
/frameworks/base/services/usage/java/com/android/server/usage/
DUserUsageStatsService.java476 for (int interval = 0; interval < mCurrentStats.length; interval++) { in dump()
478 pw.print(intervalToString(interval)); in dump()
480 printIntervalStats(pw, mCurrentStats[interval], true); in dump()
558 private static String intervalToString(int interval) { in intervalToString() argument
559 switch (interval) { in intervalToString()
/frameworks/base/services/tests/servicestests/src/com/android/server/location/
DLocationBasedCountryDetectorTest.java347 long interval = 1000; in waitForTimerReset() local
350 Thread.sleep(interval); in waitForTimerReset()
368 long interval = 1000; in waitForQueryThreadLaunched() local
371 Thread.sleep(interval); in waitForQueryThreadLaunched()
/frameworks/ex/common/java/com/android/common/
DGoogleLogTags.logtags78 # interval_and_nt contains both the heartbeat interval and the network type, It's represented as
79 # (networkType << 16) + interval
80 # interval is in seconds; network type can be 0 (mobile) or 1 (wifi); ip is the host ip addr.
/frameworks/base/core/java/android/app/job/
DJobInfo.java319 long interval = getIntervalMillis(); in getFlexMillis() local
320 long percentClamp = 5 * interval / 100; in getFlexMillis()
322 return clampedFlex <= interval ? clampedFlex : interval; in getFlexMillis()
/frameworks/base/docs/html/training/location/
Dchange-location-settings.jd33 desired update interval, and the device automatically makes the appropriate
77 class reference. This lesson sets the update interval, fastest update
78 interval, and priority, as described below:</p>
82 Update interval
93 Fastest update interval
161 interval of 5000 milliseconds (5 seconds), causes the fused location
168 adjust the fastest interval to a slower value. This adjustment prevents your
170 set the fastest interval back to a fast value.</p>
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/
DEventRecurrenceTest.java719 int freq, String until, int count, int interval, in verifyRecurType() argument
729 || eventRecurrence.interval != interval in verifyRecurType()
738 System.out.println(" interval=" + interval); in verifyRecurType()
770 System.out.println(" interval=" + er.interval); in print()
/frameworks/base/location/lib/java/com/android/location/provider/
DProviderRequestUnbundled.java45 return mRequest.interval; in getInterval()

1234