/development/samples/browseable/Timer/src/com.example.android.wearable.timer/ |
D | SetTimerActivity.java | 82 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/ |
D | PictureDetailsActivity.java | 132 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/ |
D | Utils.java | 36 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/ |
D | BouncingBalls.java | 91 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()
|
D | LayoutAnimationsHideShow.java | 92 long duration; in onCreate() 97 duration = 500; in onCreate() 100 duration = 300; in onCreate() 102 mTransitioner.setDuration(duration); in onCreate()
|
/development/tools/logblame/ |
D | logs.py | 60 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():
|
D | medium_idle_test | 12 $TOP/development/tools/logblame/analyze_logs.py --duration=4h --clear --rawlogs $RAWLOGS_FILE \
|
D | short_idle_test | 12 $TOP/development/tools/logblame/analyze_logs.py --duration=5m --clear --rawlogs $RAWLOGS_FILE \
|
D | power_toggle_test | 14 $TOP/development/tools/logblame/analyze_logs.py --duration=10m --clear --rawlogs $RAWLOGS_FILE \
|
D | connectivity_log_test | 20 $TOP/development/tools/logblame/analyze_logs.py --duration=10m --clear --rawlogs $RAWLOGS_FILE \
|
D | app_switch_test | 37 $TOP/development/tools/logblame/analyze_logs.py --duration=10m --clear --rawlogs $RAWLOGS_FILE \
|
D | analyze_logs.py | 131 args.durationSec = ParseDuration(args.duration[0]) if args.duration else 0
|
/development/samples/browseable/Interpolator/src/com.example.android.interpolator/ |
D | InterpolatorFragment.java | 110 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/ |
D | VoicemailImpl.java | 42 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/ |
D | DefaultCardStreamAnimator.java | 82 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/ |
D | CardView.java | 163 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/ |
D | MonkeyGetFrameRateEvent.java | 67 private float getAverageFrameRate(int totalNumberOfFrame, float duration) { in getAverageFrameRate() argument 69 if (duration > 0) { in getAverageFrameRate() 70 avgFrameRate = (totalNumberOfFrame / duration); in getAverageFrameRate()
|
D | MonkeyGetAppFrameRateEvent.java | 75 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/ |
D | PlaylistItem.java | 66 public void setDuration(long duration) { in setDuration() argument 67 mContentDuration = duration; in setDuration()
|
/development/samples/browseable/JobScheduler/src/com.example.android.jobscheduler/service/ |
D | MyJobService.java | 76 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/ |
D | ListViewItemAnimations.java | 164 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/ |
D | AddVoicemailActivity.java | 81 @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/ |
D | ListViewRemovalAnimation.java | 142 long duration = (int) ((1 - fractionCovered) * SWIPE_DURATION); 144 v.animate().setDuration(duration).
|
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/model/ |
D | MusicProvider.java | 259 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/ |
D | BitmapDecode.java | 132 int dur = mMovie.duration(); in onDraw()
|