Searched refs:duration (Results 1 - 25 of 286) sorted by relevance

1234567891011>>

/frameworks/av/media/libmedia/
H A DToneGenerator.cpp31 { .segments = { { .duration = ToneGenerator::TONEGEN_INF, .waveFreq = { 1336, 941, 0 }, 0, 0},
32 { .duration = 0 , .waveFreq = { 0 }, 0, 0}},
35 { .segments = { { .duration = ToneGenerator::TONEGEN_INF, .waveFreq = { 1209, 697, 0 }, 0, 0 },
36 { .duration = 0 , .waveFreq = { 0 }, 0, 0}},
39 { .segments = { { .duration = ToneGenerator::TONEGEN_INF, .waveFreq = { 1336, 697, 0 }, 0, 0 },
40 { .duration = 0 , .waveFreq = { 0 }, 0, 0}},
43 { .segments = { { .duration = ToneGenerator::TONEGEN_INF, .waveFreq = { 1477, 697, 0 }, 0, 0 },
44 { .duration = 0 , .waveFreq = { 0 }, 0, 0}},
47 { .segments = { { .duration = ToneGenerator::TONEGEN_INF, .waveFreq = { 1209, 770, 0 }, 0, 0 },
48 { .duration
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
H A DToneSettings.java27 public Duration duration; field in class:ToneSettings
31 public ToneSettings(Duration duration, Tone tone, boolean vibrate) { argument
32 this.duration = duration;
38 duration = in.readParcelable(null);
50 dest.writeParcelable(duration, 0);
H A DTextMessage.java31 public Duration duration = null; field in class:TextMessage
44 duration = in.readParcelable(null);
61 dest.writeParcelable(duration, 0);
81 userClear + " duration=" + duration;
H A DInput.java39 public Duration duration; field in class:Input
53 duration = null;
68 duration = in.readParcelable(null);
89 dest.writeParcelable(duration, 0);
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
H A DSpeedClassifier.java36 float duration = (float) stroke.getDurationNanos() / NANOS_TO_SECONDS;
37 if (duration == 0.0f) {
40 return SpeedEvaluator.evaluate(stroke.getTotalLength() / duration);
H A DProximityClassifier.java61 long duration = event.getEventTimeNano() - mGestureStartTimeNano;
63 if (duration == 0) {
66 mAverageNear = (float) mNearDuration / (float) duration;
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DSnackbars.java26 public static final Snackbar makeSnackbar(Activity activity, int messageId, int duration) { argument
28 activity, activity.getResources().getText(messageId), duration);
32 Activity activity, CharSequence message, int duration) {
34 return Snackbar.make(view, message, duration);
31 makeSnackbar( Activity activity, CharSequence message, int duration) argument
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/
H A DDurationTest.java30 Duration duration = new Duration();
31 duration.parse(str);
33 assertEquals("Duration sign is not equal for " + str, sign, duration.sign);
34 assertEquals("Duration weeks is not equal for " + str, weeks, duration.weeks);
35 assertEquals("Duration days is not equal for " + str, days, duration.days);
36 assertEquals("Duration hours is not equal for " + str, hours, duration.hours);
37 assertEquals("Duration minutes is not equal for " + str, minutes, duration.minutes);
38 assertEquals("Duration seconds is not equal for " + str, seconds, duration.seconds);
/frameworks/base/libs/hwui/
H A DFrameInfoVisualizer.h69 float duration = mFrameSource[index].duration(start, end) * 0.000001f; local
71 duration = duration > 50.0f ? 50.0f : duration;
72 return duration > 0.0f ? duration : 0.0f;
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DLocationCluster.java48 public LocationCluster(Location location, long duration) { argument
50 addSample(location, duration);
53 public void addSample(Location location, long duration) { argument
54 updateTemporalHistogram(location.getTime(), duration);
58 location.setTime(duration);
73 long duration = location.getTime(); // in seconds
75 if (duration == 0) {
76 throw new RuntimeException("location duration is zero");
79 newDuration += duration;
81 newCenter[i] += vector[i] * duration;
136 updateTemporalHistogram(long time, long duration) argument
[all...]
/frameworks/base/core/java/android/os/
H A DSystemClock.java116 long duration = ms;
120 Thread.sleep(duration);
125 duration = start + ms - uptimeMillis();
126 } while (duration > 0);
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DSysUIToast.java24 public static Toast makeText(Context context, CharSequence text, int duration) { argument
25 Toast toast = Toast.makeText(context, text, duration);
/frameworks/base/core/java/com/android/internal/view/animation/
H A DFallbackLUTInterpolator.java40 public FallbackLUTInterpolator(TimeInterpolator interpolator, long duration) { argument
42 mLut = createLUT(interpolator, duration);
45 private static float[] createLUT(TimeInterpolator interpolator, long duration) { argument
49 int numAnimFrames = Math.max(2, (int) Math.ceil(((double) duration) / animIntervalMs));
67 public static long createNativeInterpolator(TimeInterpolator interpolator, long duration) { argument
68 float[] lut = createLUT(interpolator, duration);
/frameworks/support/design/src/android/support/design/widget/
H A DSnackbarManager.java70 public void show(int duration, Callback callback) { argument
73 // Means that the callback is already in the queue. We'll just update the duration
74 mCurrentSnackbar.duration = duration;
82 // We'll just update the duration
83 mNextSnackbar.duration = duration;
86 mNextSnackbar = new SnackbarRecord(duration, callback);
170 private int duration; field in class:SnackbarManager.SnackbarRecord
172 SnackbarRecord(int duration, Callbac argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DAnimationProps.java68 * Creates an animation with a default {@param duration} and {@param interpolator} for all
71 public AnimationProps(int duration, Interpolator interpolator) { argument
72 this(0, duration, interpolator, null);
76 * Creates an animation with a default {@param duration} and {@param interpolator} for all
79 public AnimationProps(int duration, Interpolator interpolator, argument
81 this(0, duration, interpolator, listener);
85 * Creates an animation with a default {@param startDelay}, {@param duration} and
88 public AnimationProps(int startDelay, int duration, Interpolator interpolator) { argument
89 this(startDelay, duration, interpolator, null);
93 * Creates an animation with a default {@param startDelay}, {@param duration} an
96 AnimationProps(int startDelay, int duration, Interpolator interpolator, Animator.AnimatorListener listener) argument
171 setDuration(@ropType int propertyType, int duration) argument
[all...]
/frameworks/support/v4/java/android/support/v4/util/
H A DTimeUtils.java75 private static int formatDurationLocked(long duration, int fieldLen) { argument
82 if (duration == 0) {
93 if (duration > 0) {
97 duration = -duration;
100 int millis = (int)(duration%1000);
101 int seconds = (int) Math.floor(duration / 1000);
147 public static void formatDuration(long duration, StringBuilder builder) { argument
149 int len = formatDurationLocked(duration, 0);
155 public static void formatDuration(long duration, PrintWrite argument
163 formatDuration(long duration, PrintWriter pw) argument
[all...]
/frameworks/base/core/java/android/view/
H A DRenderNodeAnimatorSetHelper.java36 duration) {
43 return FallbackLUTInterpolator.createNativeInterpolator(interpolator, duration);
35 createNativeInterpolator(TimeInterpolator interpolator, long duration) argument
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/animation/
H A DAppearAnimationCreator.java26 void createAnimation(T animatedObject, long delay, long duration, argument
H A DDisappearAnimationUtils.java34 public DisappearAnimationUtils(Context ctx, long duration, float translationScaleFactor, argument
36 this(ctx, duration, translationScaleFactor, delayScaleFactor, interpolator,
40 public DisappearAnimationUtils(Context ctx, long duration, float translationScaleFactor, argument
42 super(ctx, duration, translationScaleFactor, delayScaleFactor, interpolator);
/frameworks/support/v4/donut/android/support/v4/animation/
H A DValueAnimatorCompat.java32 public void setDuration(long duration); argument
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DPerfMeasurement.java32 * <p>Measures CPU and GPU processing duration for a set of operations, and dumps
184 long duration = getNextGlDuration();
185 if (duration > 0) {
186 mCollectedGpuDurations.add(duration);
192 if (duration == FAILED_TIMING) {
219 * @return The measured duration of the GPU workload for the next pending query, or
228 long duration = nativeGetNextGlDuration(mNativeContext);
229 if (duration > 0) {
232 return duration;
236 * Returns the number of measurements so far that returned a valid duration
[all...]
/frameworks/wilhelm/tests/listening/
H A DseekTorture.c86 SLmillisecond duration; local
87 result = (*playerPlay)->GetDuration(playerPlay, &duration);
91 result = (*playerPlay)->GetDuration(playerPlay, &duration);
100 unsigned position, duration; local
101 while (fscanf(fp_map, "%u %u", &position, &duration) == 2) {
102 printf("%u %u\n", position, duration);
106 if (duration > 0)
107 usleep(duration * 1000);
124 SLmillisecond newPos = duration * ((rand() & 65535) / 65536.0);
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/
H A DDozeTrigger.java72 * Updates the duration that we have to wait until dozing triggers.
74 public void setDozeDuration(int duration) { argument
75 mDozeDurationMilliseconds = duration;
80 * called for a for the doze duration.
/frameworks/base/core/java/android/transition/
H A DCircularPropagation.java38 * Sets the speed at which transition propagation happens, relative to the duration of the
41 * in start delay of approximately the duration of the Transition. A speed of 2 means the
42 * start delay difference will be approximately half of the duration of the transition. A
45 * @param propagationSpeed The speed at which propagation occurs, relative to the duration
47 * as the duration of the transition. May not be 0.
92 long duration = transition.getDuration();
93 if (duration < 0) {
94 duration = 300;
97 return Math.round(duration * directionMultiplier / mPropagationSpeed * distanceFraction);
/frameworks/base/services/core/java/com/android/server/wm/animation/
H A DClipRectTBAnimation.java57 final long duration = getDuration();
59 if (duration != 0) {
61 (float) duration;
63 // time is a step-change with a zero duration

Completed in 634 milliseconds

1234567891011>>