/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/runtime/ |
D | dex2oat_environment_test.h | 56 UniqueCPtr<const char[]> android_data_real(realpath(android_data_.c_str(), nullptr)); in SetUp() 62 ASSERT_EQ(0, mkdir(scratch_dir_.c_str(), 0700)); in SetUp() 66 ASSERT_EQ(0, mkdir(odex_oat_dir_.c_str(), 0700)); in SetUp() 69 ASSERT_EQ(0, mkdir(odex_dir_.c_str(), 0700)); in SetUp() 75 ASSERT_TRUE(OS::FileExists(GetSystemImageFile().c_str())) in SetUp() 77 ASSERT_TRUE(OS::FileExists(GetDexSrc1().c_str())) in SetUp() 79 ASSERT_TRUE(OS::FileExists(GetResourceOnlySrc1().c_str())) in SetUp() 83 GetResourceOnlySrc1().c_str(), &checksums, &dex_locations, &error_msg)) in SetUp() 85 ASSERT_TRUE(OS::FileExists(GetDexSrc2().c_str())) in SetUp() 92 ASSERT_TRUE(dex_file_loader.Open(GetMultiDexSrc1().c_str(), in SetUp() [all …]
|
D | oat_file_assistant_test.cc | 129 if (chmod(dex_parent_.c_str(), 0555) != 0) { in ScopedNonWritable() 135 bool IsSuccessful() { return is_valid_ && (access(dex_parent_.c_str(), W_OK) != 0); } in IsSuccessful() 139 if (chmod(dex_parent_.c_str(), 0777) != 0) { in ~ScopedNonWritable() 176 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F() 185 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F() 201 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, context.get(), false); in TEST_F() 231 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F() 253 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F() 285 OatFileAssistant oat_file_assistant(dex_location.c_str(), in TEST_F() 309 dex_location.c_str(), 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 | 37 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::kVerify); in TEST_F() 70 oat_location.c_str(), in TEST_F() 71 oat_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 | 45 const char* program = arg_vector[0].c_str(); in ExecWithoutWait() 48 args.push_back(const_cast<char*>(arg.c_str())); in ExecWithoutWait() 82 ToCommandLine(arg_vector).c_str(), strerror(errno)); in ExecAndReturnCode() 92 ToCommandLine(arg_vector).c_str(), pid, got_pid, strerror(errno)); in ExecAndReturnCode() 111 ToCommandLine(arg_vector).c_str(), strerror(errno)); in ExecAndReturnCode() 157 ToCommandLine(arg_vector).c_str(), pid, got_pid, strerror(errno)); in ExecAndReturnCode() 171 ToCommandLine(arg_vector).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 | 307 vdex_filename.c_str(), in LoadVdex() 308 error_msg->c_str()); in LoadVdex() 350 file_path.c_str(), in ComputeFields() 351 symbol_error_msg.c_str()); in ComputeFields() 357 file_path.c_str(), in ComputeFields() 358 symbol_error_msg.c_str()); in ComputeFields() 370 StringPrintf("Failed to find oatdatabimgrelrolastword symbol in '%s'", file_path.c_str()); in ComputeFields() 384 *error_msg = StringPrintf("Failed to find oatbsslastword symbol in '%s'", file_path.c_str()); in ComputeFields() 403 *error_msg = StringPrintf("Failed to find oatdexlastword symbol in '%s'", file_path.c_str()); in ComputeFields() 444 oat_file->GetLocation().c_str(), in ReadIndexBssMapping() [all …]
|
/art/libnativeloader/ |
D | native_loader_namespace.cpp | 55 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 == nullptr ? "default" : target->name().c_str()); in Link() 149 shared_libs.c_str())) { in Link() 155 shared_libs.c_str())) { in Link()
|
D | native_loader_test.cpp | 73 mock_dlopen_ext(false, StrEq(l.c_str()), RTLD_NOW | RTLD_NODELETE, NotNull())) in SetExpectations() 218 StrEq(expected_permitted_path), NsEq(expected_parent_namespace.c_str()))) in SetExpectations() 219 .WillOnce(Return(TO_MOCK_NAMESPACE(TO_ANDROID_NAMESPACE(dex_path.c_str())))); in SetExpectations() 271 env(), target_sdk_version, env()->NewStringUTF(class_loader.c_str()), is_shared, in RunTest() 272 env()->NewStringUTF(dex_path.c_str()), env()->NewStringUTF(library_path.c_str()), in RunTest() 273 env()->NewStringUTF(permitted_path.c_str()), /*uses_library_list=*/ nullptr); in RunTest() 276 EXPECT_EQ(err, nullptr) << "Error is: " << std::string(ScopedUtfChars(env(), err).c_str()); in RunTest() 280 FindNamespaceByClassLoader(env(), env()->NewStringUTF(class_loader.c_str())); in RunTest() 283 EXPECT_EQ(dex_path.c_str(), reinterpret_cast<const char*>(ns)); in RunTest() 286 FindNativeLoaderNamespaceByClassLoader(env(), env()->NewStringUTF(class_loader.c_str())); in RunTest() [all …]
|
/art/odrefresh/ |
D | odr_fs_utils_test.cc | 72 ASSERT_EQ(0, mkdir(dir_path.c_str(), S_IRWXU)); in TEST_F() 83 ASSERT_TRUE(CreateFile(file_path.c_str(), 4096)); in TEST_F() 91 ASSERT_FALSE(OS::DirectoryExists(dir_path.c_str())); in TEST_F() 95 ASSERT_FALSE(OS::FileExists(file_path.c_str(), true)); in TEST_F() 129 ASSERT_TRUE(CreateFile(first_file_path.c_str(), kFirstFileBytes)); in TEST_F() 132 ASSERT_EQ(0, stat(first_file_path.c_str(), &sb)); in TEST_F() 136 ASSERT_TRUE(GetUsedSpace(scratch_dir.GetPath().c_str(), &bytes_used)); in TEST_F() 139 ASSERT_TRUE(CreateFile(second_file_path.c_str(), kSecondFileBytes)); in TEST_F() 141 ASSERT_TRUE(GetUsedSpace(scratch_dir.GetPath().c_str(), &bytes_used)); in TEST_F() 149 const std::string path = android::base::StringPrintf("%s/%zu", sub_dir_path.c_str(), i); in TEST_F() [all …]
|
D | odr_fs_utils.cc | 60 if (!OS::DirectoryExists(dir_path.c_str())) { in CleanDirectory() 65 if (nftw(dir_path.c_str(), NftwCleanUpCallback, kMaxDescriptors, FTW_DEPTH | FTW_MOUNT) != 0) { in CleanDirectory() 80 if (!OS::DirectoryExists(path.c_str())) { in EnsureDirectoryExists() 82 if (mkdir(path.c_str(), kDirectoryMode) != 0) { in EnsureDirectoryExists() 93 if (statvfs(path.c_str(), &sv) != 0) { in GetFreeSpace() 112 std::unique_ptr<DIR, int (*)(DIR*)> dir(opendir(current.c_str()), closedir); in GetUsedSpace() 123 unvisited.push(entity_name.c_str()); in GetUsedSpace() 126 if (stat(entity_name.c_str(), &sb) != 0) { in GetUsedSpace()
|
/art/libartbase/base/ |
D | common_art_test.cc | 71 nftw(path_.c_str(), [](const char* name, const struct stat*, int type, struct FTW *) { in ~ScratchDir() 97 int fd = open(filename_.c_str(), O_RDWR | O_CREAT | O_CLOEXEC, 0666); in ScratchFile() 138 if (!OS::FileExists(filename_.c_str())) { in Unlink() 142 int unlink_result = unlink(filename_.c_str()); in Unlink() 186 setenv("ANDROID_BUILD_TOP", android_build_top.c_str(), /*overwrite=*/0); in GetAndroidBuildTop() 224 setenv("ANDROID_HOST_OUT", android_host_out.c_str(), /*overwrite=*/0); in GetAndroidHostOut() 238 setenv("ANDROID_ROOT", android_host_out.c_str(), 1); in SetUpAndroidRootEnvVars() 248 std::string android_i18n_root = android_host_out.c_str(); in SetUpAndroidRootEnvVars() 250 setenv("ANDROID_I18N_ROOT", android_i18n_root.c_str(), 1); in SetUpAndroidRootEnvVars() 259 std::string android_art_root = android_host_out.c_str(); in SetUpAndroidRootEnvVars() [all …]
|
D | file_utils_test.cc | 53 GetSystemImageFilename("/system/framework/boot.art", InstructionSet::kArm).c_str()); in TEST_F() 69 UniqueCPtr<char> root_dup(strdup(android_root_env.c_str())); in TEST_F() 73 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() 98 ASSERT_EQ(0, setenv("ANDROID_ROOT", android_root_env.c_str(), /* overwrite */ 1)); in TEST_F() 116 UniqueCPtr<char> root_dup(strdup(android_art_root_env.c_str())); in TEST_F() 120 EXPECT_STREQ(dir, android_art_root2.c_str()) << error_msg; in TEST_F() 142 UniqueCPtr<char> real_root3(realpath(android_art_root3.c_str(), nullptr)); in TEST_F() 144 UniqueCPtr<char> real_root(realpath(android_art_root.c_str(), nullptr)); in TEST_F() [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/dexoptanalyzer/ |
D | dexoptanalyzer_test.cc | 36 EXPECT_TRUE(OS::FileExists(file_path.c_str())) << file_path << " should be a valid file path"; in GetDexoptAnalyzerCmd() 102 OatFileAssistant oat_file_assistant(dex_file.c_str(), in Verify() 133 GenerateOdexForTest(dex_location.c_str(), odex_location.c_str(), CompilerFilter::kSpeed); in TEST_F() 148 GenerateOdexForTest(dex_location.c_str(), odex_location.c_str(), CompilerFilter::kSpeedProfile); in TEST_F() 164 GenerateOdexForTest(dex_location.c_str(), odex_location.c_str(), CompilerFilter::kVerify); in TEST_F() 191 GenerateOdexForTest(dex_location.c_str(), odex_location.c_str(), CompilerFilter::kVerify); in TEST_F() 207 GenerateOdexForTest(dex_location.c_str(), odex_location.c_str(), CompilerFilter::kSpeed); in TEST_F() 219 GenerateOdexForTest(dex_location.c_str(), odex_location.c_str(), CompilerFilter::kSpeed); in TEST_F() 237 GenerateOdexForTest(dex_location.c_str(), odex_location.c_str(), CompilerFilter::kSpeed); in TEST_F() 251 GenerateOatForTest(dex_location.c_str(), in TEST_F() [all …]
|
/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 | 148 const char* c_str() const { in c_str() function in art::NullableScopedUtfChars 185 ThrowWrappedIOException("%s", it->c_str()); in CreateCookieFromOatFileManagerResult() 218 ThrowWrappedIOException("%s", error_message.c_str()); in AllocateDexMemoryMap() 315 if (sourceName.c_str() == nullptr) { in DexFile_openDexFileNative() 322 Runtime::Current()->GetOatFileManager().OpenDexFilesFromOat(sourceName.c_str(), in DexFile_openDexFileNative() 413 if (class_name.c_str() == nullptr) { in DexFile_defineClassNative() 417 const std::string descriptor(DotToDescriptor(class_name.c_str())); in DexFile_defineClassNative() 418 const size_t hash(ComputeModifiedUtf8Hash(descriptor.c_str())); in DexFile_defineClassNative() 421 OatDexFile::FindClassDef(*dex_file, descriptor.c_str(), hash); in DexFile_defineClassNative() 436 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 | 58 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/ |
D | art_dex_file_loader.cc | 113 error_msg->c_str()); in GetMultiDexChecksums() 119 std::unique_ptr<ZipEntry> zip_entry(zip_archive->Find(zip_entry_name.c_str(), error_msg)); in GetMultiDexChecksums() 122 zip_entry_name.c_str(), error_msg->c_str()); in GetMultiDexChecksums() 140 zip_entry.reset(zip_archive->Find(zip_entry_name.c_str(), error_msg)); in GetMultiDexChecksums() 199 location.c_str()); in Open() 219 location.c_str()); in Open() 293 *error_msg = StringPrintf("Expected valid zip or dex file: '%s'", location.c_str()); in OpenWithMagic() 315 std::unique_ptr<ZipArchive> zip_archive(ZipArchive::OpenFromFd(fd, location.c_str(), error_msg)); in OpenZip() 338 *error_msg = StringPrintf("DexFile: fstat '%s' failed: %s", location.c_str(), in OpenFile() 343 *error_msg = StringPrintf("Attempt to mmap directory '%s'", location.c_str()); in OpenFile() [all …]
|