/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() 74 ASSERT_TRUE(OS::FileExists(GetSystemImageFile().c_str())) in SetUp() 76 ASSERT_TRUE(OS::FileExists(GetDexSrc1().c_str())) in SetUp() 78 ASSERT_TRUE(OS::FileExists(GetStrippedDexSrc1().c_str())) in SetUp() 81 dex_file_loader.GetMultiDexChecksums(GetStrippedDexSrc1().c_str(), &checksums, &error_msg)) in SetUp() 83 ASSERT_TRUE(OS::FileExists(GetDexSrc2().c_str())) in SetUp() 90 ASSERT_TRUE(dex_file_loader.Open(GetMultiDexSrc1().c_str(), in SetUp() [all …]
|
D | oat_file_assistant_test.cc | 111 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 …]
|
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::kQuicken); in TEST_F() 70 oat_location.c_str(), in TEST_F() 71 oat_location.c_str(), in TEST_F()
|
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 | 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 | oat_file.cc | 305 vdex_filename.c_str(), in LoadVdex() 306 error_msg->c_str()); in LoadVdex() 348 file_path.c_str(), in ComputeFields() 349 symbol_error_msg.c_str()); in ComputeFields() 355 file_path.c_str(), in ComputeFields() 356 symbol_error_msg.c_str()); in ComputeFields() 368 StringPrintf("Failed to find oatdatabimgrelrolastword symbol in '%s'", file_path.c_str()); in ComputeFields() 382 *error_msg = StringPrintf("Failed to find oatbsslastword symbol in '%s'", file_path.c_str()); in ComputeFields() 401 *error_msg = StringPrintf("Failed to find oatdexlastword symbol in '%s'", file_path.c_str()); in ComputeFields() 442 oat_file->GetLocation().c_str(), in ReadIndexBssMapping() [all …]
|
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 | 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()
|
/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() 90 UniqueCPtr<char> real_root3(realpath(android_root3.c_str(), nullptr)); in TEST_F() 92 UniqueCPtr<char> real_root(realpath(android_root.c_str(), nullptr)); in TEST_F() 100 ASSERT_EQ(0, setenv("ANDROID_ROOT", android_root_env.c_str(), /* overwrite */ 1)); in TEST_F() 118 UniqueCPtr<char> root_dup(strdup(android_art_root_env.c_str())); in TEST_F() 122 EXPECT_STREQ(dir, android_art_root2.c_str()) << error_msg; in TEST_F() [all …]
|
D | common_art_test.cc | 68 nftw(path_.c_str(), [](const char* name, const struct stat*, int type, struct FTW *) { in ~ScratchDir() 93 int fd = open(filename_.c_str(), O_RDWR | O_CREAT | O_CLOEXEC, 0666); in ScratchFile() 133 if (!OS::FileExists(filename_.c_str())) { in Unlink() 137 int unlink_result = unlink(filename_.c_str()); in Unlink() 187 setenv("ANDROID_HOST_OUT", android_host_out.c_str(), 1); in SetUpAndroidRootEnvVars() 208 setenv("ANDROID_I18N_ROOT", android_i18n_root.c_str(), 1); in SetUpAndroidRootEnvVars() 219 setenv("ANDROID_ART_ROOT", android_art_root.c_str(), 1); in SetUpAndroidRootEnvVars() 230 setenv("ANDROID_TZDATA_ROOT", android_tzdata_root.c_str(), 1); in SetUpAndroidRootEnvVars() 253 setenv("ANDROID_DATA", android_data.c_str(), 1); in SetUpAndroidDataDir() 259 dalvik_cache_.append(android_data_.c_str()); in SetUp() [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/libnativeloader/ |
D | native_loader_namespace.cpp | 53 auto raw = android_get_exported_namespace(name.c_str()); in GetExportedNamespace() 58 auto raw = NativeBridgeGetExportedNamespace(name.c_str()); in GetExportedNamespace() 93 is_bridged = NativeBridgeIsPathSupported(search_paths.c_str()); in Create() 123 android_create_namespace(name.c_str(), nullptr, search_paths.c_str(), type, in Create() 124 permitted_paths.c_str(), effective_parent.ToRawAndroidNamespace()); in Create() 130 name.c_str(), nullptr, search_paths.c_str(), type, permitted_paths.c_str(), in Create() 143 this->name().c_str(), target.name().c_str()); in Link() 146 shared_libs.c_str())) { in Link() 151 target.ToRawNativeBridgeNamespace(), shared_libs.c_str())) { in Link()
|
D | native_loader_test.cpp | 308 EXPECT_CALL(*mock, dlopen(StrEq(l.c_str()), RTLD_NOW | RTLD_NODELETE)) in SetExpectations() 381 StrEq(expected_permitted_path), NsEq(expected_parent_namespace.c_str()))) in SetExpectations() 382 .WillOnce(Return(TO_MOCK_NAMESPACE(TO_ANDROID_NAMESPACE(dex_path.c_str())))); in SetExpectations() 429 env(), target_sdk_version, env()->NewStringUTF(class_loader.c_str()), is_shared, in RunTest() 430 env()->NewStringUTF(dex_path.c_str()), env()->NewStringUTF(library_path.c_str()), in RunTest() 431 env()->NewStringUTF(permitted_path.c_str())); in RunTest() 434 EXPECT_EQ(err, nullptr) << "Error is: " << std::string(ScopedUtfChars(env(), err).c_str()); in RunTest() 438 FindNamespaceByClassLoader(env(), env()->NewStringUTF(class_loader.c_str())); in RunTest() 441 EXPECT_EQ(dex_path.c_str(), reinterpret_cast<const char*>(ns)); in RunTest() 444 FindNativeLoaderNamespaceByClassLoader(env(), env()->NewStringUTF(class_loader.c_str())); in RunTest() [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 | 146 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/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/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/runtime/gc/space/ |
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()
|
/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/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 …]
|