Searched refs:duration (Results 1 - 25 of 251) 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/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.h63 float duration = mFrameSource[index].duration(start, end) * 0.000001f; local
65 duration = duration > 50.0f ? 50.0f : duration;
66 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
48 int numAnimFrames = (int) Math.ceil(((double) duration) / animIntervalMs);
66 public static long createNativeInterpolator(TimeInterpolator interpolator, long duration) { argument
67 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);
158 private int duration; field in class:SnackbarManager.SnackbarRecord
160 SnackbarRecord(int duration, Callbac 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/app/
H A DBroadcastOptions.java54 * Set a duration for which the system should temporary place an application on the
56 * @param duration The duration in milliseconds; 0 means to not place on whitelist.
58 public void setTemporaryAppWhitelistDuration(long duration) { argument
59 mTemporaryAppWhitelistDuration = duration;
/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/base/tools/layoutlib/bridge/src/android/animation/
H A DFakeAnimator.java34 public Animator setDuration(long duration) { argument
/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/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/wilhelm/src/itf/
H A DIMIDITime.c30 SLuint32 duration = thiz->mDuration; local
31 *pDuration = duration;
83 SLuint32 duration = thiz->mDuration; local
84 if (!((startTick < duration) && (numTicks <= duration - startTick))) {
/frameworks/base/core/java/android/widget/
H A DChronometer.java292 int duration = (int) (ms / DateUtils.SECOND_IN_MILLIS);
293 if (duration < 0) {
294 duration = -duration;
300 if (duration >= HOUR_IN_SEC) {
301 h = duration / HOUR_IN_SEC;
302 duration -= h * HOUR_IN_SEC;
304 if (duration >= MIN_IN_SEC) {
305 m = duration / MIN_IN_SEC;
306 duration
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DDimLayer.java187 * @param duration The time to test.
188 * @return True if the duration would lead to an earlier end to the current animation.
190 private boolean durationEndsEarlier(long duration) { argument
191 return SystemClock.uptimeMillis() + duration < mStartTime + mDuration;
209 * @param duration How long to take to get there in milliseconds.
211 void show(int layer, float alpha, long duration) { argument
213 + " duration=" + duration);
228 if ((animating && (mTargetAlpha != alpha || durationEndsEarlier(duration)))
230 if (duration <
259 hide(long duration) argument
[all...]
/frameworks/wilhelm/tests/sandbox/
H A Durimime.c122 // get the player duration
123 SLmillisecond duration; local
124 result = (*playerPlay)->GetDuration(playerPlay, &duration);
126 if (SL_TIME_UNKNOWN == duration)
129 printf("Duration: %.1f\n", duration / 1000.0f);
146 // get the player duration
147 result = (*playerPlay)->GetDuration(playerPlay, &duration);
149 if (SL_TIME_UNKNOWN == duration)
152 printf("Duration: %.1f\n", duration / 1000.0f);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
H A DCodecTest.java98 int duration = mp.getDuration();
99 Log.v(TAG, "Duration " + duration);
102 return duration;
127 Log.v(TAG, "mp currentPositon = " + currentPosition + " play duration = " + (t2-t1));
166 int duration = 0;
174 duration = mp.getDuration();
175 Log.v(TAG, "setLooping duration " + duration);
179 mp.seekTo(duration - 5000);
188 Log.v(TAG, "looping position " + currentPosition + "duration
[all...]

Completed in 1196 milliseconds

1234567891011