/dalvik/libcore/math/src/main/java/java/math/ |
D | BitLevel.java | 45 static int bitLength(BigInteger val) { in bitLength() argument 47 val.establishOldRepresentation("BitLevel.bitLength"); in bitLength() 49 if (val.sign == 0) { in bitLength() 52 int bLength = (val.numberLength << 5); in bitLength() 53 int highDigit = val.digits[val.numberLength - 1]; in bitLength() 55 if (val.sign < 0) { in bitLength() 56 int i = val.getFirstNonzeroDigit(); in bitLength() 58 if (i == val.numberLength - 1) { in bitLength() 68 static int bitCount(BigInteger val) { in bitCount() argument 70 val.establishOldRepresentation("BitLevel.bitCount"); in bitCount() [all …]
|
D | Logical.java | 41 static BigInteger not(BigInteger val) { in not() argument 42 if (val.sign == 0) { in not() 45 if (val.equals(BigInteger.MINUS_ONE)) { in not() 48 int resDigits[] = new int[val.numberLength + 1]; in not() 51 if (val.sign > 0) { in not() 53 if (val.digits[val.numberLength - 1] != -1) { in not() 54 for (i = 0; val.digits[i] == -1; i++) { in not() 58 for (i = 0; (i < val.numberLength) && (val.digits[i] == -1); i++) { in not() 61 if (i == val.numberLength) { in not() 63 return new BigInteger(-val.sign, i + 1, resDigits); in not() [all …]
|
D | BigInteger.java | 330 public BigInteger(String val) { in BigInteger() argument 332 bigInt.putDecString(val); in BigInteger() 357 public BigInteger(String val, int radix) { in BigInteger() argument 358 if (val == null) { in BigInteger() 363 bigInt.putDecString(val); in BigInteger() 368 bigInt.putHexString(val); in BigInteger() 376 if (val.length() == 0) { in BigInteger() 380 BigInteger.setFromString(this, val, radix); in BigInteger() 441 public BigInteger(byte[] val) { in BigInteger() argument 442 if (val.length == 0) { in BigInteger() [all …]
|
D | Conversion.java | 56 static String bigInteger2String(BigInteger val, int radix) { in bigInteger2String() argument 58 val.establishOldRepresentation("Conversion.bigInteger2String"); in bigInteger2String() 60 int sign = val.sign; in bigInteger2String() 61 int numberLength = val.numberLength; in bigInteger2String() 62 int digits[] = val.digits; in bigInteger2String() 77 return val.toString(); in bigInteger2String() 81 int resLengthInChars = (int) (val.abs().bitLength() / bitsForRadixDigit + ((sign < 0) ? 1 in bigInteger2String() 142 static String toDecimalScaledString(BigInteger val, int scale) { in toDecimalScaledString() argument 144 val.establishOldRepresentation("Conversion.toDecimalScaledString"); in toDecimalScaledString() 146 int sign = val.sign; in toDecimalScaledString() [all …]
|
D | Multiplication.java | 97 static BigInteger multiplyByPositiveInt(BigInteger val, int factor) { in multiplyByPositiveInt() argument 99 BigInt bi = val.bigInt.copy(); in multiplyByPositiveInt() 112 static BigInteger multiplyByTenPow(BigInteger val, long exp) { in multiplyByTenPow() argument 115 ? multiplyByPositiveInt(val, tenPows[(int)exp]) in multiplyByTenPow() 116 : val.multiply(powerOf10(exp))); in multiplyByTenPow() 190 static BigInteger multiplyByFivePow(BigInteger val, int exp) { in multiplyByFivePow() argument 193 return multiplyByPositiveInt(val, fivePows[exp]); in multiplyByFivePow() 195 return val.multiply(bigFivePows[exp]); in multiplyByFivePow() 197 return val.multiply(bigFivePows[1].pow(exp)); in multiplyByFivePow()
|
/dalvik/libcore/support/src/test/java/tests/util/ |
D | CallVerificationStack.java | 130 public void push(boolean val) { in push() argument 131 this.push(new BaseTypeWrapper(val)); in push() 140 public void push(char val) { in push() argument 141 this.push(new BaseTypeWrapper(val)); in push() 150 public void push(double val) { in push() argument 151 this.push(new BaseTypeWrapper(val)); in push() 160 public void push(float val) { in push() argument 161 this.push(new BaseTypeWrapper(val)); in push() 170 public void push(int val) { in push() argument 171 this.push(new BaseTypeWrapper(val)); in push() [all …]
|
/dalvik/vm/alloc/ |
D | Float12.h | 34 inline unsigned short intToFloat12(unsigned int val) in intToFloat12() argument 36 int oval = val; in intToFloat12() 44 unsigned int pval = val; in intToFloat12() 45 while (val > 0x1ff) { in intToFloat12() 46 pval = val; in intToFloat12() 47 val >>= 1; in intToFloat12() 53 val++; in intToFloat12() 54 if (val > 0x1ff) { in intToFloat12() 55 val = (val + 1) >> 1; in intToFloat12() 65 val = (val + 1) >> 1; in intToFloat12() [all …]
|
/dalvik/libcore/text/src/test/java/org/apache/harmony/text/tests/java/text/ |
D | DateFormatSymbolsTest.java | 117 String[] val = { "AM", "PM" }; in test_getAmPmStrings() local 118 if (retVal.length != val.length) in test_getAmPmStrings() 120 for (int i = 0; i < val.length; i++) in test_getAmPmStrings() 121 assertTrue("Array values do not match", retVal[i].equals(val[i])); in test_getAmPmStrings() 137 String[] val = { "BC", "AD" }; in test_getEras() local 138 if (retVal.length != val.length) in test_getEras() 140 for (int i = 0; i < val.length; i++) in test_getEras() 141 assertTrue("Array values do not match", retVal[i].equals(val[i])); in test_getEras() 158 String val = "GyMdkHmsSEDFwWahKzZ"; in test_getLocalPatternChars() local 160 assertTrue("Returned incorrect pattern string", retVal.equals(val)); in test_getLocalPatternChars() [all …]
|
/dalvik/vm/ |
D | Bits.h | 272 INLINE void set1(u1* buf, u1 val) in set1() argument 274 *buf = (u1)(val); in set1() 280 INLINE void set2BE(u1* buf, u2 val) in set2BE() argument 282 *buf++ = (u1)(val >> 8); in set2BE() 283 *buf = (u1)(val); in set2BE() 289 INLINE void set4BE(u1* buf, u4 val) in set4BE() argument 291 *buf++ = (u1)(val >> 24); in set4BE() 292 *buf++ = (u1)(val >> 16); in set4BE() 293 *buf++ = (u1)(val >> 8); in set4BE() 294 *buf = (u1)(val); in set4BE() [all …]
|
D | Misc.h | 44 INLINE float dvmU4ToFloat(u4 val) { in dvmU4ToFloat() argument 46 conv.in = val; in dvmU4ToFloat() 49 INLINE u4 dvmFloatToU4(float val) { in dvmFloatToU4() argument 51 conv.in = val; in dvmFloatToU4() 55 INLINE float dvmU8ToFloat(u8 val) { 57 conv.in = val; 60 INLINE u8 dvmFloatToU8(float val) { 62 conv.in = val; 65 INLINE double dvmU8ToDouble(u8 val) { 67 conv.in = val; [all …]
|
/dalvik/libcore/luni/src/main/native/ |
D | java_lang_Character.cpp | 22 static jint getData(JNIEnv* env, jclass clazz, jint val) in getData() argument 24 return Unicode::getPackedData(val); in getData() 30 static jint toLower(JNIEnv* env, jclass clazz, jint val) in toLower() argument 32 return Unicode::toLower(val); in toLower() 38 static jint toUpper(JNIEnv* env, jclass clazz, jint val) in toUpper() argument 40 return Unicode::toUpper(val); in toUpper() 46 static jint numericValue(JNIEnv* env, jclass clazz, jint val) in numericValue() argument 48 return Unicode::getNumericValue(val); in numericValue() 54 static jint toTitle(JNIEnv* env, jclass clazz, jint val) in toTitle() argument 56 return Unicode::toTitle(val); in toTitle()
|
D | java_lang_Double.c | 24 static jlong doubleToLongBits(JNIEnv* env, jclass clazz, jdouble val) in doubleToLongBits() argument 28 d.d = val; in doubleToLongBits() 42 static jlong doubleToRawLongBits(JNIEnv* env, jclass clazz, jdouble val) in doubleToRawLongBits() argument 46 d.d = val; in doubleToRawLongBits() 54 static jdouble longBitsToDouble(JNIEnv* env, jclass clazz, jlong val) in longBitsToDouble() argument 58 d.bits = val; in longBitsToDouble()
|
D | java_lang_Float.c | 32 static jint floatToIntBits(JNIEnv* env, jclass clazz, jfloat val) in floatToIntBits() argument 36 f.f = val; in floatToIntBits() 50 static jint floatToRawBits(JNIEnv* env, jclass clazz, jfloat val) in floatToRawBits() argument 54 f.f = val; in floatToRawBits() 62 static jfloat intBitsToFloat(JNIEnv* env, jclass clazz, jint val) in intBitsToFloat() argument 66 f.bits = val; in intBitsToFloat()
|
/dalvik/libcore/luni/src/main/java/java/io/ |
D | DataOutput.java | 94 public abstract void writeBoolean(boolean val) throws IOException; in writeBoolean() argument 107 public abstract void writeByte(int val) throws IOException; in writeByte() argument 134 public abstract void writeChar(int val) throws IOException; in writeChar() argument 162 public abstract void writeDouble(double val) throws IOException; in writeDouble() argument 175 public abstract void writeFloat(float val) throws IOException; in writeFloat() argument 188 public abstract void writeInt(int val) throws IOException; in writeInt() argument 201 public abstract void writeLong(long val) throws IOException; in writeLong() argument 215 public abstract void writeShort(int val) throws IOException; in writeShort() argument
|
D | DataOutputStream.java | 138 public final void writeBoolean(boolean val) throws IOException { in writeBoolean() argument 139 out.write(val ? 1 : 0); in writeBoolean() 155 public final void writeByte(int val) throws IOException { in writeByte() argument 156 out.write(val); in writeByte() 195 public final void writeChar(int val) throws IOException { in writeChar() argument 196 out.write(val >> 8); in writeChar() 197 out.write(val); in writeChar() 235 public final void writeDouble(double val) throws IOException { in writeDouble() argument 236 writeLong(Double.doubleToLongBits(val)); in writeDouble() 250 public final void writeFloat(float val) throws IOException { in writeFloat() argument [all …]
|
D | RandomAccessFile.java | 918 public final void writeBoolean(boolean val) throws IOException { in writeBoolean() argument 919 write(val ? 1 : 0); in writeBoolean() 934 public final void writeByte(int val) throws IOException { in writeByte() argument 935 write(val & 0xFF); in writeByte() 973 public final void writeChar(int val) throws IOException { in writeChar() argument 975 buffer[0] = (byte) (val >> 8); in writeChar() 976 buffer[1] = (byte) val; in writeChar() 1014 public final void writeDouble(double val) throws IOException { in writeDouble() argument 1015 writeLong(Double.doubleToLongBits(val)); in writeDouble() 1030 public final void writeFloat(float val) throws IOException { in writeFloat() argument [all …]
|
/dalvik/vm/jdwp/ |
D | ExpandBuf.c | 123 void expandBufAdd1(ExpandBuf* pBuf, u1 val) in expandBufAdd1() argument 125 ensureSpace(pBuf, sizeof(val)); in expandBufAdd1() 126 *(pBuf->storage + pBuf->curLen) = val; in expandBufAdd1() 133 void expandBufAdd2BE(ExpandBuf* pBuf, u2 val) in expandBufAdd2BE() argument 135 ensureSpace(pBuf, sizeof(val)); in expandBufAdd2BE() 136 set2BE(pBuf->storage + pBuf->curLen, val); in expandBufAdd2BE() 137 pBuf->curLen += sizeof(val); in expandBufAdd2BE() 143 void expandBufAdd4BE(ExpandBuf* pBuf, u4 val) in expandBufAdd4BE() argument 145 ensureSpace(pBuf, sizeof(val)); in expandBufAdd4BE() 146 set4BE(pBuf->storage + pBuf->curLen, val); in expandBufAdd4BE() [all …]
|
D | ExpandBuf.h | 51 void expandBufAdd1(ExpandBuf* pBuf, u1 val); 52 void expandBufAdd2BE(ExpandBuf* pBuf, u2 val); 53 void expandBufAdd4BE(ExpandBuf* pBuf, u4 val); 54 void expandBufAdd8BE(ExpandBuf* pBuf, u8 val);
|
D | Jdwp.h | 56 INLINE void dvmSetFieldId(u1* buf, FieldId val) { return set4BE(buf, val); } in dvmSetFieldId() argument 57 INLINE void dvmSetMethodId(u1* buf, MethodId val) { return set4BE(buf, val); } in dvmSetMethodId() argument 58 INLINE void dvmSetObjectId(u1* buf, ObjectId val) { return set8BE(buf, val); } in dvmSetObjectId() argument 59 INLINE void dvmSetRefTypeId(u1* buf, RefTypeId val) { return set8BE(buf, val); } in dvmSetRefTypeId() argument 60 INLINE void dvmSetFrameId(u1* buf, FrameId val) { return set8BE(buf, val); } in dvmSetFrameId() argument
|
/dalvik/libdex/ |
D | ZipArchive.h | 135 off_t val = 0; in dexGetZipEntryOffset() local 136 dexZipGetEntryInfo(pArchive, entry, NULL, NULL, NULL, &val, NULL, NULL); in dexGetZipEntryOffset() 137 return (long) val; in dexGetZipEntryOffset() 142 long val = 0; in dexGetZipEntryUncompLen() local 143 dexZipGetEntryInfo(pArchive, entry, NULL, &val, NULL, NULL, NULL, NULL); in dexGetZipEntryUncompLen() 144 return val; in dexGetZipEntryUncompLen() 149 long val = 0; in dexGetZipEntryModTime() local 150 dexZipGetEntryInfo(pArchive, entry, NULL, NULL, NULL, NULL, &val, NULL); in dexGetZipEntryModTime() 151 return val; in dexGetZipEntryModTime() 156 long val = 0; in dexGetZipEntryCrc32() local [all …]
|
D | InstrUtils.h | 126 int val = dexGetInstrWidth(widths, opCode); in dexGetInstrWidthAbs() local 127 if (val < 0) in dexGetInstrWidthAbs() 128 val = -val; in dexGetInstrWidthAbs() 130 return val; in dexGetInstrWidthAbs()
|
/dalvik/vm/oo/ |
D | Object.h | 651 INLINE void dvmSetFieldBoolean(Object* obj, int offset, bool val) { in dvmSetFieldBoolean() argument 652 ((JValue*)BYTE_OFFSET(obj, offset))->i = val; in dvmSetFieldBoolean() 654 INLINE void dvmSetFieldByte(Object* obj, int offset, s1 val) { in dvmSetFieldByte() argument 655 ((JValue*)BYTE_OFFSET(obj, offset))->i = val; in dvmSetFieldByte() 657 INLINE void dvmSetFieldShort(Object* obj, int offset, s2 val) { in dvmSetFieldShort() argument 658 ((JValue*)BYTE_OFFSET(obj, offset))->i = val; in dvmSetFieldShort() 660 INLINE void dvmSetFieldChar(Object* obj, int offset, u2 val) { in dvmSetFieldChar() argument 661 ((JValue*)BYTE_OFFSET(obj, offset))->i = val; in dvmSetFieldChar() 663 INLINE void dvmSetFieldInt(Object* obj, int offset, s4 val) { in dvmSetFieldInt() argument 664 ((JValue*)BYTE_OFFSET(obj, offset))->i = val; in dvmSetFieldInt() [all …]
|
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/asn1/ |
D | DerOutputStream.java | 50 ASN1Type type = (ASN1Type) val[index][0]; in encodeChoice() 52 content = val[index][1]; in encodeChoice() 61 content = val[index][0]; in encodeExplicit() 73 Object[] values = val[index]; in encodeSequence() 100 Object[] values = val[index]; in encodeValueCollection() 123 private Object[][] val = new Object[initSize][]; field in DerOutputStream 128 if (index == val.length) { in push() 130 int[][] newLen = new int[val.length * 2][]; in push() 131 System.arraycopy(len, 0, newLen, 0, val.length); in push() 134 Object[][] newVal = new Object[val.length * 2][]; in push() [all …]
|
/dalvik/vm/hprof/ |
D | HprofString.c | 58 void *val; in hprofLookupStringId() local 64 val = dvmHashTableLookup(gStringHashTable, hashValue, (void *)str, in hprofLookupStringId() 66 if (val == NULL) { in hprofLookupStringId() 70 val = dvmHashTableLookup(gStringHashTable, hashValue, (void *)newStr, in hprofLookupStringId() 72 assert(val != NULL); in hprofLookupStringId() 77 return (hprof_string_id)val; in hprofLookupStringId()
|
/dalvik/tools/dmtracedump/ |
D | CreateTestTrace.c | 310 void write2LE(FILE* fp, unsigned short val) in write2LE() argument 312 putc(val & 0xff, fp); in write2LE() 313 putc(val >> 8, fp); in write2LE() 316 void write4LE(FILE* fp, unsigned int val) in write4LE() argument 318 putc(val & 0xff, fp); in write4LE() 319 putc((val >> 8) & 0xff, fp); in write4LE() 320 putc((val >> 16) & 0xff, fp); in write4LE() 321 putc((val >> 24) & 0xff, fp); in write4LE() 324 void write8LE(FILE* fp, unsigned long long val) in write8LE() argument 326 putc(val & 0xff, fp); in write8LE() [all …]
|