Home
last modified time | relevance | path

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

123456789

/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/src/com/android/tv/data/
DWatchedHistoryManager.java179 public void logChannelViewStop(Channel channel, long endTime, long duration) { in logChannelViewStop() argument
180 if (duration < MIN_DURATION_MS) { in logChannelViewStop()
183 WatchedRecord record = new WatchedRecord(channel.getId(), endTime - duration, duration); in logChannelViewStop()
235 public final long duration; field in WatchedHistoryManager.WatchedRecord
237 WatchedRecord(long channelId, long watchedStartTime, long duration) { in WatchedRecord() argument
240 this.duration = duration; in WatchedRecord()
246 + ",duration=" + duration; in toString()
255 && Objects.equals(duration, that.duration); in equals()
262 return Objects.hash(channelId, watchedStartTime, duration); in hashCode()
268 return record.channelId + " " + record.watchedStartTime + " " + record.duration; in encode()
[all …]
/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/TV/tests/unit/src/com/android/tv/data/
DWatchedHistoryManagerTest.java73 long duration = TimeUnit.MINUTES.toMillis(10); in testLogChannelViewStop() local
75 mWatchedHistoryManager.logChannelViewStop(channel, time, duration); in testLogChannelViewStop()
81 assertEquals(record.watchedStartTime, time - duration); in testLogChannelViewStop()
82 assertEquals(record.duration, duration); in testLogChannelViewStop()
91 long duration = TimeUnit.MINUTES.toMillis(10); in testCircularHistoryQueue() local
96 mWatchedHistoryManager.logChannelViewStop(channel, time + duration * i, duration); in testCircularHistoryQueue()
123 long duration = TimeUnit.MINUTES.toMillis(10); in testEncodeDecodeWatchedRecord() local
124 WatchedRecord record = new WatchedRecord(fakeId, time, duration); in testEncodeDecodeWatchedRecord()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/affordance/
DSwipeButtonView.java297 long duration = 250; in setCircleRadius() local
301 duration = (long) (CIRCLE_APPEAR_DURATION * durationFactor); in setCircleRadius()
302 duration = Math.min(duration, CIRCLE_DISAPPEAR_MAX_DURATION); in setCircleRadius()
304 animator.setDuration(duration); in setCircleRadius()
316 previewClipper.setDuration(duration); in setCircleRadius()
368 float imageScale, boolean animate, long duration, @Nullable Interpolator interpolator) { in setImageScale() argument
392 if (duration == -1) { in setImageScale()
395 duration = (long) (NORMAL_ANIMATION_DURATION * durationFactor); in setImageScale()
397 animator.setDuration(duration); in setImageScale()
429 long duration, in setImageAlpha() argument
[all …]
/packages/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/cards/
DCallCard.java127 final long duration = 500 * DebugUtil.ANIMATION_FACTOR; in animateCallConnected() local
137 .setDuration(duration); in animateCallConnected()
144 .setDuration(duration); in animateCallConnected()
151 .setDuration(duration); in animateCallConnected()
155 .setDuration(duration); in animateCallConnected()
160 .setDuration(duration) in animateCallConnected()
165 .setDuration(duration); in animateCallConnected()
184 final int duration = 500; in animateCallDisconnected() local
194 .setDuration(duration * DebugUtil.ANIMATION_FACTOR) in animateCallDisconnected()
204 .setDuration(duration * DebugUtil.ANIMATION_FACTOR); in animateCallDisconnected()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/
DExpandedAlarmViewHolder.java262 int fromBottom, long duration) { in onAnimateChange() argument
295 animatorSet.setDuration(duration); in onAnimateChange()
314 long duration) { in onAnimateChange() argument
325 ? createExpandingAnimator((AlarmItemViewHolder) oldHolder, duration) in onAnimateChange()
326 : createCollapsingAnimator((AlarmItemViewHolder) newHolder, duration); in onAnimateChange()
342 private Animator createCollapsingAnimator(AlarmItemViewHolder newHolder, long duration) { in createCollapsingAnimator() argument
355 backgroundAnimator.setDuration(duration); in createCollapsingAnimator()
358 boundsAnimator.setDuration(duration); in createCollapsingAnimator()
361 final long shortDuration = (long) (duration * ANIM_SHORT_DURATION_MULTIPLIER); in createCollapsingAnimator()
383 final long delayIncrement = (long) (duration * ANIM_LONG_DELAY_INCREMENT_MULTIPLIER) in createCollapsingAnimator()
[all …]
DCollapsedAlarmViewHolder.java150 int fromBottom, long duration) { in onAnimateChange() argument
157 long duration) { in onAnimateChange() argument
167 ? createCollapsingAnimator((AlarmItemViewHolder) oldHolder, duration) in onAnimateChange()
168 : createExpandingAnimator((AlarmItemViewHolder) newHolder, duration); in onAnimateChange()
183 private Animator createExpandingAnimator(AlarmItemViewHolder newHolder, long duration) { in createExpandingAnimator() argument
195 alphaAnimatorSet.setDuration((long) (duration * ANIM_SHORT_DURATION_MULTIPLIER)); in createExpandingAnimator()
200 .setDuration(duration); in createExpandingAnimator()
208 private Animator createCollapsingAnimator(AlarmItemViewHolder oldHolder, long duration) { in createCollapsingAnimator() argument
216 final long standardDelay = (long) (duration * ANIM_STANDARD_DELAY_MULTIPLIER); in createCollapsingAnimator()
218 alphaAnimatorSet.setStartDelay(duration - standardDelay); in createCollapsingAnimator()
[all …]
/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/apps/Launcher3/src/com/android/launcher3/
DPinchAnimationManager.java91 public void animateToProgress(float currentProgress, float toProgress, int duration, in animateToProgress() argument
93 if (duration == -1) { in animateToProgress()
94 duration = mNormalOverviewTransitionDuration; in animateToProgress()
115 animator.setDuration(duration).start(); in animateToProgress()
183 private void setOverviewPanelsAlpha(float alpha, int duration) { in setOverviewPanelsAlpha() argument
187 if (duration == 0) { in setOverviewPanelsAlpha()
190 ObjectAnimator.ofFloat(cl, "backgroundAlpha", alpha).setDuration(duration).start(); in setOverviewPanelsAlpha()
236 private void startAnimator(int index, Animator animator, long duration) { in startAnimator() argument
242 mAnimators[index].setDuration(duration).start(); in startAnimator()
DPagedView.java1838 int duration = 0; in snapToPageWithVelocity() local
1861 duration = 4 * Math.round(1000 * Math.abs(distance / velocity)); in snapToPageWithVelocity()
1863 snapToPage(whichPage, delta, duration); in snapToPageWithVelocity()
1874 protected void snapToPage(int whichPage, int duration) { in snapToPage() argument
1875 snapToPage(whichPage, duration, false, null); in snapToPage()
1878 protected void snapToPage(int whichPage, int duration, TimeInterpolator interpolator) { in snapToPage() argument
1879 snapToPage(whichPage, duration, false, interpolator); in snapToPage()
1882 protected void snapToPage(int whichPage, int duration, boolean immediate, in snapToPage() argument
1888 snapToPage(whichPage, delta, duration, immediate, interpolator); in snapToPage()
1891 protected void snapToPage(int whichPage, int delta, int duration) { in snapToPage() argument
[all …]
DInterruptibleInOutAnimator.java50 public InterruptibleInOutAnimator(View view, long duration, float fromValue, float toValue) { in InterruptibleInOutAnimator() argument
51 mAnimator = LauncherAnimUtils.ofFloat(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()
DWorkspaceStateTransitionAnimation.java265 final int duration, AnimationLayerSet layerViews, final boolean accessibilityEnabled) { in animateWorkspace() argument
340 alphaAnim.setDuration(duration) in animateWorkspace()
348 bgAnim.setDuration(duration); in animateWorkspace()
377 overviewPanelAlpha.setDuration(duration); in animateWorkspace()
384 .setDuration(duration); in animateWorkspace()
399 hotseatAlpha.setDuration(duration); in animateWorkspace()
449 boolean animated, int duration) { in animateBackgroundGradient() argument
469 bgFadeOutAnimation.setDuration(duration); in animateBackgroundGradient()
/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/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/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 …]
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()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DDragLayer.java566 int duration) { in animateViewIntoPosition() argument
573 onFinishRunnable, animationEndStyle, duration, null); in animateViewIntoPosition()
581 public void animateViewIntoPosition(DragView dragView, final View child, int duration, in animateViewIntoPosition() argument
645 onCompleteRunnable, ANIMATION_END_DISAPPEAR, duration, anchorView); in animateViewIntoPosition()
651 int animationEndStyle, int duration, View anchorView) { in animateViewIntoPosition() argument
655 …animateView(view, from, to, finalAlpha, initScaleX, initScaleY, finalScaleX, finalScaleY, duration, in animateViewIntoPosition()
683 final float finalScaleX, final float finalScaleY, int duration, in animateView() argument
693 if (duration < 0) { in animateView()
694 duration = res.getInteger(R.integer.config_dropAnimMaxDuration); in animateView()
696 duration *= mCubicEaseOutInterpolator.getInterpolation(dist / maxDist); in animateView()
[all …]
/packages/apps/Dialer/java/com/android/dialer/calllogutils/
DCallEntryFormatter.java109 String duration = format.format(date); in formatDuration() local
115 duration = duration.replaceFirst(Integer.toString(minutes % 60), Integer.toString(minutes)); in formatDuration()
117 return duration; in formatDuration()
168 Context context, CharSequence duration, long dataUsage) { in formatDurationAndDataUsageInternal() argument
171 durationItems.add(duration); in formatDurationAndDataUsageInternal()
175 return duration; in formatDurationAndDataUsageInternal()
/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/Dialer/java/com/android/incallui/answer/impl/utils/
DFlingAnimationUtils.java96 animator.setDuration(properties.duration); in apply()
118 animator.setDuration(properties.duration); in apply()
145 mAnimatorProperties.duration = (long) (durationSeconds * 1000); in getProperties()
165 animator.setDuration(properties.duration); in applyDismissing()
189 animator.setDuration(properties.duration); in applyDismissing()
223 mAnimatorProperties.duration = (long) (durationSeconds * 1000); in getDismissingProperties()
291 long duration; field in FlingAnimationUtils.AnimatorProperties
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DAppScanStats.java52 long duration; field in AppScanStats.LastScan
64 public LastScan(long timestamp, long duration, boolean opportunistic, boolean background, in LastScan() argument
66 this.duration = duration; in LastScan()
186 scan.duration = scanDuration; in recordScanStop()
348 sb.append(scan.duration + "ms "); in dumpToString()
379 long duration = scan.suspendDuration in dumpToString() local
382 + " Suspended Time: " + duration + "ms\n"); in dumpToString()
/packages/apps/Music/src/com/android/music/
DMediaPlaybackService.java560 seek(seekpos >= 0 && seekpos < duration() ? seekpos : 0); in reloadQueue()
561 Log.d(LOGTAG, "restored queue, currently at position " + position() + "/" + duration() in reloadQueue()
802 ed.putLong(MediaMetadataRetriever.METADATA_KEY_DURATION, duration()); in notifyChange()
1153 long duration = mPlayer.duration(); in play() local
1154 if (mRepeatMode != REPEAT_CURRENT && duration > 2000 in play()
1155 && mPlayer.position() >= duration - 2000) { in play()
1435 long duration = duration(); in saveBookmarkIfNeeded() local
1442 if (pos < 15000 || (pos + 10000) > duration) { in saveBookmarkIfNeeded()
1800 public long duration() { in duration() method in MediaPlaybackService
1802 return mPlayer.duration(); in duration()
[all …]
/packages/apps/TV/src/com/android/tv/tuner/tvinput/
DTunerDebug.java117 long duration = currentTime - sTunerDebug.mLastCheckTimestampMs; in calculateDiff() local
118 if (duration != 0) { in calculateDiff()
121 / duration; in calculateDiff()
124 / duration; in calculateDiff()
127 / duration; in calculateDiff()

123456789