/packages/apps/TV/src/com/android/tv/data/ |
D | WatchedHistoryManager.java | 170 public void logChannelViewStop(Channel channel, long endTime, long duration) { in logChannelViewStop() argument 171 if (duration < MIN_DURATION_MS) { in logChannelViewStop() 174 WatchedRecord record = new WatchedRecord(channel.getId(), endTime - duration, duration); in logChannelViewStop() 220 Long duration = durationMap.get(channelId); in buildRecentChannel() local 221 if (duration == null) { in buildRecentChannel() 222 duration = 0l; in buildRecentChannel() 224 if (duration >= RECENT_CHANNEL_THRESHOLD_MS) { in buildRecentChannel() 234 duration += record.duration; in buildRecentChannel() 235 durationMap.put(channelId, duration); in buildRecentChannel() 236 if (duration >= RECENT_CHANNEL_THRESHOLD_MS) { in buildRecentChannel() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/sms/ |
D | SmsReleaseStorage.java | 91 public static String getMessageRetainingDurationString(final Duration duration) { in getMessageRetainingDurationString() argument 93 switch (duration.mUnit) { in getMessageRetainingDurationString() 96 R.plurals.week_count, duration.mCount, duration.mCount); in getMessageRetainingDurationString() 99 R.plurals.month_count, duration.mCount, duration.mCount); in getMessageRetainingDurationString() 102 R.plurals.year_count, duration.mCount, duration.mCount); in getMessageRetainingDurationString() 105 "SmsAutoDelete: invalid duration unit " + duration.mUnit); in getMessageRetainingDurationString() 119 public static long durationToTimeInMillis(final Duration duration) { in durationToTimeInMillis() argument 120 switch (duration.mUnit) { in durationToTimeInMillis() 122 return duration.mCount * WEEK_IN_MILLIS; in durationToTimeInMillis() 124 return duration.mCount * MONTH_IN_MILLIS; in durationToTimeInMillis() [all …]
|
/packages/apps/TV/tests/unit/src/com/android/tv/data/ |
D | WatchedHistoryManagerTest.java | 80 long duration = TimeUnit.MINUTES.toMillis(10); in testLogChannelViewStop() local 82 mWatchedHistoryManager.logChannelViewStop(channel, time, duration); in testLogChannelViewStop() 88 assertEquals(record.watchedStartTime, time - duration); in testLogChannelViewStop() 89 assertEquals(record.duration, duration); in testLogChannelViewStop() 98 long duration = TimeUnit.MINUTES.toMillis(10); in testCircularHistoryQueue() local 103 mWatchedHistoryManager.logChannelViewStop(channel, time + duration * i, duration); in testCircularHistoryQueue() 130 long duration = TimeUnit.MINUTES.toMillis(10); in testEncodeDecodeWatchedRecord() local 131 WatchedRecord record = new WatchedRecord(fakeId, time, duration); in testEncodeDecodeWatchedRecord()
|
/packages/apps/Dialer/InCallUI/src/com/android/incallui/ |
D | InCallDateUtils.java | 33 StringBuilder duration = new StringBuilder(); in formatDuration() local 36 duration.append(res.getQuantityString(R.plurals.duration_hours, hours, hours)); in formatDuration() 40 duration.append(' '); in formatDuration() 42 … duration.append(res.getQuantityString(R.plurals.duration_minutes, minutes, minutes)); in formatDuration() 46 duration.append(' '); in formatDuration() 48 … duration.append(res.getQuantityString(R.plurals.duration_seconds, seconds, seconds)); in formatDuration() 54 return duration.toString(); in formatDuration()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
D | SimpleScrollAdapterTransform.java | 70 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()
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarInstancesHelper.java | 189 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/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/apps/Messaging/src/com/android/messaging/ui/conversationlist/ |
D | ConversationListSwipeHelper.java | 341 final long duration; in animateDismiss() local 344 duration = calculateTranslationDuration(deltaX, velocityX); in animateDismiss() 346 duration = mDefaultDismissAnimationDuration; in animateDismiss() 350 itemView, animateTo, duration, UiUtils.DEFAULT_INTERPOLATOR); in animateDismiss() 368 final long duration; in animateRestore() local 371 duration = calculateTranslationDuration(translationX, velocityX); in animateRestore() 373 duration = mDefaultRestoreAnimationDuration; in animateRestore() 376 itemView, 0f, duration, UiUtils.DEFAULT_INTERPOLATOR); in animateRestore() 391 final float animateTo, final long duration, final TimeInterpolator interpolator) { in getSwipeTranslationXAnimator() argument 394 animator.setDuration(duration); in getSwipeTranslationXAnimator()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
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()
|
D | SmoothPagedView.java | 135 int duration = (screenDelta + 1) * 100; in snapToPageWithVelocity() local 149 duration += (duration / (velocity / mBaseLineFlingVelocity)) * mFlingVelocityInfluence; in snapToPageWithVelocity() 151 duration += 100; in snapToPageWithVelocity() 154 snapToPage(whichPage, delta, duration); in snapToPageWithVelocity()
|
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 …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | InterruptibleInOutAnimator.java | 50 public InterruptibleInOutAnimator(View view, long duration, float fromValue, float toValue) { in InterruptibleInOutAnimator() argument 51 mAnimator = LauncherAnimUtils.ofFloat(view, fromValue, toValue).setDuration(duration); in InterruptibleInOutAnimator() 52 mOriginalDuration = duration; in InterruptibleInOutAnimator() 78 long duration = mOriginalDuration - currentPlayTime; in animate() local 79 mAnimator.setDuration(Math.max(0, Math.min(duration, mOriginalDuration))); in animate()
|
D | SearchDropTargetBar.java | 133 public void animateToState(State newState, int duration) { in animateToState() argument 134 animateToState(newState, duration, null); in animateToState() 137 public void animateToState(State newState, int duration, AnimatorSet animation) { in animateToState() argument 152 if (duration > 0) { in animateToState() 154 mCurrentAnimation.setDuration(duration); in animateToState() 167 if (duration > 0) { in animateToState() 187 if (duration > 0) { in animateToState()
|
D | WorkspaceStateTransitionAnimation.java | 267 final int duration, final HashMap<View, Integer> layerViews, in animateWorkspace() argument 309 mWorkspace.snapToPage(toPage, duration, mZoomInInterpolator); in animateWorkspace() 356 .setDuration(duration) in animateWorkspace() 374 .setDuration(duration) in animateWorkspace() 384 bgAnim.setDuration(duration); in animateWorkspace() 434 overviewPanelAlpha.setDuration(duration); in animateWorkspace() 435 pageIndicatorAlpha.setDuration(duration); in animateWorkspace() 436 hotseatAlpha.setDuration(duration); in animateWorkspace() 481 boolean animated, int duration) { in animateBackgroundGradient() argument 501 bgFadeOutAnimation.setDuration(duration); in animateBackgroundGradient()
|
D | DragLayer.java | 556 int duration) { in animateViewIntoPosition() argument 563 onFinishRunnable, animationEndStyle, duration, null); in animateViewIntoPosition() 571 public void animateViewIntoPosition(DragView dragView, final View child, int duration, in animateViewIntoPosition() argument 635 onCompleteRunnable, ANIMATION_END_DISAPPEAR, duration, anchorView); in animateViewIntoPosition() 641 int animationEndStyle, int duration, View anchorView) { in animateViewIntoPosition() argument 645 …animateView(view, from, to, finalAlpha, initScaleX, initScaleY, finalScaleX, finalScaleY, duration, in animateViewIntoPosition() 672 final float finalScaleX, final float finalScaleY, int duration, in animateView() argument 682 if (duration < 0) { in animateView() 683 duration = res.getInteger(R.integer.config_dropAnimMaxDuration); in animateView() 685 duration *= mCubicEaseOutInterpolator.getInterpolation(dist / maxDist); in animateView() [all …]
|
/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/TV/usbtuner/src/com/android/usbtuner/tvinput/ |
D | UsbTunerDebug.java | 117 long duration = currentTime - sUsbTunerDebug.mLastCheckTimestampMs; in calculateDiff() local 118 if (duration != 0) { in calculateDiff() 121 / duration; in calculateDiff() 124 / duration; in calculateDiff() 127 / duration; in calculateDiff()
|
/packages/apps/Stk/src/com/android/stk/ |
D | StkApp.java | 51 public static int calculateDurationInMilis(Duration duration) { in calculateDurationInMilis() argument 53 if (duration != null) { in calculateDurationInMilis() 54 switch (duration.timeUnit) { in calculateDurationInMilis() 66 timeout *= duration.timeInterval; in calculateDurationInMilis()
|
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
D | CallDetailHistoryAdapter.java | 105 TextView durationView = (TextView) result.findViewById(R.id.duration); in getView() 125 durationView.setText(formatDurationAndDataUsage(details.duration, details.dataUsage)); in getView() 154 CharSequence duration = formatDuration(elapsedSeconds); in formatDurationAndDataUsage() local 158 mDurationItems.add(duration); in formatDurationAndDataUsage() 163 return duration; in formatDurationAndDataUsage()
|
/packages/apps/TV/src/com/android/tv/ui/ |
D | IntroView.java | 86 protected void onStartEnterAnimation(TimeInterpolator interpolator, long duration) { in onStartEnterAnimation() argument 92 .setDuration(duration) in onStartEnterAnimation() 98 protected void onStartExitAnimation(TimeInterpolator interpolator, long duration, in onStartExitAnimation() argument 104 .setDuration(duration) in onStartExitAnimation()
|
D | OnRepeatedKeyInterceptListener.java | 60 long duration = event.getEventTime() - event.getDownTime(); in onInterceptKeyEvent() local 61 if (duration < THRESHOLD_FAST_FOCUS_CHANGE_TIME_MS[0] in onInterceptKeyEvent() 70 if (THRESHOLD_FAST_FOCUS_CHANGE_TIME_MS[i] < duration) { in onInterceptKeyEvent() 77 mRepeatedKeyInterval = duration / event.getRepeatCount(); in onInterceptKeyEvent()
|
/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/Bluetooth/src/com/android/bluetooth/gatt/ |
D | AppScanStats.java | 42 long duration; field in AppScanStats.LastScan 49 public LastScan(long timestamp, long duration, in LastScan() argument 51 this.duration = duration; in LastScan() 130 curr.duration = scanDuration; in recordScanStop() 236 sb.append(scan.duration + "ms "); in dumpToString()
|
/packages/apps/Camera2/tests_camera/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/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 …]
|