Home
last modified time | relevance | path

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

12345678

/packages/apps/TV/src/com/android/tv/data/
DWatchedHistoryManager.java170 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/
DSmsReleaseStorage.java91 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/
DWatchedHistoryManagerTest.java80 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/
DInCallDateUtils.java33 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()
42duration.append(res.getQuantityString(R.plurals.duration_minutes, minutes, minutes)); in formatDuration()
46 duration.append(' '); in formatDuration()
48duration.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/
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()
/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/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/apps/Messaging/src/com/android/messaging/ui/conversationlist/
DConversationListSwipeHelper.java341 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/
DInterruptibleInOutAnimator.java48 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()
DSmoothPagedView.java135 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()
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/
DInterruptibleInOutAnimator.java50 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()
DSearchDropTargetBar.java133 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()
DWorkspaceStateTransitionAnimation.java267 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()
DDragLayer.java556 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/
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/TV/usbtuner/src/com/android/usbtuner/tvinput/
DUsbTunerDebug.java117 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/
DStkApp.java51 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/
DCallDetailHistoryAdapter.java105 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/
DIntroView.java86 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()
DOnRepeatedKeyInterceptListener.java60 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/
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/Bluetooth/src/com/android/bluetooth/gatt/
DAppScanStats.java42 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/
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/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 …]

12345678