/frameworks/support/dynamic-animation/src/android/support/animation/ |
SpringForce.java | 76 // This multiplier is used to calculate the velocity threshold given a certain value threshold. 77 // The idea is that if it takes >= 1 frame to move the value threshold amount, then the velocity 92 // Threshold for velocity and value to determine when it's reasonable to assume that the spring 105 // Internal state to hold a value/velocity pair. 228 public boolean isAtEquilibrium(float value, float velocity) { 229 if (Math.abs(velocity) < mVelocityThreshold 268 * Internal only call for Spring to calculate the spring position/velocity using 323 * is allowed to end the animation when velocity is very low
|
DynamicAnimation.java | 286 // Internal tracking for velocity. 320 // Internal state for value/velocity pair. 383 * Start velocity of the animation. Default velocity is 0. Unit: pixel/second 385 * <p>Note when using a fixed value as the start velocity (as opposed to getting the velocity 396 * @param startVelocity start velocity of the animation in pixel/second 397 * @return the Animation whose start velocity is being set 625 * This gets call on each frame of the animation. Animation value and velocity are updated 644 // Clamp value & velocity [all...] |
/frameworks/support/samples/SupportAnimationDemos/src/com/example/android/support/animation/ |
SpringActivity.java | 89 // Compute the velocity in unit: pixel/second 91 float velocity = vt.getYVelocity(); 93 anim.setStartVelocity(velocity).start();
|
MainActivity.java | 56 float velocity) { 64 float velocity) {
|
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/statusbar/ |
NotificationMenuRowPlugin.java | 94 public boolean onTouchEvent(View view, MotionEvent ev, float velocity);
|
/frameworks/native/libs/vr/libvrsensor/include/dvr/ |
pose_client.h | 36 // The rotational velocity of the HMD. 60 // Start-space angular velocity x,y,z,pad in radians per second. 62 // Start-space positional velocity x,y,z,pad in meters per second. 63 float32x4_t velocity; member in struct:DvrPoseAsync
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/sysroot/usr/include/alsa/ |
seqmid.h | 368 * \param vel velocity 376 (ev)->data.note.velocity = (vel),\ 384 * \param vel velocity 391 (ev)->data.note.velocity = (vel)) 398 * \param vel velocity 405 (ev)->data.note.velocity = (vel)) 412 * \param vel velocity 419 (ev)->data.note.velocity = (vel))
|
seq_event.h | 233 unsigned char velocity; /**< velocity */ member in struct:snd_seq_ev_note 234 unsigned char off_velocity; /**< note-off velocity; only for #SND_SEQ_EVENT_NOTE */
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/alsa/ |
seqmid.h | 368 * \param vel velocity 376 (ev)->data.note.velocity = (vel),\ 384 * \param vel velocity 391 (ev)->data.note.velocity = (vel)) 398 * \param vel velocity 405 (ev)->data.note.velocity = (vel)) 412 * \param vel velocity 419 (ev)->data.note.velocity = (vel))
|
seq_event.h | 233 unsigned char velocity; /**< velocity */ member in struct:snd_seq_ev_note 234 unsigned char off_velocity; /**< note-off velocity; only for #SND_SEQ_EVENT_NOTE */
|
/external/sonivox/arm-wt-22k/lib_src/ |
eas_vm_protos.h | 175 * nNoteVelocity - the key velocity for this note 182 void VMStartNote (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, EAS_U8 channel, EAS_U8 note, EAS_U8 velocity); 196 * nNoteVelocity - new note's velocity 222 * nNoteVelocity - new note's velocity 234 EAS_BOOL VMCheckPolyphonyLimiting (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, EAS_U8 channel, EAS_U8 note, EAS_U8 velocity, EAS_U16 regionIndex, EAS_I32 lowVoice, EAS_I32 highVoice); 246 * nNoteVelocity - the note-off velocity 256 void VMStopNote (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, EAS_U8 channel, EAS_U8 key, EAS_U8 velocity); 291 * Key velocity (for voices that haven't been started yet) [all...] |
eas_voicemgt.c | 182 pVoice->velocity = pVoice->nextVelocity = DEFAULT_VELOCITY; [all...] |
/frameworks/support/dynamic-animation/tests/src/android/support/dynamicanimation/tests/ |
FlingTests.java | 172 * Test that velocity threshold does affect how early fling animation ends. An animation with 173 * higher velocity threshold should finish first. 186 public void onAnimationUpdate(DynamicAnimation animation, float value, float velocity) { 187 if (velocity != 0f) { 188 // Other than last frame, velocity should always be above threshold 189 assertTrue(velocity >= highThreshold);
|
SpringTests.java | 121 public void onAnimationUpdate(DynamicAnimation animation, float value, float velocity) { 183 float velocity) { 251 float velocity) { 253 if (velocity > 0 && velocity1 < 0) { 256 velocity1 = velocity; 258 velocity2 = velocity; 259 if (velocity > 0 && velocity2 < 0) { 466 public void onAnimationUpdate(DynamicAnimation animation, float value, float velocity) { 657 float velocity) { 787 float velocity) { [all...] |
/packages/apps/Dialer/java/com/android/incallui/answer/impl/answermethod/ |
FlingUpDownTouchHandler.java | 207 * Sets whether fling velocity is used to affect accept/reject behavior 209 * @param flingEnabled whether fling velocity will be used when determining whether to 394 private void fling(float velocity, @FlingTarget int target, boolean centerBecauseOfFalsing) { 397 flingAnimationUtils.apply(animator, currentProgress, target, velocity); 399 flingAnimationUtils.applyDismissing(animator, currentProgress, target, velocity, 1); 402 velocity = 0; 404 if (velocity == 0) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
ExpandHelper.java | 544 * @param velocity the velocity this was expanded/ collapsed with 547 void finishExpanding(boolean forceAbort, float velocity) { 557 nowExpanded = currentHeight > mOldHeight && velocity >= 0; 559 nowExpanded = currentHeight >= mOldHeight || velocity > 0; 598 velocity = nowExpanded == velocity >= 0 ? velocity : 0; 599 mFlingAnimationUtils.apply(mScaleAnimation, currentHeight, targetHeight, velocity); 628 finishExpanding(true /* forceAbort */, 0f /* velocity */); [all...] |
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/ |
ConversationListSwipeHelper.java | 369 if (velocityX != 0 // Has velocity. 400 * Determine if the swipe has enough velocity to be dismissed. 430 private long calculateTranslationDuration(final float deltaPosition, final float velocity) { 431 Assert.isTrue(velocity != 0); 432 final float durationInSeconds = Math.abs(deltaPosition / velocity);
|
/external/sonivox/arm-wt-22k/host_src/ |
eas_types.h | 241 EAS_U8 velocity; member in struct:s_ext_audio_event_tag
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/X11/extensions/ |
Xfixes.h | 264 int x2, int y2, int directions, int velocity, 288 int velocity; member in struct:__anon48652
|
/external/sonivox/jet_tools/JetCreator/ |
midifile.py | 395 def __init__ (self, ticks, seq, channel, note, velocity):
402 self.velocity = velocity
408 velocity = ReadByte(stream)
412 return NoteOffEvent(ticks, seq, channel, note, velocity)
414 # special case for note-off using zero velocity
415 if self.velocity > 0:
416 self.WriteRunningStatus(stream, track, filters, NOTE_ON, self.note, self.velocity)
418 self.WriteRunningStatus(stream, track, filters, NOTE_ON, self.note, self.velocity)
422 return '%s: ch=%d n=%d v=%d' % (self.name, self.channel, self.note, self.velocity)
[all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/ |
PipMotionHelper.java | 283 Rect flingToSnapTarget(float velocity, float velocityX, float velocityY, Rect movementBounds, 292 velocity); 372 final float velocity = PointF.length(velocityX, velocityY); local 373 final boolean isFling = velocity > mFlingAnimationUtils.getMinVelocityPxPerSecond(); 387 distanceBetweenRectOffsets(mBounds, toBounds), velocity); 459 * @return the coordinates the PIP should animate to based on the direction of velocity when 476 // If it wasn't a fling the velocity on 'up' is not reliable for direction of movement, 483 * @return whether the gesture it towards the dismiss area based on the velocity when
|
/packages/apps/Contacts/src/com/android/contacts/widget/ |
MultiShrinkScroller.java | 63 * order to track velocity, modify EdgeEffect color & perform the originally specified animations. 598 final float velocity = getCurrentVelocity(); local 599 if (velocity > mMinimumVelocity || velocity < -mMinimumVelocity) { 600 fling(-velocity); [all...] |
/packages/apps/Dialer/java/com/android/incallui/answer/impl/affordance/ |
SwipeButtonView.java | 193 public void finishAnimation(float velocity, @Nullable final Runnable mAnimationEndRunnable) { 202 animatorToRadius, circleRadius, maxCircleSize, velocity, maxCircleSize); 223 previewClipper, circleRadius, maxCircleSize, velocity, maxCircleSize);
|
/external/skia/samplecode/ |
SampleLitAtlas.cpp | 71 SkVector newVel = fShip.velocity(); 391 const SkPoint& velocity() const { return fVelocity; } function in class:DrawLitAtlasDrawable::ObjectRecord 392 void setVelocity(const SkPoint& velocity) { fVelocity = velocity; }
|
/frameworks/base/core/java/android/widget/ |
StackView.java | [all...] |