Home
last modified time | relevance | path

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

12

/development/samples/browseable/Timer/src/com.example.android.wearable.timer/
DSetTimerActivity.java82 private void setupTimer(long duration) { in setupTimer() argument
90 notifyMgr.notify(Constants.NOTIFICATION_TIMER_COUNTDOWN, buildNotification(duration)); in setupTimer()
93 registerWithAlarmManager(duration); in setupTimer()
100 long duration = mTimeOptions[holder.getPosition()].duration; in onClick() local
101 setupTimer(duration); in onClick()
108 private void registerWithAlarmManager(long duration) { in registerWithAlarmManager() argument
119 long wakeupTime = System.currentTimeMillis() + duration; in registerWithAlarmManager()
132 private Notification buildNotification(long duration) { in buildNotification() argument
149 .setContentText(TimerFormat.getTimeString(duration)) in buildNotification()
151 .setWhen(System.currentTimeMillis() + duration) in buildNotification()
[all …]
/development/samples/devbytes/animation/ActivityAnimations/src/com/example/android/activityanim/
DPictureDetailsActivity.java132 final long duration = (long) (ANIM_DURATION * ActivityAnimations.sAnimatorScale); in runEnterAnimation() local
148 mImageView.animate().setDuration(duration). in runEnterAnimation()
158 mTextView.animate().setDuration(duration/2). in runEnterAnimation()
166 bgAnim.setDuration(duration); in runEnterAnimation()
173 colorizer.setDuration(duration); in runEnterAnimation()
178 shadowAnim.setDuration(duration); in runEnterAnimation()
191 final long duration = (long) (ANIM_DURATION * ActivityAnimations.sAnimatorScale); in runExitAnimation() local
213 setDuration(duration/2).setInterpolator(sAccelerator). in runExitAnimation()
217 mImageView.animate().setDuration(duration). in runExitAnimation()
226 bgAnim.setDuration(duration); in runExitAnimation()
[all …]
/development/samples/browseable/JumpingJack/src/com.example.android.wearable.jumpingjack/
DUtils.java36 public final static void vibrate(Context context, int duration) { in vibrate() argument
37 if (duration == 0) { in vibrate()
38 duration = DEFAULT_VIBRATION_DURATION_MS; in vibrate()
41 v.vibrate(duration); in vibrate()
/development/samples/ApiDemos/src/com/example/android/apis/animation/
DBouncingBalls.java91 int duration = (int)(500 * ((h - eventY)/h)); in onTouchEvent() local
93 bounceAnim.setDuration(duration); in onTouchEvent()
97 squashAnim1.setDuration(duration/4); in onTouchEvent()
103 squashAnim2.setDuration(duration/4); in onTouchEvent()
109 stretchAnim1.setDuration(duration/4); in onTouchEvent()
115 stretchAnim2.setDuration(duration/4); in onTouchEvent()
121 bounceBackAnim.setDuration(duration); in onTouchEvent()
DLayoutAnimationsHideShow.java92 long duration; in onCreate()
97 duration = 500; in onCreate()
100 duration = 300; in onCreate()
102 mTransitioner.setDuration(duration); in onCreate()
/development/tools/logblame/
Dlogs.py60 def ParseLogcat(f, processes, duration=None): argument
62 for logLine in ParseLogcatInner(f, processes, duration):
75 def ParseLogcatInner(f, processes, duration=None): argument
91 if duration:
92 endTime = datetime.datetime.now() + datetime.timedelta(seconds=duration)
97 if duration and endTime <= datetime.datetime.now():
Dmedium_idle_test12 $TOP/development/tools/logblame/analyze_logs.py --duration=4h --clear --rawlogs $RAWLOGS_FILE \
Dshort_idle_test12 $TOP/development/tools/logblame/analyze_logs.py --duration=5m --clear --rawlogs $RAWLOGS_FILE \
Dpower_toggle_test14 $TOP/development/tools/logblame/analyze_logs.py --duration=10m --clear --rawlogs $RAWLOGS_FILE \
Dconnectivity_log_test20 $TOP/development/tools/logblame/analyze_logs.py --duration=10m --clear --rawlogs $RAWLOGS_FILE \
Dapp_switch_test37 $TOP/development/tools/logblame/analyze_logs.py --duration=10m --clear --rawlogs $RAWLOGS_FILE \
Danalyze_logs.py131 args.durationSec = ParseDuration(args.duration[0]) if args.duration else 0
/development/samples/browseable/Interpolator/src/com.example.android.interpolator/
DInterpolatorFragment.java110 long duration = mDurationSeekbar.getProgress(); in onCreateView()
116 duration, (String) mInterpolatorSpinner.getSelectedItem(), in onCreateView()
120 startAnimation(interpolator, duration, path); in onCreateView()
205 public ObjectAnimator startAnimation(Interpolator interpolator, long duration, Path path) { in startAnimation() argument
210 animator.setDuration(duration); in startAnimation()
/development/samples/VoicemailProviderDemo/src/com/example/android/voicemail/common/core/
DVoicemailImpl.java42 Long duration, in VoicemailImpl() argument
50 mDuration = duration; in VoicemailImpl()
122 public Builder setDuration(long duration) { in setDuration() argument
123 mBuilderDuration = duration; in setDuration()
/development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/cardstream/
DDefaultCardStreamAnimator.java82 long duration = Math.abs((int) ((1 - fractionCovered) * 200 * mSpeedFactor)); in getSwipeInAnimator() local
91 animator.setDuration(duration).setInterpolator(new BounceInterpolator()); in getSwipeInAnimator()
106 long duration = Math.abs((int) ((1 - fractionCovered) * 200 * mSpeedFactor)); in getSwipeOutAnimator() local
118 PropertyValuesHolder.ofFloat("rotationY", endRotationY)).setDuration(duration); in getSwipeOutAnimator()
/development/samples/devbytes/animation/CardFlip/src/com/example/android/cardflip/
DCardView.java163 int duration = MAX_FLIP_DURATION - Math.abs(velocity) / VELOCITY_TO_DURATION_CONSTANT; in flipHorizontally() local
164 duration = duration < MIN_FLIP_DURATION ? MIN_FLIP_DURATION : duration; in flipHorizontally()
165 set.setDuration(duration); in flipHorizontally()
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeyGetFrameRateEvent.java67 private float getAverageFrameRate(int totalNumberOfFrame, float duration) { in getAverageFrameRate() argument
69 if (duration > 0) { in getAverageFrameRate()
70 avgFrameRate = (totalNumberOfFrame / duration); in getAverageFrameRate()
DMonkeyGetAppFrameRateEvent.java75 private float getAverageFrameRate(int totalNumberOfFrame, float duration) { in getAverageFrameRate() argument
77 if (duration > 0) { in getAverageFrameRate()
78 avgFrameRate = (totalNumberOfFrame / duration); in getAverageFrameRate()
/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/
DPlaylistItem.java66 public void setDuration(long duration) { in setDuration() argument
67 mContentDuration = duration; in setDuration()
/development/samples/browseable/JobScheduler/src/com.example.android.jobscheduler/service/
DMyJobService.java76 long duration = params.getExtras().getLong(WORK_DURATION_KEY); in onStartJob() local
86 }, duration); in onStartJob()
/development/samples/devbytes/animation/ListViewItemAnimations/src/com/example/android/listviewitemanimations/
DListViewItemAnimations.java164 long duration = (int) ((1 - fractionCovered) * SWIPE_DURATION);
165 animateSwipe(v, endX, duration, remove);
185 private void animateSwipe(final View view, float endX, long duration, final boolean remove) { in animateSwipe() argument
189 view.animate().setDuration(duration). in animateSwipe()
214 set.setDuration(duration); in animateSwipe()
/development/samples/VoicemailProviderDemo/src/com/example/android/voicemail/
DAddVoicemailActivity.java81 @InjectView(R.id.duration)
130 long duration = durationStr.length() != 0 ? Long.parseLong(durationStr) : 0; in buildVoicemailObjectFromUiElements() local
132 .setDuration(duration) in buildVoicemailObjectFromUiElements()
/development/samples/devbytes/animation/ListViewRemovalAnimation/src/com/example/android/listviewremovalanimation/
DListViewRemovalAnimation.java142 long duration = (int) ((1 - fractionCovered) * SWIPE_DURATION);
144 v.animate().setDuration(duration).
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/model/
DMusicProvider.java259 int duration = json.getInt(JSON_DURATION) * 1000; // ms in buildFromJSON() local
283 .putLong(MediaMetadata.METADATA_KEY_DURATION, duration) in buildFromJSON()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DBitmapDecode.java132 int dur = mMovie.duration(); in onDraw()

12