Home
last modified time | relevance | path

Searched refs:signum (Results 1 – 25 of 39) sorted by relevance

12

/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DScroller.java381 if (Math.signum(velocityX) == Math.signum(oldVelocityX) && in fling()
382 Math.signum(velocityY) == Math.signum(oldVelocityY)) { in fling()
503 return !mFinished && Math.signum(xvel) == Math.signum(mFinalX - mStartX) && in isScrollingInDirection()
504 Math.signum(yvel) == Math.signum(mFinalY - mStartY); in isScrollingInDirection()
DOverScroller.java438 if (Math.signum(velocityX) == Math.signum(oldVelocityX) && in fling()
439 Math.signum(velocityY) == Math.signum(oldVelocityY)) { in fling()
535 return !isFinished() && Math.signum(xvel) == Math.signum(dx) && in isScrollingInDirection()
536 Math.signum(yvel) == Math.signum(dy); in isScrollingInDirection()
769 mSplineDistance = (int) (totalDistance * Math.signum(velocity)); in fling()
856 final float sign = Math.signum(mVelocity); in onEdgeReached()
943 final float sign = Math.signum(mVelocity); in update()
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/math/
DAoaVector.java27 import static java.lang.Math.signum;
83 elevation = (F_PI - ae) * signum(elevation); in AoaVector()
98 float laz = backFacing ? (F_PI * signum(azimuth) - azimuth) : azimuth; in AoaVector()
109 azimuth = backFacing ? (F_PI * signum(azimuth) - laz / scaleFactor) : (azimuth in AoaVector()
195 azimuth = F_PI * signum(azimuth) - azimuth; in fromCartesian()
215 * signum(vec.azimuth); in fromSphericalVector()
DSphericalVector.java28 import static java.lang.Math.signum;
71 elevation = (F_PI - ae) * signum(elevation); in SphericalVector()
164 double az = acos(min(max(azz, -1), 1)) * signum(vec.azimuth); in fromAoAVector()
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/pose/
DIntegPoseSource.java22 import static java.lang.Math.signum;
138 mAccelCal.x + min(abs(accel.x), CALIBRATION_COEFFICIENT) * signum(accel.x), in onSensorChanged()
139 mAccelCal.y + min(abs(accel.y), CALIBRATION_COEFFICIENT) * signum(accel.y), in onSensorChanged()
140 mAccelCal.z + min(abs(accel.z), CALIBRATION_COEFFICIENT) * signum(accel.z) in onSensorChanged()
/packages/apps/TV/tests/common/src/com/android/tv/testing/
DComparatorTester.java159 .that(Integer.signum(compare(reference, other))) in doTestEquivalanceGroupOrdering()
161 Integer.signum(Ints.compare(referenceIndex, otherIndex))); in doTestEquivalanceGroupOrdering()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/correction/primers/
DBackAzimuthPrimerTest.java25 import static java.lang.Math.signum;
92 signum(azimuth) * (F_PI - abs(azimuth)), in simulateRotation()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/interaction/
DEdgeBackGesturePanel.java530 if (Math.signum(delta) == Math.signum(mTotalTouchDelta)) { in handleMoveEvent()
579 ARROW_MAX_ANGLE_SPEED_OFFSET_DEGREES) * Math.signum(xVelocity); in handleMoveEvent()
605 * maxYOffset * Math.signum(yOffset); in handleMoveEvent()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DAlbumDataAdapter.java139 return (int) Math.signum(typeA - typeB); in compare()
156 return (int) Math.signum(b.updated - a.updated); in compare()
DPhotoCarousel.java116 flip(Math.signum(vX)); in PhotoCarousel()
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/primers/
DBackAzimuthPrimer.java27 import static java.lang.Math.signum;
371 signum(vector.azimuth) * (F_PI - abs(vector.azimuth)), in mirrorAzimuth()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DViewAutoScroller.java98 final int direction = (int) Math.signum(pixelsPastView); in computeScrollDistance()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DRectFSpringAnim.java326 Math.abs(xVelocityPxPerS), mMaxVelocityPxPerS) * Math.signum(xVelocityPxPerS); in start()
328 Math.abs(yVelocityPxPerS), mMaxVelocityPxPerS) * Math.signum(yVelocityPxPerS); in start()
477 float sign = Math.signum(velocity); in adjustVelocity()
DStaggeredWorkspaceAnim.java266 float springVelocity = Math.abs(mVelocity) * Math.signum(endTransY - mSpringTransY); in addStaggeredAnimationForView()
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DAbstractStateChangeTouchController.java305 Float.compare(Math.signum(velocity), Math.signum(mProgressMultiplier)) == 0 in onDragEnd()
/packages/apps/Launcher3/src/com/android/launcher3/celllayout/
DReorderAlgorithm.java513 result[0] = (int) Math.signum(deltaX); in computeDirectionVector()
516 result[1] = (int) Math.signum(deltaY); in computeDirectionVector()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/
DPortraitStatesTouchController.java157 totalShift = Math.signum(mFromState.ordinal - mToState.ordinal) in initCurrentAnimation()
/packages/modules/Bluetooth/system/blueberry/tests/gd/cert/
Dgd_base_test.py48 def handle_timeout(self, signum, frame): argument
/packages/apps/Launcher3/src/com/android/launcher3/views/
DAbstractSlideInView.java431 + Math.signum(mToTranslationShift - mFromTranslationShift) in onDrag()
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/
DProfileHelper.java430 (u1, u2) -> Long.signum(u1.creationTime - u2.creationTime)); in getAllLivingProfiles()
DProfileGridRecyclerView.java231 .sorted((u1, u2) -> Long.signum(u1.creationTime - u2.creationTime)) in getProfilesForProfileGrid()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userswitcher/
DUserGridRecyclerView.java148 .sorted((u1, u2) -> Long.signum(u1.creationTime - u2.creationTime)) in getUsersForUserGrid()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/qc/
DProfileSwitcher.java189 .sorted((u1, u2) -> Long.signum(u1.creationTime - u2.creationTime)) in getProfileList()
/packages/apps/Launcher3/src/com/android/launcher3/
DPagedView.java1413 Math.signum(velocity) != Math.signum(delta) && isFling) { in onTouchEvent()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DRecentsView.java5763 - Math.round(Math.signum(unclampedOffset) * mClampedScrollOffsetBound); in getScrollOffset()

12