/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/src/com/android/tv/data/ |
D | WatchedHistoryManager.java | 192 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/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherStateManager.java | 288 … mConfig.duration = state == NORMAL ? fromState.transitionDuration : state.transitionDuration; in goToStateAnimated() 308 AnimatorSetBuilder builder, @AnimationComponents int atomicComponent, long duration) { in createAtomicAnimation() argument 312 config.duration = duration; in createAtomicAnimation() 328 LauncherState fromState, LauncherState state, long duration) { in createAnimationToNewWorkspace() argument 340 return createAnimationToNewWorkspace(state, duration); in createAnimationToNewWorkspace() 351 LauncherState state, long duration) { in createAnimationToNewWorkspace() argument 352 return createAnimationToNewWorkspace(state, duration, LauncherStateManager.ANIM_ALL); in createAnimationToNewWorkspace() 356 LauncherState state, long duration, @AnimationComponents int animComponents) { in createAnimationToNewWorkspace() argument 357 return createAnimationToNewWorkspace(state, new AnimatorSetBuilder(), duration, null, in createAnimationToNewWorkspace() 362 AnimatorSetBuilder builder, long duration, Runnable onCancelRunnable, in createAnimationToNewWorkspace() argument [all …]
|
D | PagedView.java | 1432 int duration = 0; in snapToPageWithVelocity() local 1454 duration = 4 * Math.round(1000 * Math.abs(distance / velocity)); in snapToPageWithVelocity() 1457 return snapToPage(whichPage, delta, duration, false, null, in snapToPageWithVelocity() 1460 return snapToPage(whichPage, delta, duration); in snapToPageWithVelocity() 1472 public boolean snapToPage(int whichPage, int duration) { in snapToPage() argument 1473 return snapToPage(whichPage, duration, false, null); in snapToPage() 1476 public boolean snapToPage(int whichPage, int duration, TimeInterpolator interpolator) { in snapToPage() argument 1477 return snapToPage(whichPage, duration, false, interpolator); in snapToPage() 1480 protected boolean snapToPage(int whichPage, int duration, boolean immediate, in snapToPage() argument 1486 return snapToPage(whichPage, delta, duration, immediate, interpolator, 0, false); in snapToPage() [all …]
|
/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/apps/Launcher3/src/com/android/launcher3/anim/ |
D | SpringAnimationBuilder.java | 166 double duration = Math.atan2(-a, b) / gamma; in build() local 170 while (duration < 0 || Math.abs(exponentialComponent(duration) * cosSinV(duration)) in build() 172 duration += piByG; in build() 176 double edgeTime = Math.max(0, duration - piByG / 2); in build() 180 if ((duration - edgeTime) < minDiff) { in build() 183 double mid = (edgeTime + duration) / 2; in build() 185 duration = mid; in build() 192 long durationMs = (long) (1000.0 * duration); in build() 193 ObjectAnimator animator = ObjectAnimator.ofFloat(mTarget, this, 0, (float) duration); in build()
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/ |
D | ExpandedAlarmViewHolder.kt | 219 duration: Long in <lambda>() 264 animatorSet.duration = duration in <lambda>() 284 duration: Long in <lambda>() 296 createExpandingAnimator(oldHolder, duration) in <lambda>() 298 createCollapsingAnimator(newHolder, duration) in <lambda>() 314 private fun createCollapsingAnimator(newHolder: AlarmItemViewHolder, duration: Long): Animator { in <lambda>() 327 backgroundAnimator.duration = duration in <lambda>() 330 boundsAnimator.duration = duration in <lambda>() 333 val shortDuration = (duration * ANIM_SHORT_DURATION_MULTIPLIER).toLong() in <lambda>() 355 val delayIncrement = (duration * ANIM_LONG_DELAY_INCREMENT_MULTIPLIER).toLong() / in <lambda>() [all …]
|
D | CollapsedAlarmViewHolder.kt | 131 duration: Long in <lambda>() 140 duration: Long in <lambda>() 151 createCollapsingAnimator(oldHolder, duration) in <lambda>() 153 createExpandingAnimator(newHolder, duration) in <lambda>() 168 private fun createExpandingAnimator(newHolder: AlarmItemViewHolder, duration: Long): Animator { in <lambda>() 180 alphaAnimatorSet.setDuration((duration * ANIM_SHORT_DURATION_MULTIPLIER).toLong()) in <lambda>() 185 .setDuration(duration) in <lambda>() 193 private fun createCollapsingAnimator(oldHolder: AlarmItemViewHolder, duration: Long): Animator { in <lambda>() 201 val standardDelay = (duration * ANIM_STANDARD_DELAY_MULTIPLIER).toLong() in <lambda>() 203 alphaAnimatorSet.setStartDelay(duration - standardDelay) in <lambda>() [all …]
|
D | CollapsedAlarmViewHolder.java | 150 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 …]
|
D | ExpandedAlarmViewHolder.java | 262 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/apps/TV/tests/robotests/src/com/android/tv/data/ |
D | WatchedHistoryManagerTest.java | 75 long duration = TimeUnit.MINUTES.toMillis(10); in testLogChannelViewStop() local 77 mWatchedHistoryManager.logChannelViewStop(channel, time, duration); in testLogChannelViewStop() 83 assertThat(time - duration).isEqualTo(record.watchedStartTime); in testLogChannelViewStop() 84 assertThat(duration).isEqualTo(record.duration); in testLogChannelViewStop() 93 long duration = TimeUnit.MINUTES.toMillis(10); in testCircularHistoryQueue() local 98 mWatchedHistoryManager.logChannelViewStop(channel, time + duration * i, duration); in testCircularHistoryQueue() 125 long duration = TimeUnit.MINUTES.toMillis(10); in testEncodeDecodeWatchedRecord() local 126 WatchedRecord record = new WatchedRecord(fakeId, time, duration); in testEncodeDecodeWatchedRecord()
|
/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
D | AbstractStateChangeTouchController.java | 345 long duration = (long) (getShiftRange() * 2); in maybeUpdateAtomicAnim() 347 createAtomicAnimForState(mFromState, mToState, duration), duration); in maybeUpdateAtomicAnim() 360 long duration) { in createAtomicAnimForState() argument 363 ATOMIC_OVERVIEW_SCALE_COMPONENT, duration); in createAtomicAnimForState() 397 final long duration; in onDragEnd() local 405 duration = 0; in onDragEnd() 410 duration = BaseSwipeDetector.calculateDuration(velocity, in onDragEnd() 420 duration = 0; in onDragEnd() 425 duration = BaseSwipeDetector.calculateDuration(velocity, in onDragEnd() 434 updateSwipeCompleteAnimation(anim, Math.max(duration, getRemainingAtomicDuration()), in onDragEnd() [all …]
|
/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/apps/Dialer/java/com/android/incallui/answer/impl/affordance/ |
D | SwipeButtonView.java | 297 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/tools/emulator/ |
D | driving_info_generator.py | 158 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/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/ |
D | WindowTransformSwipeHandler.java | 501 public void setShelfState(ShelfAnimState shelfState, Interpolator interpolator, long duration) { in setShelfState() argument 502 mAnimationFactory.setShelfState(shelfState, interpolator, duration); in setShelfState() 763 long duration = MAX_SWIPE_DURATION; in handleNormalGestureEnd() local 773 duration = Math.min(MAX_SWIPE_DURATION, expectedDuration); in handleNormalGestureEnd() 788 duration = Utilities.boundToRange(overshoot.duration, MIN_OVERSHOOT_DURATION, in handleNormalGestureEnd() 797 duration = Math.min(MAX_SWIPE_DURATION, 2 * baseDuration); in handleNormalGestureEnd() 812 duration = Math.max(MIN_OVERSHOOT_DURATION, duration); in handleNormalGestureEnd() 820 mRecentsView.snapToPage(nearestPage, Math.toIntExact(duration)); in handleNormalGestureEnd() 825 duration = Math.max(duration, mRecentsView.getScroller().getDuration()); in handleNormalGestureEnd() 828 setShelfState(ShelfAnimState.OVERVIEW, interpolator, duration); in handleNormalGestureEnd() [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/ |
D | Voicemail.java | 32 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/ |
D | CallTime.java | 122 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/ |
D | MainActivity.java | 60 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/Car/libs/car-apps-common/src/com/android/car/apps/common/util/ |
D | ViewUtils.java | 43 public static void hideViewAnimated(@NonNull View view, int duration) { in hideViewAnimated() argument 55 .setDuration(duration) in hideViewAnimated() 76 public static void hideViewsAnimated(@Nullable List<View> views, int duration) { 79 hideViewAnimated(view, duration); 90 public static void showViewAnimated(@NonNull View view, int duration) { 99 .setDuration(duration) 115 public static void showViewsAnimated(@Nullable List<View> views, int duration) { 118 showViewAnimated(view, duration);
|
/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/Launcher3/src/com/android/launcher3/dragndrop/ |
D | DragLayer.java | 241 int duration) { in animateViewIntoPosition() argument 248 onFinishRunnable, animationEndStyle, duration, null); in animateViewIntoPosition() 255 public void animateViewIntoPosition(DragView dragView, final View child, int duration, in animateViewIntoPosition() argument 313 onCompleteRunnable, ANIMATION_END_DISAPPEAR, duration, anchorView); in animateViewIntoPosition() 319 int animationEndStyle, int duration, View anchorView) { in animateViewIntoPosition() argument 323 …animateView(view, from, to, finalAlpha, initScaleX, initScaleY, finalScaleX, finalScaleY, duration, in animateViewIntoPosition() 351 final float finalScaleX, final float finalScaleY, int duration, in animateView() argument 361 if (duration < 0) { in animateView() 362 duration = res.getInteger(R.integer.config_dropAnimMaxDuration); in animateView() 364 duration *= mCubicEaseOutInterpolator.getInterpolation(dist / maxDist); in animateView() [all …]
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/ |
D | DigitalWellBeingToast.java | 141 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/Dialer/java/com/android/incallui/answer/impl/utils/ |
D | FlingAnimationUtils.java | 96 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/Bluetooth/src/com/android/bluetooth/avrcp/helpers/ |
D | PlayStatus.java | 35 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()
|