/external/grpc-grpc/src/csharp/Grpc.Examples/ |
D | MathGrpc.cs | 25 namespace Math { namespace 26 public static partial class Math class 30 …::Math.DivArgs> __Marshaller_math_DivArgs = grpc::Marshallers.Create((arg) => global::Google.Proto… 31 …:Math.DivReply> __Marshaller_math_DivReply = grpc::Marshallers.Create((arg) => global::Google.Prot… 32 …::Math.FibArgs> __Marshaller_math_FibArgs = grpc::Marshallers.Create((arg) => global::Google.Proto… 33 …obal::Math.Num> __Marshaller_math_Num = grpc::Marshallers.Create((arg) => global::Google.Protobuf.… 35 …nly grpc::Method<global::Math.DivArgs, global::Math.DivReply> __Method_Div = new grpc::Method<glob… 42 …y grpc::Method<global::Math.DivArgs, global::Math.DivReply> __Method_DivMany = new grpc::Method<gl… 49 …donly grpc::Method<global::Math.FibArgs, global::Math.Num> __Method_Fib = new grpc::Method<global:… 56 … readonly grpc::Method<global::Math.Num, global::Math.Num> __Method_Sum = new grpc::Method<global:… [all …]
|
D | MathExamples.cs | 23 namespace Math namespace 27 public static void DivExample(Math.MathClient client) in DivExample() 33 public static async Task DivAsyncExample(Math.MathClient client) in DivAsyncExample() 39 public static async Task FibExample(Math.MathClient client) in FibExample() 48 public static async Task SumExample(Math.MathClient client) in SumExample() 64 public static async Task DivManyExample(Math.MathClient client) in DivManyExample() 79 public static async Task DependendRequestsExample(Math.MathClient client) in DependendRequestsExample() 102 public static async Task HandleErrorExample(Math.MathClient client) in HandleErrorExample() 118 public static async Task MetadataExample(Math.MathClient client) in MetadataExample()
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | CalendarAstronomer.java | 381 double JD = Math.floor(getJulianDay() - 0.5) + 0.5; in getSiderealOffset() 451 double sinE = Math.sin(obliq); in eclipticToEquatorial() 452 double cosE = Math.cos(obliq); in eclipticToEquatorial() 454 double sinL = Math.sin(eclipLong); in eclipticToEquatorial() 455 double cosL = Math.cos(eclipLong); in eclipticToEquatorial() 457 double sinB = Math.sin(eclipLat); in eclipticToEquatorial() 458 double cosB = Math.cos(eclipLat); in eclipticToEquatorial() 459 double tanB = Math.tan(eclipLat); in eclipticToEquatorial() 461 return new Equatorial(Math.atan2(sinL*cosE - tanB*sinE, cosL), in eclipticToEquatorial() 462 Math.asin(sinB*cosE + cosB*sinE*sinL) ); in eclipticToEquatorial() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | CalendarAstronomer.java | 376 double JD = Math.floor(getJulianDay() - 0.5) + 0.5; in getSiderealOffset() 446 double sinE = Math.sin(obliq); in eclipticToEquatorial() 447 double cosE = Math.cos(obliq); in eclipticToEquatorial() 449 double sinL = Math.sin(eclipLong); in eclipticToEquatorial() 450 double cosL = Math.cos(eclipLong); in eclipticToEquatorial() 452 double sinB = Math.sin(eclipLat); in eclipticToEquatorial() 453 double cosB = Math.cos(eclipLat); in eclipticToEquatorial() 454 double tanB = Math.tan(eclipLat); in eclipticToEquatorial() 456 return new Equatorial(Math.atan2(sinL*cosE - tanB*sinE, cosL), in eclipticToEquatorial() 457 Math.asin(sinB*cosE + cosB*sinE*sinL) ); in eclipticToEquatorial() [all …]
|
/external/grpc-grpc/examples/csharp/RouteGuide/RouteGuide/ |
D | RouteGuideUtil.cs | 70 …double a = Math.Sin(deltalat / 2) * Math.Sin(deltalat / 2) + Math.Cos(lat1) * Math.Cos(lat2) * Mat… in GetDistance() 71 double c = 2 * Math.Atan2(Math.Sqrt(a), Math.Sqrt(1 - a)); in GetDistance() 80 int left = Math.Min(rectangle.Lo.Longitude, rectangle.Hi.Longitude); in Contains() 81 int right = Math.Max(rectangle.Lo.Longitude, rectangle.Hi.Longitude); in Contains() 82 int top = Math.Max(rectangle.Lo.Latitude, rectangle.Hi.Latitude); in Contains() 83 int bottom = Math.Min(rectangle.Lo.Latitude, rectangle.Hi.Latitude); in Contains() 89 return (Math.PI / 180) * val; in ToRadians()
|
/external/universal-tween-engine/java/api/src/aurelienribon/tweenengine/equations/ |
D | Elastic.java | 21 else s = p/(2*PI) * (float)Math.asin(1/a); 22 return -(a*(float)Math.pow(2,10*(t-=1)) * (float)Math.sin( (t-s)*(2*PI)/p )); 39 else s = p/(2*PI) * (float)Math.asin(1/a); 40 return a*(float)Math.pow(2,-10*t) * (float)Math.sin( (t-s)*(2*PI)/p ) + 1; 57 else s = p/(2*PI) * (float)Math.asin(1/a); 58 if (t < 1) return -.5f*(a*(float)Math.pow(2,10*(t-=1)) * (float)Math.sin( (t-s)*(2*PI)/p )); 59 return a*(float)Math.pow(2,-10*(t-=1)) * (float)Math.sin( (t-s)*(2*PI)/p )*.5f + 1;
|
/external/grpc-grpc/src/php/tests/generated_code/ |
D | AbstractGeneratedCodeTest.php | 61 $div_arg = new Math\DivArgs(); 70 $div_arg = new Math\DivArgs(); 76 $div_arg = new Math\DivArgs(); 83 $div_arg = new Math\DivArgs(); 91 $div_arg = new Math\DivArgs(); 100 $div_arg = new Math\DivArgs(); 113 $div_arg = new Math\DivArgs(); 134 $div_arg = new Math\DivArgs(); 157 $div_arg = new Math\DivArgs(); 171 $fib_arg = new Math\FibArgs(); [all …]
|
/external/crcalc/tests/src/com/hp/creals/ |
D | SlowCRTest.java | 40 check(Math.abs(x - y) <= 0.000001, s); in checkApprEq() 68 if (Math.abs(xAsDouble) < 1000000.0) { in checkTrig() 69 checkApprEq(x.sin().doubleValue(), Math.sin(xAsDouble), in checkTrig() 71 checkApprEq(x.cos().doubleValue(), Math.cos(xAsDouble), in checkTrig() 73 checkApprEq(TAN.execute(x).doubleValue(), Math.tan(xAsDouble), in checkTrig() 75 checkApprEq(ATAN.execute(x).doubleValue(), Math.atan(xAsDouble), in checkTrig() 78 if (Math.abs(xAsDouble) < 1.0) { in checkTrig() 79 checkApprEq(x.asin().doubleValue(), Math.asin(xAsDouble), in checkTrig() 81 checkApprEq(x.acos().doubleValue(), Math.acos(xAsDouble), in checkTrig() 87 checkApprEq(COSINE.execute(x).doubleValue(), Math.cos(xAsDouble), in checkTrig() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
D | PatternStringUtils.java | 35 int groupingSize = Math.min(properties.getSecondaryGroupingSize(), dosMax); in propertiesToPatternString() 36 int firstGroupingSize = Math.min(properties.getGroupingSize(), dosMax); in propertiesToPatternString() 37 int paddingWidth = Math.min(properties.getFormatWidth(), dosMax); in propertiesToPatternString() 40 int minInt = Math.max(Math.min(properties.getMinimumIntegerDigits(), dosMax), 0); in propertiesToPatternString() 41 int maxInt = Math.min(properties.getMaximumIntegerDigits(), dosMax); in propertiesToPatternString() 42 int minFrac = Math.max(Math.min(properties.getMinimumFractionDigits(), dosMax), 0); in propertiesToPatternString() 43 int maxFrac = Math.min(properties.getMaximumFractionDigits(), dosMax); in propertiesToPatternString() 44 int minSig = Math.min(properties.getMinimumSignificantDigits(), dosMax); in propertiesToPatternString() 45 int maxSig = Math.min(properties.getMaximumSignificantDigits(), dosMax); in propertiesToPatternString() 47 int exponentDigits = Math.min(properties.getMinimumExponentDigits(), dosMax); in propertiesToPatternString() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/ |
D | PatternStringUtils.java | 37 int groupingSize = Math.min(properties.getSecondaryGroupingSize(), dosMax); in propertiesToPatternString() 38 int firstGroupingSize = Math.min(properties.getGroupingSize(), dosMax); in propertiesToPatternString() 39 int paddingWidth = Math.min(properties.getFormatWidth(), dosMax); in propertiesToPatternString() 42 int minInt = Math.max(Math.min(properties.getMinimumIntegerDigits(), dosMax), 0); in propertiesToPatternString() 43 int maxInt = Math.min(properties.getMaximumIntegerDigits(), dosMax); in propertiesToPatternString() 44 int minFrac = Math.max(Math.min(properties.getMinimumFractionDigits(), dosMax), 0); in propertiesToPatternString() 45 int maxFrac = Math.min(properties.getMaximumFractionDigits(), dosMax); in propertiesToPatternString() 46 int minSig = Math.min(properties.getMinimumSignificantDigits(), dosMax); in propertiesToPatternString() 47 int maxSig = Math.min(properties.getMaximumSignificantDigits(), dosMax); in propertiesToPatternString() 49 int exponentDigits = Math.min(properties.getMinimumExponentDigits(), dosMax); in propertiesToPatternString() [all …]
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/lz77support/ |
D | Parameters.java | 89 … this.minBackReferenceLength = Math.max(TRUE_MIN_BACK_REFERENCE_LENGTH, minBackReferenceLength); in withMinBackReferenceLength() 116 : Math.min(maxBackReferenceLength, windowSize - 1); in withMaxBackReferenceLength() 135 this.maxOffset = maxOffset < 1 ? windowSize - 1 : Math.min(maxOffset, windowSize - 1); 155 : Math.min(maxLiteralLength, windowSize); 221 niceBackReferenceLength = Math.max(minBackReferenceLength, maxBackReferenceLength / 8); 222 maxCandidates = Math.max(32, windowSize / 1024); 237 maxCandidates = Math.max(32, windowSize / 16); 249 : Math.max(minBackReferenceLength, maxBackReferenceLength / 2); 250 … int candidates = maxCandidates != null ? maxCandidates : Math.max(256, windowSize / 128);
|
/external/grpc-grpc/src/csharp/Grpc.IntegrationTesting/ |
D | Histogram.cs | 58 this.oneOnLogMultiplier = 1.0 / Math.Log(1.0 + resolution); in Histogram() 101 value = Math.Max(value, 1.0); in FindBucket() 102 value = Math.Min(value, this.maxPossible); in FindBucket() 103 return (int)(Math.Log(value) * oneOnLogMultiplier); in FindBucket() 111 this.min = Math.Min(this.min, value); in AddObservationUnsafe() 112 this.max = Math.Max(this.max, value); in AddObservationUnsafe() 127 mergeTo.MinSeen = Math.Min(mergeTo.MinSeen, min); in GetSnapshotUnsafe() 128 mergeTo.MaxSeen = Math.Max(mergeTo.MaxSeen, max); in GetSnapshotUnsafe()
|
/external/tensorflow/tensorflow/lite/java/ovic/src/main/java/org/tensorflow/ovic/ |
D | BoundingBox.java | 49 return Math.max(0, Math.min(x2, bbx.x2) - Math.max(x1, bbx.x1)) in intersect() 50 * Math.max(0, Math.min(y2, bbx.y2) - Math.max(y1, bbx.y1)); in intersect()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowPathParser.java | 451 double thetaD = Math.toRadians(theta); in drawArc() 453 double cosTheta = Math.cos(thetaD); in drawArc() 454 double sinTheta = Math.sin(thetaD); in drawArc() 476 float adjust = (float) (Math.sqrt(dsq) / 1.99999); in drawArc() 480 double s = Math.sqrt(disc); in drawArc() 493 double eta0 = Math.atan2((y0p - cy), (x0p - cx)); in drawArc() 495 double eta1 = Math.atan2((y1p - cy), (x1p - cx)); in drawArc() 500 sweep -= 2 * Math.PI; in drawArc() 502 sweep += 2 * Math.PI; in drawArc() 544 int numSegments = Math.abs((int) Math.ceil(sweep * 4 / Math.PI)); in arcToBezier() [all …]
|
D | ShadowFloatMath.java | 28 return (float) Math.floor(value); in floor() 33 return (float) Math.ceil(value); in ceil() 38 return (float) Math.sin(angle); in sin() 43 return (float) Math.cos(angle); in cos() 48 return (float) Math.sqrt(value); in sqrt()
|
/external/tensorflow/tensorflow/examples/android/src/org/tensorflow/demo/ |
D | TensorFlowYoloDetector.java | 115 return (float) (1. / (1. + Math.exp(-x))); in expit() 121 max = Math.max(max, val); in softmax() 125 vals[i] = (float) Math.exp(vals[i] - max); in softmax() 198 final float w = (float) (Math.exp(output[offset + 2]) * ANCHORS[2 * b + 0]) * blockSize; in recognizeImage() 199 final float h = (float) (Math.exp(output[offset + 3]) * ANCHORS[2 * b + 1]) * blockSize; in recognizeImage() 203 Math.max(0, xPos - w / 2), in recognizeImage() 204 Math.max(0, yPos - h / 2), in recognizeImage() 205 Math.min(bitmap.getWidth() - 1, xPos + w / 2), in recognizeImage() 206 Math.min(bitmap.getHeight() - 1, yPos + h / 2)); in recognizeImage() 237 for (int i = 0; i < Math.min(pq.size(), MAX_RESULTS); ++i) { in recognizeImage()
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | IslamicCalendar.java | 565 ys = (year-1)*354 + (long)Math.floor((3+11*year)/30.0); in yearStart() 594 ms = (long)Math.ceil(29.5*realMonth) in monthStart() 595 + (realYear-1)*354 + (long)Math.floor((3+11*realYear)/30.0); in monthStart() 624 + (long)Math.floor(month * CalendarAstronomer.SYNODIC_MONTH) * ONE_DAY; in trueMonthStart() 668 age = age * 180 / Math.PI; in moonAge() 821 year = (int)Math.floor( (30 * days + 10646) / 10631.0 ); in handleComputeFields() 822 month = (int)Math.ceil((days - 29 - yearStart(year)) / 29.5 ); in handleComputeFields() 823 month = Math.min(month, 11); in handleComputeFields() 826 int months = (int)Math.floor(days / CalendarAstronomer.SYNODIC_MONTH); in handleComputeFields() 828 monthStart = (long)Math.floor(months * CalendarAstronomer.SYNODIC_MONTH - 1); in handleComputeFields() [all …]
|
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/ |
D | XMPDateTimeImpl.java | 139 this.year = Math.min(Math.abs(year), 9999); in setYear() 215 this.hour = Math.min(Math.abs(hour), 23); in setHour() 233 this.minute = Math.min(Math.abs(minute), 59); in setMinute() 251 this.second = Math.min(Math.abs(second), 59); in setSecond()
|
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/ |
D | FFT.java | 38 m = (int) (Math.log(mFFTSamplingSize) / Math.log(2)); in FFT() 49 cos[i] = Math.cos(-2 * Math.PI * i / mFFTSamplingSize); in FFT() 50 sin[i] = Math.sin(-2 * Math.PI * i / mFFTSamplingSize); in FFT()
|
/external/grpc-grpc/src/csharp/Grpc.Examples.Tests/ |
D | MathClientMockableTest.cs | 26 namespace Math.Tests 36 var mockClient = new Moq.Mock<Math.MathClient>(); in ClientBaseBlockingUnaryCallCanBeMocked() 46 var mockClient = new Moq.Mock<Math.MathClient>(); in ClientBaseBlockingUnaryCallWithCallOptionsCallCanBeMocked() 56 var mockClient = new Moq.Mock<Math.MathClient>(); in ClientBaseAsyncUnaryCallCanBeMocked() 67 var mockClient = new Moq.Mock<Math.MathClient>(); in ClientBaseClientStreamingCallCanBeMocked() 79 var mockClient = new Moq.Mock<Math.MathClient>(); in ClientBaseServerStreamingCallCanBeMocked() 91 var mockClient = new Moq.Mock<Math.MathClient>(); in ClientBaseDuplexStreamingCallCanBeMocked()
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
D | AtomicDoubleTest.java | 28 -Math.PI, 35 Math.PI, 100 double prev = Math.E; in testCompareAndSet() 101 double unused = Math.E + Math.PI; in testCompareAndSet() 137 double prev = Math.E; in testWeakCompareAndSet() 138 double unused = Math.E + Math.PI; in testWeakCompareAndSet() 156 double prev = Math.E; in testGetAndSet()
|
/external/subsampling-scale-image-view/library/src/main/java/com/davemorrissey/labs/subscaleview/ |
D | SubsamplingScaleImageView.java | 551 … && e2 != null && (Math.abs(e1.getX() - e2.getX()) > 50 || Math.abs(e1.getY() - e2.getY()) > 50) &… in setGestureDetector() 645 width = Math.max(width, getSuggestedMinimumWidth()); in onMeasure() 646 height = Math.max(height, getSuggestedMinimumHeight()); in onMeasure() 707 maxTouchCount = Math.max(maxTouchCount, touchCount); in onTouchEventInternal() 740 …distance(vCenterStart.x, vCenterEndX, vCenterStart.y, vCenterEndY) > 5 || Math.abs(vDistEnd - vDis… in onTouchEventInternal() 746 scale = Math.min(maxScale, (vDistEnd / vDistStart) * scaleStart); in onTouchEventInternal() 786 … float dist = Math.abs(quickScaleVStart.y - event.getY()) * 2 + quickScaleThreshold; in onTouchEventInternal() 794 float spanDiff = Math.abs(1 - (dist / quickScaleLastDistance)) * 0.5f; in onTouchEventInternal() 805 scale = Math.max(minScale(), Math.min(maxScale, scale * multiplier)); in onTouchEventInternal() 841 float dx = Math.abs(event.getX() - vCenterStart.x); in onTouchEventInternal() [all …]
|
/external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/ |
D | CaptureQualityController.java | 77 maxCaptureBandwidth = Math.max(maxCaptureBandwidth, in onProgressChanged() 86 (Math.exp(kExpConstant * bandwidthFraction) - 1) / (Math.exp(kExpConstant) - 1); in onProgressChanged() 108 return (int) Math.round(Math.min(format.maxFramerate, in calculateFramerate() 109 (int) Math.round(bandwidth / (format.width * format.height))) / 1000.0); in calculateFramerate()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | IslamicCalendar.java | 592 ys = (year-1)*354 + (long)Math.floor((3+11*year)/30.0); in yearStart() 621 ms = (long)Math.ceil(29.5*realMonth) in monthStart() 622 + (realYear-1)*354 + (long)Math.floor((3+11*realYear)/30.0); in monthStart() 651 + (long)Math.floor(month * CalendarAstronomer.SYNODIC_MONTH) * ONE_DAY; in trueMonthStart() 695 age = age * 180 / Math.PI; in moonAge() 854 year = (int)Math.floor( (30 * days + 10646) / 10631.0 ); in handleComputeFields() 855 month = (int)Math.ceil((days - 29 - yearStart(year)) / 29.5 ); in handleComputeFields() 856 month = Math.min(month, 11); in handleComputeFields() 859 int months = (int)Math.floor(days / CalendarAstronomer.SYNODIC_MONTH); in handleComputeFields() 861 monthStart = (long)Math.floor(months * CalendarAstronomer.SYNODIC_MONTH - 1); in handleComputeFields() [all …]
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/ec/ |
D | ECAlgorithms.java | 290 int widthP = Math.max(2, Math.min(16, WNafUtil.getWindowSize(k.bitLength()))); in implShamirsTrickWNaf() 291 int widthQ = Math.max(2, Math.min(16, WNafUtil.getWindowSize(l.bitLength()))); in implShamirsTrickWNaf() 314 …int width = Math.max(2, Math.min(16, WNafUtil.getWindowSize(Math.max(k.bitLength(), l.bitLength())… 334 int len = Math.max(wnafP.length, wnafQ.length); 356 int nP = Math.abs(wiP); 362 int nQ = Math.abs(wiQ); 395 int width = Math.max(2, Math.min(16, WNafUtil.getWindowSize(ki.bitLength()))); in implSumOfMultiplies() 450 …int width = Math.max(2, Math.min(16, WNafUtil.getWindowSize(Math.max(kj0.bitLength(), kj1.bitLengt… 467 len = Math.max(len, wnafs[i].length); 486 int n = Math.abs(wi);
|