/art/runtime/base/ |
H A D | stringprintf_test.cc | 25 EXPECT_STREQ("00107e59", StringPrintf("%08zx", size).c_str()); 26 EXPECT_STREQ("0x00107e59", StringPrintf("0x%08zx", size).c_str());
|
H A D | hex_dump_test.cc | 37 EXPECT_STREQ(oss.str().c_str(), 46 EXPECT_STREQ(oss.str().c_str(), 59 EXPECT_STREQ(oss.str().c_str() + (kBitsPerIntPtrT / 4), 67 EXPECT_STREQ(oss.str().c_str(),
|
H A D | to_str.h | 35 const char* c_str() const { function in class:art::ToStr 36 return s_.c_str();
|
H A D | scoped_flock_test.cc | 34 ASSERT_TRUE(file_lock.Init(scratch_file.GetFilename().c_str(),
|
H A D | systrace.h | 33 explicit ScopedTrace(const std::string& name) : ScopedTrace(name.c_str()) {}
|
/art/runtime/ |
H A D | dex2oat_environment_test.h | 45 ASSERT_EQ(0, mkdir(scratch_dir_.c_str(), 0700)); 49 ASSERT_EQ(0, mkdir(odex_oat_dir_.c_str(), 0700)); 52 ASSERT_EQ(0, mkdir(odex_dir_.c_str(), 0700)); 57 ASSERT_TRUE(OS::FileExists(GetSystemImageFile().c_str())) 59 ASSERT_TRUE(OS::FileExists(GetDexSrc1().c_str())) 61 ASSERT_TRUE(OS::FileExists(GetStrippedDexSrc1().c_str())) 63 ASSERT_FALSE(DexFile::GetChecksum(GetStrippedDexSrc1().c_str(), &checksum, &error_msg)) 65 ASSERT_TRUE(OS::FileExists(GetDexSrc2().c_str())) 71 ASSERT_TRUE(DexFile::Open(GetMultiDexSrc1().c_str(), 72 GetMultiDexSrc1().c_str(), [all...] |
H A D | common_throws.cc | 62 self->ThrowNewException(exception_descriptor, msg.str().c_str()); 78 self->ThrowNewWrappedException(exception_descriptor, msg.str().c_str()); 86 PrettyMethod(method).c_str()).c_str()); 94 /* with_signature */ true).c_str()).c_str()); 107 StringPrintf("length=%d; index=%d", length, index).c_str()); 115 PrettyDescriptor(element_class).c_str(), 116 PrettyDescriptor(array_class).c_str()).c_str()); [all...] |
H A D | reflection-inl.h | 93 PrettyDescriptor(srcType).c_str(), 94 PrettyDescriptor(dstType).c_str()).c_str()); 97 PrettyDescriptor(srcType).c_str(), 98 PrettyDescriptor(dstType).c_str()).c_str());
|
H A D | oat_file.cc | 175 file_path.c_str(), 176 symbol_error_msg.c_str()); 192 file_path.c_str(), 193 symbol_error_msg.c_str()); 206 *error_msg = StringPrintf("Failed to find oatbasslastword symbol in '%s'", file_path.c_str()); 240 GetLocation().c_str(), 241 cause.c_str()); 247 *error_msg = StringPrintf("In oat file '%s' found truncated OatHeader", GetLocation().c_str()); 255 GetLocation().c_str(), 272 GetLocation().c_str(), [all...] |
H A D | elf_file.cc | 107 file->GetPath().c_str(), file->Fd(), strerror(errno)); 114 file->GetPath().c_str()); 128 file->GetPath().c_str(), 138 sizeof(Elf_Ehdr), file->GetPath().c_str()); 148 file->GetPath().c_str(), 151 *error_msg = StringPrintf("Failed to map ELF program headers: %s", error_msg->c_str()); 163 file->GetPath().c_str(), 166 *error_msg = StringPrintf("Failed to map ELF file: %s", error_msg->c_str()); 187 file->GetPath().c_str()); 195 file->GetPath().c_str()); [all...] |
H A D | oat_file_assistant_test.cc | 92 ASSERT_EQ(0, rename(dalvik_cache.c_str(), dalvik_cache_tmp.c_str())) << strerror(errno); 111 ASSERT_EQ(0, rename(dalvik_cache_tmp.c_str(), dalvik_cache.c_str())) << strerror(errno); 115 std::unique_ptr<OatFile> odex_file(OatFile::Open(odex_location.c_str(), 116 odex_location.c_str(), 121 dex_location.c_str(), 232 std::unique_ptr<OatFile> oat_file(OatFile::Open(oat_location->c_str(), 233 oat_location->c_str(), 250 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeIS [all...] |
/art/compiler/optimizing/ |
H A D | parallel_move_test.cc | 191 ASSERT_STREQ("(1 -> 2) (0 -> 1)", resolver.GetMessage().c_str()); 193 ASSERT_STREQ("(1 -> 2) (0 -> 1)", resolver.GetMessage().c_str()); 202 ASSERT_STREQ("(2 -> 3) (1 -> 2) (1 -> 4) (0 -> 1)", resolver.GetMessage().c_str()); 204 ASSERT_STREQ("(2 -> 3) (1 -> 2) (0 -> 1) (2 -> 4)", resolver.GetMessage().c_str()); 218 ASSERT_STREQ("(1 <-> 0)", resolver.GetMessage().c_str()); 220 ASSERT_STREQ("(1 -> T0) (0 -> 1) (T0 -> 0)", resolver.GetMessage().c_str()); 229 ASSERT_STREQ("(1 -> 2) (1 <-> 0)", resolver.GetMessage().c_str()); 231 ASSERT_STREQ("(1 -> 2) (0 -> 1) (2 -> 0)", resolver.GetMessage().c_str()); 240 ASSERT_STREQ("(0 -> 2) (1 <-> 0)", resolver.GetMessage().c_str()); 242 ASSERT_STREQ("(0 -> 2) (1 -> 0) (2 -> 1)", resolver.GetMessage().c_str()); [all...] |
H A D | induction_var_analysis_test.cc | 235 EXPECT_STREQ("((1) * i + (0)):PrimInt", GetInductionInfo(store->InputAt(1), 0).c_str()); 236 EXPECT_STREQ("((1) * i + (1)):PrimInt", GetInductionInfo(increment_[0], 0).c_str()); 243 GetInductionInfo(loop_header_[0]->GetLastInstruction(), 0).c_str()); 268 EXPECT_STREQ("((1) * i + (100)):PrimInt", GetInductionInfo(add, 0).c_str()); 269 EXPECT_STREQ("(( - (1)) * i + (100)):PrimInt", GetInductionInfo(sub, 0).c_str()); 270 EXPECT_STREQ("((100) * i + (0)):PrimInt", GetInductionInfo(mul, 0).c_str()); 271 EXPECT_STREQ("((2) * i + (0)):PrimInt", GetInductionInfo(shl, 0).c_str()); 272 EXPECT_STREQ("(( - (1)) * i + (0)):PrimInt", GetInductionInfo(neg, 0).c_str()); 298 GetInductionInfo(store1->InputAt(1), 0).c_str()); 300 GetInductionInfo(store2->InputAt(1), 0).c_str()); [all...] |
/art/compiler/utils/ |
H A D | test_dex_file_builder_test.cc | 35 EXPECT_STREQ(dex_location, dex_file->GetLocation().c_str()); 69 EXPECT_STREQ("[I TestClass.intField", PrettyField(0u, *dex_file).c_str()); 74 PrettyMethod(0u, *dex_file).c_str()); 76 PrettyMethod(1u, *dex_file).c_str());
|
/art/test/595-profile-saving/ |
H A D | profile-saving.cc | 61 CHECK(chars.c_str() != nullptr); 63 CreateProfilingInfoVisitor visitor(soa.Self(), chars.c_str()); 75 CHECK(filename_chars.c_str() != nullptr); 78 return ProfileSaver::HasSeenMethod(std::string(filename_chars.c_str()),
|
/art/runtime/native/ |
H A D | java_lang_VMClassLoader.cc | 34 if (name.c_str() == nullptr) { 38 std::string descriptor(DotToDescriptor(name.c_str())); 39 const size_t descriptor_hash = ComputeModifiedUtf8Hash(descriptor.c_str()); 40 mirror::Class* c = cl->LookupClass(soa.Self(), descriptor.c_str(), descriptor_hash, loader); 57 PrettyDescriptor(c).c_str()); 64 cl->FindClassInPathClassLoader(soa, soa.Self(), descriptor.c_str(), descriptor_hash, 89 jstring javaPath = env->NewStringUTF(location.c_str());
|
H A D | dalvik_system_DexFile.cc | 118 // // ... use name.c_str() 133 const char* c_str() const { function in class:art::NullableScopedUtfChars 164 if (sourceName.c_str() == nullptr) { 177 dex_files = runtime->GetOatFileManager().OpenDexFilesFromOat(sourceName.c_str(), 178 outputName.c_str(), 203 ThrowWrappedIOException("%s", it->c_str()); 267 if (class_name.c_str() == nullptr) { 271 const std::string descriptor(DotToDescriptor(class_name.c_str())); 272 const size_t hash(ComputeModifiedUtf8Hash(descriptor.c_str())); 274 const DexFile::ClassDef* dex_class_def = dex_file->FindClassDef(descriptor.c_str(), has [all...] |
/art/runtime/gc/space/ |
H A D | image_space_fs.h | 44 if (!OS::DirectoryExists(dir.c_str())) { 47 DIR* c_dir = opendir(dir.c_str()); 59 std::string file = StringPrintf("%s/%s", dir.c_str(), name); 65 if (rmdir(file.c_str()) != 0) { 74 if (unlink(file.c_str()) != 0) { 109 const char* file_name = boot_marker.c_str();
|
/art/test/570-checker-osr/ |
H A D | osr.cc | 68 CHECK(chars.c_str() != nullptr); 70 OsrVisitor visitor(soa.Self(), chars.c_str()); 83 CHECK(chars.c_str() != nullptr); 85 OsrVisitor visitor(soa.Self(), chars.c_str()); 118 CHECK(chars.c_str() != nullptr); 120 ProfilingInfoVisitor visitor(soa.Self(), chars.c_str()); 158 CHECK(chars.c_str() != nullptr); 160 OsrCheckVisitor visitor(soa.Self(), chars.c_str());
|
/art/runtime/arch/arm64/ |
H A D | instruction_set_features_arm64_test.cc | 31 EXPECT_STREQ("smp,a53", arm64_features->GetFeatureString().c_str());
|
/art/runtime/arch/mips/ |
H A D | instruction_set_features_mips_test.cc | 30 EXPECT_STREQ("smp,fpu32,mips2", mips_features->GetFeatureString().c_str());
|
/art/runtime/arch/mips64/ |
H A D | instruction_set_features_mips64_test.cc | 30 EXPECT_STREQ("smp", mips64_features->GetFeatureString().c_str());
|
/art/runtime/arch/x86_64/ |
H A D | instruction_set_features_x86_64_test.cc | 31 x86_64_features->GetFeatureString().c_str());
|
/art/cmdline/ |
H A D | cmdline.h | 47 std::string system_filename(GetSystemImageFilename(location.c_str(), isa)); 48 if (OS::FileExists(system_filename.c_str())) { 67 if (GetDalvikCacheFilename(location.c_str(), dalvik_cache.c_str(), 99 options.push_back(std::make_pair(boot_image_option.c_str(), nullptr)); 154 const char* filename = output_name_.c_str(); 170 fprintf(stderr, "%s\n", error_msg.c_str()); 182 fprintf(stderr, "%s\n", error_msg.c_str()); 258 if (GetInstructionSetFromString(parent_dir_name.c_str()) != kNone) { 268 file_name.c_str()); [all...] |
/art/runtime/arch/x86/ |
H A D | instruction_set_features_x86_test.cc | 31 x86_features->GetFeatureString().c_str()); 44 x86_features->GetFeatureString().c_str()); 54 x86_default_features->GetFeatureString().c_str()); 64 x86_64_features->GetFeatureString().c_str()); 81 x86_features->GetFeatureString().c_str()); 91 x86_default_features->GetFeatureString().c_str()); 101 x86_64_features->GetFeatureString().c_str());
|