/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarInstancesHelper.java | 191 Duration duration = new Duration(); in performInstanceExpansion() local 227 duration.parse(durationStr); in performInstanceExpansion() 234 duration.sign = 1; in performInstanceExpansion() 235 duration.weeks = 0; in performInstanceExpansion() 236 duration.days = 0; in performInstanceExpansion() 237 duration.hours = 0; in performInstanceExpansion() 238 duration.minutes = 0; in performInstanceExpansion() 239 duration.seconds = 0; in performInstanceExpansion() 305 duration.sign = 1; in performInstanceExpansion() 306 duration.weeks = 0; in performInstanceExpansion() [all …]
|
/packages/apps/VideoEditor/src/com/android/videoeditor/ |
D | ProjectPickerAdapter.java | 140 String duration; in getView() local 143 duration = ""; in getView() 151 duration = millisecondsToTimeString(project.getProjectDuration()); in getView() 152 thumbnail = getThumbnail(project.getPath(), iv, title, duration); in getView() 156 drawBottomOverlay(thumbnail, title, duration); in getView() 166 public void drawBottomOverlay(Bitmap bitmap, String title, String duration) { in drawBottomOverlay() argument 181 final int availableTitleWidth = bitmap.getWidth() - (int) paint.measureText(duration); in drawBottomOverlay() 189 canvas.drawText(duration, in drawBottomOverlay() 190 bitmap.getWidth() - paint.measureText(duration) - mOverlayHorizontalInset, in drawBottomOverlay() 196 String duration) { in getThumbnail() argument [all …]
|
/packages/apps/Dialer/tests/src/com/android/dialer/calllog/ |
D | CallLogFragmentTest.java | 491 private void insertWithCachedValues(String number, long date, int duration, int type, in insertWithCachedValues() argument 493 insert(number, Calls.PRESENTATION_ALLOWED, date, duration, type); in insertWithCachedValues() 518 private void insert(String number, int presentation, long date, int duration, int type) { in insert() argument 519 insertValues(getValuesToInsert(number, presentation, date, duration, type)); in insert() 539 long date, int duration, int type) { in getValuesToInsert() argument 545 values[CallLogQuery.DURATION] = duration < 0 ? mRnd.nextInt(10 * 60) : duration; in getValuesToInsert() 562 private void insertVoicemail(String number, int presentation, long date, int duration) { 563 … Object[] values = getValuesToInsert(number, presentation, date, duration, Calls.VOICEMAIL_TYPE); 575 private void insertPrivate(long date, int duration) { 576 insert("", Calls.PRESENTATION_RESTRICTED, date, duration, Calls.INCOMING_TYPE); [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | DragLayer.java | 498 int duration) { in animateViewIntoPosition() argument 505 onFinishRunnable, animationEndStyle, duration, null); in animateViewIntoPosition() 513 public void animateViewIntoPosition(DragView dragView, final View child, int duration, in animateViewIntoPosition() argument 573 onCompleteRunnable, ANIMATION_END_DISAPPEAR, duration, anchorView); in animateViewIntoPosition() 579 int animationEndStyle, int duration, View anchorView) { in animateViewIntoPosition() argument 583 …animateView(view, from, to, finalAlpha, initScaleX, initScaleY, finalScaleX, finalScaleY, duration, in animateViewIntoPosition() 610 final float finalScaleX, final float finalScaleY, int duration, in animateView() argument 621 if (duration < 0) { in animateView() 622 duration = res.getInteger(R.integer.config_dropAnimMaxDuration); in animateView() 624 duration *= mCubicEaseOutInterpolator.getInterpolation(dist / maxDist); in animateView() [all …]
|
D | PagedView.java | 2157 int duration = 0; in snapToPageWithVelocity() local 2180 duration = 4 * Math.round(1000 * Math.abs(distance / velocity)); in snapToPageWithVelocity() 2182 snapToPage(whichPage, delta, duration); in snapToPageWithVelocity() 2193 protected void snapToPage(int whichPage, int duration) { in snapToPage() argument 2194 snapToPage(whichPage, duration, false, null); in snapToPage() 2197 protected void snapToPage(int whichPage, int duration, TimeInterpolator interpolator) { in snapToPage() argument 2198 snapToPage(whichPage, duration, false, interpolator); in snapToPage() 2201 protected void snapToPage(int whichPage, int duration, boolean immediate, in snapToPage() argument 2208 snapToPage(whichPage, delta, duration, immediate, interpolator); in snapToPage() 2211 protected void snapToPage(int whichPage, int delta, int duration) { in snapToPage() argument [all …]
|
D | Cling.java | 259 void show(boolean animate, int duration) { in show() argument 273 .setDuration(duration) in show() 284 .setDuration(duration) in show() 298 .setDuration(duration) in show() 312 void hide(final int duration, final Runnable postCb) { in hide() argument 320 .setDuration(duration) in hide() 332 .setDuration(duration) in hide() 347 .setDuration(duration) in hide()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | DragLayer.java | 460 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 …]
|
D | InterruptibleInOutAnimator.java | 48 public InterruptibleInOutAnimator(View view, long duration, float fromValue, float toValue) { in InterruptibleInOutAnimator() argument 49 mAnimator = LauncherAnimUtils.ofFloat(view, fromValue, toValue).setDuration(duration); in InterruptibleInOutAnimator() 50 mOriginalDuration = duration; in InterruptibleInOutAnimator() 76 long duration = mOriginalDuration - currentPlayTime; in animate() local 77 mAnimator.setDuration(Math.max(0, Math.min(duration, mOriginalDuration))); in animate()
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | SwipeHelper.java | 121 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/ |
D | SlideModel.java | 65 public SlideModel(int duration, SlideshowModel slideshow) { in SlideModel() argument 66 mDuration = duration; in SlideModel() 80 public SlideModel(int duration, ArrayList<MediaModel> mediaList) { in SlideModel() argument 81 mDuration = duration; in SlideModel() 218 public void setDuration(int duration) { in setDuration() argument 219 mDuration = duration; in setDuration() 541 public void updateDuration(int duration) { in updateDuration() argument 542 if (duration <= 0) { in updateDuration() 546 if ((duration > mDuration) in updateDuration() 548 mDuration = duration; in updateDuration()
|
D | MediaModelFactory.java | 180 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()
|
D | MediaModel.java | 106 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/Dialer/src/com/android/dialer/list/ |
D | SwipeHelper.java | 143 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/services/Telephony/src/com/android/phone/ |
D | CallTime.java | 121 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/ |
D | ProviderPerfActivity.java | 347 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/ |
D | MediaPlaybackService.java | 568 seek(seekpos >= 0 && seekpos < duration() ? seekpos : 0); in reloadQueue() 570 + position() + "/" + duration() in reloadQueue() 811 ed.putLong(MediaMetadataRetriever.METADATA_KEY_DURATION, duration()); in notifyChange() 1162 long duration = mPlayer.duration(); in play() local 1163 if (mRepeatMode != REPEAT_CURRENT && duration > 2000 && in play() 1164 mPlayer.position() >= duration - 2000) { in play() 1444 long duration = duration(); in saveBookmarkIfNeeded() local 1451 if (pos < 15000 || (pos + 10000) > duration) { in saveBookmarkIfNeeded() 1810 public long duration() { in duration() method in MediaPlaybackService 1812 return mPlayer.duration(); in duration() [all …]
|
D | MediaPlaybackActivity.java | 742 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/Dialer/src/com/android/dialer/ |
D | PhoneCallDetails.java | 46 public final long duration; field in PhoneCallDetails 70 int[] callTypes, long date, long duration) { in PhoneCallDetails() argument 72 callTypes, date, duration, "", 0, "", null, null, 0); in PhoneCallDetails() 78 int[] callTypes, long date, long duration, CharSequence name, in PhoneCallDetails() argument 88 this.duration = duration; in PhoneCallDetails()
|
/packages/apps/Camera2/src/com/android/camera/ |
D | MediaSaveService.java | 120 public void addVideo(String path, long duration, ContentValues values, in addVideo() argument 124 new VideoSaveTask(path, duration, values, l, resolver).execute(); in addVideo() 197 private long duration; field in MediaSaveService.VideoSaveTask 202 public VideoSaveTask(String path, long duration, ContentValues values, in VideoSaveTask() argument 205 this.duration = duration; in VideoSaveTask() 214 values.put(Video.Media.DURATION, duration); in doInBackground()
|
/packages/apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/ |
D | GlowPadView.java | 397 private void showGlow(int duration, int delay, float finalAlpha, in showGlow() argument 400 mGlowAnimations.add(Tweener.to(mPointCloud.glowManager, duration, in showGlow() 409 private void hideGlow(int duration, int delay, float finalAlpha, in hideGlow() argument 412 mGlowAnimations.add(Tweener.to(mPointCloud.glowManager, duration, in hideGlow() 493 final int duration = animate ? HIDE_ANIMATION_DURATION : 0; in hideTargets() local 503 mTargetAnimations.add(Tweener.to(target, duration, in hideTargets() 514 mTargetAnimations.add(Tweener.to(mOuterRing, duration, in hideTargets() 530 final int duration = animate ? SHOW_ANIMATION_DURATION : 0; in showTargets() local 535 mTargetAnimations.add(Tweener.to(target, duration, in showTargets() 543 mTargetAnimations.add(Tweener.to(mOuterRing, duration, in showTargets() [all …]
|
/packages/apps/InCallUI/src/com/android/incallui/widget/multiwaveview/ |
D | GlowPadView.java | 423 private void showGlow(int duration, int delay, float finalAlpha, in showGlow() argument 426 mGlowAnimations.add(Tweener.to(mPointCloud.glowManager, duration, in showGlow() 435 private void hideGlow(int duration, int delay, float finalAlpha, in hideGlow() argument 438 mGlowAnimations.add(Tweener.to(mPointCloud.glowManager, duration, in hideGlow() 519 final int duration = animate ? HIDE_ANIMATION_DURATION : 0; in hideTargets() local 529 mTargetAnimations.add(Tweener.to(target, duration, in hideTargets() 541 mTargetAnimations.add(Tweener.to(mOuterRing, duration, in hideTargets() 557 final int duration = animate ? SHOW_ANIMATION_DURATION : 0; in showTargets() local 562 mTargetAnimations.add(Tweener.to(target, duration, in showTargets() 571 mTargetAnimations.add(Tweener.to(mOuterRing, duration, in showTargets() [all …]
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | OverScroller.java | 305 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/ |
D | OverScrollerSGV.java | 307 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/apps/Camera2/tests/src/com/android/camera/functional/ |
D | VideoCaptureIntentTest.java | 166 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/ |
D | VideoCaptureIntentTest.java | 166 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);
|