/dalvik/vm/oo/ |
D | ObjectInlines.h | 28 Object* val) { in dvmSetObjectArrayElement() argument 29 ((Object **)(void *)(obj)->contents)[index] = val; in dvmSetObjectArrayElement() 30 if (val != NULL) { in dvmSetObjectArrayElement() 109 s8 val = dvmQuasiAtomicRead64(addr); in dvmGetFieldLongVolatile() local 111 return val; in dvmGetFieldLongVolatile() 125 INLINE void dvmSetFieldBoolean(Object* obj, int offset, bool val) { in dvmSetFieldBoolean() argument 126 ((JValue*)BYTE_OFFSET(obj, offset))->i = val; in dvmSetFieldBoolean() 128 INLINE void dvmSetFieldByte(Object* obj, int offset, s1 val) { in dvmSetFieldByte() argument 129 ((JValue*)BYTE_OFFSET(obj, offset))->i = val; in dvmSetFieldByte() 131 INLINE void dvmSetFieldShort(Object* obj, int offset, s2 val) { in dvmSetFieldShort() argument [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 | Native.h | 99 s8 val; in dvmGetArgLong() local 100 memcpy(&val, &args[elem], sizeof(val)); in dvmGetArgLong() 101 return val; in dvmGetArgLong()
|
D | Init.cpp | 252 size_t val; in parseMemOption() local 254 val = strtoul(s, (char* *)&s2, 10); in parseMemOption() 287 if (val <= SIZE_MAX / mul) { in parseMemOption() 288 val *= mul; in parseMemOption() 292 val = SIZE_MAX & ~(1024-1); in parseMemOption() 305 if (val % div == 0) { in parseMemOption() 306 return val; in parseMemOption() 890 size_t val = parseMemOption(argv[i]+4, 1024); in processOptions() local 891 if (val != 0) { in processOptions() 892 if (val >= kMinHeapStartSize && val <= kMaxHeapSize) { in processOptions() [all …]
|
D | Hash.cpp | 293 int i, val, tableSize; in dvmHashForeachRemove() local 301 val = (*func)(pEnt->data); in dvmHashForeachRemove() 302 if (val == 1) { in dvmHashForeachRemove() 307 else if (val != 0) { in dvmHashForeachRemove() 308 return val; in dvmHashForeachRemove() 323 int i, val, tableSize; in dvmHashForeach() local 331 val = (*func)(pEnt->data, arg); in dvmHashForeach() 332 if (val != 0) in dvmHashForeach() 333 return val; in dvmHashForeach()
|
D | BitVector.cpp | 171 unsigned int val = pBits->storage[num >> 5] & (1 << (num & 0x1f)); in dvmIsBitSet() local 172 return (val != 0); in dvmIsBitSet() 184 u4 val = pBits->storage[word]; in dvmCountSetBits() local 186 if (val != 0) { in dvmCountSetBits() 187 if (val == 0xffffffff) { in dvmCountSetBits() 191 while (val != 0) { in dvmCountSetBits() 192 val &= val - 1; in dvmCountSetBits()
|
D | Profile.cpp | 149 static inline void storeShortLE(u1* buf, u2 val) in storeShortLE() argument 151 *buf++ = (u1) val; in storeShortLE() 152 *buf++ = (u1) (val >> 8); in storeShortLE() 154 static inline void storeIntLE(u1* buf, u4 val) in storeIntLE() argument 156 *buf++ = (u1) val; in storeIntLE() 157 *buf++ = (u1) (val >> 8); in storeIntLE() 158 *buf++ = (u1) (val >> 16); in storeIntLE() 159 *buf++ = (u1) (val >> 24); in storeIntLE() 161 static inline void storeLongLE(u1* buf, u8 val) in storeLongLE() argument 163 *buf++ = (u1) val; in storeLongLE() [all …]
|
D | Misc.h | 48 INLINE float dvmU4ToFloat(u4 val) { in dvmU4ToFloat() argument 50 conv.in = val; in dvmU4ToFloat() 53 INLINE u4 dvmFloatToU4(float val) { in dvmFloatToU4() argument 55 conv.in = val; in dvmFloatToU4()
|
/dalvik/vm/jdwp/ |
D | ExpandBuf.cpp | 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 | 50 void expandBufAdd1(ExpandBuf* pBuf, u1 val); 51 void expandBufAdd2BE(ExpandBuf* pBuf, u2 val); 52 void expandBufAdd4BE(ExpandBuf* pBuf, u4 val); 53 void expandBufAdd8BE(ExpandBuf* pBuf, u8 val);
|
D | Jdwp.h | 55 INLINE void dvmSetFieldId(u1* buf, FieldId val) { return set4BE(buf, val); } in dvmSetFieldId() argument 56 INLINE void dvmSetMethodId(u1* buf, MethodId val) { return set4BE(buf, val); } in dvmSetMethodId() argument 57 INLINE void dvmSetObjectId(u1* buf, ObjectId val) { return set8BE(buf, val); } in dvmSetObjectId() argument 58 INLINE void dvmSetRefTypeId(u1* buf, RefTypeId val) { return set8BE(buf, val); } in dvmSetRefTypeId() argument 59 INLINE void dvmSetFrameId(u1* buf, FrameId val) { return set8BE(buf, val); } in dvmSetFrameId() argument
|
/dalvik/libdex/ |
D | ZipArchive.h | 140 off_t val = 0; in dexGetZipEntryOffset() local 141 dexZipGetEntryInfo(pArchive, entry, NULL, NULL, NULL, &val, NULL, NULL); in dexGetZipEntryOffset() 142 return (long) val; in dexGetZipEntryOffset() 147 size_t val = 0; in dexGetZipEntryUncompLen() local 148 dexZipGetEntryInfo(pArchive, entry, NULL, &val, NULL, NULL, NULL, NULL); in dexGetZipEntryUncompLen() 149 return val; in dexGetZipEntryUncompLen() 154 long val = 0; in dexGetZipEntryModTime() local 155 dexZipGetEntryInfo(pArchive, entry, NULL, NULL, NULL, NULL, &val, NULL); in dexGetZipEntryModTime() 156 return val; in dexGetZipEntryModTime() 161 long val = 0; in dexGetZipEntryCrc32() local [all …]
|
D | DexFile.cpp | 531 u4 dexRoundUpPower2(u4 val) in dexRoundUpPower2() argument 533 val--; in dexRoundUpPower2() 534 val |= val >> 1; in dexRoundUpPower2() 535 val |= val >> 2; in dexRoundUpPower2() 536 val |= val >> 4; in dexRoundUpPower2() 537 val |= val >> 8; in dexRoundUpPower2() 538 val |= val >> 16; in dexRoundUpPower2() 539 val++; in dexRoundUpPower2() 541 return val; in dexRoundUpPower2()
|
/dalvik/vm/hprof/ |
D | HprofString.cpp | 54 void *val; in hprofLookupStringId() local 60 val = dvmHashTableLookup(gStringHashTable, hashValue, (void *)str, in hprofLookupStringId() 62 if (val == NULL) { in hprofLookupStringId() 66 val = dvmHashTableLookup(gStringHashTable, hashValue, (void *)newStr, in hprofLookupStringId() 68 assert(val != NULL); in hprofLookupStringId() 73 return (hprof_string_id)val; in hprofLookupStringId()
|
D | HprofClass.cpp | 75 void *val; in hprofLookupClassId() local 89 val = dvmHashTableLookup(gClassHashTable, computeClassHash(clazz), in hprofLookupClassId() 91 assert(val != NULL); in hprofLookupClassId()
|
/dalvik/vm/test/ |
D | AtomicTest.cpp | 139 int val; in doAtomicTest() local 141 val = casTest; in doAtomicTest() 142 } while (android_atomic_release_cas(val, val+3, &casTest) != 0); in doAtomicTest() 144 val = casTest; in doAtomicTest() 145 } while (android_atomic_acquire_cas(val, val-1, &casTest) != 0); in doAtomicTest() 161 int val; in doAtomicTest() local 163 val = casTest; in doAtomicTest() 164 } while (compareAndSwap(val, val+3, &casTest) != 0); in doAtomicTest() 166 val = casTest; in doAtomicTest() 167 } while (compareAndSwap(val, val-1, &casTest) != 0); in doAtomicTest()
|
/dalvik/tools/dmtracedump/ |
D | CreateTestTrace.c | 326 void write2LE(FILE* fp, unsigned short val) in write2LE() argument 328 putc(val & 0xff, fp); in write2LE() 329 putc(val >> 8, fp); in write2LE() 332 void write4LE(FILE* fp, unsigned int val) in write4LE() argument 334 putc(val & 0xff, fp); in write4LE() 335 putc((val >> 8) & 0xff, fp); in write4LE() 336 putc((val >> 16) & 0xff, fp); in write4LE() 337 putc((val >> 24) & 0xff, fp); in write4LE() 340 void write8LE(FILE* fp, unsigned long long val) in write8LE() argument 342 putc(val & 0xff, fp); in write8LE() [all …]
|
/dalvik/tests/084-class-init/src/ |
D | IntHolder.java | 38 public void setValue(int val) { in setValue() argument 39 mValue = val; in setValue()
|
/dalvik/tests/025-access-controller/src/ |
D | Privvy.java | 11 public Privvy(int val) { in Privvy() argument 12 mValue = new Integer(val + 1); in Privvy()
|
/dalvik/tests/003-omnibus-opcodes/src/ |
D | MethodCall.java | 28 int val = super.tryThing(); in tryThing() local 29 assert(val == 7); in tryThing() 30 return val; in tryThing()
|
/dalvik/vm/compiler/codegen/x86/libenc/ |
D | encoder.h | 231 Imm_Opnd(I_32 val, bool isSigned = true): 232 Opnd(isSigned ? SignedImm : UnsignedImm), value(val), size(size_32) { 234 if (CHAR_MIN <= val && val <= CHAR_MAX) { 236 } else if (SHRT_MIN <= val && val <= SHRT_MAX) { 240 assert(val >= 0); 241 if (val <= UCHAR_MAX) { 243 } else if (val <= USHRT_MAX) { 251 Imm_Opnd(Opnd_Size sz, int64 val, bool isSigned = true): 252 Opnd(isSigned ? SignedImm : UnsignedImm), value(val), size(sz) { 256 assert(val == (int64)(I_8)val); [all …]
|
/dalvik/tools/hprof-conv/ |
D | HprofConv.c | 277 uint16_t val; in get2BE() local 279 val = (buf[0] << 8) | buf[1]; in get2BE() 280 return val; in get2BE() 288 uint32_t val; in get4BE() local 290 val = (buf[0] << 24) | (buf[1] << 16) | (buf[2] << 8) | buf[3]; in get4BE() 291 return val; in get4BE() 297 static void set4BE(unsigned char* buf, uint32_t val) in set4BE() argument 299 buf[0] = val >> 24; in set4BE() 300 buf[1] = val >> 16; in set4BE() 301 buf[2] = val >> 8; in set4BE() [all …]
|
/dalvik/tests/028-array-write/src/ |
D | Main.java | 22 static void writeArray(int val) { in writeArray() argument 24 mStorage[i] = val; in writeArray()
|
/dalvik/vm/mterp/c/ |
D | header.cpp | 158 s8 val; in getLongFromArray() 159 memcpy(&val, &ptr[idx], 8); in getLongFromArray() 160 return val; in getLongFromArray() 165 static inline void putLongToArray(u4* ptr, int idx, s8 val) in putLongToArray() argument 171 conv.ll = val; in putLongToArray() 175 memcpy(&ptr[idx], &val, 8); in putLongToArray()
|
/dalvik/vm/reflect/ |
D | Annotation.cpp | 65 u1 val; in readUleb128() local 75 val = *buf++; in readUleb128() 76 result |= (val & 0x7f) << shift; in readUleb128() 78 } while ((val & 0x80) != 0); in readUleb128() 144 s4 val = 0; in readSignedInt() local 148 val = ((u4)val >> 8) | (((s4)*ptr++) << 24); in readSignedInt() 149 val >>= (3 - zwidth) * 8; in readSignedInt() 151 return val; in readSignedInt() 160 u4 val = 0; in readUnsignedInt() local 165 val = (val >> 8) | (((u4)*ptr++) << 24); in readUnsignedInt() [all …]
|