/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() + (kBitsPerWord / 4), 67 EXPECT_STREQ(oss.str().c_str(),
|
H A D | scoped_flock_test.cc | 34 ASSERT_TRUE(file_lock.Init(scratch_file.GetFilename().c_str(),
|
H A D | logging.cc | 38 return (gCmdLine.get() != nullptr) ? gCmdLine->c_str() : nullptr; 42 return (gProgramInvocationName.get() != nullptr) ? gProgramInvocationName->c_str() : "art"; 46 return (gProgramInvocationShortName.get() != nullptr) ? gProgramInvocationShortName->c_str() 146 LogLine(*data_, msg.c_str());
|
/art/runtime/native/ |
H A D | java_lang_VMClassLoader.cc | 31 if (name.c_str() == nullptr) { 35 std::string descriptor(DotToDescriptor(name.c_str())); 36 const size_t descriptor_hash = ComputeModifiedUtf8Hash(descriptor.c_str()); 37 mirror::Class* c = cl->LookupClass(descriptor.c_str(), descriptor_hash, loader); 44 c = cl->FindClassInPathClassLoader(soa, soa.Self(), descriptor.c_str(), descriptor_hash, 74 if (name.c_str() == nullptr) { 88 std::unique_ptr<ZipArchive> zip_archive(ZipArchive::Open(location.c_str(), &error_msg)); 93 std::unique_ptr<ZipEntry> zip_entry(zip_archive->Find(name.c_str(), &error_msg)); 99 StringAppendF(&url, "jar:file://%s!/%s", location.c_str(), name.c_str()); [all...] |
H A D | java_lang_Runtime.cc | 48 if (filename.c_str() == NULL) { 54 if (ldLibraryPath.c_str() == NULL) { 61 (*android_update_LD_LIBRARY_PATH)(ldLibraryPath.c_str()); 74 bool success = vm->LoadNativeLibrary(filename.c_str(), classLoader, &detail); 82 return env->NewStringUTF(detail.c_str());
|
H A D | java_lang_Class.cc | 48 if (name.c_str() == nullptr) { 55 if (!IsValidBinaryClassName(name.c_str())) { 58 "Invalid name: %s", name.c_str()); 62 std::string descriptor(DotToDescriptor(name.c_str())); 67 hs.NewHandle(class_linker->FindClass(soa.Self(), descriptor.c_str(), class_loader)));
|
H A D | dalvik_system_DexFile.cc | 63 // // ... use name.c_str() 78 const char* c_str() const { function in class:art::NullableScopedUtfChars 103 if (sourceName.c_str() == NULL) { 115 bool success = linker->OpenDexFilesFromOat(sourceName.c_str(), outputName.c_str(), &error_msgs, 133 ThrowWrappedIOException("%s", it->c_str()); 177 if (class_name.c_str() == NULL) { 181 const std::string descriptor(DotToDescriptor(class_name.c_str())); 182 const size_t hash(ComputeModifiedUtf8Hash(descriptor.c_str())); 184 const DexFile::ClassDef* dex_class_def = dex_file->FindClassDef(descriptor.c_str(), has [all...] |
/art/runtime/ |
H A D | reflection-inl.h | 93 PrettyDescriptor(srcType).c_str(), 94 PrettyDescriptor(dstType).c_str()).c_str()); 98 PrettyDescriptor(srcType).c_str(), 99 PrettyDescriptor(dstType).c_str()).c_str());
|
H A D | common_runtime_test.cc | 68 int fd = open(filename_.c_str(), O_RDWR | O_CREAT, 0666); 96 if (!OS::FileExists(filename_.c_str())) { 100 int unlink_result = unlink(filename_.c_str()); 137 setenv("ANDROID_ROOT", root.c_str(), 1); 165 setenv("ANDROID_DATA", android_data.c_str(), 1); 170 ASSERT_EQ(rmdir(android_data.c_str()), 0); 172 rmdir(android_data.c_str()); 192 dalvik_cache_.append(android_data_.c_str()); 194 int mkdir_result = mkdir(dalvik_cache_.c_str(), 0700); 200 java_lang_dex_file_ = LoadExpectSingleDexFile(GetLibCoreDexFileName().c_str()); [all...] |
H A D | throw_location.cc | 28 return StringPrintf("%s:%d", PrettyMethod(method_).c_str(),
|
H A D | common_throws.cc | 61 self->ThrowNewException(computed_throw_location, exception_descriptor, msg.str().c_str()); 63 self->ThrowNewException(*throw_location, exception_descriptor, msg.str().c_str()); 83 self->ThrowNewWrappedException(computed_throw_location, exception_descriptor, msg.str().c_str()); 85 self->ThrowNewWrappedException(*throw_location, exception_descriptor, msg.str().c_str()); 94 PrettyMethod(method).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 | oat_file.cc | 90 std::unique_ptr<File> file(OS::OpenFileForReading(filename.c_str())); 160 char* absolute_path = realpath(elf_filename.c_str(), NULL); 162 *error_msg = StringPrintf("Failed to find absolute path for '%s'", elf_filename.c_str()); 168 *error_msg = StringPrintf("Failed to dlopen '%s': %s", elf_filename.c_str(), dlerror()); 173 *error_msg = StringPrintf("Failed to find oatdata symbol in '%s': %s", elf_filename.c_str(), 186 *error_msg = StringPrintf("Failed to find oatlastword symbol in '%s': %s", elf_filename.c_str(), 212 *error_msg = StringPrintf("Failed to find oatdata symbol in '%s'", file->GetPath().c_str()); 224 *error_msg = StringPrintf("Failed to find oatlastword symbol in '%s'", file->GetPath().c_str()); 234 *error_msg = StringPrintf("Invalid oat magic for '%s'", GetLocation().c_str()); 240 *error_msg = StringPrintf("In oat file '%s' found truncated OatHeader", GetLocation().c_str()); [all...] |
H A D | dex_method_iterator_test.cc | 34 dex_files.push_back(LoadExpectSingleDexFile(GetDexFileName(jars[i]).c_str()));
|
H A D | reflection.cc | 218 PrettyDescriptor(found_descriptor).c_str()).c_str()); 238 PrettyMethod(mh.GetMethod(), false).c_str(), 240 PrettyDescriptor(dst_class).c_str(), 241 PrettyTypeOf(arg).c_str()).c_str()); 266 PrettyMethod(mh.GetMethod(), false).c_str(), \ 269 PrettyTypeOf(arg).c_str()).c_str()); \ 398 PrettyMethod(h_m.Get()).c_str()); [all...] |
H A D | zip_archive_test.cc | 35 std::unique_ptr<ZipArchive> zip_archive(ZipArchive::Open(GetLibCoreDexFileName().c_str(), &error_msg)); 52 int fd = open(tmp.GetFilename().c_str(), O_RDONLY);
|
H A D | elf_file.cc | 165 file_->GetPath().c_str(), file_->Fd(), strerror(errno)); 172 file_->GetPath().c_str()); 180 file_->GetPath().c_str(), error_msg), 189 sizeof(Elf32_Ehdr), file_->GetPath().c_str()); 193 file_->GetPath().c_str(), error_msg), 195 *error_msg = StringPrintf("Failed to map ELF program headers: %s", error_msg->c_str()); 201 file_->GetPath().c_str(), error_msg), 203 *error_msg = StringPrintf("Failed to map ELF file: %s", error_msg->c_str()); 224 file_->GetPath().c_str()); 232 file_->GetPath().c_str()); [all...] |
H A D | parsed_options.cc | 162 Usage("Unknown -Xgc option %s\n", gc_option.c_str()); 297 Usage("Missing required class path value for %s\n", option.c_str()); 316 UsageMessage(stderr, "Failed to parse JDWP option %s\n", tail.c_str()); 323 size_t size = ParseMemoryOption(option.substr(strlen("-Xms")).c_str(), 1024); 325 Usage("Failed to parse memory option %s\n", option.c_str()); 330 size_t size = ParseMemoryOption(option.substr(strlen("-Xmx")).c_str(), 1024); 332 Usage("Failed to parse memory option %s\n", option.c_str()); 337 size_t size = ParseMemoryOption(option.substr(strlen("-XX:HeapGrowthLimit=")).c_str(), 1024); 339 Usage("Failed to parse memory option %s\n", option.c_str()); 344 size_t size = ParseMemoryOption(option.substr(strlen("-XX:HeapMinFree=")).c_str(), 102 [all...] |
H A D | dex_file_test.cc | 169 std::unique_ptr<const DexFile> raw(OpenDexFileBase64(kRawDex, tmp.GetFilename().c_str())); 208 EXPECT_TRUE(DexFile::GetChecksum(GetLibCoreDexFileName().c_str(), &checksum, &error_msg)) 353 const char* dex_location = dex_location_str.c_str(); 361 UniqueCPtr<const char[]> dex_location_real(realpath(file.GetFilename().c_str(), nullptr)); 364 ASSERT_EQ(dex_location, DexFile::GetDexCanonicalLocation(dex_location.c_str())); 365 std::string multidex_location = DexFile::GetMultiDexClassesDexName(1, dex_location.c_str()); 366 ASSERT_EQ(multidex_location, DexFile::GetDexCanonicalLocation(multidex_location.c_str())); 369 ASSERT_EQ(0, symlink(dex_location.c_str(), dex_location_sym.c_str())); 371 ASSERT_EQ(dex_location, DexFile::GetDexCanonicalLocation(dex_location_sym.c_str())); [all...] |
/art/compiler/optimizing/ |
H A D | parallel_move_test.cc | 87 ASSERT_STREQ("(1 -> 2) (0 -> 1)", resolver.GetMessage().c_str()); 94 ASSERT_STREQ("(2 -> 3) (1 -> 2) (1 -> 4) (0 -> 1)", resolver.GetMessage().c_str()); 106 ASSERT_STREQ("(1 <-> 0)", resolver.GetMessage().c_str()); 113 ASSERT_STREQ("(1 -> 2) (1 <-> 0)", resolver.GetMessage().c_str()); 120 ASSERT_STREQ("(4 <-> 1) (3 <-> 4) (2 <-> 3) (0 -> 1)", resolver.GetMessage().c_str()); 127 ASSERT_STREQ("(4 <-> 1) (3 <-> 4) (2 <-> 3) (0 -> 1) (5 -> 4)", resolver.GetMessage().c_str());
|
/art/runtime/gc/space/ |
H A D | image_space.cc | 87 if (!OS::DirectoryExists(cache_dir_path.c_str())) { 90 DIR* cache_dir = opendir(cache_dir_path.c_str()); 112 if (TEMP_FAILURE_RETRY(unlink(cache_file.c_str())) != 0) { 128 if (OS::FileExists(boot_marker.c_str())) { 134 std::unique_ptr<File> f(OS::CreateEmptyFile(boot_marker.c_str())); 190 arg_vector.push_back(compiler_options[i].c_str()); 211 if (OS::FileExists(system_image_filename.c_str())) { 229 if (!GetDalvikCacheFilename(image_location, dalvik_cache.c_str(), cache_filename, &error_msg)) { 233 *has_cache = OS::FileExists(cache_filename->c_str()); 331 if (!ReadSpecificImageHeader(system_filename.c_str(), sys_hd [all...] |
/art/runtime/base/unix_file/ |
H A D | mapped_file_test.cc | 37 int fd = TEMP_FAILURE_RETRY(open(good_path_.c_str(), O_CREAT|O_RDWR, 0666)); 48 ASSERT_EQ(unlink(good_path_.c_str()), 0); 54 TEMP_FAILURE_RETRY(truncate(good_path_.c_str(), 0)); 108 EXPECT_EQ(0, memcmp(kContent.c_str(), file.data(), file.size())); 127 ASSERT_EQ(-1, unlink(new_path.c_str())); 136 memcpy(file.data(), kContent.c_str(), kContent.size()); 141 FdFile new_file(TEMP_FAILURE_RETRY(open(new_path.c_str(), O_RDONLY)), false); 145 EXPECT_EQ(0, unlink(new_path.c_str())); 212 TEMP_FAILURE_RETRY(unlink(good_path_.c_str())); 218 EXPECT_EQ(-EINVAL, file.Write(kContent.c_str(), [all...] |
/art/compiler/ |
H A D | image_test.cc | 51 std::string image_filename(GetSystemImageFilename(image_location.GetFilename().c_str(), 56 int mkdir_result = mkdir(image_dir.c_str(), 0700); 58 ScratchFile image_file(OS::CreateEmptyFile(image_filename.c_str())); 62 ScratchFile oat_file(OS::CreateEmptyFile(oat_filename.c_str())); 94 std::unique_ptr<File> dup_oat(OS::OpenFileReadWrite(oat_file.GetFilename().c_str())); 111 std::unique_ptr<File> file(OS::OpenFileForReading(image_file.GetFilename().c_str())); 144 std::unique_ptr<const DexFile> dex(LoadExpectSingleDexFile(GetLibCoreDexFileName().c_str())); 149 options.push_back(std::make_pair(image.c_str(), reinterpret_cast<void*>(NULL))); 192 int rmdir_result = rmdir(image_dir.c_str());
|
H A D | elf_writer_test.cc | 57 std::string elf_filename = GetSystemImageFilename(elf_location.c_str(), kRuntimeISA); 68 void* dl_oat_so = dlopen(elf_filename.c_str(), RTLD_NOW); 87 std::unique_ptr<File> file(OS::OpenFileForReading(elf_filename.c_str()));
|
/art/compiler/utils/ |
H A D | assembler_test.h | 468 std::remove(data_name.c_str()); 475 std::remove(data_name.c_str()); 476 std::remove((data_name + ".dis").c_str()); 477 std::remove(as_name.c_str()); 484 std::remove(data_name.c_str()); 485 std::remove(as_name.c_str()); 486 std::remove((data_name + ".dis").c_str()); 487 std::remove((as_name + ".dis").c_str()); 547 if (!Assemble((res->base_name + ".S").c_str(), (res->base_name + ".o").c_str(), [all...] |