Home
last modified time | relevance | path

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

12345678910>>...14

/packages/modules/StatsD/statsd/src/metrics/duration_helper/
DMaxDurationTracker.cpp66 DurationInfo& duration = mInfos[key]; in noteStart() local
68 duration.conditionKeys = conditionKey; in noteStart()
72 switch (duration.state) { in noteStart()
74 duration.startCount++; in noteStart()
77 duration.startCount++; in noteStart()
82 duration.state = DurationState::kPaused; in noteStart()
84 duration.state = DurationState::kStarted; in noteStart()
85 duration.lastStartTime = eventTime; in noteStart()
88 duration.startCount = 1; in noteStart()
100 DurationInfo& duration = mInfos[key]; in noteStop() local
[all …]
/packages/modules/GeoTZ/locationtzprovider/src/test/java/com/android/timezone/location/provider/core/
DOfflineLocationTimeZoneDelegateTest.java109 activeInstruction.listenMode, activeInstruction.duration); in locationFoundImmediately()
114 assertTrue(activeInstruction.duration.compareTo(timeUntilLocationFound) > 0); in locationFoundImmediately()
126 Duration maximumReturned = activeInstruction.duration.minus(timeUntilLocationFound); in locationFoundImmediately()
132 passiveInstruction.listenMode, passiveInstruction.duration); in locationFoundImmediately()
165 activeInstruction.listenMode, activeInstruction.duration); in locationNotFoundImmediately()
168 mTestEnvironment.simulateTimePassing(activeInstruction.duration) in locationNotFoundImmediately()
174 assertTrue(activeInstruction.duration.compareTo(initializationTimeout) < 0); in locationNotFoundImmediately()
179 passiveInstruction.listenMode, passiveInstruction.duration); in locationNotFoundImmediately()
212 public Cancellable startPassiveLocationListening(@NonNull Duration duration,
219 duration, locationResultConsumer, passiveListeningCompletedCallback);
[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/modules/NeuralNetworks/shim_and_sl/
DShimPreparedModel.cpp165 uint64_t duration; in getExecutionInfo() local
169 auto result = mExecution.getDuration(Duration::ON_HARDWARE, &duration); in getExecutionInfo()
172 (duration == uint64cap) in getExecutionInfo()
174 : (duration > int64cap) ? int64cap : static_cast<int64_t>(duration); in getExecutionInfo()
176 result = mExecution.getDuration(Duration::IN_DRIVER, &duration); in getExecutionInfo()
179 (duration == uint64cap) in getExecutionInfo()
181 : (duration > int64cap) ? int64cap : static_cast<int64_t>(duration); in getExecutionInfo()
183 result = mExecution.getDuration(Duration::FENCED_ON_HARDWARE, &duration); in getExecutionInfo()
186 (duration == uint64cap) in getExecutionInfo()
188 : (duration > int64cap) ? int64cap : static_cast<int64_t>(duration); in getExecutionInfo()
[all …]
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/util/
DViewUtils.java53 public static void showHideViewAnimated(boolean show, @NonNull View view, int duration, in showHideViewAnimated() argument
56 showViewAnimated(view, duration, listener); in showHideViewAnimated()
58 hideViewAnimated(view, duration, listener); in showHideViewAnimated()
68 public static void hideViewAnimated(@NonNull View view, int duration, in hideViewAnimated() argument
82 .setDuration(duration) in hideViewAnimated()
96 public static void hideViewAnimated(@NonNull View view, int duration) { in hideViewAnimated() argument
97 hideViewAnimated(view, duration, null); in hideViewAnimated()
116 public static void hideViewsAnimated(@Nullable List<View> views, int duration) {
122 hideViewAnimated(view, duration, null);
135 public static void showViewAnimated(@NonNull View view, int duration,
[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/modules/GeoTZ/locationtzprovider/src/test/java/com/android/timezone/location/provider/
DRealLocationListeningAccountantTest.java133 assertValidPassiveListeningDuration(instruction.duration); in getNextListeningInstruction_noActiveBudget_noLastLocationResult()
136 mAccountant.accrueActiveListeningBudget(instruction.duration); in getNextListeningInstruction_noActiveBudget_noLastLocationResult()
154 assertActiveListeningBudget(balanceBeforeCall.minus(instruction.duration)); in getNextListeningInstruction_withSmallActiveBudget_noLastLocationResult()
159 assertValidActiveListeningDuration(instruction.duration); in getNextListeningInstruction_withSmallActiveBudget_noLastLocationResult()
173 assertActiveListeningBudget(balanceBeforeCall.minus(instruction.duration)); in getNextListeningInstruction_withLargeActiveBudget_noLastLocationResult()
177 assertValidActiveListeningDuration(instruction.duration); in getNextListeningInstruction_withLargeActiveBudget_noLastLocationResult()
219 assertValidPassiveListeningDuration(instruction.duration); in doLastKnownLocationResultTest()
262 assertValidPassiveListeningDuration(instruction.duration);
291 assertActiveListeningBudget(balanceBeforeCall.minus(instruction.duration));
297 assertValidActiveListeningDuration(instruction.duration);
[all …]
/packages/modules/GeoTZ/locationtzprovider/src/main/java/com/android/timezone/location/provider/core/
DLocationListeningAccountant.java77 public final Duration duration; field in LocationListeningAccountant.ListeningInstruction
79 public ListeningInstruction(@ListenModeEnum int listenMode, @NonNull Duration duration) { in ListeningInstruction() argument
81 this.duration = Objects.requireNonNull(duration); in ListeningInstruction()
94 && duration.equals(that.duration); in equals()
99 return Objects.hash(listenMode, duration); in hashCode()
106 + ", duration=" + duration in toString()
/packages/apps/TV/tests/robotests/src/com/android/tv/data/
DWatchedHistoryManagerTest.java75 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/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/DeskClock/src/com/android/deskclock/alarms/dataadapter/
DExpandedAlarmViewHolder.kt219 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 …]
DCollapsedAlarmViewHolder.kt131 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 …]
/packages/apps/Launcher3/src/com/android/launcher3/anim/
DSpringAnimationBuilder.java159 double duration = Math.atan2(-a, b) / gamma; in computeParams() local
163 while (duration < 0 || Math.abs(exponentialComponent(duration) * cosSinV(duration)) in computeParams()
165 duration += piByG; in computeParams()
169 double edgeTime = Math.max(0, duration - piByG / 2); in computeParams()
173 if ((duration - edgeTime) < minDiff) { in computeParams()
176 double mid = (edgeTime + duration) / 2; in computeParams()
178 duration = mid; in computeParams()
184 mDuration = (float) duration; in computeParams()
/packages/modules/NeuralNetworks/common/include/
DLegacyUtils.h105 TimePoint makeDeadline(Duration duration);
107 inline TimePoint makeDeadline(uint64_t duration) { in makeDeadline() argument
108 return makeDeadline(makeTimeoutDuration(duration)); in makeDeadline()
114 inline OptionalTimePoint makeDeadline(OptionalDuration duration) { in makeDeadline() argument
115 return duration.has_value() ? std::make_optional(makeDeadline(*duration)) : OptionalTimePoint{}; in makeDeadline()
117 inline OptionalTimePoint makeDeadline(std::optional<uint64_t> duration) { in makeDeadline() argument
118 return duration.has_value() ? std::make_optional(makeDeadline(*duration)) : OptionalTimePoint{}; in makeDeadline()
120 inline OptionalTimePoint makeDeadline(int64_t duration) { in makeDeadline() argument
121 return makeDeadline(makeTimeoutDuration(duration)); in makeDeadline()
/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/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/Launcher3/src/com/android/launcher3/dragndrop/
DDragLayer.java222 int duration) { in animateViewIntoPosition() argument
229 onFinishRunnable, animationEndStyle, duration, null); in animateViewIntoPosition()
236 public void animateViewIntoPosition(DragView dragView, final View child, int duration, in animateViewIntoPosition() argument
292 onCompleteRunnable, ANIMATION_END_DISAPPEAR, duration, anchorView); in animateViewIntoPosition()
298 int animationEndStyle, int duration, View anchorView) { in animateViewIntoPosition() argument
302 …animateView(view, from, to, finalAlpha, initScaleX, initScaleY, finalScaleX, finalScaleY, duration, in animateViewIntoPosition()
330 final float finalScaleX, final float finalScaleY, int duration, in animateView() argument
340 if (duration < 0) { in animateView()
341 duration = res.getInteger(R.integer.config_dropAnimMaxDuration); in animateView()
343 duration *= DEACCEL_1_5.getInterpolation(dist / maxDist); in animateView()
[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/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/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/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DLauncherTaskbarUIController.java139 long duration = QuickstepTransitionManager.CONTENT_ALPHA_DURATION;
144 mAnimator = createAnimToLauncher(null, duration);
146 mAnimator = createAnimToApp(duration);
161 public Animator createAnimToLauncher(@Nullable LauncherState toState, long duration) {
162 PendingAnimation anim = new PendingAnimation(duration);
163 anim.add(mTaskbarAnimationController.createAnimToBackgroundAlpha(0, duration));
186 private Animator createAnimToApp(long duration) {
187 PendingAnimation anim = new PendingAnimation(duration);
188 anim.add(mTaskbarAnimationController.createAnimToBackgroundAlpha(1, duration));
/packages/modules/GeoTZ/locationtzprovider/src/main/java/com/android/timezone/location/provider/
DEnvironmentImpl.java284 public Cancellable startPassiveLocationListening(@NonNull Duration duration, in startPassiveLocationListening() argument
287 Objects.requireNonNull(duration); in startPassiveLocationListening()
303 duration, startElapsedRealtimeMillis, in startPassiveLocationListening()
317 long minUpdateInterval = duration.dividedBy(3).toMillis(); in startPassiveLocationListening()
335 String callbackIdentifier = "passive:" + duration + "@" in startPassiveLocationListening()
353 LOCATION_LISTEN_MODE_PASSIVE, duration.toMillis(), in startPassiveLocationListening()
361 requestDelayedCallback(timeoutCallback, callbackIdentifier, duration); in startPassiveLocationListening()
368 LOCATION_LISTEN_MODE_PASSIVE, duration.toMillis(), timeListeningMillis, in startPassiveLocationListening()
382 public Cancellable startActiveGetCurrentLocation(@NonNull Duration duration,
392 String identifier = "active:" + duration + "@"
[all …]
/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/providers/MediaProvider/tests/utils/src/com/android/providers/media/tests/utils/
DTimer.java36 private long duration; field in Timer
60 duration += currentRunDuration; in stop()
67 return TimeUnit.MILLISECONDS.convert(duration / count, TimeUnit.NANOSECONDS); in getAverageDurationMillis()
75 final long duration = getAverageDurationMillis(); in dumpResults() local
76 Log.v(TAG, name + ": " + duration + "ms"); in dumpResults()
79 results.putLong(name, duration); in dumpResults()
/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()

12345678910>>...14