/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | SwipeHelper.java | 284 int duration = MAX_ESCAPE_ANIMATION_DURATION; 286 duration = Math.min(duration, 290 duration = DEFAULT_ESCAPE_ANIMATION_DURATION; 296 anim.setDuration(duration); 315 int duration = SNAP_ANIM_LEN; 316 anim.setDuration(duration);
|
/frameworks/base/core/java/android/text/format/ |
H A D | DateUtils.java | 297 long duration = Math.abs(now - time); 301 if (duration < MINUTE_IN_MILLIS && minResolution < MINUTE_IN_MILLIS) { 302 count = duration / SECOND_IN_MILLIS; 316 } else if (duration < HOUR_IN_MILLIS && minResolution < HOUR_IN_MILLIS) { 317 count = duration / MINUTE_IN_MILLIS; 331 } else if (duration < DAY_IN_MILLIS && minResolution < DAY_IN_MILLIS) { 332 count = duration / HOUR_IN_MILLIS; 346 } else if (duration < WEEK_IN_MILLIS && minResolution < WEEK_IN_MILLIS) { 386 long duration = Math.abs(now - time); 400 if (duration < transitionResolutio [all...] |
/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | VelocityTest.java | 235 long startime, int duration) { 236 drag(vt, startX, endX, startY, endY, steps, startime, duration, new LinearInterpolator()); 244 long startime, int duration, Interpolator interpolator) { 246 float dt = duration / (float)steps; 256 addMotionEvent(vt, endX, endY, startime + duration, MotionEvent.ACTION_UP); 234 drag(VelocityTracker vt, int startX, int endX, int startY, int endY, int steps, long startime, int duration) argument 243 drag(VelocityTracker vt, int startX, int endX, int startY, int endY, int steps, long startime, int duration, Interpolator interpolator) argument
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/ |
H A D | RadialSelectorView.java | 332 int duration = 500; 345 this, radiusDisappear, fadeOut).setDuration(duration); 359 int duration = 500; 367 int totalDuration = (int) (duration * totalDurationMultiplier); 368 float delayPoint = (delayMultiplier * duration) / totalDuration;
|
/frameworks/wilhelm/src/itf/ |
H A D | IPlay.c | 163 SLmillisecond duration = thiz->mDuration; local 165 if (SL_TIME_UNKNOWN == duration) { 179 duration = temp; 180 thiz->mDuration = duration; 185 // otherwise the duration will be updated each time a new maximum position is detected 188 *pMsec = duration;
|
/frameworks/wilhelm/tests/listening/ |
H A D | slesTest_playMuteSolo.cpp | 265 // Attempt to get the duration before it is necessarily known. 267 // The reported duration may be either 268 // a particular duration or SL_TIME_UNKNOWN, depending on the platform. 269 SLmillisecond duration; local 270 result = (*playItf)->GetDuration(playItf, &duration); 272 printf("GetDuration after Realize but before pre-fetch: result=%u, duration=%u\n", 273 result, duration); 323 /* Query the duration */ 324 result = (*playItf)->GetDuration(playItf, &duration); 325 printf("GetDuration after Realize and after pre-fetch: result=%u, duration [all...] |
/frameworks/base/test-runner/src/android/test/ |
H A D | TestRunner.java | 398 long duration = 0; 458 duration = endTime - mStartTime; 462 if (duration <= 1) { 464 } else if (duration <= 10) { 466 } else if (duration < 100) { 468 } else if (duration < 1000) { 469 iterations *= (int) ((1000 / duration) + 2); 475 if (duration != 0) { 477 performance(testNameInDb, (duration * 1000000) / iterations,
|
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
H A D | RecurrenceSet.java | 210 String duration = computeDuration(start, component); 217 (TextUtils.isEmpty(duration))|| 245 values.put(CalendarContract.Events.DURATION, duration); 273 String duration = cursor.getString(durationColumn); 282 (TextUtils.isEmpty(duration))|| 315 durationProp.setValue(duration); 331 final String duration = values.getAsString(CalendarContract.Events.DURATION); 341 (TextUtils.isEmpty(duration))|| 374 durationProp.setValue(duration); 467 // see if a duration i [all...] |
/frameworks/wilhelm/tests/sandbox/ |
H A D | xaplay.c | 564 // get the duration before prefetch 565 XAmillisecond duration; local 566 result = (*playerPlay)->GetDuration(playerPlay, &duration); 568 if (XA_TIME_UNKNOWN == duration) 571 printf("Duration before prefetch: %.1f (surprise!)\n", duration / 1000.0f); 594 // get duration again, now it should be known for the file source or unknown for TS 595 result = (*playerPlay)->GetDuration(playerPlay, &duration); 597 if (duration == XA_TIME_UNKNOWN) { 600 printf("Duration after prefetch: %u ms (expected for file, unexpected for TS)\n", duration); 688 printf(" duration [all...] |
/frameworks/base/core/java/android/bluetooth/ |
H A D | IBluetooth.aidl | 44 boolean setScanMode(int mode, int duration);
|
/frameworks/base/core/java/android/net/arp/ |
H A D | ArpPeer.java | 108 long duration = (long) timeout - SystemClock.elapsedRealtime(); 110 (int) duration);
|
/frameworks/base/core/java/android/speech/tts/ |
H A D | ITextToSpeechService.aidl | 71 * @param duration Number of milliseconds of silence to play. 75 int playSilence(in IBinder callingInstance, in long duration, in int queueMode, in Bundle params);
|
/frameworks/base/core/java/android/widget/ |
H A D | OverScroller.java | 220 * @return The duration of the scroll in milliseconds. 223 * @deprecated OverScrollers don't necessarily have a fixed duration. 240 * @deprecated OverScrollers don't necessarily have a fixed duration. 242 * the duration of an existing scroll, use startScroll 261 * the duration of an existing scroll, use startScroll 279 * the duration of an existing scroll, use startScroll 303 final int duration = mScrollerX.mDuration; 304 if (elapsedTime < duration) { 305 float q = (float) (elapsedTime) / duration; 346 * duration 374 startScroll(int startX, int startY, int dx, int dy, int duration) argument 680 startScroll(int start, int distance, int duration) argument [all...] |
H A D | StackView.java | 244 int duration = Math.round(mStackSlider.getDurationForNeutralPosition(mYVelocity)); 253 slideIn.setDuration(duration); 264 int duration = Math.round(mStackSlider.getDurationForOffscreenPosition(mYVelocity)); 273 slideOut.setDuration(duration); 849 int duration; 852 duration = Math.round(mStackSlider.getDurationForNeutralPosition()); 854 duration = Math.round(mStackSlider.getDurationForOffscreenPosition()); 862 pa.setDuration(duration); 868 int duration; 870 duration [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | DrawableHolder.java | 64 * @param duration the duration, in ms. 70 public ObjectAnimator addAnimTo(long duration, long delay, argument 76 anim.setDuration(duration);
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | TransitionDrawable.java | 131 * with the specified duration. If the transition is already running, the last 132 * known duration will be used. 134 * @param duration The duration to use if no transition is running. 136 public void reverseTransition(int duration) { argument 151 mDuration = mOriginalDuration = duration;
|
/frameworks/base/services/java/com/android/server/wm/ |
H A D | AppTransition.java | 367 // Pick the desired duration. If this is an inter-activity transition, 368 // it is the standard duration for that. Otherwise we use the longer 369 // task transition duration. 370 final long duration; 374 duration = mConfigShortAnimTime; 377 duration = DEFAULT_APP_TRANSITION_DURATION; 380 a.setDuration(duration); 461 // Pick the desired duration. If this is an inter-activity transition, 462 // it is the standard duration for that. Otherwise we use the longer 463 // task transition duration [all...] |
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/ |
H A D | RecurrenceSetTest.java | 87 // Check generation of duration from events in different time zones. 96 // TODO: would like to use P1H for duration 130 String exrule, String exdate, long dtstart, String tzid, String duration, int allDay, 150 assertEquals(duration, values.get(android.provider.CalendarContract.Events.DURATION)); 129 verifyPopulateContentValues(String recurrence, String rrule, String rdate, String exrule, String exdate, long dtstart, String tzid, String duration, int allDay, boolean badFormat) argument
|
/frameworks/opt/net/voip/src/java/com/android/server/sip/ |
H A D | SipSessionListenerProxy.java | 203 final int duration) { 209 mListener.onRegistrationDone(session, duration); 202 onRegistrationDone(final ISipSession session, final int duration) argument
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
H A D | CommandParams.java | 90 Tone tone, Duration duration, boolean vibrate) { 93 mSettings = new ToneSettings(duration, tone, vibrate); 89 PlayToneParams(CommandDetails cmdDet, TextMessage textMsg, Tone tone, Duration duration, boolean vibrate) argument
|
/frameworks/av/libvideoeditor/vss/common/inc/ |
H A D | M4SYS_Stream.h | 156 duration of this stream are computed in this timescale 159 M4OSA_Time duration; /**< The stream duration of this stream. The time unit is the member in struct:__anon196 161 the duration is not known.*/ 163 The average bitrate is computed on the stream duration.
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
H A D | KeyguardPatternView.java | 401 public void showBouncer(int duration) { argument 403 showBouncer(mSecurityMessageDisplay, mEcaView, mBouncerFrame, duration); 407 public void hideBouncer(int duration) { argument 409 hideBouncer(mSecurityMessageDisplay, mEcaView, mBouncerFrame, duration);
|
H A D | KeyguardSecurityViewFlipper.java | 138 public void showBouncer(int duration) { argument 144 ksv.showBouncer(ksv == active ? duration : 0); 150 public void hideBouncer(int duration) { argument 156 ksv.hideBouncer(ksv == active ? duration : 0);
|
H A D | KeyguardWidgetCarousel.java | 184 int duration = REORDERING_ZOOM_IN_OUT_DURATION; 188 mChildrenTransformsAnimator.setDuration(duration); 265 int duration = REORDERING_ZOOM_IN_OUT_DURATION; 269 mChildrenTransformsAnimator.setDuration(duration);
|
/frameworks/av/cmds/stagefright/ |
H A D | muxer.cpp | 116 int64_t duration; local 117 CHECK(format->findInt64("durationUs", &duration)); 119 // Since we got the duration now, correct the start time. 121 if (trimStartTimeUs > duration) { 122 fprintf(stderr, "Warning: trimStartTimeUs > duration,"
|