Home
last modified time | relevance | path

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

1234567891011

/art/runtime/
Ddex2oat_environment_test.h54 UniqueCPtr<const char[]> android_data_real(realpath(android_data_.c_str(), nullptr)); in SetUp()
60 ASSERT_EQ(0, mkdir(scratch_dir_.c_str(), 0700)); in SetUp()
64 ASSERT_EQ(0, mkdir(odex_oat_dir_.c_str(), 0700)); in SetUp()
67 ASSERT_EQ(0, mkdir(odex_dir_.c_str(), 0700)); in SetUp()
72 ASSERT_TRUE(OS::FileExists(GetSystemImageFile().c_str())) in SetUp()
74 ASSERT_TRUE(OS::FileExists(GetDexSrc1().c_str())) in SetUp()
76 ASSERT_TRUE(OS::FileExists(GetStrippedDexSrc1().c_str())) in SetUp()
79 dex_file_loader.GetMultiDexChecksums(GetStrippedDexSrc1().c_str(), &checksums, &error_msg)) in SetUp()
81 ASSERT_TRUE(OS::FileExists(GetDexSrc2().c_str())) in SetUp()
88 ASSERT_TRUE(dex_file_loader.Open(GetMultiDexSrc1().c_str(), in SetUp()
[all …]
Doat_file_test.cc71 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F()
78 oat_location.c_str(), in TEST_F()
79 oat_location.c_str(), in TEST_F()
84 dex_location.c_str(), in TEST_F()
96 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kQuicken); in TEST_F()
106 oat_location.c_str(), in TEST_F()
107 oat_location.c_str(), in TEST_F()
112 dex_location.c_str(), in TEST_F()
123 oat_location.c_str(), in TEST_F()
124 oat_location.c_str(), in TEST_F()
[all …]
Doat_file_assistant_test.cc87 if (chmod(dex_parent_.c_str(), 0555) != 0) { in ScopedNonWritable()
93 bool IsSuccessful() { return is_valid_ && (access(dex_parent_.c_str(), W_OK) != 0); } in IsSuccessful()
97 if (chmod(dex_parent_.c_str(), 0777) != 0) { in ~ScopedNonWritable()
118 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
142 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
167 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
199 ASSERT_EQ(0, symlink(scratch_dir.c_str(), link.c_str())); in TEST_F()
202 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
230 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F()
236 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
[all …]
Delf_file.cc111 file->GetPath().c_str(), file->Fd(), strerror(errno)); in Setup()
118 file->GetPath().c_str()); in Setup()
132 file->GetPath().c_str(), in Setup()
142 sizeof(Elf_Ehdr), file->GetPath().c_str()); in Setup()
152 file->GetPath().c_str(), in Setup()
155 *error_msg = StringPrintf("Failed to map ELF program headers: %s", error_msg->c_str()); in Setup()
167 file->GetPath().c_str(), in Setup()
170 *error_msg = StringPrintf("Failed to map ELF file: %s", error_msg->c_str()); in Setup()
191 file->GetPath().c_str()); in Setup()
199 file->GetPath().c_str()); in Setup()
[all …]
Dexec_utils.cc38 const char* program = arg_vector[0].c_str(); in ExecAndReturnCode()
42 char* arg_str = const_cast<char*>(arg.c_str()); in ExecAndReturnCode()
70 command_line.c_str(), strerror(errno)); in ExecAndReturnCode()
80 command_line.c_str(), pid, got_pid, strerror(errno)); in ExecAndReturnCode()
95 command_line.c_str()); in Exec()
Dcommon_throws.cc78 self->ThrowNewException(exception_descriptor, msg.str().c_str()); in ThrowException()
96 self->ThrowNewWrappedException(exception_descriptor, msg.str().c_str()); in ThrowWrappedException()
104 ArtMethod::PrettyMethod(method).c_str()).c_str()); in ThrowAbstractMethodError()
111 /* with_signature */ true).c_str()).c_str()); in ThrowAbstractMethodError()
124 StringPrintf("length=%d; index=%d", length, index).c_str()); in ThrowArrayIndexOutOfBoundsException()
133 mirror::Class::PrettyDescriptor(element_class).c_str(), in ThrowArrayStoreException()
134 mirror::Class::PrettyDescriptor(array_class).c_str()).c_str()); in ThrowArrayStoreException()
159 mirror::Class::PrettyDescriptor(src_type).c_str(), in ThrowClassCastException()
160 mirror::Class::PrettyDescriptor(dest_type).c_str()).c_str()); in ThrowClassCastException()
172 ThrowException("Ljava/lang/ClassCircularityError;", c, msg.str().c_str()); in ThrowClassCircularityError()
[all …]
Dreflection-inl.h110 PrettyDescriptor(srcType).c_str(), in ConvertPrimitiveValue()
111 PrettyDescriptor(dstType).c_str()).c_str()); in ConvertPrimitiveValue()
114 PrettyDescriptor(srcType).c_str(), in ConvertPrimitiveValue()
115 PrettyDescriptor(dstType).c_str()).c_str()); in ConvertPrimitiveValue()
Doat_file.cc282 vdex_filename.c_str(), in LoadVdex()
283 error_msg->c_str()); in LoadVdex()
326 file_path.c_str(), in ComputeFields()
327 symbol_error_msg.c_str()); in ComputeFields()
343 file_path.c_str(), in ComputeFields()
344 symbol_error_msg.c_str()); in ComputeFields()
357 *error_msg = StringPrintf("Failed to find oatbsslastword symbol in '%s'", file_path.c_str()); in ComputeFields()
376 *error_msg = StringPrintf("Failed to find oatdexlastword symbol in '%s'", file_path.c_str()); in ComputeFields()
428 file.GetPath().c_str(), in MapConstantTables()
448 oat_file->GetLocation().c_str(), in ReadIndexBssMapping()
[all …]
/art/compiler/optimizing/
Dinduction_var_analysis_test.cc264 EXPECT_STREQ("((1) * i + (0)):Int32", GetInductionInfo(store->InputAt(1), 0).c_str()); in TEST_F()
265 EXPECT_STREQ("((1) * i + (1)):Int32", GetInductionInfo(increment_[0], 0).c_str()); in TEST_F()
271 EXPECT_STREQ("((100) (TC-loop) ((0) < (100)))", GetTripCount(0).c_str()); in TEST_F()
296 EXPECT_STREQ("((1) * i + (100)):Int32", GetInductionInfo(add, 0).c_str()); in TEST_F()
297 EXPECT_STREQ("(( - (1)) * i + (100)):Int32", GetInductionInfo(sub, 0).c_str()); in TEST_F()
298 EXPECT_STREQ("((100) * i + (0)):Int32", GetInductionInfo(mul, 0).c_str()); in TEST_F()
299 EXPECT_STREQ("((2) * i + (0)):Int32", GetInductionInfo(shl, 0).c_str()); in TEST_F()
300 EXPECT_STREQ("(( - (1)) * i + (0)):Int32", GetInductionInfo(neg, 0).c_str()); in TEST_F()
326 GetInductionInfo(k_header, 0).c_str()); in TEST_F()
328 GetInductionInfo(store1->InputAt(1), 0).c_str()); in TEST_F()
[all …]
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 …]
Dside_effects_test.cc215 SideEffects::None().ToString().c_str()); in TEST()
218 SideEffects::All().ToString().c_str()); in TEST()
221 SideEffects::AllWrites().ToString().c_str()); in TEST()
224 SideEffects::AllReads().ToString().c_str()); in TEST()
227 SideEffects::FieldWriteOfType(DataType::Type::kReference, false).ToString().c_str()); in TEST()
230 SideEffects::FieldWriteOfType(DataType::Type::kReference, true).ToString().c_str()); in TEST()
233 SideEffects::ArrayWriteOfType(DataType::Type::kBool).ToString().c_str()); in TEST()
236 SideEffects::ArrayWriteOfType(DataType::Type::kUint16).ToString().c_str()); in TEST()
239 SideEffects::ArrayWriteOfType(DataType::Type::kInt16).ToString().c_str()); in TEST()
242 SideEffects::FieldReadOfType(DataType::Type::kInt8, false).ToString().c_str()); in TEST()
[all …]
/art/patchoat/
Dpatchoat_test.cc44 DIR* d = opendir(dir.c_str()); in ListDirFilesEndingWith()
57 if ((name_len < suffix_len) || (strcmp(&e->d_name[name_len - suffix_len], suffix.c_str()))) { in ListDirFilesEndingWith()
62 int stat_result = lstat(filename.c_str(), &s); in ListDirFilesEndingWith()
65 StringPrintf("Failed to stat %s: stat returned %d", filename.c_str(), stat_result); in ListDirFilesEndingWith()
190 c_args.push_back(str.c_str()); in RunDex2OatOrPatchoat()
227 std::unique_ptr<File> src_file(OS::OpenFileForReading(src_image_filename.c_str())); in CopyImageChecksumAndSetPatchDelta()
229 *error_msg = StringPrintf("Failed to open source image file %s", src_image_filename.c_str()); in CopyImageChecksumAndSetPatchDelta()
234 *error_msg = StringPrintf("Failed to read source image file %s", src_image_filename.c_str()); in CopyImageChecksumAndSetPatchDelta()
238 std::unique_ptr<File> dest_file(OS::OpenFileReadWrite(dest_image_filename.c_str())); in CopyImageChecksumAndSetPatchDelta()
241 StringPrintf("Failed to open destination image file %s", dest_image_filename.c_str()); in CopyImageChecksumAndSetPatchDelta()
[all …]
/art/runtime/base/
Dfile_utils_test.cc50 EXPECT_STREQ("", GetDalvikCache("should-not-exist123").c_str()); in TEST_F()
52 EXPECT_STREQ((android_data_ + "/dalvik-cache/.").c_str(), GetDalvikCache(".").c_str()); in TEST_F()
58 GetSystemImageFilename("/system/framework/boot.art", InstructionSet::kArm).c_str()); in TEST_F()
72 char* root_dup = strdup(android_root_env.c_str()); in TEST_F()
76 EXPECT_STREQ(dir, android_root2.c_str()); in TEST_F()
88 UniqueCPtr<char> real_root(realpath(android_root.c_str(), nullptr)); in TEST_F()
89 UniqueCPtr<char> real_root3(realpath(android_root3.c_str(), nullptr)); in TEST_F()
94 ASSERT_EQ(0, setenv("ANDROID_ROOT", android_root_env.c_str(), 1 /* overwrite */)); in TEST_F()
/art/test/647-jni-get-field-id/
Dget_field_id.cc29 if (name_chars.c_str() == nullptr) { in Java_Main_getFieldId()
33 if (signature_chars.c_str() == nullptr) { in Java_Main_getFieldId()
36 jfieldID field_id = env->GetFieldID(cls, name_chars.c_str(), signature_chars.c_str()); in Java_Main_getFieldId()
/art/runtime/dex/
Dart_dex_file_loader_test.cc68 EXPECT_TRUE(dex_file_loader.GetMultiDexChecksums(GetLibCoreDexFileNames()[0].c_str(), in TEST_F()
81 EXPECT_TRUE(dex_file_loader.GetMultiDexChecksums(multidex_file.c_str(), in TEST_F()
89 EXPECT_EQ(dexes[0]->GetLocation(), DexFileLoader::GetMultiDexLocation(0, multidex_file.c_str())); in TEST_F()
92 EXPECT_EQ(dexes[1]->GetLocation(), DexFileLoader::GetMultiDexLocation(1, multidex_file.c_str())); in TEST_F()
295 UniqueCPtr<const char[]> dex_location_real(realpath(file.GetFilename().c_str(), nullptr)); in TEST_F()
298 ASSERT_EQ(dex_location, DexFileLoader::GetDexCanonicalLocation(dex_location.c_str())); in TEST_F()
299 std::string multidex_location = DexFileLoader::GetMultiDexLocation(1, dex_location.c_str()); in TEST_F()
300 ASSERT_EQ(multidex_location, DexFileLoader::GetDexCanonicalLocation(multidex_location.c_str())); in TEST_F()
303 ASSERT_EQ(0, symlink(dex_location.c_str(), dex_location_sym.c_str())); in TEST_F()
305 ASSERT_EQ(dex_location, DexFileLoader::GetDexCanonicalLocation(dex_location_sym.c_str())); in TEST_F()
[all …]
Dart_dex_file_loader.cc111 error_msg->c_str()); in GetMultiDexChecksums()
117 std::unique_ptr<ZipEntry> zip_entry(zip_archive->Find(zip_entry_name.c_str(), error_msg)); in GetMultiDexChecksums()
120 zip_entry_name.c_str(), error_msg->c_str()); in GetMultiDexChecksums()
137 zip_entry.reset(zip_archive->Find(zip_entry_name.c_str(), error_msg)); in GetMultiDexChecksums()
193 location.c_str()); in Open()
212 location.c_str()); in Open()
271 std::unique_ptr<ZipArchive> zip_archive(ZipArchive::OpenFromFd(fd, location.c_str(), error_msg)); in OpenZip()
294 *error_msg = StringPrintf("DexFile: fstat '%s' failed: %s", location.c_str(), in OpenFile()
299 *error_msg = StringPrintf("Attempt to mmap directory '%s'", location.c_str()); in OpenFile()
309 location.c_str(), in OpenFile()
[all …]
/art/test/929-search/
Dsearch.cc36 if (utf.c_str() == nullptr) { in Java_Main_addToBootClassLoader()
39 jvmtiError result = jvmti_env->AddToBootstrapClassLoaderSearch(utf.c_str()); in Java_Main_addToBootClassLoader()
46 if (utf.c_str() == nullptr) { in Java_Main_addToSystemClassLoader()
49 jvmtiError result = jvmti_env->AddToSystemClassLoaderSearch(utf.c_str()); in Java_Main_addToSystemClassLoader()
/art/runtime/native/
Ddalvik_system_DexFile.cc143 const char* c_str() const { in c_str() function in art::NullableScopedUtfChars
184 ThrowWrappedIOException("%s", error_message.c_str()); in AllocateDexMemoryMap()
203 ThrowWrappedIOException("%s", error_message.c_str()); in CreateDexFile()
275 if (sourceName.c_str() == nullptr) { in DexFile_openDexFileNative()
285 dex_files = runtime->GetOatFileManager().OpenDexFilesFromOat(sourceName.c_str(), in DexFile_openDexFileNative()
310 ThrowWrappedIOException("%s", it->c_str()); in DexFile_openDexFileNative()
376 if (class_name.c_str() == nullptr) { in DexFile_defineClassNative()
380 const std::string descriptor(DotToDescriptor(class_name.c_str())); in DexFile_defineClassNative()
381 const size_t hash(ComputeModifiedUtf8Hash(descriptor.c_str())); in DexFile_defineClassNative()
384 OatDexFile::FindClassDef(*dex_file, descriptor.c_str(), hash); in DexFile_defineClassNative()
[all …]
/art/test/922-properties/
Dproperties.cc60 if (string.c_str() == nullptr) { in Java_art_Test922_getSystemProperty()
65 jvmtiError result = jvmti_env->GetSystemProperty(string.c_str(), &value); in Java_art_Test922_getSystemProperty()
80 if (key_string.c_str() == nullptr) { in Java_art_Test922_setSystemProperty()
84 if (value_string.c_str() == nullptr) { in Java_art_Test922_setSystemProperty()
88 jvmtiError result = jvmti_env->SetSystemProperty(key_string.c_str(), value_string.c_str()); in Java_art_Test922_setSystemProperty()
/art/test/674-hiddenapi/
Dhiddenapi.cc39 const char* path = utf.c_str(); in Java_Main_appendToBootClassLoader()
75 jfieldID field = is_static ? env->GetStaticFieldID(klass, utf_name.c_str(), "I") in Java_JNI_canDiscoverField()
76 : env->GetFieldID(klass, utf_name.c_str(), "I"); in Java_JNI_canDiscoverField()
88 jfieldID field = is_static ? env->GetStaticFieldID(klass, utf_name.c_str(), "I") in Java_JNI_canGetField()
89 : env->GetFieldID(klass, utf_name.c_str(), "I"); in Java_JNI_canGetField()
118 jfieldID field = is_static ? env->GetStaticFieldID(klass, utf_name.c_str(), "I") in Java_JNI_canSetField()
119 : env->GetFieldID(klass, utf_name.c_str(), "I"); in Java_JNI_canSetField()
148 jmethodID method = is_static ? env->GetStaticMethodID(klass, utf_name.c_str(), "()I") in Java_JNI_canDiscoverMethod()
149 : env->GetMethodID(klass, utf_name.c_str(), "()I"); in Java_JNI_canDiscoverMethod()
161 jmethodID method = is_static ? env->GetStaticMethodID(klass, utf_name.c_str(), "()I") in Java_JNI_canInvokeMethodA()
[all …]
/art/libartbase/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()
/art/cmdline/
Dcmdline.h51 std::string system_filename(GetSystemImageFilename(location.c_str(), isa)); in LocationToFilename()
52 if (OS::FileExists(system_filename.c_str())) { in LocationToFilename()
71 if (GetDalvikCacheFilename(location.c_str(), dalvik_cache.c_str(), in LocationToFilename()
104 options.push_back(std::make_pair(boot_image_option.c_str(), nullptr)); in StartRuntime()
159 const char* filename = output_name_.c_str(); in Parse()
175 fprintf(stderr, "%s\n", error_msg.c_str()); in Parse()
187 fprintf(stderr, "%s\n", error_msg.c_str()); in Parse()
267 if (GetInstructionSetFromString(parent_dir_name.c_str()) != InstructionSet::kNone) { in ParseCheckBootImage()
278 boot_image_location.c_str(), in ParseCheckBootImage()
279 file_name.c_str()); in ParseCheckBootImage()
[all …]
/art/test/570-checker-osr/
Dosr.cc69 CHECK(chars.c_str() != nullptr); in Java_Main_isInOsrCode()
71 OsrVisitor visitor(soa.Self(), chars.c_str()); in Java_Main_isInOsrCode()
84 CHECK(chars.c_str() != nullptr); in Java_Main_isInInterpreter()
86 OsrVisitor visitor(soa.Self(), chars.c_str()); in Java_Main_isInInterpreter()
119 CHECK(chars.c_str() != nullptr); in Java_Main_ensureHasProfilingInfo()
121 ProfilingInfoVisitor visitor(soa.Self(), chars.c_str()); in Java_Main_ensureHasProfilingInfo()
159 CHECK(chars.c_str() != nullptr); in Java_Main_ensureHasOsrCode()
161 OsrCheckVisitor visitor(soa.Self(), chars.c_str()); in Java_Main_ensureHasOsrCode()
/art/runtime/arch/x86/
Dinstruction_set_features_x86_test.cc31 x86_features->GetFeatureString().c_str()); in TEST()
44 x86_features->GetFeatureString().c_str()); in TEST()
54 x86_default_features->GetFeatureString().c_str()); in TEST()
64 x86_64_features->GetFeatureString().c_str()); in TEST()
81 x86_features->GetFeatureString().c_str()); in TEST()
91 x86_default_features->GetFeatureString().c_str()); in TEST()
101 x86_64_features->GetFeatureString().c_str()); in TEST()
118 x86_features->GetFeatureString().c_str()); in TEST()
128 x86_default_features->GetFeatureString().c_str()); in TEST()
138 x86_64_features->GetFeatureString().c_str()); in TEST()
/art/runtime/gc/space/
Dimage_space_fs.h46 if (!OS::DirectoryExists(dir.c_str())) { in DeleteDirectoryContents()
49 DIR* c_dir = opendir(dir.c_str()); in DeleteDirectoryContents()
61 std::string file = android::base::StringPrintf("%s/%s", dir.c_str(), name); in DeleteDirectoryContents()
67 if (rmdir(file.c_str()) != 0) { in DeleteDirectoryContents()
76 if (unlink(file.c_str()) != 0) { in DeleteDirectoryContents()
114 const char* file_name = boot_marker.c_str(); in MarkZygoteStart()

1234567891011