Home
last modified time | relevance | path

Searched refs:durationSeconds (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DFlingAnimationUtils.java176 float durationSeconds = startGradient * diff / velAbs; in getProperties() local
178 if (durationSeconds <= maxLengthSeconds) { in getProperties()
183 durationSeconds = maxLengthSeconds; in getProperties()
185 = new VelocityInterpolator(durationSeconds, velAbs, diff); in getProperties()
192 durationSeconds = maxLengthSeconds; in getProperties()
195 mAnimatorProperties.duration = (long) (durationSeconds * 1000); in getProperties()
273 float durationSeconds = startGradient * diff / velAbs; in getDismissingProperties() local
274 if (durationSeconds <= maxLengthSeconds) { in getDismissingProperties()
280 durationSeconds = maxLengthSeconds; in getDismissingProperties()
282 = new VelocityInterpolator(durationSeconds, velAbs, diff); in getDismissingProperties()
[all …]
/frameworks/base/services/people/java/com/android/server/people/data/
DCallLogQueryHelper.java85 long durationSeconds = cursor.getLong(durationIndex); in querySince() local
92 if (addEvent(phoneNumber, date, durationSeconds, callType)) { in querySince()
104 private boolean addEvent(String phoneNumber, long date, long durationSeconds, int callType) { in addEvent() argument
110 .setDurationSeconds((int) durationSeconds) in addEvent()
DEvent.java231 Builder setDurationSeconds(int durationSeconds) { in setDurationSeconds() argument
232 mDurationSeconds = durationSeconds; in setDurationSeconds()
/frameworks/av/media/libaaudio/examples/write_sine/src/
Dwrite_sine_callback.cpp93 int32_t durationSeconds; in testOpenPlayClose() local
97 durationSeconds = argParser.getDurationSeconds(); in testOpenPlayClose()
101 durationSeconds = 2; // just wait briefly when quiet in testOpenPlayClose()
117 for (int second = 0; second < durationSeconds; second++) { in testOpenPlayClose()
/frameworks/base/media/java/android/media/
DTtmlRenderer.java134 double durationSeconds = Long.parseLong(hours) * 3600; in parseTimeExpression() local
136 durationSeconds += Long.parseLong(minutes) * 60; in parseTimeExpression()
138 durationSeconds += Long.parseLong(seconds); in parseTimeExpression()
140 durationSeconds += (fraction != null) ? Double.parseDouble(fraction) : 0; in parseTimeExpression()
142 durationSeconds += (frames != null) ? ((double)Long.parseLong(frames)) / frameRate : 0; in parseTimeExpression()
144 durationSeconds += (subframes != null) ? ((double)Long.parseLong(subframes)) in parseTimeExpression()
147 return (long)(durationSeconds * 1000); in parseTimeExpression()
/frameworks/opt/calendar/src/com/android/calendarcommon2/
DRecurrenceSet.java489 long durationSeconds = (durationMillis / 1000); in computeDuration() local
490 if (start.allDay && (durationSeconds % 86400) == 0) { in computeDuration()
491 return "P" + (durationSeconds / 86400) + "D"; // Server wants this instead of P86400S in computeDuration()
493 return "P" + durationSeconds + "S"; in computeDuration()
/frameworks/wilhelm/tools/permute/
Dpermute.c212 double durationSeconds = (double) sfinfo_in.frames / (double) sfinfo_in.samplerate; in permute() local
217 s.mSegmentMax = durationSeconds / meanSegmentLengthSeconds; in permute()
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DUsageStatsQueryHelperTest.java316 private static Event createInAppConversationEvent(long timestamp, int durationSeconds) { in createInAppConversationEvent() argument
318 .setDurationSeconds(durationSeconds) in createInAppConversationEvent()
/frameworks/base/core/java/android/bluetooth/
DBluetoothAdapter.java1525 int durationSeconds = Math.toIntExact(durationMillis / 1000); in setScanMode() local
1526 return mService.setScanMode(mode, durationSeconds); in setScanMode()