/packages/apps/Dialer/java/com/android/incallui/answer/impl/affordance/ |
SwipeButtonView.java | 297 long duration = 250; local 301 duration = (long) (CIRCLE_APPEAR_DURATION * durationFactor); 302 duration = Math.min(duration, CIRCLE_DISAPPEAR_MAX_DURATION); 304 animator.setDuration(duration); 316 previewClipper.setDuration(duration); 363 * @param duration If animate, whats the duration? When -1 we take the default duration 368 float imageScale, boolean animate, long duration, @Nullable Interpolator interpolator) [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
AbstractStateChangeTouchController.java | 204 long duration = (long) (getShiftRange() * 2); 206 createAtomicAnimForState(mFromState, mToState, duration), duration); 317 long duration) { 322 config.duration = duration; 353 final long duration; local 354 // Increase the duration if we prevented the fling, as we are going against a high velocity. 361 duration = 0; 366 duration = SwipeDetector.calculateDuration(velocity [all...] |
/cts/tests/tests/view/src/android/view/cts/ |
VelocityTrackerTest.java | 159 private void move(long duration, long step) { 161 while (duration > 0) { 162 duration -= step; 172 private void pause(long duration) { 173 mTime += duration;
|
/development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/ |
MusicRetriever.java | 82 int durationColumn = cur.getColumnIndex(MediaStore.Audio.Media.DURATION); 117 long duration; field in class:MusicRetriever.Item 119 public Item(long id, String artist, String title, String album, long duration) { 124 this.duration = duration; 144 return duration;
|
/development/samples/browseable/Interpolator/src/com.example.android.interpolator/ |
InterpolatorFragment.java | 53 * SeekBar for selection of duration of animation. 80 * Default duration of animation in ms. 102 // selected: the Interpolator, duration and animation path 109 // Duration selected in SeekBar 110 long duration = mDurationSeekbar.getProgress(); 116 duration, (String) mInterpolatorSpinner.getSelectedItem(), 120 startAnimation(interpolator, duration, path); 127 // Get the label to display the selected duration 153 // Set up SeekBar that defines the duration of the animation 200 * @param duration Duration of the animation in ms [all...] |
/external/tensorflow/tensorflow/python/ops/ |
transpose_benchmark.py | 76 The duration of the run in seconds. 88 duration = (time.time() - start_time) / num_iters 90 np.array(input_shape)) * datatype().itemsize * 2 / duration / 1e9 94 str(perm).replace(" ", ""), num_iters, duration, throughput)) 106 wall_time=duration) 108 return duration
|
/external/webrtc/talk/app/webrtc/ |
dtmfsender.cc | 58 // The duration cannot be more than 6000ms or less than 70ms. The gap between 133 bool DtmfSender::InsertDtmf(const std::string& tones, int duration, 137 if (duration > kDtmfMaxDurationMs || 138 duration < kDtmfMinDurationMs || 140 LOG(LS_ERROR) << "InsertDtmf is called with invalid duration or tones gap. " 141 << "The duration cannot be more than " << kDtmfMaxDurationMs 154 duration_ = duration; 171 int DtmfSender::duration() const { function in class:webrtc::DtmfSender
|
/tools/test/connectivity/acts/framework/acts/controllers/sniffer_lib/local/ |
local_base.py | 95 def _get_command_line(self, additional_args=None, duration=None, 112 additional_args=None, duration=None, 129 duration=duration, packet_count=packet_count) 132 return sniffer.ActiveCaptureContext(self, duration)
|
/tools/test/connectivity/acts/framework/acts/libs/proc/ |
job.py | 53 duration: How long the process ran for. 78 duration=0, 88 duration: How long the command ran. 99 self.duration = duration 104 'duration=%r, did_timeout=%r, encoding=%r)') % ( 106 self.exit_status, self.duration, self.did_timeout, 161 duration=time.time() - start_time,
|
/tools/test/connectivity/tools/lab/utils/ |
job.py | 53 duration: How long the process ran for. 78 duration=0, 88 duration: How long the command ran. 99 self.duration = duration 104 'duration=%r, did_timeout=%r, encoding=%r)') % ( 106 self.exit_status, self.duration, self.did_timeout, 161 duration=time.time() - start_time,
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/ |
ConversationListSwipeHelper.java | 314 * the animation duration. Whether the item is dismissed to the left or right is dependent on 341 final long duration; local 344 duration = calculateTranslationDuration(deltaX, velocityX); 346 duration = mDefaultDismissAnimationDuration; 350 itemView, animateTo, duration, UiUtils.DEFAULT_INTERPOLATOR); 368 final long duration; local 371 duration = calculateTranslationDuration(translationX, velocityX); 373 duration = mDefaultRestoreAnimationDuration; 376 itemView, 0f, duration, UiUtils.DEFAULT_INTERPOLATOR); 391 final float animateTo, final long duration, final TimeInterpolator interpolator) [all...] |
/system/bt/stack/btm/ |
btm_ble_multi_adv.cc | 63 uint16_t duration; // 1 unit is 10ms member in struct:__anon2159::AdvertisingInstance 94 duration(0), 154 uint16_t duration; member in struct:__anon2159::CreatorParams 230 // Maximum duration value is around 10 minutes, so this is safe. 231 if (restart && (p_inst->duration || p_inst->maxExtAdvEvents)) { 313 std::vector<uint8_t> scan_response_data, int duration, 323 int duration; member in struct:__anon2159::BleAdvertisingManagerImpl::CreatorParams 335 c->duration = duration; 399 c->self->Enable(c->inst_id, true, c->cb, c->duration, 0, std::move(c->timeout_cb)) 595 uint16_t duration = c->duration; local 649 VLOG(1) << __func__ << " enable: " << enable << ", duration: " << +duration; variable 908 TimeDelta duration = now - inst->enable_time; local [all...] |
/prebuilts/tools/common/m2/repository/com/firebase/firebase-client-android/2.5.2/ |
firebase-client-android-2.5.2.jar | |
/external/universal-tween-engine/java/api/src/aurelienribon/tweenengine/ |
Tween.java | 204 * @param duration The duration of the interpolation, in milliseconds. 207 public static Tween to(Object target, int tweenType, float duration) { 209 tween.setup(target, tweenType, duration); 242 * @param duration The duration of the interpolation, in milliseconds. 245 public static Tween from(Object target, int tweenType, float duration) { 247 tween.setup(target, tweenType, duration); 393 private void setup(Object target, int tweenType, float duration) { 394 if (duration < 0) throw new RuntimeException("Duration can't be negative") [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
LauncherStateManager.java | 247 // transition plays in reverse and use the same duration as previous state. 248 mConfig.duration = state == NORMAL ? fromState.transitionDuration : state.transitionDuration; 303 * @param duration intended duration for normal playback. Use higher duration for better 307 LauncherState state, long duration) { 308 return createAnimationToNewWorkspace(state, duration, LauncherStateManager.ANIM_ALL); 312 LauncherState state, long duration, @AnimationComponents int animComponents) { 313 return createAnimationToNewWorkspace(state, new AnimatorSetBuilder(), duration, null, 318 AnimatorSetBuilder builder, long duration, Runnable onCancelRunnable 500 public long duration; field in class:LauncherStateManager.AnimationConfig [all...] |
/external/golang-protobuf/ptypes/ |
duration.go | 34 // This file implements conversions between google.protobuf.Duration 35 // and time.Duration. 42 durpb "github.com/golang/protobuf/ptypes/duration" 46 // Range of a durpb.Duration in seconds, as specified in 47 // google/protobuf/duration.proto. This is about 10,000 years in seconds. 52 // validateDuration determines whether the durpb.Duration is valid according to the 53 // definition in google/protobuf/duration.proto. A valid durpb.Duration 54 // may still be too large to fit into a time.Duration (the range of durpb.Duration [all...] |
/external/linux-kselftest/tools/testing/selftests/bpf/ |
test_progs.c | 76 printf("%s:PASS:%s %d nsec\n", __func__, tag, duration);\ 99 __u32 duration, retval; local 109 NULL, NULL, &retval, &duration); 111 "err %d errno %d retval %d duration %d\n", 112 err, errno, retval, duration); 115 NULL, NULL, &retval, &duration); 117 "err %d errno %d retval %d duration %d\n", 118 err, errno, retval, duration); 133 __u32 duration, retval, size; local 149 buf, &size, &retval, &duration); 192 __u32 duration, retval, size; local 255 __u32 duration = 0; local 293 __u32 i, next_id, info_len, nr_id_found, duration = 0; local 533 __u32 duration, retval; local 567 __u32 duration = 0; local [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/animation/ |
BouncingBalls.java | 91 int duration = (int)(500 * ((h - eventY)/h)); local 93 bounceAnim.setDuration(duration); 97 squashAnim1.setDuration(duration/4); 103 squashAnim2.setDuration(duration/4); 109 stretchAnim1.setDuration(duration/4); 115 stretchAnim2.setDuration(duration/4); 121 bounceBackAnim.setDuration(duration);
|
/device/google/marlin/power/ |
power-8996.c | 136 static int process_boost(int boost_handle, int duration) 165 boost_handle, duration, launch_resources_size, launch_resources); 181 int duration = 2000; // boosts 2s for starting encoding local 182 boost_handle = process_boost(boost_handle, duration); 183 ALOGD("LAUNCH ENCODER-ON: %d MS", duration); 247 int duration = 5000; local 256 launch_handle = process_boost(launch_handle, duration);
|
utils.c | 59 static int (*perf_lock_acq)(unsigned long handle, int duration, 207 void interaction(int duration, int num_args, int opt_list[]) 212 if (duration < 0 || num_args < 1 || opt_list[0] == 0) 217 lock_handle = perf_lock_acq(lock_handle, duration, opt_list, num_args); 225 int interaction_with_handle(int lock_handle, int duration, int num_args, int opt_list[]) 228 if (duration < 0 || num_args < 1 || opt_list[0] == 0) 233 lock_handle = perf_lock_acq(lock_handle, duration, opt_list, num_args);
|
/external/adhd/scripts/mic_testing/frontend/ |
source.js | 36 * Sets tone duration 37 * @param {float} duration in seconds 39 this.setDuration = function(duration) { 40 this.duration = parseFloat(duration); 58 this.sampleRate * this.duration, this.sampleRate); 63 var beta = this.duration / Math.log(k); 91 var tone_freq = 1000, duration = 0.5; 93 this.setDuration(duration);
|
/external/guava/guava-gwt/src-super/java/util/super/java/util/concurrent/ |
TimeUnit.java | 119 public long toNanos(long duration) { 123 public long toMicros(long duration) { 127 public long toMillis(long duration) { 131 public long toSeconds(long duration) { 135 public long toMinutes(long duration) { 139 public long toHours(long duration) { 143 public long toDays(long duration) {
|
/external/ltp/testcases/kernel/controllers/freezer/ |
vfork.c | 148 unsigned long long duration = 1U; local 169 opt = sscanf(optarg, "%Ld%as", &duration, &units); 174 sleep_duration.tv_sec = duration; 176 sleep_duration.tv_nsec = duration * 1000000U; 178 sleep_duration.tv_nsec = duration * 1000U; 180 sleep_duration.tv_sec = duration * 60U; 182 sleep_duration.tv_sec = duration * 3600U;
|
/external/strace/tests/ |
ioctl_sg_io_v3.c | 90 ", duration=%u" 108 sg_io->duration); 133 ", duration=%u" 151 sg_io->duration); 192 ", duration=%u" 216 sg_io->duration); 242 ", duration=%u" 266 sg_io->duration); 294 ", duration=%u" 315 sg_io->duration); [all...] |
/external/strace/tests-m32/ |
ioctl_sg_io_v3.c | 90 ", duration=%u" 108 sg_io->duration); 133 ", duration=%u" 151 sg_io->duration); 192 ", duration=%u" 216 sg_io->duration); 242 ", duration=%u" 266 sg_io->duration); 294 ", duration=%u" 315 sg_io->duration); [all...] |