Home
last modified time | relevance | path

Searched refs:duration (Results 1 – 25 of 29) 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/RandomMusicPlayer/src/com/example/android/musicplayer/
DMusicRetriever.java117 long duration; field in MusicRetriever.Item
119 public Item(long id, String artist, String title, String album, long duration) { in Item() argument
124 this.duration = duration; in Item()
144 return duration; in getDuration()
/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/ndk/sources/android/ndk_helper/
Dinterpolator.cpp48 const double duration ) in Set() argument
52 dest_time_ = start_time_ + duration; in Set()
62 const double duration ) in Add() argument
67 param.duration_ = duration; in Add()
Dinterpolator.h77 double duration );
81 const double duration );
/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/Support4Demos/src/com/example/android/supportv4/media/
DMediaController.java224 long duration = mController.getDuration(); in updateProgress() local
226 if (duration > 0) { in updateProgress()
228 long pos = 1000L * position / duration; in updateProgress()
236 mEndTime.setText(stringForTime((int)duration)); in updateProgress()
292 long duration = mController.getDuration();
293 long newposition = (duration * progress) / 1000L;
/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/Support7Demos/src/com/example/android/supportv7/media/
DPlaylistItem.java66 public void setDuration(long duration) { in setDuration() argument
67 mContentDuration = duration; in setDuration()
/development/ndk/platforms/android-21/include/linux/
Dpg.h37 int duration; member
Dbsg.h62 __u32 duration; member
/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()
/development/samples/ContactManager/src/com/example/android/contactmanager/
DContactAdder.java221 int duration = Toast.LENGTH_SHORT; in createContactEntry()
222 Toast toast = Toast.makeText(ctx, txt, duration); in createContactEntry()

12