Home
last modified time | relevance | path

Searched refs:duration (Results 1 – 25 of 158) sorted by relevance

1234567

/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarInstancesHelper.java189 Duration duration = new Duration(); in performInstanceExpansion() local
225 duration.parse(durationStr); in performInstanceExpansion()
232 duration.sign = 1; in performInstanceExpansion()
233 duration.weeks = 0; in performInstanceExpansion()
234 duration.days = 0; in performInstanceExpansion()
235 duration.hours = 0; in performInstanceExpansion()
236 duration.minutes = 0; in performInstanceExpansion()
237 duration.seconds = 0; in performInstanceExpansion()
303 duration.sign = 1; in performInstanceExpansion()
304 duration.weeks = 0; in performInstanceExpansion()
[all …]
/packages/apps/Dialer/tests/src/com/android/dialer/calllog/
DCallLogFragmentTest.java476 private void insertWithCachedValues(String number, long date, int duration, int type, in insertWithCachedValues() argument
478 insert(number, Calls.PRESENTATION_ALLOWED, date, duration, type); in insertWithCachedValues()
503 private void insert(String number, int presentation, long date, int duration, int type) { in insert() argument
504 insertValues(getValuesToInsert(number, presentation, date, duration, type)); in insert()
524 long date, int duration, int type) { in getValuesToInsert() argument
530 values[CallLogQuery.DURATION] = duration < 0 ? mRnd.nextInt(10 * 60) : duration; in getValuesToInsert()
547 private void insertVoicemail(String number, int presentation, long date, int duration) {
548 … Object[] values = getValuesToInsert(number, presentation, date, duration, Calls.VOICEMAIL_TYPE);
560 private void insertPrivate(long date, int duration) {
561 insert("", Calls.PRESENTATION_RESTRICTED, date, duration, Calls.INCOMING_TYPE);
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DDragLayer.java460 int duration) { in animateViewIntoPosition() argument
467 onFinishRunnable, animationEndStyle, duration, null); in animateViewIntoPosition()
475 public void animateViewIntoPosition(DragView dragView, final View child, int duration, in animateViewIntoPosition() argument
530 onCompleteRunnable, ANIMATION_END_DISAPPEAR, duration, anchorView); in animateViewIntoPosition()
536 int animationEndStyle, int duration, View anchorView) { in animateViewIntoPosition() argument
540 …animateView(view, from, to, finalAlpha, initScaleX, initScaleY, finalScaleX, finalScaleY, duration, in animateViewIntoPosition()
567 final float finalScaleX, final float finalScaleY, int duration, in animateView() argument
578 if (duration < 0) { in animateView()
579 duration = res.getInteger(R.integer.config_dropAnimMaxDuration); in animateView()
581 duration *= mCubicEaseOutInterpolator.getInterpolation(dist / maxDist); in animateView()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DDragLayer.java533 int duration) { in animateViewIntoPosition() argument
540 onFinishRunnable, animationEndStyle, duration, null); in animateViewIntoPosition()
548 public void animateViewIntoPosition(DragView dragView, final View child, int duration, in animateViewIntoPosition() argument
612 onCompleteRunnable, ANIMATION_END_DISAPPEAR, duration, anchorView); in animateViewIntoPosition()
618 int animationEndStyle, int duration, View anchorView) { in animateViewIntoPosition() argument
622 …animateView(view, from, to, finalAlpha, initScaleX, initScaleY, finalScaleX, finalScaleY, duration, in animateViewIntoPosition()
649 final float finalScaleX, final float finalScaleY, int duration, in animateView() argument
660 if (duration < 0) { in animateView()
661 duration = res.getInteger(R.integer.config_dropAnimMaxDuration); in animateView()
663 duration *= mCubicEaseOutInterpolator.getInterpolation(dist / maxDist); in animateView()
[all …]
DPagedView.java2183 int duration = 0; in snapToPageWithVelocity() local
2206 duration = 4 * Math.round(1000 * Math.abs(distance / velocity)); in snapToPageWithVelocity()
2208 snapToPage(whichPage, delta, duration); in snapToPageWithVelocity()
2219 protected void snapToPage(int whichPage, int duration) { in snapToPage() argument
2220 snapToPage(whichPage, duration, false, null); in snapToPage()
2223 protected void snapToPage(int whichPage, int duration, TimeInterpolator interpolator) { in snapToPage() argument
2224 snapToPage(whichPage, duration, false, interpolator); in snapToPage()
2227 protected void snapToPage(int whichPage, int duration, boolean immediate, in snapToPage() argument
2234 snapToPage(whichPage, delta, duration, immediate, interpolator); in snapToPage()
2237 protected void snapToPage(int whichPage, int delta, int duration) { in snapToPage() argument
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DSwipeHelper.java121 private ObjectAnimator createDismissAnimation(View v, float newPos, int duration) { in createDismissAnimation() argument
124 anim.setDuration(duration); in createDismissAnimation()
270 int duration = determineDuration(animView, newPos, velocity); in dismissChild() local
273 ObjectAnimator anim = createDismissAnimation(animView, newPos, duration); in dismissChild()
294 int duration = MAX_ESCAPE_ANIMATION_DURATION; in determineDuration() local
296 duration = Math in determineDuration()
297 .min(duration, in determineDuration()
301 duration = DEFAULT_ESCAPE_ANIMATION_DURATION; in determineDuration()
303 return duration; in determineDuration()
322 final int duration = SNAP_ANIM_LEN; in snapChild() local
[all …]
/packages/apps/Mms/src/com/android/mms/model/
DSlideModel.java66 public SlideModel(int duration, SlideshowModel slideshow) { in SlideModel() argument
67 mDuration = duration; in SlideModel()
81 public SlideModel(int duration, ArrayList<MediaModel> mediaList) { in SlideModel() argument
82 mDuration = duration; in SlideModel()
219 public void setDuration(int duration) { in setDuration() argument
220 mDuration = duration; in setDuration()
542 public void updateDuration(int duration) { in updateDuration() argument
543 if (duration <= 0) { in updateDuration()
547 if ((duration > mDuration) in updateDuration()
549 mDuration = duration; in updateDuration()
DMediaModelFactory.java180 int duration = (int) (sme.getDur() * 1000); in getGenericMediaModel() local
181 if (duration <= 0) { in getGenericMediaModel()
187 duration = (int) (t.getResolvedOffset() * 1000) - begin; in getGenericMediaModel()
189 if (duration == 0 && in getGenericMediaModel()
191 duration = MmsConfig.getMinimumSlideElementDuration(); in getGenericMediaModel()
194 ", duration=" + duration); in getGenericMediaModel()
201 media.setDuration(duration); in getGenericMediaModel()
DMediaModel.java106 public void setDuration(int duration) { in setDuration() argument
107 if (isPlayable() && (duration < 0)) { in setDuration()
117 mDuration = duration; in setDuration()
215 int duration = 0; in initMediaDuration() local
220 duration = Integer.parseInt(dur); in initMediaDuration()
222 mDuration = duration; in initMediaDuration()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DSimpleScrollAdapterTransform.java70 long duration = valueAnim.getDuration(); in applyTransformationRecursive() local
71 if (distanceFromCenter < duration) { in applyTransformationRecursive()
74 valueAnim.setCurrentPlayTime(duration); in applyTransformationRecursive()
80 long duration = animator.getDuration(); in initializeTransformationRecursive() local
81 if (duration == 0) { in initializeTransformationRecursive()
82 duration = defaultDuration; in initializeTransformationRecursive()
87 initializeTransformationRecursive(children.get(i), duration); in initializeTransformationRecursive() local
93 TypedValue.COMPLEX_UNIT_DIP, duration, mDisplayMetrics)); in initializeTransformationRecursive()
DScrollController.java782 final public void startScroll(int dx, int dy, boolean easeFling, int duration, boolean page) { in startScroll() argument
817 if (duration == 0) duration = Math.max(durationX, durationY); in startScroll()
819 if (duration == 0) { in startScroll()
820 duration = getScrollDuration((int) Math.sqrt(dx * dx + dy * dy), page); in startScroll()
823 scroller.startScroll(basex, basey, dx, dy, duration); in startScroll()
839 int duration, boolean page) { in startScrollByMain() argument
848 startScroll(dx, dy, easeFling, duration, page); in startScrollByMain()
/packages/apps/Dialer/src/com/android/dialer/list/
DSwipeHelper.java143 private ObjectAnimator createDismissAnimation(View v, float newPos, int duration) { in createDismissAnimation() argument
146 anim.setDuration(duration); in createDismissAnimation()
277 int duration = determineDuration(animView, newPos, velocity); in dismissChild() local
280 ObjectAnimator anim = createDismissAnimation(animView, newPos, duration); in dismissChild()
301 int duration = MAX_ESCAPE_ANIMATION_DURATION; in determineDuration() local
303 duration = Math in determineDuration()
304 .min(duration, in determineDuration()
308 duration = DEFAULT_ESCAPE_ANIMATION_DURATION; in determineDuration()
310 return duration; in determineDuration()
329 int duration = SNAP_ANIM_LEN; in snapChild() local
[all …]
/packages/apps/Dialer/src/com/android/dialer/
DPhoneCallDetails.java49 public final long duration; field in PhoneCallDetails
97 int[] callTypes, long date, long duration) { in PhoneCallDetails() argument
99 callTypes, date, duration, "", 0, "", null, null, 0, null, null, 0, null, null); in PhoneCallDetails()
105 int[] callTypes, long date, long duration, String accountLabel, Drawable accountIcon, in PhoneCallDetails() argument
108 callTypes, date, duration, "", 0, "", null, null, 0, accountLabel, accountIcon, in PhoneCallDetails()
115 int[] callTypes, long date, long duration, CharSequence name, in PhoneCallDetails() argument
126 this.duration = duration; in PhoneCallDetails()
/packages/services/Telephony/src/com/android/phone/
DCallTime.java121 long duration = getCallDuration(call); in updateElapsedTime() local
122 mListener.onTickForCallTimeElapsed(duration / 1000); in updateElapsedTime()
131 long duration = 0; in getCallDuration() local
140 duration = c.getDurationMillis(); in getCallDuration()
147 if (t > duration) { in getCallDuration()
148 duration = t; in getCallDuration()
153 if (DBG) log("updateElapsedTime, count=" + count + ", duration=" + duration); in getCallDuration()
154 return duration; in getCallDuration()
/packages/experimental/RpcPerformance/src/com/android/rpc_performance/
DProviderPerfActivity.java347 long duration = doNoOpLookup(uri); in noOpProviderLoop() local
348 if (duration < 0) { in noOpProviderLoop()
352 sumNanos += duration; in noOpProviderLoop()
433 long duration = System.nanoTime() - startTime; in doNoOpLookup() local
435 return duration; in doNoOpLookup()
595 long duration = mode == MODE_READ ? settingsRead(innerSleep) : settingsWrite(mode); in settingsProviderLoop() local
596 if (duration < 0) { in settingsProviderLoop()
600 sumMillis += duration; in settingsProviderLoop()
623 long duration = SystemClock.uptimeMillis() - startTime; in settingsRead() local
629 return duration; in settingsRead()
[all …]
/packages/apps/Music/src/com/android/music/
DMediaPlaybackService.java568 seek(seekpos >= 0 && seekpos < duration() ? seekpos : 0); in reloadQueue()
570 + position() + "/" + duration() in reloadQueue()
811 ed.putLong(MediaMetadataRetriever.METADATA_KEY_DURATION, duration()); in notifyChange()
1164 long duration = mPlayer.duration(); in play() local
1165 if (mRepeatMode != REPEAT_CURRENT && duration > 2000 && in play()
1166 mPlayer.position() >= duration - 2000) { in play()
1446 long duration = duration(); in saveBookmarkIfNeeded() local
1453 if (pos < 15000 || (pos + 10000) > duration) { in saveBookmarkIfNeeded()
1812 public long duration() { in duration() method in MediaPlaybackService
1814 return mPlayer.duration(); in duration()
[all …]
DMediaPlaybackActivity.java742 mService.seek(mService.duration() * seekpercentage / 100); in seekMethod2()
896 long duration = mService.duration(); in scanBackward() local
897 mStartSeekPos += duration; in scanBackward()
898 newpos += duration; in scanBackward()
932 long duration = mService.duration(); in scanForward() local
933 if (newpos >= duration) { in scanForward()
936 mStartSeekPos -= duration; // is OK to go negative in scanForward()
937 newpos -= duration; in scanForward()
1310 mDuration = mService.duration(); in updateTrackInfo()
/packages/apps/InCallUI/src/com/android/incallui/widget/multiwaveview/
DGlowPadView.java420 private void showGlow(int duration, int delay, float finalAlpha, in showGlow() argument
423 mGlowAnimations.add(Tweener.to(mPointCloud.glowManager, duration, in showGlow()
432 private void hideGlow(int duration, int delay, float finalAlpha, in hideGlow() argument
435 mGlowAnimations.add(Tweener.to(mPointCloud.glowManager, duration, in hideGlow()
516 final int duration = animate ? HIDE_ANIMATION_DURATION : 0; in hideTargets() local
526 mTargetAnimations.add(Tweener.to(target, duration, in hideTargets()
538 mTargetAnimations.add(Tweener.to(mOuterRing, duration, in hideTargets()
554 final int duration = animate ? SHOW_ANIMATION_DURATION : 0; in showTargets() local
559 mTargetAnimations.add(Tweener.to(target, duration, in showTargets()
568 mTargetAnimations.add(Tweener.to(mOuterRing, duration, in showTargets()
[all …]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DOverScroller.java305 final int duration = mScrollerX.mDuration; in computeScrollOffset() local
306 if (elapsedTime < duration) { in computeScrollOffset()
307 float q = (float) (elapsedTime) / duration; in computeScrollOffset()
376 public void startScroll(int startX, int startY, int dx, int dy, int duration) { in startScroll() argument
378 mScrollerX.startScroll(startX, dx, duration); in startScroll()
379 mScrollerY.startScroll(startY, dy, duration); in startScroll()
685 void startScroll(int start, int distance, int duration) { in startScroll() argument
692 mDuration = duration; in startScroll()
/packages/apps/DeskClock/src/com/android/deskclock/widget/sgv/
DOverScrollerSGV.java307 final int duration = mScrollerX.mDuration; in computeScrollOffset() local
308 if (elapsedTime < duration) { in computeScrollOffset()
309 float q = (float) (elapsedTime) / duration; in computeScrollOffset()
378 public void startScroll(int startX, int startY, int dx, int dy, int duration) { in startScroll() argument
380 mScrollerX.startScroll(startX, dx, duration); in startScroll()
381 mScrollerY.startScroll(startY, dy, duration); in startScroll()
684 void startScroll(int start, int distance, int duration) { in startScroll() argument
691 mDuration = duration; in startScroll()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallLogManager.java172 long duration, in logCall() argument
185 sendAddCallBroadcast(callType, duration); in logCall()
190 + ", " + start + ", " + duration); in logCall()
192 callType, features, accountHandle, start, duration, dataUsage); in logCall()
307 private void sendAddCallBroadcast(int callType, long duration) { in sendAddCallBroadcast() argument
310 callAddIntent.putExtra(CALL_DURATION, duration); in sendAddCallBroadcast()
/packages/apps/Camera2/tests/src/com/android/camera/functional/
DVideoCaptureIntentTest.java166 int duration = verify(getActivity(), uri); in testExtraDurationLimit() local
170 Log.v(TAG, "Video length is " + duration + " ms."); in testExtraDurationLimit()
171 assertTrue(duration < (durationLimit + 1) * 1000); in testExtraDurationLimit()
212 String duration = retriever.extractMetadata(
214 assertNotNull(duration);
215 int durationValue = Integer.parseInt(duration);
/packages/apps/Camera2/tests_camera/src/com/android/camera/functional/
DVideoCaptureIntentTest.java166 int duration = verify(getActivity(), uri); in testExtraDurationLimit() local
170 Log.v(TAG, "Video length is " + duration + " ms."); in testExtraDurationLimit()
171 assertTrue(duration < (durationLimit + 1) * 1000); in testExtraDurationLimit()
212 String duration = retriever.extractMetadata(
214 assertNotNull(duration);
215 int durationValue = Integer.parseInt(duration);
/packages/apps/Camera/tests/src/com/android/camera/functional/
DVideoCaptureIntentTest.java166 int duration = verify(getActivity(), uri); in testExtraDurationLimit() local
170 Log.v(TAG, "Video length is " + duration + " ms."); in testExtraDurationLimit()
171 assertTrue(duration < (durationLimit + 1) * 1000); in testExtraDurationLimit()
212 String duration = retriever.extractMetadata(
214 assertNotNull(duration);
215 int durationValue = Integer.parseInt(duration);
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DMoviePlayer.java316 int duration = mVideoView.getDuration(); in setProgress() local
317 mController.setTimes(position, duration, 0, 0); in setProgress()
498 public void setBookmark(Uri uri, int bookmark, int duration) { in setBookmark() argument
508 dos.writeInt(duration); in setBookmark()
530 int duration = dis.readInt(); in getBookmark() local
536 if ((bookmark < HALF_MINUTE) || (duration < TWO_MINUTES) in getBookmark()
537 || (bookmark > (duration - HALF_MINUTE))) { in getBookmark()

1234567