Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/inputmethod/
DComparableUtils.java95 Integer.signum(compareTo.applyAsInt(x, y)),
96 -Integer.signum(compareTo.applyAsInt(y, x)));
108 Integer.signum(compareTo.applyAsInt(x, z)),
109 Integer.signum(compareTo.applyAsInt(y, z)));
/frameworks/base/core/java/android/widget/
DScroller.java441 if (Math.signum(velocityX) == Math.signum(oldVelocityX) && in fling()
442 Math.signum(velocityY) == Math.signum(oldVelocityY)) { in fling()
463 mDistance = (int) (totalDistance * Math.signum(velocity)); in fling()
564 return !mFinished && Math.signum(xvel) == Math.signum(mFinalX - mStartX) && in isScrollingInDirection()
565 Math.signum(yvel) == Math.signum(mFinalY - mStartY); in isScrollingInDirection()
DOverScroller.java430 if (Math.signum(velocityX) == Math.signum(oldVelocityX) && in fling()
431 Math.signum(velocityY) == Math.signum(oldVelocityY)) { in fling()
528 return !isFinished() && Math.signum(xvel) == Math.signum(dx) && in isScrollingInDirection()
529 Math.signum(yvel) == Math.signum(dy); in isScrollingInDirection()
768 mSplineDistance = (int) (totalDistance * Math.signum(velocity)); in fling()
859 final float sign = Math.signum(mVelocity); in onEdgeReached()
950 final float sign = Math.signum(mVelocity); in update()
DDifferentialMotionFlingHelper.java180 float velocityDirection = Math.signum(scaledVelocity); in onMotionEvent()
184 || (velocityDirection != Math.signum(mLastFlingVelocity) in onMotionEvent()
DEdgeEffect.java759 && Math.signum(mVelocity) == -Math.signum(mDistance) in updateSpring()
763 mVelocity = Math.signum(mVelocity) * LINEAR_VELOCITY_TAKE_OVER; in updateSpring()
766 if (Math.signum(targetDistance) != Math.signum(mDistance)) { in updateSpring()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/view/
DMediaCarouselScrollHandler.kt260 settingsButton.rotation = rotation * -Math.signum(contentTranslation) in updateSettingsPresentation()
314 newTranslation = getMaxTranslation() * Math.signum(currentTranslation) in onTouch()
358 if (Math.signum(distanceX) != Math.signum(currentTranslation)) { in onScroll()
368 Math.signum(newTranslation) * in onScroll()
376 Math.signum(newTranslation) != Math.signum(currentTranslation) && in onScroll()
417 if (Math.signum(vX) != Math.signum(currentTranslation) || isFalseTouch()) { in onFling()
421 newTranslation = getMaxTranslation() * Math.signum(currentTranslation) in onFling()
/frameworks/base/core/java/com/android/internal/graphics/cam/
DCam.java171 float rA = Math.signum(rD) * 400.0f * rAF / (rAF + 27.13f); in fromIntInFrame()
172 float gA = Math.signum(gD) * 400.0f * gAF / (gAF + 27.13f); in fromIntInFrame()
173 float bA = Math.signum(bD) * 400.0f * bAF / (bAF + 27.13f); in fromIntInFrame()
310 float rC = Math.signum(rA) * (100.0f / frame.getFl()) * (float) Math.pow(rCBase, in viewed()
313 float gC = Math.signum(gA) * (100.0f / frame.getFl()) * (float) Math.pow(gCBase, in viewed()
316 float bC = Math.signum(bA) * (100.0f / frame.getFl()) * (float) Math.pow(bCBase, in viewed()
DHctSolver.java353 return CamUtils.signum(component) * 400.0 * af / (af + 27.13); in chromaticAdaptation()
595 return CamUtils.signum(adapted) * Math.pow(base, 1.0 / 0.42); in inverseChromaticAdaptation()
DCamUtils.java101 public static int signum(double num) { in signum() method in CamUtils
/frameworks/base/apct-tests/perftests/core/src/android/libcore/
DSmallBigIntegerPerfTest.java63 if (x.signum() < 0 || x.compareTo(BIG_FOUR) > 0) { in testSmallBigInteger()
/frameworks/base/core/java/android/content/res/
DFontScaleConverterImpl.java95 final float sign = Math.signum(sourceValue); in lookupAndInterpolate()
/frameworks/base/apct-tests/perftests/core/src/android/libcore/regression/
DStrictMathPerfTest.java427 StrictMath.signum(mDouble); in timeSignumD()
435 StrictMath.signum(mFloat); in timeSignumF()
DMathPerfTest.java458 result = Math.signum(mDouble); in timeSignumD()
467 result = Math.signum(mFloat); in timeSignumF()
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
DMainActivity.java130 mXOffset = Math.signum(mXOffset); in onCreate()
133 mYOffset = Math.signum(mYOffset); in onCreate()
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
DMainActivity.java130 mXOffset = Math.signum(mXOffset); in onCreate()
133 mYOffset = Math.signum(mYOffset); in onCreate()
/frameworks/base/libs/securebox/src/com/android/security/
DSecureBox.java433 || x.signum() == -1 in validateEcPoint()
434 || y.signum() == -1) { in validateEcPoint()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/
DPipPinchResizingAlgorithm.java85 return Math.signum(angle) * Math.max(0, (Math.abs(dampedRotate(angle)) - ANGLE_THRESHOLD)); in constrainRotationAngle()
/frameworks/base/cmds/incidentd/src/
DSection.cpp257 void sigpipe_handler(int signum) { in sigpipe_handler() argument
258 if (signum == SIGPIPE) { in sigpipe_handler()
261 ALOGE("Received unexpected signal: %d\n", signum); in sigpipe_handler()
/frameworks/base/core/java/android/security/keymaster/
DKeymasterArguments.java211 if ((value.signum() == -1) || (value.compareTo(UINT64_MAX_VALUE) > 0)) { in addLongTag()
/frameworks/base/tests/Camera2Tests/CameraToo/src/com/example/android/camera2/cameratoo/
DCameraTooActivity.java115 return Long.signum((long) lhs.getWidth() * lhs.getHeight() - in compare()
/frameworks/base/core/jni/
Dcom_android_internal_os_Zygote.cpp1016 static void BlockSignal(int signum, fail_fn_t fail_fn) { in BlockSignal() argument
1019 sigaddset(&sigs, signum); in BlockSignal()
1022 fail_fn(CREATE_ERROR("Failed to block signal %s: %s", strsignal(signum), strerror(errno))); in BlockSignal()
1035 static void UnblockSignal(int signum, fail_fn_t fail_fn) { in UnblockSignal() argument
1038 sigaddset(&sigs, signum); in UnblockSignal()
1041 fail_fn(CREATE_ERROR("Failed to un-block signal %s: %s", strsignal(signum), strerror(errno))); in UnblockSignal()
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/utilities/
DAnimatedFloatExpression.java201 mStack[sp] = (float) Math.signum(mStack[sp]);
/frameworks/base/core/java/com/android/internal/widget/helper/
DItemTouchHelper.java581 targetTranslateX = Math.signum(mDx) * mRecyclerView.getWidth(); in select()
586 targetTranslateY = Math.signum(mDy) * mRecyclerView.getHeight(); in select()
2114 final int direction = (int) Math.signum(viewSizeOutOfBounds); in interpolateOutOfBoundsScroll()
/frameworks/av/cmds/screenrecord/
Dscreenrecord.cpp140 static void signalCatcher(int signum) in signalCatcher() argument
143 switch (signum) { in signalCatcher()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DMenuAnimationController.java343 Math.signum(tuckedPosition.x - position.x) * ESCAPE_VELOCITY, in moveToEdgeAndHide()

12