Home
last modified time | relevance | path

Searched refs:dur (Results 1 – 13 of 13) sorted by relevance

/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/
DSipConnectionBase.java107 long dur; in getDurationMillis() local
109 dur = 0; in getDurationMillis()
111 dur = SystemClock.elapsedRealtime() - mConnectTimeReal; in getDurationMillis()
113 dur = mDuration; in getDurationMillis()
115 if (VDBG) log("getDurationMillis: ret=" + dur); in getDurationMillis()
116 return dur; in getDurationMillis()
121 long dur; in getHoldDurationMillis() local
124 dur = 0; in getHoldDurationMillis()
126 dur = SystemClock.elapsedRealtime() - mHoldingStartTime; in getHoldDurationMillis()
128 if (VDBG) log("getHoldDurationMillis: ret=" + dur); in getHoldDurationMillis()
[all …]
/frameworks/base/core/java/android/view/animation/
DAnimation.java452 long dur = mDuration + mStartOffset; in restrictDuration() local
453 if (dur > durationMillis) { in restrictDuration()
455 dur = durationMillis; in restrictDuration()
467 || (dur*mRepeatCount) > durationMillis) { in restrictDuration()
470 mRepeatCount = (int)(durationMillis/dur) - 1; in restrictDuration()
/frameworks/base/graphics/java/android/graphics/drawable/
DAnimationDrawable.java377 public void addFrame(Drawable dr, int dur) { in addFrame() argument
381 mDurations[pos] = dur; in addFrame()
/frameworks/wilhelm/src/android/
DMediaPlayer_to_android.cpp528 int dur = ANDROID_UNKNOWN_TIME; in android_Player_getDuration() local
530 avp->mAVPlayer->getDurationMsec(&dur); in android_Player_getDuration()
532 if (dur == ANDROID_UNKNOWN_TIME) { in android_Player_getDuration()
535 *pDurMsec = (XAmillisecond)dur; in android_Player_getDuration()
/frameworks/base/media/java/android/media/
DTtmlRenderer.java467 long dur = 0; in parseNode() local
480 dur = TtmlUtils.parseTimeExpression(value, DEFAULT_FRAMERATE, DEFAULT_SUBFRAMERATE, in parseNode()
492 if (dur > 0) { in parseNode()
497 end = start + dur; in parseNode()
/frameworks/av/media/libstagefright/webm/
DWebmElement.h48 static sp<WebmElement> SegmentInfo(uint64_t scale = 1000000, double dur = 0);
DWebmElement.cpp295 sp<WebmElement> WebmElement::SegmentInfo(uint64_t scale, double dur) { in SegmentInfo() argument
298 segmentInfo.push_back(new WebmFloat(kMkvSegmentDuration, dur)); in SegmentInfo()
/frameworks/base/services/core/java/com/android/server/
DAppOpsService.java1023 String dur = parser.getAttributeValue(null, "d"); in readUid() local
1024 if (dur != null) { in readUid()
1025 op.duration = Integer.parseInt(dur); in readUid()
1104 int dur = op.getDuration(); in writeState() local
1105 if (dur != 0) { in writeState()
1106 out.attribute(null, "d", Integer.toString(dur)); in writeState()
DAlarmManagerService.java1307 long dur = nowELAPSED - mNonInteractiveStartTime; in interactiveStateChangedLocked() local
1308 if (dur > mNonInteractiveTime) { in interactiveStateChangedLocked()
1309 mNonInteractiveTime = dur; in interactiveStateChangedLocked()
/frameworks/base/core/java/android/inputmethodservice/
DKeyboardView.java1538 final int dur = (int)(pastTime[i] - oldestTime); in computeCurrentVelocity() local
1539 if (dur == 0) continue; in computeCurrentVelocity()
1541 float vel = (dist/dur) * units; // pixels/frame. in computeCurrentVelocity()
1546 vel = (dist/dur) * units; // pixels/frame. in computeCurrentVelocity()
/frameworks/base/services/core/java/com/android/server/am/
DActiveServices.java1177 long dur = SystemClock.uptimeMillis() - si.deliveredTime; in scheduleServiceRestartLocked() local
1178 dur *= 2; in scheduleServiceRestartLocked()
1179 if (minDuration < dur) minDuration = dur; in scheduleServiceRestartLocked()
1180 if (resetTime < dur) resetTime = dur; in scheduleServiceRestartLocked()
/frameworks/av/media/libstagefright/httplive/
DLiveSession.cpp1172 int64_t dur = source->getBufferedDurationUs(&err); in canSwitchUp() local
1173 if (err == OK && dur > 10000000) { in canSwitchUp()
/frameworks/base/core/java/com/android/internal/app/
DProcessStats.java2862 void addDuration(int state, long dur) { in addDuration() argument
2875 if (DEBUG) Slog.d(TAG, "Duration of " + mName + " state " + state + " inc by " + dur in addDuration()
2877 longs[(off>>OFFSET_INDEX_SHIFT)&OFFSET_INDEX_MASK] += dur; in addDuration()
3137 long dur = now - mStartTime; in commitStateTime() local
3138 if (dur > 0) { in commitStateTime()
3139 addDuration(mCurState, dur); in commitStateTime()