/art/runtime/ |
D | dex2oat_environment_test.h | 54 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 …]
|
D | oat_file_assistant_test.cc | 82 if (chmod(dex_parent_.c_str(), 0555) != 0) { in ScopedNonWritable() 88 bool IsSuccessful() { return is_valid_ && (access(dex_parent_.c_str(), W_OK) != 0); } in IsSuccessful() 92 if (chmod(dex_parent_.c_str(), 0777) != 0) { in ~ScopedNonWritable() 129 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F() 135 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F() 146 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F() 173 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F() 204 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F() 228 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F() 249 dex_location.c_str(), kRuntimeISA, /*load_executable=*/ false); in TEST_F() [all …]
|
D | elf_file.cc | 106 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 …]
|
D | oat_file_test.cc | 138 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F() 145 oat_location.c_str(), in TEST_F() 146 oat_location.c_str(), in TEST_F() 149 dex_location.c_str(), in TEST_F() 162 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kQuicken); in TEST_F() 172 oat_location.c_str(), in TEST_F() 173 oat_location.c_str(), in TEST_F() 176 dex_location.c_str(), in TEST_F() 192 dex_location.c_str(), in TEST_F()
|
D | common_throws.cc | 76 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 …]
|
D | exec_utils.cc | 38 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()
|
D | reflection-inl.h | 109 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()
|
D | oat_file.cc | 283 vdex_filename.c_str(), in LoadVdex() 284 error_msg->c_str()); in LoadVdex() 325 file_path.c_str(), in ComputeFields() 326 symbol_error_msg.c_str()); in ComputeFields() 332 file_path.c_str(), in ComputeFields() 333 symbol_error_msg.c_str()); in ComputeFields() 345 StringPrintf("Failed to find oatdatabimgrelrolastword symbol in '%s'", file_path.c_str()); in ComputeFields() 359 *error_msg = StringPrintf("Failed to find oatbsslastword symbol in '%s'", file_path.c_str()); in ComputeFields() 378 *error_msg = StringPrintf("Failed to find oatdexlastword symbol in '%s'", file_path.c_str()); in ComputeFields() 419 oat_file->GetLocation().c_str(), in ReadIndexBssMapping() [all …]
|
/art/compiler/optimizing/ |
D | induction_var_analysis_test.cc | 264 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 …]
|
D | parallel_move_test.cc | 192 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 …]
|
D | side_effects_test.cc | 216 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/ |
D | file_utils_test.cc | 50 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 UniqueCPtr<char> root_dup(strdup(android_root_env.c_str())); in TEST_F() 76 EXPECT_STREQ(dir, android_root2.c_str()) << error_msg; in TEST_F() 88 UniqueCPtr<char> real_root3(realpath(android_root3.c_str(), nullptr)); in TEST_F() 90 UniqueCPtr<char> real_root(realpath(android_root.c_str(), nullptr)); in TEST_F() 97 ASSERT_EQ(0, setenv("ANDROID_ROOT", android_root_env.c_str(), /* overwrite */ 1)); in TEST_F() 111 UniqueCPtr<char> root_dup(strdup(android_runtime_root_env.c_str())); in TEST_F() 115 EXPECT_STREQ(dir, android_runtime_root2.c_str()) << error_msg; in TEST_F() [all …]
|
D | common_art_test.cc | 65 int fd = open(filename_.c_str(), O_RDWR | O_CREAT | O_CLOEXEC, 0666); in ScratchFile() 105 if (!OS::FileExists(filename_.c_str())) { in Unlink() 109 int unlink_result = unlink(filename_.c_str()); in Unlink() 137 setenv("ANDROID_HOST_OUT", android_host_out.c_str(), 1); in SetUpAndroidRootEnvVars() 158 setenv("ANDROID_RUNTIME_ROOT", android_runtime_root.c_str(), 1); in SetUpAndroidRootEnvVars() 169 setenv("ANDROID_TZDATA_ROOT", android_tzdata_root.c_str(), 1); in SetUpAndroidRootEnvVars() 192 setenv("ANDROID_DATA", android_data.c_str(), 1); in SetUpAndroidDataDir() 198 dalvik_cache_.append(android_data_.c_str()); in SetUp() 200 int mkdir_result = mkdir(dalvik_cache_.c_str(), 0700); in SetUp() 207 ASSERT_EQ(rmdir(android_data.c_str()), 0); in TearDownAndroidDataDir() [all …]
|
D | hex_dump_test.cc | 37 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/test/647-jni-get-field-id/ |
D | get_field_id.cc | 29 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/native/ |
D | dalvik_system_DexFile.cc | 145 const char* c_str() const { in c_str() function in art::NullableScopedUtfChars 182 ThrowWrappedIOException("%s", it->c_str()); in CreateCookieFromOatFileManagerResult() 215 ThrowWrappedIOException("%s", error_message.c_str()); in AllocateDexMemoryMap() 312 if (sourceName.c_str() == nullptr) { in DexFile_openDexFileNative() 319 Runtime::Current()->GetOatFileManager().OpenDexFilesFromOat(sourceName.c_str(), in DexFile_openDexFileNative() 340 return env->NewStringUTF(str_context.c_str()); in DexFile_getClassLoaderContext() 370 class_loader_context_utf.c_str()); in DexFile_verifyInBackgroundNative() 434 if (class_name.c_str() == nullptr) { in DexFile_defineClassNative() 438 const std::string descriptor(DotToDescriptor(class_name.c_str())); in DexFile_defineClassNative() 439 const size_t hash(ComputeModifiedUtf8Hash(descriptor.c_str())); in DexFile_defineClassNative() [all …]
|
/art/test/922-properties/ |
D | properties.cc | 60 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/929-search/ |
D | search.cc | 36 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/674-hiddenapi/ |
D | hiddenapi.cc | 55 const char* path = utf.c_str(); in Java_Main_appendToBootClassLoader() 104 jfieldID field = is_static ? env->GetStaticFieldID(klass, utf_name.c_str(), "I") in Java_JNI_canDiscoverField() 105 : env->GetFieldID(klass, utf_name.c_str(), "I"); in Java_JNI_canDiscoverField() 117 jfieldID field = is_static ? env->GetStaticFieldID(klass, utf_name.c_str(), "I") in Java_JNI_canGetField() 118 : env->GetFieldID(klass, utf_name.c_str(), "I"); in Java_JNI_canGetField() 147 jfieldID field = is_static ? env->GetStaticFieldID(klass, utf_name.c_str(), "I") in Java_JNI_canSetField() 148 : env->GetFieldID(klass, utf_name.c_str(), "I"); in Java_JNI_canSetField() 177 jmethodID method = is_static ? env->GetStaticMethodID(klass, utf_name.c_str(), "()I") in Java_JNI_canDiscoverMethod() 178 : env->GetMethodID(klass, utf_name.c_str(), "()I"); in Java_JNI_canDiscoverMethod() 190 jmethodID method = is_static ? env->GetStaticMethodID(klass, utf_name.c_str(), "()I") in Java_JNI_canInvokeMethodA() [all …]
|
/art/runtime/gc/space/ |
D | image_space_test.cc | 48 oat_location.c_str(), in TEST_F() 49 oat_location.c_str(), in TEST_F() 101 EXPECT_EQ(0, unlink(dex2.c_str())); in TEST_F() 109 EXPECT_EQ(0, unlink(multidex1.c_str())); in TEST_F() 118 options->emplace_back(android::base::StringPrintf("-Ximage:%s", GetCoreArtLocation().c_str()), in SetUpRuntimeOptions() 173 int result = setenv("ANDROID_DATA", bad_android_data_.c_str(), /* replace */ 1); in SetUpRuntimeOptions() 175 result = mkdir(bad_android_data_.c_str(), /* mode */ 0700); in SetUpRuntimeOptions() 181 int fd = creat(bad_dalvik_cache_.c_str(), /* mode */ 0); in SetUpRuntimeOptions() 189 int result = unlink(bad_dalvik_cache_.c_str()); in TearDown() 191 result = rmdir(bad_android_data_.c_str()); in TearDown() [all …]
|
D | image_space_fs.h | 47 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() 115 const char* file_name = boot_marker.c_str(); in MarkZygoteStart()
|
/art/runtime/arch/x86/ |
D | instruction_set_features_x86_test.cc | 31 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() [all …]
|
/art/libdexfile/dex/ |
D | art_dex_file_loader.cc | 112 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 …]
|
D | art_dex_file_loader_test.cc | 44 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/ |
D | cmdline.h | 52 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() 293 if (GetInstructionSetFromString(parent_dir_name.c_str()) != InstructionSet::kNone) { in ParseCheckBootImage() 304 boot_image_location.c_str(), in ParseCheckBootImage() 305 file_name.c_str()); in ParseCheckBootImage() 316 fprintf(stderr, "%s", GetUsage().c_str()); in PrintUsage() [all …]
|