/art/dex2oat/linker/ |
D | elf_writer_test.cc | 58 std::string elf_filename = GetSystemImageFilename(elf_location.c_str(), kRuntimeISA); in TEST_F() 66 std::unique_ptr<File> file(OS::OpenFileForReading(elf_filename.c_str())); in TEST_F() 125 std::string elf_filename = GetSystemImageFilename(elf_location.c_str(), kRuntimeISA); in TEST_F() 128 std::unique_ptr<File> file(OS::OpenFileForReading(elf_filename.c_str())); in TEST_F()
|
D | image_test.h | 132 const int rmdir_result = rmdir(image_dir.c_str()); in ~CompilationHelper() 139 std::unique_ptr<File> file(OS::OpenFileForReading(image_file.GetFilename().c_str())); in GetImageObjectSectionSizes() 184 std::string image_filename(GetSystemImageFilename(file.GetFilename().c_str(), kRuntimeISA)); in DoCompile() 190 int mkdir_result = mkdir(out_helper.image_dir.c_str(), 0700); in DoCompile() 193 out_helper.image_files.push_back(ScratchFile(OS::CreateEmptyFile(image_filename.c_str()))); in DoCompile() 200 out_helper.oat_files.push_back(ScratchFile(OS::CreateEmptyFile(oat_filename.c_str()))); in DoCompile() 203 out_helper.vdex_files.push_back(ScratchFile(OS::CreateEmptyFile(vdex_filename.c_str()))); in DoCompile() 253 dex_file->GetLocation().c_str(), in DoCompile() 348 const char* oat_filename = oat_filenames[i].c_str(); in DoCompile() 379 helper.extra_dex_files = OpenTestDexFiles(extra_dex.c_str()); in Compile() [all …]
|
/art/compiler/utils/ |
D | assembler_test_base.h | 62 if (!OS::FileExists(cmd.c_str())) { in CheckTools() 86 ASSERT_TRUE(Assemble(ref_asm_file.c_str(), ref_obj_file.c_str())); in Driver() 134 return CommonArtTest::GetAndroidTool(tool_name.c_str(), GetIsa()); in FindTool() 182 std::unique_ptr<File> file(OS::OpenFileForReading(filename.c_str())); in ReadFile() 191 std::unique_ptr<File> file(OS::CreateEmptyFile(filename.c_str())); in WriteFile() 213 std::unique_ptr<File> file(OS::CreateEmptyFile(filename.c_str())); in WriteElf()
|
/art/dalvikvm/ |
D | dalvikvm.cc | 75 ScopedLocalRef<jclass> klass(env, env->FindClass(class_name.c_str())); in InvokeMain() 77 fprintf(stderr, "Unable to locate class '%s'\n", class_name.c_str()); in InvokeMain() 84 fprintf(stderr, "Unable to find static main(String[]) in '%s'\n", class_name.c_str()); in InvokeMain() 92 fprintf(stderr, "Sorry, main() is not public in '%s'\n", class_name.c_str()); in InvokeMain()
|
/art/runtime/gc/space/ |
D | image_space.cc | 197 arg_vector.push_back(compiler_options[i].c_str()); in GenerateImage() 221 if (OS::FileExists(system_image_filename.c_str())) { in FindImageFilenameImpl() 244 dalvik_cache->c_str(), in FindImageFilenameImpl() 250 *has_cache = OS::FileExists(cache_filename->c_str()); in FindImageFilenameImpl() 312 if (access(dalvik_cache.c_str(), O_RDWR) == 0) { in CanWriteToDalvikCache() 942 *error_msg = StringPrintf("Failed to map image bitmap: %s", error_msg->c_str()); in Init() 963 *error_msg = StringPrintf("Could not create bitmap '%s'", bitmap_name.c_str()); in Init() 983 space.GetImageFilename().c_str(), in CheckImageComponentCount() 997 space.GetImageFilename().c_str(), in CheckImageReservationSize() 1610 std::string(*oat_checksums).c_str(), in CheckAndRemoveImageChecksum() [all …]
|
/art/runtime/native/ |
D | java_lang_reflect_Field.cc | 51 PrettyJavaAccessFlags(field->GetAccessFlags()).c_str(), in VerifyFieldAccess() 52 ArtField::PrettyField(field->GetArtField()).c_str(), in VerifyFieldAccess() 54 field->GetDeclaringClass()->PrettyClass().c_str()).c_str()); in VerifyFieldAccess() 66 calling_class == nullptr ? "null" : calling_class->PrettyClass().c_str(), in VerifyFieldAccess() 67 PrettyJavaAccessFlags(field->GetAccessFlags()).c_str(), in VerifyFieldAccess() 68 ArtField::PrettyField(field->GetArtField()).c_str(), in VerifyFieldAccess() 70 field->GetDeclaringClass()->PrettyClass().c_str()).c_str()); in VerifyFieldAccess() 120 ArtField::PrettyField(f->GetArtField()).c_str()).c_str()); in GetFieldValue() 324 ArtField::PrettyField(f->GetArtField()).c_str()).c_str()); in SetFieldValue() 382 ArtField::PrettyField(f->GetArtField()).c_str()).c_str()); in SetPrimitiveField()
|
D | dalvik_system_VMDebug.cc | 145 if (traceFilename.c_str() == nullptr) { in VMDebug_startMethodTracingFilename() 148 Trace::Start(traceFilename.c_str(), in VMDebug_startMethodTracingFilename() 254 filename = chars.c_str(); in VMDebug_dumpHprofData() 261 hprof::DumpHeap(filename.c_str(), fd, false); in VMDebug_dumpHprofData() 462 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal() 466 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal() 470 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal() 474 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal() 478 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal() 482 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal() [all …]
|
D | java_lang_reflect_Constructor.cc | 72 c->PrettyDescriptor().c_str()); in Constructor_newInstance0() 91 c->PrettyClass().c_str(), in Constructor_newInstance0() 92 caller->PrettyClass().c_str()); in Constructor_newInstance0()
|
D | java_lang_reflect_Parameter.cc | 56 method->PrettyMethod().c_str(), in Parameter_getAnnotationNative() 57 parameter_count).c_str()); in Parameter_getAnnotationNative()
|
/art/compiler/ |
D | exception_test.cc | 225 trace_array->Get(0)->GetDeclaringClass()->ToModifiedUtf8().c_str()); in TEST_F() 227 trace_array->Get(0)->GetFileName()->ToModifiedUtf8().c_str()); in TEST_F() 228 EXPECT_STREQ("g", trace_array->Get(0)->GetMethodName()->ToModifiedUtf8().c_str()); in TEST_F() 233 trace_array->Get(1)->GetDeclaringClass()->ToModifiedUtf8().c_str()); in TEST_F() 235 trace_array->Get(1)->GetFileName()->ToModifiedUtf8().c_str()); in TEST_F() 236 EXPECT_STREQ("f", trace_array->Get(1)->GetMethodName()->ToModifiedUtf8().c_str()); in TEST_F()
|
/art/runtime/ |
D | vdex_file.cc | 106 ScopedTrace trace(("VdexFile::OpenAtAddress " + vdex_filename).c_str()); in OpenAtAddress() 107 if (!OS::FileExists(vdex_filename.c_str())) { in OpenAtAddress() 114 vdex_file.reset(OS::OpenFileReadWrite(vdex_filename.c_str())); in OpenAtAddress() 116 vdex_file.reset(OS::OpenFileForReading(vdex_filename.c_str())); in OpenAtAddress() 168 vdex_filename.c_str(), in OpenAtAddress() 380 if (OS::DirectoryExists(parent_path.c_str())) { in CreateDirectories() 383 if (mkdir(parent_path.c_str(), 0700) == 0) { in CreateDirectories() 414 std::unique_ptr<File> out(OS::CreateEmptyFileWriteOnly(path.c_str())); in WriteToDisk() 444 if (!out->WriteFully(boot_checksum.c_str(), boot_checksum.size())) { in WriteToDisk() 450 if (!out->WriteFully(class_loader_context.c_str(), class_loader_context.size())) { in WriteToDisk()
|
D | compiler_filter_test.cc | 25 EXPECT_TRUE(CompilerFilter::ParseCompilerFilter(name.c_str(), &parsed)); in TestCompilerFilterName() 33 EXPECT_TRUE(CompilerFilter::ParseCompilerFilter(name.c_str(), &parsed)); in TestSafeModeFilter()
|
/art/libdexfile/dex/ |
D | dex_file_loader.cc | 196 UniqueCPtr<const char[]> path(realpath(base_location.c_str(), nullptr)); in GetDexCanonicalLocation() 365 *error_msg = StringPrintf("Failed to open dex file '%s' from memory: %s", location.c_str(), in OpenCommon() 366 error_msg->c_str()); in OpenCommon() 376 location.c_str(), in OpenCommon() 405 *error_msg = StringPrintf("Dex file '%s' has zero length", location.c_str()); in OpenOneDexFileFromZip() 412 *error_msg = StringPrintf("Failed to extract '%s' from '%s': %s", entry_name, location.c_str(), in OpenOneDexFileFromZip() 413 error_msg->c_str()); in OpenOneDexFileFromZip() 480 std::string fake_location = GetMultiDexLocation(i, location.c_str()); in OpenAllDexFilesFromZip() 482 name.c_str(), in OpenAllDexFilesFromZip()
|
/art/test/927-timers/ |
D | timers.cc | 66 return env->NewStringUTF(android::base::StringPrintf("%" PRId64, info.max_value).c_str()); in Java_art_Test927_getTimerInfo() 78 android::base::StringPrintf("%d", static_cast<jint>(info.kind)).c_str()); in Java_art_Test927_getTimerInfo()
|
/art/libartbase/base/ |
D | zip_archive_test.cc | 36 …std::unique_ptr<ZipArchive> zip_archive(ZipArchive::Open(GetLibCoreDexFileNames()[0].c_str(), &err… in TEST_F() 53 int fd = open(tmp.GetFilename().c_str(), O_RDONLY | O_CLOEXEC); in TEST_F()
|
D | utils.cc | 304 *utime = strtoull(fields[11].c_str(), nullptr, 10); in GetTaskStats() 305 *stime = strtoull(fields[12].c_str(), nullptr, 10); in GetTaskStats() 306 *task_cpu = strtoull(fields[36].c_str(), nullptr, 10); in GetTaskStats() 325 if (strncmp(pattern.c_str(), line.c_str(), pattern.size()) == 0) { in GetProcessStatus()
|
/art/test/ti-agent/ |
D | jni_binder.cc | 35 size_t char_count = ti::CountModifiedUtf8Chars(s.c_str(), s.length()); in MangleForJni() 108 void* sym = dlsym(RTLD_DEFAULT, mangled_name.c_str()); in BindMethod() 115 native_method.name = name.c_str(); in BindMethod() 116 native_method.signature = signature.c_str(); in BindMethod() 158 std::string dot_name = DescriptorToDot(descriptor.c_str()); in FindClassWithClassLoader() 159 ScopedLocalRef<jstring> name_str(env, env->NewStringUTF(dot_name.c_str())); in FindClassWithClassLoader()
|
/art/runtime/interpreter/ |
D | lock_count_data.cc | 66 const_cast<mirror::Object*>(obj)->PrettyTypeOf().c_str()); in RemoveMonitorOrThrow() 100 mirror::Object::PrettyTypeOf(first).c_str()); in CheckAllMonitorsReleasedOrThrow()
|
D | unstarted_runtime.cc | 135 std::string descriptor(DotToDescriptor(className->ToModifiedUtf8().c_str())); in UnstartedRuntimeFindClass() 138 ObjPtr<mirror::Class> found = class_linker->FindClass(self, descriptor.c_str(), class_loader); in UnstartedRuntimeFindClass() 142 method_name.c_str(), in UnstartedRuntimeFindClass() 143 PrettyDescriptor(descriptor.c_str()).c_str()); in UnstartedRuntimeFindClass() 231 mirror::Object::PrettyTypeOf(class_loader).c_str()); in UnstartedClassForNameCommon() 265 self->GetException()->GetDetailMessage()->ToModifiedUtf8().c_str()); in UnstartedClassGetPrimitiveClass() 296 h_klass->PrettyClass().c_str()); in UnstartedClassNewInstance() 323 h_klass->PrettyClass().c_str()); in UnstartedClassNewInstance() 328 h_klass->PrettyClass().c_str(), in UnstartedClassNewInstance() 329 mirror::Object::PrettyTypeOf(self->GetException()).c_str()); in UnstartedClassNewInstance() [all …]
|
/art/compiler/jit/ |
D | jit_logger.cc | 45 perf_file_.reset(OS::CreateEmptyFileWriteOnly(perf_filename.c_str())); in OpenPerfMapLog() 65 bool res = perf_file_->WriteFully(str.c_str(), str.size()); in WritePerfMapLog() 253 jit_dump_file_.reset(OS::CreateEmptyFile(jitdump_filename.c_str())); in OpenJitDumpLog() 292 UNUSED(jit_dump_file_->WriteFully(method_name.c_str(), method_name.size() + 1)); in WriteJitDumpLog()
|
/art/test/904-object-allocation/ |
D | tracking.cc | 46 return utf_chars.c_str(); in GetClassName() 141 object_klass_descriptor.c_str(), in Java_art_Test904_getTrackingEventMessages() 142 object_klass_descriptor2.c_str(), in Java_art_Test904_getTrackingEventMessages() 155 return env->NewStringUTF(real_events[i].c_str()); in Java_art_Test904_getTrackingEventMessages()
|
/art/dex2oat/ |
D | dex2oat.cc | 222 UsageError("Command: %s", CommandLine().c_str()); in Usage() 646 LogHelper::LogLineLowStack(__FILE__, __LINE__, LogSeverity::FATAL, message.c_str()); in Fatal() 871 image_base_ = strtoul(option.c_str(), &end, 16); in ParseBase() 872 if (end == option.c_str() || *end != '\0') { in ParseBase() 885 Usage("%s", parser_options->error_msg.c_str()); in ParseInstructionSetVariant() 895 parser_options->error_msg.c_str()); in ParseInstructionSetFeatures() 902 Usage("Error parsing '%s': %s", option.c_str(), parser_options->error_msg.c_str()); in ParseInstructionSetFeatures() 1075 parser_options->error_msg.c_str()); in ProcessOptions() 1160 boot_image_filename_.c_str()); in ProcessOptions() 1179 Usage("Unusable boot image filename %s", image_filenames_[0].c_str()); in ExpandOatAndImageFilenames() [all …]
|
/art/dexlayout/ |
D | dexlayout_test.cc | 264 EXPECT_TRUE(OS::FileExists(dexdump.c_str())) << dexdump << " should be a valid file path"; in FullPlainOutputExec() 321 EXPECT_EQ(rmdir(unzip_dir.c_str()), 0); in DexFileOutputExec() 332 bool result = dex_file_loader.Open(input_dex.c_str(), in CreateProfile() 372 std::unique_ptr<File> file(OS::CreateEmptyFile(out_profile.c_str())); in CreateProfile() 391 WriteFileBase64(kDexFileLayoutInputDex, dex_file.c_str()); in DexFileLayoutExec() 483 WriteFileBase64(filename, input_dex.c_str()); in UnreferencedCatchHandlerExec() 533 CHECK(OS::FileExists(dexlayout.c_str())) << dexlayout << " should be a valid file path"; in DexLayoutExec() 777 CHECK(dex_file_loader.Open(input_jar.c_str(), in TEST_F() 778 input_jar.c_str(), in TEST_F() 799 dex_file->GetLocation().c_str(), in TEST_F() [all …]
|
D | dex_visualize.cc | 56 out_file_ = fopen(MultidexName("layout", dex_index, ".gnuplot").c_str(), "we"); in OpenAndPrintHeader() 61 fprintf(out_file_, "set output \"%s\"\n", MultidexName("layout", dex_index, ".png").c_str()); in OpenAndPrintHeader() 62 fprintf(out_file_, "set title \"%s\"\n", MultidexName("classes", dex_index, ".dex").c_str()); in OpenAndPrintHeader() 73 fprintf(out_file_, "\"%s\" %d", s.name.c_str(), s.offset / kPageSize); in OpenAndPrintHeader() 322 MultidexName("classes", dex_file_index, ".dex").c_str(), in ShowDexSectionStatistics() 335 file_section.name.c_str(), in ShowDexSectionStatistics()
|
/art/oatdump/ |
D | oatdump_test.h | 46 core_oat_location_ = GetSystemImageFilename(GetCoreOatLocation().c_str(), kRuntimeISA); in SetUp() 51 ClearDirectory(tmp_dir_.c_str(), /*recursive*/ false); in TearDown() 52 ASSERT_EQ(rmdir(tmp_dir_.c_str()), 0); in TearDown() 146 "--dex-file=" + GetTestDexFileName(GetAppBaseName().c_str()), in GenerateAppOdexFile() 176 if (!OS::FileExists(file_path.c_str())) { 249 memcmp(line, expected.c_str(), expected.length()) == 0) {
|