Home
last modified time | relevance | path

Searched refs:getDuration (Results 1 – 25 of 110) sorted by relevance

12345

/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DOverviewToSplitTimings.java53 abstract public int getDuration(); in getDuration() method in OverviewToSplitTimings
60 return (float) getGridSlideStart() / getDuration(); in getGridSlideStartOffset()
63 return (float) getGridSlideStagger() / getDuration(); in getGridSlideStaggerOffset()
66 return (float) getGridSlideDuration() / getDuration(); in getGridSlideDurationOffset()
69 return (float) getActionsFadeStart() / getDuration(); in getActionsFadeStartOffset()
72 return (float) getActionsFadeEnd() / getDuration(); in getActionsFadeEndOffset()
75 return (float) getIconFadeStart() / getDuration(); in getIconFadeStartOffset()
78 return (float) getIconFadeEnd() / getDuration(); in getIconFadeEndOffset()
81 return (float) getInstructionsContainerFadeInStart() / getDuration(); in getInstructionsContainerFadeInStartOffset()
84 return (float) getInstructionsContainerFadeInEnd() / getDuration(); in getInstructionsContainerFadeInEndOffset()
[all …]
DAppPairLaunchTimings.kt54 return cellSplitStart.toFloat() / getDuration() in getStagedRectSlideStart()
57 return cellSplitEnd.toFloat() / getDuration() in getCellSplitEndOffset()
60 return iconFadeStart.toFloat() / getDuration() in getIconFadeStartOffset()
63 return iconFadeEnd.toFloat() / getDuration() in getIconFadeEndOffset()
66 return appRevealStart.toFloat() / getDuration() in getAppRevealStartOffset()
69 return appRevealEnd.toFloat() / getDuration() in getAppRevealEndOffset()
71 abstract override fun getDuration(): Int method in com.android.quickstep.util.AppPairLaunchTimings
DSplitAnimationTimings.java52 int getDuration(); in getDuration() method
68 return (float) getPlaceholderFadeInStart() / getDuration(); in getPlaceholderFadeInStartOffset()
71 return (float) getPlaceholderFadeInEnd() / getDuration(); in getPlaceholderFadeInEndOffset()
74 return (float) getPlaceholderIconFadeInStart() / getDuration(); in getPlaceholderIconFadeInStartOffset()
77 return (float) getPlaceholderIconFadeInEnd() / getDuration(); in getPlaceholderIconFadeInEndOffset()
80 return (float) getStagedRectSlideStart() / getDuration(); in getStagedRectSlideStartOffset()
83 return (float) getStagedRectSlideEnd() / getDuration(); in getStagedRectSlideEndOffset()
DSplitToConfirmTimings.java47 abstract public int getDuration(); in getDuration() method in SplitToConfirmTimings
50 return (float) getInstructionsFadeStart() / getDuration(); in getInstructionsFadeStartOffset()
53 return (float) getInstructionsFadeEnd() / getDuration(); in getInstructionsFadeEndOffset()
56 return (float) getBackingScrimFadeInStart() / getDuration(); in getBackingScrimFadeInStartOffset()
59 return (float) getBackingScrimFadeInEnd() / getDuration(); in getBackingScrimFadeInEndOffset()
DTabletHomeToSplitTimings.java39 return (float) getScrimFadeInStart() / getDuration(); in getScrimFadeInStartOffset()
42 return (float) getScrimFadeInEnd() / getDuration(); in getScrimFadeInEndOffset()
/packages/apps/Launcher3/tests/src/com/android/launcher3/folder/
DPreviewBackgroundTest.java73 assertEquals("Duration not correct.", mPreviewBackground.mScaleAnimator.getDuration(), in testAnimateScale_restToHovered()
118 assertEquals("Duration not correct.", mPreviewBackground.mScaleAnimator.getDuration(), in testAnimateScale_hoveredToRest()
133 assertEquals("Duration not correct.", mPreviewBackground.mScaleAnimator.getDuration(), in testAnimateScale_restToAccept()
163 assertEquals("Duration not correct.", mPreviewBackground.mScaleAnimator.getDuration(), in testAnimateScale_acceptToRest()
184 assertEquals("Duration not correct.", mPreviewBackground.mScaleAnimator.getDuration(), in testAnimateScale_acceptToHover()
204 assertEquals("Duration not correct.", mPreviewBackground.mScaleAnimator.getDuration(), in testAnimateScale_hoverToAccept()
228 assertEquals("Duration not correct.", mPreviewBackground.mScaleAnimator.getDuration(), in testAnimateScale_midwayToHoverToAccept()
252 assertEquals("Duration not correct.", mPreviewBackground.mScaleAnimator.getDuration(), in testAnimateScale_partWayToAcceptToHover()
288 assertEquals("Duration not correct.", mPreviewBackground.mScaleAnimator.getDuration(), in testAnimateScale_midwayToHoverToRest()
308 assertEquals("Duration not correct.", mPreviewBackground.mScaleAnimator.getDuration(), in testAnimateScale_midwayToAcceptToRest()
/packages/modules/HealthFitness/tests/unittests/src/android/healthconnect/internal/datatypes/
DExerciseCompletionGoalInternalTest.java99 assertThat(restored.getDuration()).isEqualTo(original.getDuration()); in durationGoal_writeToParcelThenRestore_objectsAreIdentical()
111 .getDuration()) in durationGoal_convertToExternalAndBack_objectsAreIdentical()
112 .isEqualTo(original.getDuration()); in durationGoal_convertToExternalAndBack_objectsAreIdentical()
208 assertThat(restored.getDuration()).isEqualTo(original.getDuration()); in distanceWithVariableRestGoal_writeToParcelThenRestore_objectsAreIdentical()
223 assertThat(roundTripConverted.getDuration()).isEqualTo(original.getDuration()); in distanceWithVariableRestGoal_convertToExternalAndBack_objectsAreIdentical()
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DExerciseCompletionGoal.java97 public Duration getDuration() { in getDuration() method in ExerciseCompletionGoal.DistanceWithVariableRestGoal
107 && this.getDuration().equals(that.getDuration()); in equals()
162 public Duration getDuration() { in getDuration() method in ExerciseCompletionGoal.DurationGoal
171 return this.getDuration().equals(that.getDuration()); in equals()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/icons/
DFastBitmapDrawableTest.java94 assertEquals("Duration not correct.", mFastBitmapDrawable.mScaleAnimation.getDuration(), in testOnStateChange_statePressed()
112 assertEquals("Duration not correct.", mFastBitmapDrawable.mScaleAnimation.getDuration(), in testOnStateChange_stateHovered()
142 assertEquals("Duration not correct.", mFastBitmapDrawable.mScaleAnimation.getDuration(), in testOnStateChange_statePressedAndHovered()
160 assertEquals("Duration not correct.", mFastBitmapDrawable.mScaleAnimation.getDuration(), in testOnStateChange_stateHoveredAndPressed()
238 assertEquals("Duration not correct.", mFastBitmapDrawable.mScaleAnimation.getDuration(), in testOnStateChange_stateDefaultFromPressed()
257 assertEquals("Duration not correct.", mFastBitmapDrawable.mScaleAnimation.getDuration(), in testOnStateChange_stateDefaultFromHovered()
275 mFastBitmapDrawable.mScaleAnimation.getDuration(), HOVER_FEEDBACK_DURATION); in testOnStateChange_stateHoveredWhilePartiallyScaled()
293 mFastBitmapDrawable.mScaleAnimation.getDuration(), CLICK_FEEDBACK_DURATION); in testOnStateChange_statePressedWhilePartiallyScaled()
/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/
DVoicemailEntryText.java88 long duration = voicemailEntry.getDuration(); in secondaryTextPrefix()
98 long minutes = TimeUnit.SECONDS.toMinutes(voicemailEntry.getDuration()); in getVoicemailDuration()
99 long seconds = voicemailEntry.getDuration() - TimeUnit.MINUTES.toSeconds(minutes); in getVoicemailDuration()
108 voicemailEntry.getDuration()); in getVoicemailDuration()
DNewVoicemailMediaPlayerView.java215 if (seekBarView.getMax() != mp.getDuration()) { in bindValuesFromAdapterOfExpandedViewHolderMediaPlayerView()
216 seekBarView.setMax(mp.getDuration()); in bindValuesFromAdapterOfExpandedViewHolderMediaPlayerView()
228 if (seekBarView.getMax() != mp.getDuration()) { in bindValuesFromAdapterOfExpandedViewHolderMediaPlayerView()
229 seekBarView.setMax(mp.getDuration()); in bindValuesFromAdapterOfExpandedViewHolderMediaPlayerView()
577 Assert.checkArgument(mediaPlayer.getDuration() >= 0); in updateSeekBarDurationAndShowPlayButton()
584 if (seekBarView.getMax() != mediaPlayer.getDuration()) { in updateSeekBarDurationAndShowPlayButton()
585 seekBarView.setMax(mediaPlayer.getDuration()); in updateSeekBarDurationAndShowPlayButton()
640 if (seekBarView.getMax() != mediaPlayer.getDuration()) { in setToPausedState()
641 seekBarView.setMax(mediaPlayer.getDuration()); in setToPausedState()
656 Assert.checkArgument(this.mediaPlayer.getDuration() >= 0); in setToPausedState()
DNewVoicemailMediaPlayer.java214 public int getDuration() { in getDuration() method in NewVoicemailMediaPlayer
216 return mediaPlayer.getDuration(); in getDuration()
/packages/apps/TV/common/src/com/android/tv/common/util/
DDurationTimer.java58 public long getDuration() { in getDuration() method in DurationTimer
69 long duration = getDuration(); in reset()
77 Log.i(mTag, message + " : " + getDuration() + "ms"); in log()
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/animation/
DSetupAnimationHelper.java143 if (animator.getDuration() > 0) { in applyAnimationTimeScale()
144 animator.setDuration((long) (animator.getDuration() * ANIMATION_TIME_SCALE)); in applyAnimationTimeScale()
159 if (transition.getDuration() > 0) { in applyAnimationTimeScale()
160 transition.setDuration((long) (transition.getDuration() * ANIMATION_TIME_SCALE)); in applyAnimationTimeScale()
/packages/modules/Permission/service/java/com/android/safetycenter/
DSafetyCenterFlags.java277 return getDuration( in getNotificationsMinDelay()
328 return getDuration( in getResolvingActionTimeout()
339 return getDuration(PROPERTY_FGS_ALLOWLIST_DURATION_MILLIS, FGS_ALLOWLIST_DEFAULT_DURATION); in getFgsAllowlistDuration()
445 return getDuration( in getTemporarilyHiddenIssueResurfaceDelay()
517 private static Duration getDuration(String property, Duration defaultValue) { in getDuration() method in SafetyCenterFlags
/packages/apps/Launcher3/src/com/android/launcher3/anim/
DAnimatorPlaybackController.java110 public long getDuration() { in getDuration() method in AnimatorPlaybackController
170 long expectedDurationL = s.getDuration(); in startWithVelocity()
381 this.globalEndProgress = anim.getDuration() / globalDuration; in Holder()
397 long forceDuration = anim.getDuration(); in addAnimationHoldersRecur()
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DExerciseCompletionGoalInternal.java53 return new DistanceWithVariableRestGoalInternal(goal.getDistance(), goal.getDuration()); in fromExternalObject()
61 return new DurationGoalInternal(goal.getDuration()); in fromExternalObject()
210 public Duration getDuration() { in getDuration() method in ExerciseCompletionGoalInternal.DurationGoalInternal
372 public Duration getDuration() { in getDuration() method in ExerciseCompletionGoalInternal.DistanceWithVariableRestGoalInternal
/packages/services/Telecomm/src/com/android/server/telecom/
DInCallTonePlayer.java88 int getDuration(); in getDuration() method
134 public int getDuration() { in getDuration() method in InCallTonePlayer.MediaPlayerAdapterImpl
136 return mMediaPlayer.getDuration(); in getDuration()
447 int durationMillis = mToneMediaPlayer.getDuration(); in playMediaTone()
/packages/apps/Launcher3/src/com/android/launcher3/
DFirstFrameAnimatorHelper.java96 currentPlayTime < animation.getDuration() && !isFinalFrame) { in onAnimationUpdate()
133 float flatFraction = animation.getCurrentPlayTime() / (float) animation.getDuration(); in print()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DSimpleScrollAdapterTransform.java70 long duration = valueAnim.getDuration(); in applyTransformationRecursive()
80 long duration = animator.getDuration(); in initializeTransformationRecursive()
/packages/apps/Settings/src/com/android/settings/widget/
DMediaAnimationController.java79 public int getDuration() { in getDuration() method in MediaAnimationController
80 return mMediaPlayer.getDuration(); in getDuration()
DVideoPreference.java92 if (mAnimationController != null && mAnimationController.getDuration() > 0) { in initialize()
243 int getDuration(); in getDuration() method
/packages/apps/TV/src/com/android/tv/search/
DLocalSearchProvider.java203 row.add(result.getDuration() == 0 ? null : String.valueOf(result.getDuration())); in createSuggestionsCursor()
324 abstract long getDuration(); in getDuration() method in LocalSearchProvider.SearchResult
/packages/apps/Messaging/src/com/android/messaging/ui/
DAudioAttachmentView.java236 mMediaPlayer.getDuration()); in setupMediaPlayer()
249 mMediaPlayer.getDuration()); in setupMediaPlayer()
250 mProgressBar.setDuration(mMediaPlayer.getDuration()); in setupMediaPlayer()
/packages/modules/NeuralNetworks/shim_and_sl/
DShimPreparedModel.cpp214 auto result = mExecution->getDuration(Duration::ON_HARDWARE, &duration); in getExecutionInfo()
221 result = mExecution->getDuration(Duration::IN_DRIVER, &duration); in getExecutionInfo()
228 result = mExecution->getDuration(Duration::FENCED_ON_HARDWARE, &duration); in getExecutionInfo()
234 result = mExecution->getDuration(Duration::FENCED_IN_DRIVER, &duration); in getExecutionInfo()
375 auto result = execution->getDuration(Duration::ON_HARDWARE, &duration); in executeSynchronouslyInternal()
381 result = execution->getDuration(Duration::IN_DRIVER, &duration); in executeSynchronouslyInternal()

12345