Home
last modified time | relevance | path

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

12345678910>>...12

/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_assistant_test.cc111 if (chmod(dex_parent_.c_str(), 0555) != 0) { in ScopedNonWritable()
117 bool IsSuccessful() { return is_valid_ && (access(dex_parent_.c_str(), W_OK) != 0); } in IsSuccessful()
121 if (chmod(dex_parent_.c_str(), 0777) != 0) { in ~ScopedNonWritable()
158 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
164 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
175 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
202 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
231 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
255 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
276 dex_location.c_str(), kRuntimeISA, /*load_executable=*/ false); in TEST_F()
[all …]
Doat_file_test.cc37 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F()
44 oat_location.c_str(), in TEST_F()
45 oat_location.c_str(), in TEST_F()
60 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kQuicken); in TEST_F()
70 oat_location.c_str(), in TEST_F()
71 oat_location.c_str(), in TEST_F()
Delf_file.cc106 file->GetPath().c_str(), file->Fd(), strerror(errno)); in Setup()
113 file->GetPath().c_str()); in Setup()
127 file->GetPath().c_str(), in Setup()
137 sizeof(Elf_Ehdr), file->GetPath().c_str()); in Setup()
147 file->GetPath().c_str(), in Setup()
150 *error_msg = StringPrintf("Failed to map ELF program headers: %s", error_msg->c_str()); in Setup()
162 file->GetPath().c_str(), in Setup()
165 *error_msg = StringPrintf("Failed to map ELF file: %s", error_msg->c_str()); in Setup()
186 file->GetPath().c_str()); in Setup()
194 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()
Doat_file.cc296 vdex_filename.c_str(), in LoadVdex()
297 error_msg->c_str()); in LoadVdex()
339 file_path.c_str(), in ComputeFields()
340 symbol_error_msg.c_str()); in ComputeFields()
346 file_path.c_str(), in ComputeFields()
347 symbol_error_msg.c_str()); in ComputeFields()
359 StringPrintf("Failed to find oatdatabimgrelrolastword symbol in '%s'", file_path.c_str()); in ComputeFields()
373 *error_msg = StringPrintf("Failed to find oatbsslastword symbol in '%s'", file_path.c_str()); in ComputeFields()
392 *error_msg = StringPrintf("Failed to find oatdexlastword symbol in '%s'", file_path.c_str()); in ComputeFields()
433 oat_file->GetLocation().c_str(), in ReadIndexBssMapping()
[all …]
Dcommon_throws.cc76 self->ThrowNewException(exception_descriptor, msg.str().c_str()); in ThrowException()
94 self->ThrowNewWrappedException(exception_descriptor, msg.str().c_str()); in ThrowWrappedException()
102 ArtMethod::PrettyMethod(method).c_str()).c_str()); in ThrowAbstractMethodError()
109 /* with_signature= */ true).c_str()).c_str()); in ThrowAbstractMethodError()
122 StringPrintf("length=%d; index=%d", length, index).c_str()); in ThrowArrayIndexOutOfBoundsException()
131 mirror::Class::PrettyDescriptor(element_class).c_str(), in ThrowArrayStoreException()
132 mirror::Class::PrettyDescriptor(array_class).c_str()).c_str()); in ThrowArrayStoreException()
157 mirror::Class::PrettyDescriptor(src_type).c_str(), in ThrowClassCastException()
158 mirror::Class::PrettyDescriptor(dest_type).c_str()).c_str()); in ThrowClassCastException()
170 ThrowException("Ljava/lang/ClassCircularityError;", c, msg.str().c_str()); in ThrowClassCircularityError()
[all …]
Dreflection-inl.h109 PrettyDescriptor(srcType).c_str(), in ConvertPrimitiveValue()
110 PrettyDescriptor(dstType).c_str()).c_str()); in ConvertPrimitiveValue()
113 PrettyDescriptor(srcType).c_str(), in ConvertPrimitiveValue()
114 PrettyDescriptor(dstType).c_str()).c_str()); in ConvertPrimitiveValue()
/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.cc192 ASSERT_STREQ("(1 -> 2) (0 -> 1)", resolver.GetMessage().c_str()); in TYPED_TEST()
194 ASSERT_STREQ("(1 -> 2) (0 -> 1)", resolver.GetMessage().c_str()); in TYPED_TEST()
203 ASSERT_STREQ("(2 -> 3) (1 -> 2) (1 -> 4) (0 -> 1)", resolver.GetMessage().c_str()); in TYPED_TEST()
205 ASSERT_STREQ("(2 -> 3) (1 -> 2) (0 -> 1) (2 -> 4)", resolver.GetMessage().c_str()); in TYPED_TEST()
219 ASSERT_STREQ("(1 <-> 0)", resolver.GetMessage().c_str()); in TYPED_TEST()
221 ASSERT_STREQ("(1 -> T0) (0 -> 1) (T0 -> 0)", resolver.GetMessage().c_str()); in TYPED_TEST()
230 ASSERT_STREQ("(1 -> 2) (1 <-> 0)", resolver.GetMessage().c_str()); in TYPED_TEST()
232 ASSERT_STREQ("(1 -> 2) (0 -> 1) (2 -> 0)", resolver.GetMessage().c_str()); in TYPED_TEST()
241 ASSERT_STREQ("(0 -> 2) (1 <-> 0)", resolver.GetMessage().c_str()); in TYPED_TEST()
243 ASSERT_STREQ("(0 -> 2) (1 -> 0) (2 -> 1)", resolver.GetMessage().c_str()); in TYPED_TEST()
[all …]
Dside_effects_test.cc216 SideEffects::None().ToString().c_str()); in TEST()
219 SideEffects::All().ToString().c_str()); in TEST()
222 SideEffects::AllWrites().ToString().c_str()); in TEST()
225 SideEffects::AllReads().ToString().c_str()); in TEST()
228 SideEffects::FieldWriteOfType(DataType::Type::kReference, false).ToString().c_str()); in TEST()
231 SideEffects::FieldWriteOfType(DataType::Type::kReference, true).ToString().c_str()); in TEST()
234 SideEffects::ArrayWriteOfType(DataType::Type::kBool).ToString().c_str()); in TEST()
237 SideEffects::ArrayWriteOfType(DataType::Type::kUint16).ToString().c_str()); in TEST()
240 SideEffects::ArrayWriteOfType(DataType::Type::kInt16).ToString().c_str()); in TEST()
243 SideEffects::FieldReadOfType(DataType::Type::kInt8, false).ToString().c_str()); in TEST()
[all …]
/art/libartbase/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()
74 UniqueCPtr<char> root_dup(strdup(android_root_env.c_str())); in TEST_F()
78 EXPECT_STREQ(dir, android_root2.c_str()) << error_msg; in TEST_F()
93 UniqueCPtr<char> real_root3(realpath(android_root3.c_str(), nullptr)); in TEST_F()
95 UniqueCPtr<char> real_root(realpath(android_root.c_str(), nullptr)); in TEST_F()
103 ASSERT_EQ(0, setenv("ANDROID_ROOT", android_root_env.c_str(), /* overwrite */ 1)); in TEST_F()
121 UniqueCPtr<char> root_dup(strdup(android_art_root_env.c_str())); in TEST_F()
125 EXPECT_STREQ(dir, android_art_root2.c_str()) << error_msg; in TEST_F()
[all …]
Dcommon_art_test.cc70 nftw(path_.c_str(), [](const char* name, const struct stat*, int type, struct FTW *) { in ~ScratchDir()
96 int fd = open(filename_.c_str(), O_RDWR | O_CREAT | O_CLOEXEC, 0666); in ScratchFile()
136 if (!OS::FileExists(filename_.c_str())) { in Unlink()
140 int unlink_result = unlink(filename_.c_str()); in Unlink()
178 setenv("ANDROID_BUILD_TOP", android_build_top.c_str(), /*overwrite=*/0); in GetAndroidBuildTop()
212 setenv("ANDROID_HOST_OUT", android_host_out.c_str(), /*overwrite=*/0); in GetAndroidHostOut()
226 setenv("ANDROID_ROOT", android_host_out.c_str(), 1); in SetUpAndroidRootEnvVars()
236 std::string android_i18n_root = android_host_out.c_str(); in SetUpAndroidRootEnvVars()
238 setenv("ANDROID_I18N_ROOT", android_i18n_root.c_str(), 1); in SetUpAndroidRootEnvVars()
247 std::string android_art_root = android_host_out.c_str(); in SetUpAndroidRootEnvVars()
[all …]
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/libnativeloader/
Dnative_loader_namespace.cpp55 auto raw = android_get_exported_namespace(name.c_str()); in GetExportedNamespace()
60 auto raw = NativeBridgeGetExportedNamespace(name.c_str()); in GetExportedNamespace()
95 is_bridged = NativeBridgeIsPathSupported(search_paths.c_str()); in Create()
125 android_create_namespace(name.c_str(), nullptr, search_paths.c_str(), type, in Create()
126 permitted_paths.c_str(), effective_parent.ToRawAndroidNamespace()); in Create()
132 name.c_str(), nullptr, search_paths.c_str(), type, permitted_paths.c_str(), in Create()
145 this->name().c_str(), target.name().c_str()); in Link()
148 shared_libs.c_str())) { in Link()
153 target.ToRawNativeBridgeNamespace(), shared_libs.c_str())) { in Link()
/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/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/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/runtime/native/
Ddalvik_system_DexFile.cc146 const char* c_str() const { in c_str() function in art::NullableScopedUtfChars
183 ThrowWrappedIOException("%s", it->c_str()); in CreateCookieFromOatFileManagerResult()
216 ThrowWrappedIOException("%s", error_message.c_str()); in AllocateDexMemoryMap()
313 if (sourceName.c_str() == nullptr) { in DexFile_openDexFileNative()
320 Runtime::Current()->GetOatFileManager().OpenDexFilesFromOat(sourceName.c_str(), in DexFile_openDexFileNative()
341 return env->NewStringUTF(str_context.c_str()); in DexFile_getClassLoaderContext()
371 class_loader_context_utf.c_str()); in DexFile_verifyInBackgroundNative()
435 if (class_name.c_str() == nullptr) { in DexFile_defineClassNative()
439 const std::string descriptor(DotToDescriptor(class_name.c_str())); in DexFile_defineClassNative()
440 const size_t hash(ComputeModifiedUtf8Hash(descriptor.c_str())); in DexFile_defineClassNative()
[all …]
/art/runtime/gc/space/
Dimage_space_fs.h47 if (!OS::DirectoryExists(dir.c_str())) { in DeleteDirectoryContents()
50 DIR* c_dir = opendir(dir.c_str()); in DeleteDirectoryContents()
62 std::string file = android::base::StringPrintf("%s/%s", dir.c_str(), name); in DeleteDirectoryContents()
68 if (rmdir(file.c_str()) != 0) { in DeleteDirectoryContents()
77 if (unlink(file.c_str()) != 0) { in DeleteDirectoryContents()
/art/test/674-hiddenapi/
Dhiddenapi.cc58 const char* path = utf.c_str(); in Java_Main_appendToBootClassLoader()
107 jfieldID field = is_static ? env->GetStaticFieldID(klass, utf_name.c_str(), "I") in Java_JNI_canDiscoverField()
108 : env->GetFieldID(klass, utf_name.c_str(), "I"); in Java_JNI_canDiscoverField()
120 jfieldID field = is_static ? env->GetStaticFieldID(klass, utf_name.c_str(), "I") in Java_JNI_canGetField()
121 : env->GetFieldID(klass, utf_name.c_str(), "I"); in Java_JNI_canGetField()
150 jfieldID field = is_static ? env->GetStaticFieldID(klass, utf_name.c_str(), "I") in Java_JNI_canSetField()
151 : env->GetFieldID(klass, utf_name.c_str(), "I"); in Java_JNI_canSetField()
180 jmethodID method = is_static ? env->GetStaticMethodID(klass, utf_name.c_str(), "()I") in Java_JNI_canDiscoverMethod()
181 : env->GetMethodID(klass, utf_name.c_str(), "()I"); in Java_JNI_canDiscoverMethod()
193 jmethodID method = is_static ? env->GetStaticMethodID(klass, utf_name.c_str(), "()I") in Java_JNI_canInvokeMethodA()
[all …]
/art/libdexfile/dex/
Dart_dex_file_loader.cc112 error_msg->c_str()); in GetMultiDexChecksums()
118 std::unique_ptr<ZipEntry> zip_entry(zip_archive->Find(zip_entry_name.c_str(), error_msg)); in GetMultiDexChecksums()
121 zip_entry_name.c_str(), error_msg->c_str()); in GetMultiDexChecksums()
138 zip_entry.reset(zip_archive->Find(zip_entry_name.c_str(), error_msg)); in GetMultiDexChecksums()
197 location.c_str()); in Open()
217 location.c_str()); in Open()
279 *error_msg = StringPrintf("Expected valid zip or dex file: '%s'", location.c_str()); in OpenWithMagic()
301 std::unique_ptr<ZipArchive> zip_archive(ZipArchive::OpenFromFd(fd, location.c_str(), error_msg)); in OpenZip()
324 *error_msg = StringPrintf("DexFile: fstat '%s' failed: %s", location.c_str(), in OpenFile()
329 *error_msg = StringPrintf("Attempt to mmap directory '%s'", location.c_str()); in OpenFile()
[all …]
Dart_dex_file_loader_test.cc44 dex_files_ = OpenDexFiles(lib_core_dex_file_names[0].c_str()); in SetUp()
69 EXPECT_TRUE(dex_file_loader.GetMultiDexChecksums(GetLibCoreDexFileNames()[0].c_str(), in TEST_F()
82 EXPECT_TRUE(dex_file_loader.GetMultiDexChecksums(multidex_file.c_str(), in TEST_F()
90 EXPECT_EQ(dexes[0]->GetLocation(), DexFileLoader::GetMultiDexLocation(0, multidex_file.c_str())); in TEST_F()
93 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()
[all …]
/art/cmdline/
Dcmdline.h52 std::string system_filename(GetSystemImageFilename(location.c_str(), isa)); in LocationToFilename()
53 if (OS::FileExists(system_filename.c_str())) { in LocationToFilename()
72 if (GetDalvikCacheFilename(location.c_str(), dalvik_cache.c_str(), in LocationToFilename()
177 const char* filename = output_name_.c_str(); in Parse()
193 fprintf(stderr, "%s\n", error_msg.c_str()); in Parse()
205 fprintf(stderr, "%s\n", error_msg.c_str()); in Parse()
297 if (GetInstructionSetFromString(parent_dir_name.c_str()) != InstructionSet::kNone) { in ParseCheckBootImage()
308 boot_image_location.c_str(), in ParseCheckBootImage()
309 file_name.c_str()); in ParseCheckBootImage()
320 fprintf(stderr, "%s", GetUsage().c_str()); in PrintUsage()
[all …]
/art/runtime/arch/x86/
Dinstruction_set_features_x86_test.cc47 x86_features->GetFeatureString().c_str()); in TEST()
57 x86_64_features->GetFeatureString().c_str()); in TEST()
72 x86_features->GetFeatureString().c_str()); in TEST()
82 x86_64_features->GetFeatureString().c_str()); in TEST()
97 x86_features->GetFeatureString().c_str()); in TEST()
107 x86_64_features->GetFeatureString().c_str()); in TEST()
122 x86_features->GetFeatureString().c_str()); in TEST()
132 x86_64_features->GetFeatureString().c_str()); in TEST()

12345678910>>...12