Home
last modified time | relevance | path

Searched refs:BigInteger (Results 1 – 14 of 14) sorted by relevance

/packages/apps/ExactCalculator/src/com/android/calculator2/
DBoundedRational.java21 import java.math.BigInteger;
41 private final BigInteger mNum;
42 private final BigInteger mDen;
44 public BoundedRational(BigInteger n, BigInteger d) { in BoundedRational()
49 public BoundedRational(BigInteger n) { in BoundedRational()
51 mDen = BigInteger.ONE; in BoundedRational()
55 mNum = BigInteger.valueOf(n); in BoundedRational()
56 mDen = BigInteger.valueOf(d); in BoundedRational()
60 mNum = BigInteger.valueOf(n); in BoundedRational()
61 mDen = BigInteger.valueOf(1); in BoundedRational()
[all …]
DUnifiedReal.java19 import java.math.BigInteger;
79 public UnifiedReal(BigInteger n) { in UnifiedReal()
88 private final static BigInteger BIG_24 = BigInteger.valueOf(24);
339 BigInteger bi = BoundedRational.asBigInteger(mRatFactor); in toNiceString()
341 if (bi.equals(BigInteger.ONE)) { in toNiceString()
377 final CR scaled = CR.valueOf(BigInteger.TEN.pow(n)).multiply(crValue()); in toStringTruncated()
379 BigInteger intScaled; in toStringTruncated()
387 intScaled = intScaled.subtract(BigInteger.ONE); in toStringTruncated()
569 public BigInteger bigIntegerValue() {
693 private BigInteger getPiTwelfths() {
[all …]
DCalculatorExpr.java30 import java.math.BigInteger;
83 private final static BigInteger BIG_MILLION = BigInteger.valueOf(1000000);
84 private final static BigInteger BIG_BILLION = BigInteger.valueOf(1000000000);
281 BigInteger num = new BigInteger(whole + mFraction); in toRational()
282 BigInteger den = BigInteger.TEN.pow(mFraction.length()); in toRational()
284 num = num.multiply(BigInteger.TEN.pow(mExponent)); in toRational()
287 den = den.multiply(BigInteger.TEN.pow(-mExponent)); in toRational()
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dbigintegertest.cpp21 #define BIGINTEGER_LITERAL(s) BigInteger(s, sizeof(s) - 1)
23 static const BigInteger kZero(0);
24 static const BigInteger kOne(1);
25 static const BigInteger kUint64Max = BIGINTEGER_LITERAL("18446744073709551615");
26 static const BigInteger kTwo64 = BIGINTEGER_LITERAL("18446744073709551616");
28 TEST(BigInteger, Constructor) { in TEST() argument
34 const BigInteger a(123); in TEST()
44 TEST(BigInteger, AddUint64) { in TEST() argument
45 BigInteger a = kZero; in TEST()
53 EXPECT_TRUE(BigInteger(2) == a); in TEST()
[all …]
Dstrtodtest.cpp19 #define BIGINTEGER_LITERAL(s) BigInteger(s, sizeof(s) - 1)
101 BigInteger dS = BIGINTEGER_LITERAL(dInt); in TEST()
104 BigInteger bS(bInt); in TEST()
107 BigInteger hS(1); in TEST()
116 BigInteger delta(0); in TEST()
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/
Dbiginteger.h28 class BigInteger {
32 BigInteger(const BigInteger& rhs) : count_(rhs.count_) { in BigInteger() function
36 explicit BigInteger(uint64_t u) : count_(1) { in BigInteger() function
40 BigInteger(const char* decimals, size_t length) : count_(1) { in BigInteger() function
55 BigInteger& operator=(const BigInteger &rhs)
64 BigInteger& operator=(uint64_t u) {
70 BigInteger& operator+=(uint64_t u) {
87 BigInteger& operator*=(uint64_t u) {
105 BigInteger& operator*=(uint32_t u) {
128 BigInteger& operator<<=(size_t shift) {
[all …]
Dstrtod.h55 inline int CheckWithinHalfULP(double b, const BigInteger& d, int dExp) { in CheckWithinHalfULP()
97 BigInteger dS = d; in CheckWithinHalfULP()
100 BigInteger bS(bInt); in CheckWithinHalfULP()
103 BigInteger hS(1); in CheckWithinHalfULP()
106 BigInteger delta(0); in CheckWithinHalfULP()
208 const BigInteger dInt(decimals, length); in StrtodBigInteger()
/packages/apps/Camera2/src/com/android/camera/settings/
DResolutionUtil.java30 import java.math.BigInteger;
289 BigInteger width = BigInteger.valueOf(aspectRatio.width()); in reduce()
290 BigInteger height = BigInteger.valueOf(aspectRatio.height()); in reduce()
291 BigInteger gcd = width.gcd(height); in reduce()
333 BigInteger width = BigInteger.valueOf(size.width()); in aspectRatioDenominator()
334 BigInteger height = BigInteger.valueOf(size.height()); in aspectRatioDenominator()
335 BigInteger gcd = width.gcd(height); in aspectRatioDenominator()
/packages/apps/Camera2/src/com/android/camera/util/
DAspectRatio.java23 import java.math.BigInteger;
49 int gcd = BigInteger.valueOf(width).gcd(BigInteger.valueOf(height)).intValue(); in of()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/
DRequestPushMessage.java22 import java.math.BigInteger;
61 new BigInteger(handle, 16); in readResponseHeaders()
DEventReport.java29 import java.math.BigInteger;
53 new BigInteger(attrs.get("handle"), 16); in EventReport()
DMessage.java22 import java.math.BigInteger;
73 new BigInteger(attrs.get("handle"), 16); in Message()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DBrowsedMediaPlayer.java31 import java.math.BigInteger;
708 int uid = new BigInteger(byteArray).intValue(); in byteToString()
/packages/apps/Messaging/build/gcheckstyle/
Dgoogle-style-checker_deploy.jarMETA-INF/ META-INF/MANIFEST.MF build-data.properties com/ com ...