/art/runtime/ |
D | leb128.h | 29 int result = *(ptr++); in DecodeUnsignedLeb128() local 30 if (result > 0x7f) { in DecodeUnsignedLeb128() 32 result = (result & 0x7f) | ((cur & 0x7f) << 7); in DecodeUnsignedLeb128() 35 result |= (cur & 0x7f) << 14; in DecodeUnsignedLeb128() 38 result |= (cur & 0x7f) << 21; in DecodeUnsignedLeb128() 43 result |= cur << 28; in DecodeUnsignedLeb128() 49 return static_cast<uint32_t>(result); in DecodeUnsignedLeb128() 65 int32_t result = *(ptr++); in DecodeSignedLeb128() local 66 if (result <= 0x7f) { in DecodeSignedLeb128() 67 result = (result << 25) >> 25; in DecodeSignedLeb128() [all …]
|
D | utils.cc | 73 std::string result; in GetThreadName() local 74 if (ReadFileToString(StringPrintf("/proc/self/task/%d/comm", tid), &result)) { in GetThreadName() 75 result.resize(result.size() - 1); // Lose the trailing '\n'. in GetThreadName() 77 result = "<unknown>"; in GetThreadName() 79 return result; in GetThreadName() 103 bool ReadFileToString(const std::string& file_name, std::string* result) { in ReadFileToString() argument 118 result->append(&buf[0], n); in ReadFileToString() 265 std::string result; in PrettyDescriptor() local 272 result.push_back(ch); in PrettyDescriptor() 276 result += "[]"; in PrettyDescriptor() [all …]
|
D | jni_internal_test.cc | 122 JValue result; in InvokeNopMethod() local 128 method->Invoke(Thread::Current(), arg_array.GetArray(), arg_array.GetNumBytes(), &result, 'V'); in InvokeNopMethod() 139 JValue result; in InvokeIdentityByteMethod() local 147 result.SetB(-1); in InvokeIdentityByteMethod() 148 method->Invoke(Thread::Current(), arg_array.GetArray(), arg_array.GetNumBytes(), &result, 'B'); in InvokeIdentityByteMethod() 149 EXPECT_EQ(0, result.GetB()); in InvokeIdentityByteMethod() 152 result.SetB(0); in InvokeIdentityByteMethod() 153 method->Invoke(Thread::Current(), arg_array.GetArray(), arg_array.GetNumBytes(), &result, 'B'); in InvokeIdentityByteMethod() 154 EXPECT_EQ(-1, result.GetB()); in InvokeIdentityByteMethod() 157 result.SetB(0); in InvokeIdentityByteMethod() [all …]
|
D | object_utils.h | 115 std::string result("["); in GetArrayDescriptor() 119 result += GetDescriptor(); in GetArrayDescriptor() 121 descriptor_ = result; in GetArrayDescriptor() 210 mirror::DexCache* result = dex_cache_; in GetDexCache() local 211 if (result == NULL) { in GetDexCache() 213 result = klass_->GetDexCache(); in GetDexCache() 214 dex_cache_ = result; in GetDexCache() 216 return result; in GetDexCache() 222 const DexFile::TypeList* result = interface_type_list_; in GetInterfaceTypeList() local 223 if (result == NULL) { in GetInterfaceTypeList() [all …]
|
D | utf.cc | 140 size_t result = 0; in CountUtf8Bytes() local 144 ++result; in CountUtf8Bytes() 147 result += 3; in CountUtf8Bytes() 149 result += 2; in CountUtf8Bytes() 153 return result; in CountUtf8Bytes()
|
/art/jdwpspy/ |
D | Common.h | 37 u2 result; in get2BE() local 39 result = *pSrc++ << 8; in get2BE() 40 result |= *pSrc++; in get2BE() 42 return result; in get2BE() 49 u4 result; in get4BE() local 51 result = *pSrc++ << 24; in get4BE() 52 result |= *pSrc++ << 16; in get4BE() 53 result |= *pSrc++ << 8; in get4BE() 54 result |= *pSrc++; in get4BE() 56 return result; in get4BE() [all …]
|
/art/runtime/base/ |
D | stringprintf.cc | 32 int result = vsnprintf(space, sizeof(space), format, backup_ap); in StringAppendV() local 35 if (result < static_cast<int>(sizeof(space))) { in StringAppendV() 36 if (result >= 0) { in StringAppendV() 38 dst->append(space, result); in StringAppendV() 42 if (result < 0) { in StringAppendV() 50 int length = result+1; in StringAppendV() 55 result = vsnprintf(buf, length, format, backup_ap); in StringAppendV() 58 if (result >= 0 && result < length) { in StringAppendV() 60 dst->append(buf, result); in StringAppendV() 68 std::string result; in StringPrintf() local [all …]
|
D | stringpiece.cc | 38 const char* result = std::search(ptr_ + pos, ptr_ + length_, in find() local 40 const size_type xpos = result - ptr_; in find() 57 const char* result = std::find(ptr_ + pos, ptr_ + length_, c); in find() local 58 return result != ptr_ + length_ ? result - ptr_ : npos; in find() 67 const char* result = std::find_end(ptr_, last, s.ptr_, s.ptr_ + s.length_); in rfind() local 68 return result != last ? result - ptr_ : npos; in rfind()
|
/art/compiler/jni/ |
D | jni_compiler_test.cc | 157 jint result = env_->CallNonvirtualIntMethod(jobj_, jklass_, jmethod_, 24); in TEST_F() local 158 EXPECT_EQ(25, result); in TEST_F() 172 jint result = env_->CallStaticIntMethod(jklass_, jmethod_, 42); in TEST_F() local 173 EXPECT_EQ(43, result); in TEST_F() 194 jint result = env_->CallNonvirtualIntMethod(jobj_, jklass_, jmethod_, 42); in TEST_F() local 195 EXPECT_EQ(42, result); in TEST_F() 197 result = env_->CallNonvirtualIntMethod(jobj_, jklass_, jmethod_, 0xCAFED00D); in TEST_F() 198 EXPECT_EQ(static_cast<jint>(0xCAFED00D), result); in TEST_F() 220 jint result = env_->CallNonvirtualIntMethod(jobj_, jklass_, jmethod_, 99, 10); in TEST_F() local 221 EXPECT_EQ(99 - 10, result); in TEST_F() [all …]
|
/art/runtime/verifier/ |
D | reg_type.cc | 85 std::stringstream result; in Dump() local 89 result << "Zero/null"; in Dump() 91 result << "Precise "; in Dump() 93 result << StringPrintf("Constant: %d", val); in Dump() 95 result << StringPrintf("Constant: 0x%x", val); in Dump() 98 return result.str(); in Dump() 395 std::stringstream result; in Dump() local 397 result << "UnresolvedMergedReferences("; in Dump() 399 result << reg_type_cache_->GetFromId(*it).Dump(); in Dump() 401 result << ", "; in Dump() [all …]
|
D | reg_type_cache-inl.h | 40 RegType* result = entries_[id]; in GetFromId() local 41 DCHECK(result != NULL); in GetFromId() 42 return *result; in GetFromId()
|
/art/runtime/gc/space/ |
D | dlmalloc_space-inl.h | 41 mirror::Object* result = reinterpret_cast<mirror::Object*>(mspace_malloc(mspace_, num_bytes)); in AllocWithoutGrowthLocked() local 42 if (result != NULL) { in AllocWithoutGrowthLocked() 44 CHECK(Contains(result)) << "Allocation (" << reinterpret_cast<void*>(result) in AllocWithoutGrowthLocked() 47 size_t allocation_size = AllocationSizeNonvirtual(result); in AllocWithoutGrowthLocked() 55 return result; in AllocWithoutGrowthLocked()
|
/art/runtime/mirror/ |
D | throwable.cc | 52 std::string result(PrettyTypeOf(this)); in Dump() local 53 result += ": "; in Dump() 56 result += msg->ToModifiedUtf8(); in Dump() 58 result += "\n"; in Dump() 73 result += StringPrintf(" at %s (%s:%d)\n", PrettyMethod(method, true).c_str(), in Dump() 79 result += "Caused by: "; in Dump() 80 result += cause->Dump(); in Dump() 82 return result; in Dump()
|
D | art_method-inl.h | 31 …Class* result = GetFieldObject<Class*>(OFFSET_OF_OBJECT_MEMBER(ArtMethod, declaring_class_), false… in GetDeclaringClass() local 32 DCHECK(result != NULL) << this; in GetDeclaringClass() 33 DCHECK(result->IsIdxLoaded() || result->IsErroneous()) << this; in GetDeclaringClass() 34 return result; in GetDeclaringClass() 189 bool result = false; in IsCalleeSaveMethod() local 192 result = true; in IsCalleeSaveMethod() 196 return result; in IsCalleeSaveMethod() 200 bool result = this == Runtime::Current()->GetResolutionMethod(); in IsResolutionMethod() local 202 DCHECK(!result || IsRuntimeMethod()); in IsResolutionMethod() 203 return result; in IsResolutionMethod()
|
D | art_method.cc | 113 ArtMethod* result = NULL; in FindOverriddenMethod() local 117 result = super_class_vtable->Get(method_index); in FindOverriddenMethod() 121 result = GetDexCacheResolvedMethods()->Get(GetDexMethodIndex()); in FindOverriddenMethod() 122 CHECK_EQ(result, in FindOverriddenMethod() 128 for (size_t i = 0; i < iftable->Count() && result == NULL; i++) { in FindOverriddenMethod() 134 result = interface_method; in FindOverriddenMethod() 142 MethodHelper result_mh(result); in FindOverriddenMethod() 143 DCHECK(result == NULL || MethodHelper(this).HasSameNameAndSignature(&result_mh)); in FindOverriddenMethod() 145 return result; in FindOverriddenMethod() 246 void ArtMethod::Invoke(Thread* self, uint32_t* args, uint32_t args_size, JValue* result, in Invoke() argument [all …]
|
D | string.cc | 85 int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), false); in GetHashCode() local 86 if (result == 0) { in GetHashCode() 89 result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), false); in GetHashCode() 90 DCHECK(result != 0 || ComputeUtf16Hash(GetCharArray(), GetOffset(), GetLength()) == 0) in GetHashCode() 91 << ToModifiedUtf8() << " " << result; in GetHashCode() 92 return result; in GetHashCode() 96 int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), false); in GetLength() local 97 DCHECK(result >= 0 && result <= GetCharArray()->GetLength()); in GetLength() 98 return result; in GetLength() 241 std::string result(byte_count, static_cast<char>(0)); in ToModifiedUtf8() [all …]
|
/art/compiler/jni/quick/ |
D | calling_convention.h | 37 size_t result = Primitive::ComponentSize(Primitive::GetType(shorty_[0])); in SizeOfReturnValue() local 38 if (result >= 1 && result < 4) { in SizeOfReturnValue() 39 result = 4; in SizeOfReturnValue() 41 return result; in SizeOfReturnValue() 125 size_t result = Primitive::ComponentSize(Primitive::GetType(shorty_[param])); in ParamSize() local 126 if (result >= 1 && result < 4) { in ParamSize() 127 result = 4; in ParamSize() 129 return result; in ParamSize()
|
/art/test/064-field-access/src/ |
D | Main.java | 52 Object result = null; in getValue() local 56 result = field.getBoolean(obj); in getValue() 59 result = field.getByte(obj); in getValue() 62 result = field.getShort(obj); in getValue() 65 result = field.getChar(obj); in getValue() 68 result = field.getInt(obj); in getValue() 71 result = field.getLong(obj); in getValue() 74 result = field.getFloat(obj); in getValue() 77 result = field.getDouble(obj); in getValue() 80 result = field.get(obj); in getValue() [all …]
|
/art/test/022-interface/src/ |
D | Main.java | 22 int result = 0; in main() local 28 result = faceObj.iFunc2(5); in main() 30 System.out.println(result); in main() 33 result = faceObj2.iFunc2(5); in main() 35 System.out.println(result); in main()
|
/art/runtime/jdwp/ |
D | jdwp_request.cc | 161 uint16_t result = p_[0] << 8 | p_[1]; in Read2BE() local 163 return result; in Read2BE() 167 uint32_t result = p_[0] << 24; in Read4BE() local 168 result |= p_[1] << 16; in Read4BE() 169 result |= p_[2] << 8; in Read4BE() 170 result |= p_[3]; in Read4BE() 172 return result; in Read4BE()
|
/art/runtime/base/unix_file/ |
D | mapped_file.cc | 43 int result = TEMP_FAILURE_RETRY(fstat(Fd(), &st)); in MapReadOnly() local 44 if (result == -1) { in MapReadOnly() 64 int result = TEMP_FAILURE_RETRY(ftruncate64(Fd(), file_size)); in MapReadWrite() local 65 if (result == -1) { in MapReadWrite() 86 int result = TEMP_FAILURE_RETRY(munmap(mapped_file_, file_size_)); in Unmap() local 87 if (result == -1) { in Unmap()
|
/art/runtime/entrypoints/quick/ |
D | quick_instrumentation_entrypoints.cc | 34 const void* result = instrumentation->GetQuickCodeFor(method); in artInstrumentationMethodEntryFromCode() local 35 bool interpreter_entry = (result == GetQuickToInterpreterBridge()); in artInstrumentationMethodEntryFromCode() 38 CHECK(result != NULL) << PrettyMethod(method); in artInstrumentationMethodEntryFromCode() 39 return result; in artInstrumentationMethodEntryFromCode()
|
/art/test/023-many-interfaces/ |
D | iface-gen.c | 49 int result; in main() local 51 result = createFiles(100); in main() 53 return (result != 0); in main()
|
/art/runtime/interpreter/ |
D | interpreter.cc | 71 JValue* result, size_t arg_offset) in UnstartedRuntimeInvoke() argument 83 result->SetL(found); in UnstartedRuntimeInvoke() 91 result->SetL(obj.get()); in UnstartedRuntimeInvoke() 129 result->SetL(field.get()); in UnstartedRuntimeInvoke() 160 artInterpreterToInterpreterBridge(self, mh, code_item, shadow_frame, result); in UnstartedRuntimeInvoke() 166 Object* receiver, uint32_t* args, JValue* result) in UnstartedRuntimeJni() argument 170 result->SetL(NULL); in UnstartedRuntimeJni() 174 result->SetL(visitor.caller->GetDeclaringClass()); in UnstartedRuntimeJni() 178 result->SetD(log(value.GetD())); in UnstartedRuntimeJni() 180 result->SetL(receiver->AsClass()->ComputeName()); in UnstartedRuntimeJni() [all …]
|
/art/runtime/entrypoints/interpreter/ |
D | interpreter_entrypoints.cc | 30 ShadowFrame* shadow_frame, JValue* result) { in artInterpreterToCompiledCodeBridge() argument 40 method->Invoke(self, arg_array.GetArray(), arg_array.GetNumBytes(), result, mh.GetShorty()[0]); in artInterpreterToCompiledCodeBridge() 44 result, mh.GetShorty()[0]); in artInterpreterToCompiledCodeBridge()
|