/external/replicaisland/src/com/replica/replicaisland/ |
SimplePhysicsComponent.java | 44 float velocityX = parentObject.getVelocity().x + impulse.x; 56 if ((parentObject.touchingRightWall() && velocityX > 0.0f) 57 || (parentObject.touchingLeftWall() && velocityX < 0.0f)){ 58 velocityX = -velocityX * mBounciness; 60 if (Utils.close(velocityX, 0.0f)) { 61 velocityX = 0.0f; 65 parentObject.getVelocity().set(velocityX, velocityY);
|
EnemyAnimationComponent.java | 65 final float velocityX = parentObject.getVelocity().x; 80 } else if (Math.abs(velocityX) > 0.0f) { 90 if (!Utils.close(velocityX, 0.0f)) { 91 if (velocityX < 0.0f && targetVelocityX < 0.0f) { 93 } else if (velocityX > 0.0f && targetVelocityX > 0.0f) { 101 } else if (Math.abs(velocityX) == 0.0f) {
|
AnimationComponent.java | 111 final float velocityX = parentObject.getVelocity().x; 217 if (Utils.close(velocityX, 0.0f, 30.0f)) { 219 } else if (Math.abs(velocityX) > 300.0f) { 240 if (Math.abs(velocityX) < 100.0f && velocityY > 10.0f) { 242 } else if (Math.abs(velocityX) > 300.0f) { 249 if (Utils.close(velocityX, 0.0f, 1.0f)) { 251 } else if (Math.abs(velocityX) > 300.0f) { 272 if (velocityX > 0.0f) { 274 } else if (velocityX < 0.0f) {
|
LaunchProjectileComponent.java | 203 public final void setVelocityX(float velocityX) { 204 mVelocityX = velocityX;
|
/external/opencv/cv/src/ |
cvoptflowhs.cpp | 66 // velocityX - pointer to horizontal and 91 float* velocityX, 323 float *vx = velocityX; 363 averageX = (velocityX[Line2] + 364 velocityX[Line2 + 1] + velocityX[Line1] + velocityX[Line3]) / 4; 380 tmp = (float)fabs(velocityX[Line2] - VelBufX[i & 1][0]); 389 averageX = (velocityX[Line2 + j - 1] + 390 velocityX[Line2 + j + 1] [all...] |
cvoptflowbm.cpp | 94 // velocityX, // pointer to ROI of horizontal and 108 float *velocityX, float *velocityY, 123 int *int_velocityX = (int *) velocityX; 153 velStep /= sizeof(velocityX[0]); 332 float *velxf = velocityX, *velyf = velocityY; 333 int* velx = (int*)velocityX, *vely = (int*)velocityY; 362 int VelocityX = 0; 502 VelocityX = VelX * temp; 507 VelocityX = VelX << 16; 512 int_velocityX[j] = VelocityX + (offX << 16) [all...] |
cvoptflowlk.cpp | 65 // velocityX, // pointer to horizontal and 88 float *velocityX, 148 velStep /= sizeof(velocityX[0]); 507 velocityX[j] = deltaX * Idelta; 520 velocityX[j] = (A1B2 + A2) * temp; 526 velocityX[j] = 0; 535 velocityX += velStep;
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
FlingScroller.java | 76 public void fling(int startX, int startY, int velocityX, int velocityY, 85 double velocity = Math.hypot(velocityX, velocityY); 87 mCosAngle = velocityX / velocity;
|
GestureRecognizer.java | 35 boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY); 95 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, 97 return mListener.onFling(e1, e2, velocityX, velocityY);
|
PhotoView.java | [all...] |
PositionController.java | 659 public boolean flingPage(int velocityX, int velocityY) { 672 if ((velocityX > 0 && (edges & IMAGE_AT_LEFT_EDGE) != 0) || 673 (velocityX < 0 && (edges & IMAGE_AT_RIGHT_EDGE) != 0)) { 674 velocityX = 0; 681 if (velocityX == 0 && velocityY == 0) return false; 683 mPageScroller.fling(p.mCurrentX, b.mCurrentY, velocityX, velocityY, 691 public boolean flingFilmX(int velocityX) { 692 if (velocityX == 0) return false; 704 mFilmScroller.fling(p.mCurrentX, 0, velocityX, 0, [all...] |
/packages/apps/Calculator/src/com/android/calculator2/ |
PanelSwitcher.java | 59 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, 65 if (Math.abs(dx) > MAJOR_MOVE && Math.abs(velocityX) > Math.abs(velocityY)) { 66 if (velocityX > 0) {
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
Scroller.java | 354 * @param velocityX Initial velocity of the fling (X) measured in pixels per 367 public void fling(int startX, int startY, int velocityX, int velocityY, 382 if (Math.signum(velocityX) == Math.signum(oldVelocityX) && 384 velocityX += oldVelocityX; 392 float velocity = FloatMath.sqrt(velocityX * velocityX + velocityY * velocityY); 401 float coeffX = velocity == 0 ? 1.0f : velocityX / velocity;
|
OverScroller.java | 403 public void fling(int startX, int startY, int velocityX, int velocityY, 405 fling(startX, startY, velocityX, velocityY, minX, maxX, minY, maxY, 0, 0); 414 * @param velocityX Initial velocity of the fling (X) measured in pixels per 435 public void fling(int startX, int startY, int velocityX, int velocityY, 441 if (Math.signum(velocityX) == Math.signum(oldVelocityX) && 443 velocityX += oldVelocityX; 449 mScrollerX.fling(startX, velocityX, minX, maxX, overX); [all...] |
/frameworks/base/core/java/android/widget/ |
Scroller.java | 418 * @param velocityX Initial velocity of the fling (X) measured in pixels per 431 public void fling(int startX, int startY, int velocityX, int velocityY, 446 if (Math.signum(velocityX) == Math.signum(oldVelocityX) && 448 velocityX += oldVelocityX; 456 float velocity = FloatMath.sqrt(velocityX * velocityX + velocityY * velocityY); 464 float coeffX = velocity == 0 ? 1.0f : velocityX / velocity;
|
OverScroller.java | 401 public void fling(int startX, int startY, int velocityX, int velocityY, 403 fling(startX, startY, velocityX, velocityY, minX, maxX, minY, maxY, 0, 0); 412 * @param velocityX Initial velocity of the fling (X) measured in pixels per 433 public void fling(int startX, int startY, int velocityX, int velocityY, 439 if (Math.signum(velocityX) == Math.signum(oldVelocityX) && 441 velocityX += oldVelocityX; 447 mScrollerX.fling(startX, velocityX, minX, maxX, overX); [all...] |
/frameworks/support/v4/java/android/support/v4/widget/ |
ScrollerCompat.java | 367 * @param velocityX Initial velocity of the fling (X) measured in pixels per 380 public void fling(int startX, int startY, int velocityX, int velocityY, 382 IMPL.fling(mScroller, startX, startY, velocityX, velocityY, minX, maxX, minY, maxY); 391 * @param velocityX Initial velocity of the fling (X) measured in pixels per 408 public void fling(int startX, int startY, int velocityX, int velocityY, 410 IMPL.fling(mScroller, startX, startY, velocityX, velocityY,
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/ |
SwapButton.java | 86 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {
|
/frameworks/base/core/java/android/view/ |
GestureDetector.java | 107 * @param velocityX The velocity of this fling measured in pixels per second 113 boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY); 171 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, 605 final float velocityX = velocityTracker.getXVelocity(pointerId); 608 || (Math.abs(velocityX) > mMinimumFlingVelocity)){ 609 handled = mListener.onFling(mCurrentDownEvent, ev, velocityX, velocityY);
|
/cts/tests/src/android/view/cts/ |
GestureDetectorStubActivity.java | 95 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {
|
/frameworks/support/v4/java/android/support/v4/view/ |
GestureDetectorCompat.java | 375 final float velocityX = VelocityTrackerCompat.getXVelocity( 379 || (Math.abs(velocityX) > mMinimumFlingVelocity)){ 380 handled = mListener.onFling(mCurrentDownEvent, ev, velocityX, velocityY);
|
/cts/tests/tests/widget/src/android/widget/cts/ |
HorizontalScrollViewTest.java | 517 final int velocityX = WidgetTestUtils.convertDipToPixels(getActivity(), 2000); 522 mScrollView.fling(velocityX); 531 mScrollView.fling(-velocityX);
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
KeyboardView.java | 384 float velocityX, float velocityY) { 386 final float absX = Math.abs(velocityX); 396 if (velocityX > mSwipeThreshold && absY < absX && deltaX > travelX) { 397 if (mDisambiguateSwipe && endingVelocityX < velocityX / 4) { 403 } else if (velocityX < -mSwipeThreshold && absY < absX && deltaX < -travelX) { 404 if (mDisambiguateSwipe && endingVelocityX > velocityX / 4) { [all...] |
/packages/apps/Music/src/com/android/music/ |
TouchInterceptor.java | 95 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, 98 if (velocityX > 1000) {
|
/development/samples/training/InteractiveChart/src/com/example/android/interactivechart/ |
InteractiveLineGraphView.java | [all...] |