Home
last modified time | relevance | path

Searched refs:c_str (Results 1 – 25 of 162) sorted by relevance

1234567

/art/runtime/native/
Djava_lang_VMClassLoader.cc34 if (name.c_str() == nullptr) { in VMClassLoader_findLoadedClass()
38 std::string descriptor(DotToDescriptor(name.c_str())); in VMClassLoader_findLoadedClass()
39 const size_t descriptor_hash = ComputeModifiedUtf8Hash(descriptor.c_str()); in VMClassLoader_findLoadedClass()
40 mirror::Class* c = cl->LookupClass(soa.Self(), descriptor.c_str(), descriptor_hash, loader); in VMClassLoader_findLoadedClass()
47 cl->FindClassInPathClassLoader(soa, soa.Self(), descriptor.c_str(), descriptor_hash, in VMClassLoader_findLoadedClass()
78 if (name.c_str() == nullptr) { in VMClassLoader_getBootClassPathResource()
93 std::unique_ptr<ZipArchive> zip_archive(ZipArchive::Open(location.c_str(), &error_msg)); in VMClassLoader_getBootClassPathResource()
98 std::unique_ptr<ZipEntry> zip_entry(zip_archive->Find(name.c_str(), &error_msg)); in VMClassLoader_getBootClassPathResource()
104 StringAppendF(&url, "jar:file://%s!/%s", location.c_str(), name.c_str()); in VMClassLoader_getBootClassPathResource()
105 return env->NewStringUTF(url.c_str()); in VMClassLoader_getBootClassPathResource()
Ddalvik_system_DexFile.cc129 const char* c_str() const { in c_str() function in art::NullableScopedUtfChars
155 if (sourceName.c_str() == nullptr) { in DexFile_openDexFileNative()
167 dex_files = linker->OpenDexFilesFromOat(sourceName.c_str(), outputName.c_str(), &error_msgs); in DexFile_openDexFileNative()
188 ThrowWrappedIOException("%s", it->c_str()); in DexFile_openDexFileNative()
228 if (class_name.c_str() == nullptr) { in DexFile_defineClassNative()
232 const std::string descriptor(DotToDescriptor(class_name.c_str())); in DexFile_defineClassNative()
233 const size_t hash(ComputeModifiedUtf8Hash(descriptor.c_str())); in DexFile_defineClassNative()
235 const DexFile::ClassDef* dex_class_def = dex_file->FindClassDef(descriptor.c_str(), hash); in DexFile_defineClassNative()
243 mirror::Class* result = class_linker->DefineClass(soa.Self(), descriptor.c_str(), hash, in DexFile_defineClassNative()
247 << " for " << class_name.c_str(); in DexFile_defineClassNative()
[all …]
Djava_lang_Runtime.cc59 if (ldLibraryPath.c_str() != nullptr) { in SetLdLibraryPath()
60 android_update_LD_LIBRARY_PATH(ldLibraryPath.c_str()); in SetLdLibraryPath()
73 if (filename.c_str() == nullptr) { in Runtime_nativeLoad()
82 bool success = vm->LoadNativeLibrary(env, filename.c_str(), javaLoader, &error_msg); in Runtime_nativeLoad()
90 return env->NewStringUTF(error_msg.c_str()); in Runtime_nativeLoad()
Ddalvik_system_VMDebug.cc108 if (traceFilename.c_str() == nullptr) { in VMDebug_startMethodTracingFd()
111 Trace::Start(traceFilename.c_str(), fd, bufferSize, flags, Trace::TraceOutputMode::kFile, in VMDebug_startMethodTracingFd()
120 if (traceFilename.c_str() == nullptr) { in VMDebug_startMethodTracingFilename()
123 Trace::Start(traceFilename.c_str(), -1, bufferSize, flags, Trace::TraceOutputMode::kFile, in VMDebug_startMethodTracingFilename()
217 filename = chars.c_str(); in VMDebug_dumpHprofData()
232 hprof::DumpHeap(filename.c_str(), fd, false); in VMDebug_dumpHprofData()
354 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal()
358 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal()
362 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal()
366 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal()
[all …]
Djava_lang_reflect_Field.cc39 PrettyJavaAccessFlags(field->GetAccessFlags()).c_str(), in VerifyFieldAccess()
40 PrettyField(field->GetArtField()).c_str(), in VerifyFieldAccess()
42 PrettyClass(field->GetDeclaringClass()).c_str()).c_str()); in VerifyFieldAccess()
50 calling_class == nullptr ? "null" : PrettyClass(calling_class).c_str(), in VerifyFieldAccess()
51 PrettyJavaAccessFlags(field->GetAccessFlags()).c_str(), in VerifyFieldAccess()
52 PrettyField(field->GetArtField()).c_str(), in VerifyFieldAccess()
54 PrettyClass(field->GetDeclaringClass()).c_str()).c_str()); in VerifyFieldAccess()
101 StringPrintf("Not a primitive field: %s", PrettyField(f->GetArtField()).c_str()).c_str()); in GetFieldValue()
298 PrettyField(f->GetArtField()).c_str()).c_str()); in SetFieldValue()
349 PrettyField(f->GetArtField()).c_str()).c_str()); in SetPrimitiveField()
/art/compiler/optimizing/
Dparallel_move_test.cc191 ASSERT_STREQ("(1 -> 2) (0 -> 1)", resolver.GetMessage().c_str()); in TYPED_TEST()
193 ASSERT_STREQ("(1 -> 2) (0 -> 1)", resolver.GetMessage().c_str()); in TYPED_TEST()
202 ASSERT_STREQ("(2 -> 3) (1 -> 2) (1 -> 4) (0 -> 1)", resolver.GetMessage().c_str()); in TYPED_TEST()
204 ASSERT_STREQ("(2 -> 3) (1 -> 2) (0 -> 1) (2 -> 4)", resolver.GetMessage().c_str()); in TYPED_TEST()
218 ASSERT_STREQ("(1 <-> 0)", resolver.GetMessage().c_str()); in TYPED_TEST()
220 ASSERT_STREQ("(1 -> T0) (0 -> 1) (T0 -> 0)", resolver.GetMessage().c_str()); in TYPED_TEST()
229 ASSERT_STREQ("(1 -> 2) (1 <-> 0)", resolver.GetMessage().c_str()); in TYPED_TEST()
231 ASSERT_STREQ("(1 -> 2) (0 -> 1) (2 -> 0)", resolver.GetMessage().c_str()); in TYPED_TEST()
240 ASSERT_STREQ("(0 -> 2) (1 <-> 0)", resolver.GetMessage().c_str()); in TYPED_TEST()
242 ASSERT_STREQ("(0 -> 2) (1 -> 0) (2 -> 1)", resolver.GetMessage().c_str()); in TYPED_TEST()
[all …]
/art/runtime/
Doat_file_assistant_test.cc49 ASSERT_EQ(0, mkdir(scratch_dir_.c_str(), 0700)); in SetUp()
53 ASSERT_EQ(0, mkdir(odex_oat_dir_.c_str(), 0700)); in SetUp()
56 ASSERT_EQ(0, mkdir(odex_dir_.c_str(), 0700)); in SetUp()
62 ASSERT_TRUE(OS::FileExists(GetImageFile().c_str())) in SetUp()
64 ASSERT_TRUE(OS::FileExists(GetDexSrc1().c_str())) in SetUp()
66 ASSERT_TRUE(OS::FileExists(GetStrippedDexSrc1().c_str())) in SetUp()
68 ASSERT_FALSE(DexFile::GetChecksum(GetStrippedDexSrc1().c_str(), &checksum, &error_msg)) in SetUp()
70 ASSERT_TRUE(OS::FileExists(GetDexSrc2().c_str())) in SetUp()
76 ASSERT_TRUE(DexFile::Open(GetMultiDexSrc1().c_str(), in SetUp()
77 GetMultiDexSrc1().c_str(), &error_msg, &multi1)) << error_msg; in SetUp()
[all …]
Dcommon_throws.cc60 self->ThrowNewException(exception_descriptor, msg.str().c_str()); in ThrowException()
76 self->ThrowNewWrappedException(exception_descriptor, msg.str().c_str()); in ThrowWrappedException()
84 PrettyMethod(method).c_str()).c_str()); in ThrowAbstractMethodError()
97 StringPrintf("length=%d; index=%d", length, index).c_str()); in ThrowArrayIndexOutOfBoundsException()
105 PrettyDescriptor(element_class).c_str(), in ThrowArrayStoreException()
106 PrettyDescriptor(array_class).c_str()).c_str()); in ThrowArrayStoreException()
114 PrettyDescriptor(src_type).c_str(), in ThrowClassCastException()
115 PrettyDescriptor(dest_type).c_str()).c_str()); in ThrowClassCastException()
127 ThrowException("Ljava/lang/ClassCircularityError;", c, msg.str().c_str()); in ThrowClassCircularityError()
144 ThrowException("Ljava/lang/IllegalAccessError;", referrer, msg.str().c_str()); in ThrowIllegalAccessErrorClass()
[all …]
Doat_file.cc142 std::unique_ptr<File> file(OS::OpenFileForReading(filename.c_str())); in Open()
226 std::unique_ptr<char> absolute_path(realpath(elf_filename.c_str(), nullptr)); in Dlopen()
228 *error_msg = StringPrintf("Failed to find absolute path for '%s'", elf_filename.c_str()); in Dlopen()
239 *error_msg = StringPrintf("Failed to dlopen '%s': %s", elf_filename.c_str(), dlerror()); in Dlopen()
244 *error_msg = StringPrintf("Failed to find oatdata symbol in '%s': %s", elf_filename.c_str(), in Dlopen()
252 begin_, requested_base, elf_filename.c_str()); in Dlopen()
257 *error_msg = StringPrintf("Failed to find oatlastword symbol in '%s': %s", elf_filename.c_str(), in Dlopen()
273 elf_filename.c_str()); in Dlopen()
343 *error_msg = StringPrintf("Failed to find oatdata symbol in '%s'", file->GetPath().c_str()); in ElfFileOpen()
355 *error_msg = StringPrintf("Failed to find oatlastword symbol in '%s'", file->GetPath().c_str()); in ElfFileOpen()
[all …]
Delf_file.cc178 file_->GetPath().c_str(), file_->Fd(), strerror(errno)); in Setup()
185 file_->GetPath().c_str()); in Setup()
193 file_->GetPath().c_str(), error_msg), in Setup()
202 sizeof(Elf_Ehdr), file_->GetPath().c_str()); in Setup()
206 file_->GetPath().c_str(), error_msg), in Setup()
208 *error_msg = StringPrintf("Failed to map ELF program headers: %s", error_msg->c_str()); in Setup()
214 file_->GetPath().c_str(), error_msg), in Setup()
216 *error_msg = StringPrintf("Failed to map ELF file: %s", error_msg->c_str()); in Setup()
237 file_->GetPath().c_str()); in Setup()
245 file_->GetPath().c_str()); in Setup()
[all …]
Dreflection-inl.h93 PrettyDescriptor(srcType).c_str(), in ConvertPrimitiveValue()
94 PrettyDescriptor(dstType).c_str()).c_str()); in ConvertPrimitiveValue()
97 PrettyDescriptor(srcType).c_str(), in ConvertPrimitiveValue()
98 PrettyDescriptor(dstType).c_str()).c_str()); in ConvertPrimitiveValue()
Dreflection.cc212 PrettyDescriptor(found_descriptor).c_str()).c_str()); in ThrowIllegalPrimitiveArgumentException()
231 PrettyMethod(m, false).c_str(), in BuildArgArrayFromObjectArray()
233 PrettyDescriptor(dst_class).c_str(), in BuildArgArrayFromObjectArray()
234 PrettyTypeOf(arg).c_str()).c_str()); in BuildArgArrayFromObjectArray()
259 PrettyMethod(m, false).c_str(), \ in BuildArgArrayFromObjectArray()
262 PrettyTypeOf(arg).c_str()).c_str()); \ in BuildArgArrayFromObjectArray()
416 PrettyMethod(m).c_str()); in CheckMethodArguments()
612 classes_size, arg_count).c_str()); in InvokeMethod()
622 calling_class == nullptr ? "null" : PrettyClass(calling_class).c_str(), in InvokeMethod()
623 PrettyJavaAccessFlags(m->GetAccessFlags()).c_str(), in InvokeMethod()
[all …]
Dcommon_runtime_test.cc81 int fd = open(filename_.c_str(), O_RDWR | O_CREAT, 0666); in ScratchFile()
109 if (!OS::FileExists(filename_.c_str())) { in Unlink()
113 int unlink_result = unlink(filename_.c_str()); in Unlink()
156 setenv("ANDROID_ROOT", root.c_str(), 1); in SetUpAndroidRoot()
184 setenv("ANDROID_DATA", android_data.c_str(), 1); in SetUpAndroidData()
189 ASSERT_EQ(rmdir(android_data.c_str()), 0); in TearDownAndroidData()
191 rmdir(android_data.c_str()); in TearDownAndroidData()
215 if ((dir = opendir(toolsdir.c_str())) != nullptr) { in GetAndroidToolsDir()
221 if (std::sscanf(entry->d_name, format.c_str(), &version) == 1) { in GetAndroidToolsDir()
295 dalvik_cache_.append(android_data_.c_str()); in SetUp()
[all …]
Dprofiler.cc272 int fd = open(full_name.c_str(), O_RDWR); in WriteProfile()
297 const char *p = data.c_str(); in WriteProfile()
597 os << StringPrintf("%s/%u/%u\n", method_name.c_str(), count, method_size); in Write()
624 … PrettyMethod(current->GetMethod().dex_method_index, *(current->GetMethod().dex_file)).c_str(), in Write()
655 context_i.second, context_i.first.second.c_str())); in Write()
657 os << StringPrintf("%s/%u/%u/[%s]\n", method_name.c_str(), total_count, in Write()
658 method_size, Join(context_count_vector, '#').c_str()); in Write()
667 os << StringPrintf("%s/%u/%u\n", pi.first.c_str(), pi.second.count_, pi.second.method_size_); in Write()
669 os << StringPrintf("%s/%u/%u/[", pi.first.c_str(), pi.second.count_, pi.second.method_size_); in Write()
675 context_i.second, context_i.first.second.c_str())); in Write()
[all …]
Ddex_file_test.cc170 std::unique_ptr<const DexFile> raw(OpenDexFileBase64(kRawDex, tmp.GetFilename().c_str())); in TEST_F()
209 EXPECT_TRUE(DexFile::GetChecksum(GetLibCoreDexFileName().c_str(), &checksum, &error_msg)) in TEST_F()
361 const char* dex_location = dex_location_str.c_str(); in TEST_F()
371 UniqueCPtr<const char[]> dex_location_real(realpath(file.GetFilename().c_str(), nullptr)); in TEST_F()
374 ASSERT_EQ(dex_location, DexFile::GetDexCanonicalLocation(dex_location.c_str())); in TEST_F()
375 std::string multidex_location = DexFile::GetMultiDexLocation(1, dex_location.c_str()); in TEST_F()
376 ASSERT_EQ(multidex_location, DexFile::GetDexCanonicalLocation(multidex_location.c_str())); in TEST_F()
379 ASSERT_EQ(0, symlink(dex_location.c_str(), dex_location_sym.c_str())); in TEST_F()
381 ASSERT_EQ(dex_location, DexFile::GetDexCanonicalLocation(dex_location_sym.c_str())); in TEST_F()
383 std::string multidex_location_sym = DexFile::GetMultiDexLocation(1, dex_location_sym.c_str()); in TEST_F()
[all …]
Dutils_test.cc326 GetDalvikCacheFilenameOrDie("/system/app/Foo.apk", "/foo").c_str()); in TEST_F()
329 GetDalvikCacheFilenameOrDie("/data/app/foo-1.apk", "/foo").c_str()); in TEST_F()
331 GetDalvikCacheFilenameOrDie("/system/framework/core.jar", "/foo").c_str()); in TEST_F()
333 GetDalvikCacheFilenameOrDie("/system/framework/boot.art", "/foo").c_str()); in TEST_F()
335 GetDalvikCacheFilenameOrDie("/system/framework/boot.oat", "/foo").c_str()); in TEST_F()
339 EXPECT_STREQ("", GetDalvikCache("should-not-exist123", false).c_str()); in TEST_F()
341 EXPECT_STREQ((android_data_ + "/dalvik-cache/.").c_str(), GetDalvikCache(".", false).c_str()); in TEST_F()
342 EXPECT_STREQ((android_data_ + "/dalvik-cache/should-not-be-there").c_str(), in TEST_F()
343 GetDalvikCache("should-not-be-there", true).c_str()); in TEST_F()
349 GetSystemImageFilename("/system/framework/boot.art", kArm).c_str()); in TEST_F()
/art/runtime/gc/space/
Dimage_space.cc91 if (!OS::DirectoryExists(cache_dir_path.c_str())) { in RealPruneDalvikCache()
94 DIR* cache_dir = opendir(cache_dir_path.c_str()); in RealPruneDalvikCache()
116 if (TEMP_FAILURE_RETRY(unlink(cache_file.c_str())) != 0) { in RealPruneDalvikCache()
131 const char* file_name = boot_marker.c_str(); in MarkZygoteStart()
226 arg_vector.push_back(compiler_options[i].c_str()); in GenerateImage()
247 if (OS::FileExists(system_image_filename.c_str())) { in FindImageFilename()
265 if (!GetDalvikCacheFilename(image_location, dalvik_cache.c_str(), cache_filename, &error_msg)) { in FindImageFilename()
269 *has_cache = OS::FileExists(cache_filename->c_str()); in FindImageFilename()
367 if (!ReadSpecificImageHeader(system_filename.c_str(), sys_hdr.get())) { in ReadImageHeader()
369 image_location, system_filename.c_str()); in ReadImageHeader()
[all …]
/art/cmdline/
Dcmdline.h47 std::string system_filename(GetSystemImageFilename(location.c_str(), isa)); in LocationToFilename()
48 if (OS::FileExists(system_filename.c_str())) { in LocationToFilename()
67 if (GetDalvikCacheFilename(location.c_str(), dalvik_cache.c_str(), in LocationToFilename()
100 options.push_back(std::make_pair(boot_image_option.c_str(), nullptr)); in StartRuntime()
153 const char* filename = output_name_.c_str(); in Parse()
169 fprintf(stderr, "%s\n", error_msg.c_str()); in Parse()
181 fprintf(stderr, "%s\n", error_msg.c_str()); in Parse()
256 if (GetInstructionSetFromString(parent_dir_name.c_str()) != kNone) { in ParseCheckBootImage()
266 file_name.c_str()); in ParseCheckBootImage()
277 fprintf(stderr, "%s", GetUsage().c_str()); in PrintUsage()
[all …]
/art/runtime/base/
Dhex_dump_test.cc37 EXPECT_STREQ(oss.str().c_str(), in TEST()
46 EXPECT_STREQ(oss.str().c_str(), in TEST()
59 EXPECT_STREQ(oss.str().c_str() + (kBitsPerIntPtrT / 4), in TEST()
67 EXPECT_STREQ(oss.str().c_str(), in TEST()
Dstringprintf_test.cc25 EXPECT_STREQ("00107e59", StringPrintf("%08zx", size).c_str()); in TEST()
26 EXPECT_STREQ("0x00107e59", StringPrintf("0x%08zx", size).c_str()); in TEST()
/art/runtime/arch/x86/
Dinstruction_set_features_x86_test.cc30 EXPECT_STREQ("smp,-ssse3,-sse4.1,-sse4.2,-avx,-avx2", x86_features->GetFeatureString().c_str()); in TEST()
42 EXPECT_STREQ("smp,ssse3,-sse4.1,-sse4.2,-avx,-avx2", x86_features->GetFeatureString().c_str()); in TEST()
52 x86_default_features->GetFeatureString().c_str()); in TEST()
62 x86_64_features->GetFeatureString().c_str()); in TEST()
78 EXPECT_STREQ("smp,ssse3,sse4.1,sse4.2,-avx,-avx2", x86_features->GetFeatureString().c_str()); in TEST()
88 x86_default_features->GetFeatureString().c_str()); in TEST()
98 x86_64_features->GetFeatureString().c_str()); in TEST()
/art/compiler/utils/
Dassembler_test_base.h290 std::remove(data_name.c_str()); in DisassembleBinaries()
297 std::remove(data_name.c_str()); in DisassembleBinaries()
298 std::remove((data_name + ".dis").c_str()); in DisassembleBinaries()
299 std::remove(as_name.c_str()); in DisassembleBinaries()
306 std::remove(data_name.c_str()); in DisassembleBinaries()
307 std::remove(as_name.c_str()); in DisassembleBinaries()
308 std::remove((data_name + ".dis").c_str()); in DisassembleBinaries()
309 std::remove((as_name + ".dis").c_str()); in DisassembleBinaries()
375 if (!Assemble((res->base_name + ".S").c_str(), (res->base_name + ".o").c_str(), in Compile()
421 std::remove((res->base_name + ".S").c_str()); in Clean()
[all …]
Dtest_dex_file_builder_test.cc35 EXPECT_STREQ(dex_location, dex_file->GetLocation().c_str()); in TEST()
69 EXPECT_STREQ("[I TestClass.intField", PrettyField(0u, *dex_file).c_str()); in TEST()
74 PrettyMethod(0u, *dex_file).c_str()); in TEST()
76 PrettyMethod(1u, *dex_file).c_str()); in TEST()
/art/compiler/
Dimage_test.cc52 std::string image_filename(GetSystemImageFilename(image_location.GetFilename().c_str(), in TEST_F()
57 int mkdir_result = mkdir(image_dir.c_str(), 0700); in TEST_F()
59 ScratchFile image_file(OS::CreateEmptyFile(image_filename.c_str())); in TEST_F()
63 ScratchFile oat_file(OS::CreateEmptyFile(oat_filename.c_str())); in TEST_F()
94 std::unique_ptr<File> dup_oat(OS::OpenFileReadWrite(oat_file.GetFilename().c_str())); in TEST_F()
110 std::unique_ptr<File> file(OS::OpenFileForReading(image_file.GetFilename().c_str())); in TEST_F()
146 std::unique_ptr<const DexFile> dex(LoadExpectSingleDexFile(GetLibCoreDexFileName().c_str())); in TEST_F()
151 options.push_back(std::make_pair(image.c_str(), static_cast<void*>(nullptr))); in TEST_F()
197 int rmdir_result = rmdir(image_dir.c_str()); in TEST_F()
/art/runtime/arch/arm/
Dinstruction_set_features_arm_test.cc34 EXPECT_STREQ("smp,div,atomic_ldrd_strd", krait_features->GetFeatureString().c_str()); in TEST()
47 EXPECT_STREQ("smp,div,atomic_ldrd_strd", denver_features->GetFeatureString().c_str()); in TEST()
60 EXPECT_STREQ("smp,-div,-atomic_ldrd_strd", arm7_features->GetFeatureString().c_str()); in TEST()
85 EXPECT_STREQ("smp,div,atomic_ldrd_strd", krait_features->GetFeatureString().c_str()); in TEST()
98 EXPECT_STREQ("smp,div,atomic_ldrd_strd", denver_features->GetFeatureString().c_str()); in TEST()
111 EXPECT_STREQ("smp,-div,-atomic_ldrd_strd", arm7_features->GetFeatureString().c_str()); in TEST()

1234567