Home
last modified time | relevance | path

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

12345678910

/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.java192 public void logChannelViewStop(Channel channel, long endTime, long duration) { in logChannelViewStop() argument
193 if (duration < MIN_DURATION_MS) { in logChannelViewStop()
196 WatchedRecord record = new WatchedRecord(channel.getId(), endTime - duration, duration); in logChannelViewStop()
247 public final long duration; field in WatchedHistoryManager.WatchedRecord
249 WatchedRecord(long channelId, long watchedStartTime, long duration) { in WatchedRecord() argument
252 this.duration = duration; in WatchedRecord()
262 + duration; in toString()
271 && Objects.equals(duration, that.duration); in equals()
278 return Objects.hash(channelId, watchedStartTime, duration); in hashCode()
284 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/Launcher3/src/com/android/launcher3/
DLauncherStateManager.java290 … mConfig.duration = state == NORMAL ? fromState.transitionDuration : state.transitionDuration; in goToStateAnimated()
310 AnimatorSetBuilder builder, @AnimationComponents int atomicComponent, long duration) { in createAtomicAnimation() argument
314 config.duration = duration; in createAtomicAnimation()
330 LauncherState fromState, LauncherState state, long duration) { in createAnimationToNewWorkspace() argument
342 return createAnimationToNewWorkspace(state, duration); in createAnimationToNewWorkspace()
353 LauncherState state, long duration) { in createAnimationToNewWorkspace() argument
354 return createAnimationToNewWorkspace(state, duration, LauncherStateManager.ANIM_ALL); in createAnimationToNewWorkspace()
358 LauncherState state, long duration, @AnimationComponents int animComponents) { in createAnimationToNewWorkspace() argument
359 return createAnimationToNewWorkspace(state, new AnimatorSetBuilder(), duration, null, in createAnimationToNewWorkspace()
364 AnimatorSetBuilder builder, long duration, Runnable onCancelRunnable, in createAnimationToNewWorkspace() argument
[all …]
DPagedView.java1413 int duration = 0; in snapToPageWithVelocity() local
1435 duration = 4 * Math.round(1000 * Math.abs(distance / velocity)); in snapToPageWithVelocity()
1438 return snapToPage(whichPage, delta, duration, false, null, in snapToPageWithVelocity()
1441 return snapToPage(whichPage, delta, duration); in snapToPageWithVelocity()
1453 public boolean snapToPage(int whichPage, int duration) { in snapToPage() argument
1454 return snapToPage(whichPage, duration, false, null); in snapToPage()
1457 public boolean snapToPage(int whichPage, int duration, TimeInterpolator interpolator) { in snapToPage() argument
1458 return snapToPage(whichPage, duration, false, interpolator); in snapToPage()
1461 protected boolean snapToPage(int whichPage, int duration, boolean immediate, in snapToPage() argument
1467 return snapToPage(whichPage, delta, duration, immediate, interpolator, 0, false); in snapToPage()
[all …]
DInterruptibleInOutAnimator.java68 public InterruptibleInOutAnimator(long duration, float fromValue, float toValue) { in InterruptibleInOutAnimator() argument
69 mAnimator = ObjectAnimator.ofFloat(this, VALUE, fromValue, toValue).setDuration(duration); in InterruptibleInOutAnimator()
70 mOriginalDuration = duration; in InterruptibleInOutAnimator()
95 long duration = mOriginalDuration - currentPlayTime; in animate() local
96 mAnimator.setDuration(Math.max(0, Math.min(duration, mOriginalDuration))); in animate()
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DAbstractStateChangeTouchController.java351 long duration = (long) (getShiftRange() * 2); in maybeUpdateAtomicAnim()
353 createAtomicAnimForState(mFromState, mToState, duration), duration); in maybeUpdateAtomicAnim()
366 long duration) { in createAtomicAnimForState() argument
369 ATOMIC_OVERVIEW_SCALE_COMPONENT, duration); in createAtomicAnimForState()
405 final long duration; in onDragEnd() local
413 duration = 0; in onDragEnd()
418 duration = SwipeDetector.calculateDuration(velocity, in onDragEnd()
431 duration = 0; in onDragEnd()
436 duration = SwipeDetector.calculateDuration(velocity, in onDragEnd()
445 updateSwipeCompleteAnimation(anim, Math.max(duration, getRemainingAtomicDuration()), in onDragEnd()
[all …]
/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/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/DeskClock/src/com/android/deskclock/alarms/dataadapter/
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 …]
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 …]
/packages/services/Car/tools/emulator/
Ddriving_info_generator.py158 duration = (gpxFrame.datetime - self.datetime).total_seconds()
159 … speedIncrement = (gpxFrame.speedInMps - self.speedInMps) / duration * SAMPLE_INTERVAL_SECONDS
163 while timeElapsed < duration:
165 if timeElapsed + SAMPLE_INTERVAL_SECONDS < duration:
170 timeLeft = duration - timeElapsed
180 def _generateInReverseMode(self, duration, listener): argument
189 while curTime < duration:
197 def _generateInParkMode(self, duration, listener): argument
207 while curTime < duration:
/packages/apps/Dialer/java/com/android/voicemail/impl/
DVoicemail.java32 private final Long duration; field in Voicemail
45 Long duration, in Voicemail() argument
56 this.duration = duration; in Voicemail()
127 public Builder setDuration(long duration) { in setDuration() argument
128 builderDuration = duration; in setDuration()
210 return duration; in getDuration()
277 dest.writeLong(duration); in writeToParcel()
321 duration = in.readLong(); in Voicemail()
/packages/services/Telephony/src/com/android/phone/
DCallTime.java122 long duration = getCallDuration(call); in updateElapsedTime() local
123 mListener.onTickForCallTimeElapsed(duration / 1000); in updateElapsedTime()
132 long duration = 0; in getCallDuration() local
141 duration = c.getDurationMillis(); in getCallDuration()
148 if (t > duration) { in getCallDuration()
149 duration = t; in getCallDuration()
154 if (DBG) log("updateElapsedTime, count=" + count + ", duration=" + duration); in getCallDuration()
155 return duration; in getCallDuration()
/packages/services/Car/tests/DefaultStorageMonitoringCompanionApp/src/com/google/android/car/defaultstoragemonitoringcompanionapp/
DMainActivity.java60 private String durationToString(Duration duration) {
61 final long days = duration.toDays();
62 duration = duration.minusDays(days);
63 final long hours = duration.toHours();
64 duration = duration.minusHours(hours);
65 final long minutes = duration.toMinutes();
/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/Launcher3/src/com/android/launcher3/dragndrop/
DDragLayer.java238 int duration) { in animateViewIntoPosition() argument
245 onFinishRunnable, animationEndStyle, duration, null); in animateViewIntoPosition()
252 public void animateViewIntoPosition(DragView dragView, final View child, int duration, in animateViewIntoPosition() argument
309 onCompleteRunnable, ANIMATION_END_DISAPPEAR, duration, anchorView); in animateViewIntoPosition()
315 int animationEndStyle, int duration, View anchorView) { in animateViewIntoPosition() argument
319 …animateView(view, from, to, finalAlpha, initScaleX, initScaleY, finalScaleX, finalScaleY, duration, in animateViewIntoPosition()
347 final float finalScaleX, final float finalScaleY, int duration, in animateView() argument
357 if (duration < 0) { in animateView()
358 duration = res.getInteger(R.integer.config_dropAnimMaxDuration); in animateView()
360 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/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/
DDigitalWellBeingToast.java141 Duration duration, in getReadableDuration() argument
145 int hours = Math.toIntExact(duration.toHours()); in getReadableDuration()
146 int minutes = Math.toIntExact(duration.minusHours(hours).toMinutes()); in getReadableDuration()
173 if (duration.compareTo(Duration.ZERO) > 0) { in getReadableDuration()
184 Duration duration, in getReadableDuration() argument
188 duration, in getReadableDuration()
195 final Duration duration = Duration.ofMillis( in getRoundedUpToMinuteReadableDuration() local
200 duration, FormatWidth.NARROW, R.string.shorter_duration_less_than_one_minute); in getRoundedUpToMinuteReadableDuration()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/
DWindowTransformSwipeHandler.java662 public void setShelfState(ShelfAnimState shelfState, Interpolator interpolator, long duration) { in setShelfState() argument
663 mAnimationFactory.setShelfState(shelfState, interpolator, duration); in setShelfState()
958 long duration = MAX_SWIPE_DURATION; in handleNormalGestureEnd() local
968 duration = Math.min(MAX_SWIPE_DURATION, expectedDuration); in handleNormalGestureEnd()
983 duration = Utilities.boundToRange(overshoot.duration, MIN_OVERSHOOT_DURATION, in handleNormalGestureEnd()
992 duration = Math.min(MAX_SWIPE_DURATION, 2 * baseDuration); in handleNormalGestureEnd()
1007 duration = Math.max(MIN_OVERSHOOT_DURATION, duration); in handleNormalGestureEnd()
1015 mRecentsView.snapToPage(nearestPage, Math.toIntExact(duration)); in handleNormalGestureEnd()
1020 duration = Math.max(duration, mRecentsView.getScroller().getDuration()); in handleNormalGestureEnd()
1023 setShelfState(ShelfAnimState.OVERVIEW, interpolator, duration); in handleNormalGestureEnd()
[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 animatorProperties.duration = (long) (durationSeconds * 1000); in getProperties()
165 animator.setDuration(properties.duration); in applyDismissing()
189 animator.setDuration(properties.duration); in applyDismissing()
223 animatorProperties.duration = (long) (durationSeconds * 1000); in getDismissingProperties()
291 long duration; field in FlingAnimationUtils.AnimatorProperties
/packages/apps/Launcher3/src/com/android/launcher3/util/
DOverScroller.java212 final int duration = mScroller.mDuration; in computeScrollOffset() local
213 if (elapsedTime < duration) { in computeScrollOffset()
214 final float q = mInterpolator.getInterpolation(elapsedTime / (float) duration); in computeScrollOffset()
259 public void startScroll(int start, int delta, int duration) { in startScroll() argument
261 mScroller.startScroll(start, delta, duration); in startScroll()
274 public void startScrollSpring(int start, int delta, int duration, float velocity) { in startScrollSpring() argument
277 mScroller.startScroll(start, delta, duration, velocity); in startScrollSpring()
544 void startScroll(int start, int distance, int duration) { in startScroll() argument
545 startScroll(start, distance, duration, 0); in startScroll()
548 void startScroll(int start, int distance, int duration, float velocity) { in startScroll() argument
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/anim/
DAnimatorPlaybackController.java50 public static AnimatorPlaybackController wrap(AnimatorSet anim, long duration) { in wrap() argument
51 return wrap(anim, duration, null); in wrap()
60 public static AnimatorPlaybackController wrap(AnimatorSet anim, long duration, in wrap() argument
66 return new AnimatorPlaybackControllerVL(anim, duration, onCancelRunnable); in wrap()
87 protected AnimatorPlaybackController(AnimatorSet anim, long duration, in AnimatorPlaybackController() argument
90 mDuration = duration; in AnimatorPlaybackController()
305 private AnimatorPlaybackControllerVL(AnimatorSet anim, long duration, in AnimatorPlaybackControllerVL() argument
307 super(anim, duration, onCancelRunnable); in AnimatorPlaybackControllerVL()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/helpers/
DPlayStatus.java35 public long duration = 0x00L; field in PlayStatus
39 static PlayStatus fromPlaybackState(PlaybackState state, long duration) { in fromPlaybackState() argument
45 ret.duration = duration; in fromPlaybackState()
80 return "{ state=" + state + " position=" + position + " duration=" + duration + " }"; in toString()
/packages/apps/DocumentsUI/src/com/android/documentsui/ui/
DSnackbars.java98 CharSequence message, int duration, CharSequence actionText, in makeSnackbarWithAction() argument
100 return makeSnackbar(activity, message, duration) in makeSnackbarWithAction()
106 int duration) { in makeSnackbar() argument
108 activity, activity.getResources().getText(messageId), duration); in makeSnackbar()
112 Activity activity, CharSequence message, int duration) { in makeSnackbar() argument
114 return Snackbar.make(view, message, duration); in makeSnackbar()

12345678910