/art/test/647-jni-get-field-id/ |
H A D | get_field_id.cc | 29 if (name_chars.c_str() == nullptr) { 33 if (signature_chars.c_str() == nullptr) { 36 jfieldID field_id = env->GetFieldID(cls, name_chars.c_str(), signature_chars.c_str());
|
/art/runtime/ |
H A D | dex2oat_environment_test.h | 49 UniqueCPtr<const char[]> android_data_real(realpath(android_data_.c_str(), nullptr)); 55 ASSERT_EQ(0, mkdir(scratch_dir_.c_str(), 0700)); 59 ASSERT_EQ(0, mkdir(odex_oat_dir_.c_str(), 0700)); 62 ASSERT_EQ(0, mkdir(odex_dir_.c_str(), 0700)); 67 ASSERT_TRUE(OS::FileExists(GetSystemImageFile().c_str())) 69 ASSERT_TRUE(OS::FileExists(GetDexSrc1().c_str())) 71 ASSERT_TRUE(OS::FileExists(GetStrippedDexSrc1().c_str())) 73 ASSERT_FALSE(DexFile::GetMultiDexChecksums(GetStrippedDexSrc1().c_str(), &checksums, &error_msg)) 75 ASSERT_TRUE(OS::FileExists(GetDexSrc2().c_str())) 82 ASSERT_TRUE(DexFile::Open(GetMultiDexSrc1().c_str(), [all...] |
H A D | exec_utils.cc | 39 const char* program = arg_vector[0].c_str(); 43 char* arg_str = const_cast<char*>(arg.c_str()); 71 command_line.c_str(), strerror(errno)); 81 command_line.c_str(), pid, got_pid, strerror(errno)); 96 command_line.c_str());
|
H A D | oat_file_assistant_test.cc | 54 if (chmod(dex_parent_.c_str(), 0555) != 0) { 60 bool IsSuccessful() { return is_valid_ && (access(dex_parent_.c_str(), W_OK) != 0); } 64 if (chmod(dex_parent_.c_str(), 0777) != 0) { 85 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); 107 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); 131 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); 161 ASSERT_EQ(0, symlink(scratch_dir.c_str(), link.c_str())); 164 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); 192 GenerateOatForTest(dex_location.c_str(), CompilerFilte [all...] |
H A D | reflection-inl.h | 109 PrettyDescriptor(srcType).c_str(), 110 PrettyDescriptor(dstType).c_str()).c_str()); 113 PrettyDescriptor(srcType).c_str(), 114 PrettyDescriptor(dstType).c_str()).c_str());
|
H A D | oat_file.cc | 199 vdex_filename.c_str(), 200 error_msg->c_str()); 213 file_path.c_str(), 214 symbol_error_msg.c_str()); 230 file_path.c_str(), 231 symbol_error_msg.c_str()); 244 *error_msg = StringPrintf("Failed to find oatbasslastword symbol in '%s'", file_path.c_str()); 310 GetLocation().c_str(), 311 cause.c_str()); 317 *error_msg = StringPrintf("In oat file '%s' found truncated OatHeader", GetLocation().c_str()); [all...] |
/art/runtime/base/ |
H A D | hex_dump_test.cc | 37 EXPECT_STREQ(oss.str().c_str(), 46 EXPECT_STREQ(oss.str().c_str(), 59 EXPECT_STREQ(oss.str().c_str() + (kBitsPerIntPtrT / 4), 67 EXPECT_STREQ(oss.str().c_str(),
|
H A D | to_str.h | 35 const char* c_str() const { function in class:art::ToStr 36 return s_.c_str();
|
H A D | scoped_flock_test.cc | 34 ASSERT_TRUE(file_lock.Init(scratch_file.GetFilename().c_str(),
|
H A D | systrace.h | 33 explicit ScopedTrace(const std::string& name) : ScopedTrace(name.c_str()) {}
|
/art/test/929-search/ |
H A D | search.cc | 36 if (utf.c_str() == nullptr) { 39 jvmtiError result = jvmti_env->AddToBootstrapClassLoaderSearch(utf.c_str()); 46 if (utf.c_str() == nullptr) { 49 jvmtiError result = jvmti_env->AddToSystemClassLoaderSearch(utf.c_str());
|
/art/compiler/optimizing/ |
H A D | induction_var_analysis_test.cc | 268 EXPECT_STREQ("((1) * i + (0)):PrimInt", GetInductionInfo(store->InputAt(1), 0).c_str()); 269 EXPECT_STREQ("((1) * i + (1)):PrimInt", GetInductionInfo(increment_[0], 0).c_str()); 275 EXPECT_STREQ("((100) (TC-loop) ((0) < (100)))", GetTripCount(0).c_str()); 300 EXPECT_STREQ("((1) * i + (100)):PrimInt", GetInductionInfo(add, 0).c_str()); 301 EXPECT_STREQ("(( - (1)) * i + (100)):PrimInt", GetInductionInfo(sub, 0).c_str()); 302 EXPECT_STREQ("((100) * i + (0)):PrimInt", GetInductionInfo(mul, 0).c_str()); 303 EXPECT_STREQ("((2) * i + (0)):PrimInt", GetInductionInfo(shl, 0).c_str()); 304 EXPECT_STREQ("(( - (1)) * i + (0)):PrimInt", GetInductionInfo(neg, 0).c_str()); 330 GetInductionInfo(k_header, 0).c_str()); 332 GetInductionInfo(store1->InputAt(1), 0).c_str()); [all...] |
H A D | parallel_move_test.cc | 191 ASSERT_STREQ("(1 -> 2) (0 -> 1)", resolver.GetMessage().c_str()); 193 ASSERT_STREQ("(1 -> 2) (0 -> 1)", resolver.GetMessage().c_str()); 202 ASSERT_STREQ("(2 -> 3) (1 -> 2) (1 -> 4) (0 -> 1)", resolver.GetMessage().c_str()); 204 ASSERT_STREQ("(2 -> 3) (1 -> 2) (0 -> 1) (2 -> 4)", resolver.GetMessage().c_str()); 218 ASSERT_STREQ("(1 <-> 0)", resolver.GetMessage().c_str()); 220 ASSERT_STREQ("(1 -> T0) (0 -> 1) (T0 -> 0)", resolver.GetMessage().c_str()); 229 ASSERT_STREQ("(1 -> 2) (1 <-> 0)", resolver.GetMessage().c_str()); 231 ASSERT_STREQ("(1 -> 2) (0 -> 1) (2 -> 0)", resolver.GetMessage().c_str()); 240 ASSERT_STREQ("(0 -> 2) (1 <-> 0)", resolver.GetMessage().c_str()); 242 ASSERT_STREQ("(0 -> 2) (1 -> 0) (2 -> 1)", resolver.GetMessage().c_str()); [all...] |
H A D | side_effects_test.cc | 205 SideEffects::None().ToString().c_str()); 208 SideEffects::All().ToString().c_str()); 211 SideEffects::AllWrites().ToString().c_str()); 214 SideEffects::AllReads().ToString().c_str()); 217 SideEffects::FieldWriteOfType(Primitive::kPrimNot, false).ToString().c_str()); 220 SideEffects::FieldWriteOfType(Primitive::kPrimNot, true).ToString().c_str()); 223 SideEffects::ArrayWriteOfType(Primitive::kPrimBoolean).ToString().c_str()); 226 SideEffects::ArrayWriteOfType(Primitive::kPrimChar).ToString().c_str()); 229 SideEffects::ArrayWriteOfType(Primitive::kPrimShort).ToString().c_str()); 232 SideEffects::FieldReadOfType(Primitive::kPrimByte, false).ToString().c_str()); [all...] |
/art/test/922-properties/ |
H A D | properties.cc | 60 if (string.c_str() == nullptr) { 65 jvmtiError result = jvmti_env->GetSystemProperty(string.c_str(), &value); 80 if (key_string.c_str() == nullptr) { 84 if (value_string.c_str() == nullptr) { 88 jvmtiError result = jvmti_env->SetSystemProperty(key_string.c_str(), value_string.c_str());
|
/art/test/936-search-onload/ |
H A D | search_onload.cc | 48 jvmtiError result = jvmti_env->AddToBootstrapClassLoaderSearch(dex1.c_str()); 54 result = jvmti_env->AddToSystemClassLoaderSearch(dex2.c_str());
|
/art/compiler/utils/ |
H A D | test_dex_file_builder_test.cc | 35 EXPECT_STREQ(dex_location, dex_file->GetLocation().c_str()); 71 EXPECT_STREQ("[I TestClass.intField", dex_file->PrettyField(0u).c_str()); 76 dex_file->PrettyMethod(0u).c_str()); 78 dex_file->PrettyMethod(1u).c_str());
|
/art/test/595-profile-saving/ |
H A D | profile-saving.cc | 61 CHECK(chars.c_str() != nullptr); 63 CreateProfilingInfoVisitor visitor(soa.Self(), chars.c_str()); 75 CHECK(filename_chars.c_str() != nullptr); 78 return ProfileSaver::HasSeenMethod(std::string(filename_chars.c_str()),
|
/art/runtime/gc/space/ |
H A D | image_space_fs.h | 45 if (!OS::DirectoryExists(dir.c_str())) { 48 DIR* c_dir = opendir(dir.c_str()); 60 std::string file = android::base::StringPrintf("%s/%s", dir.c_str(), name); 66 if (rmdir(file.c_str()) != 0) { 75 if (unlink(file.c_str()) != 0) { 113 const char* file_name = boot_marker.c_str();
|
/art/test/570-checker-osr/ |
H A D | osr.cc | 68 CHECK(chars.c_str() != nullptr); 70 OsrVisitor visitor(soa.Self(), chars.c_str()); 83 CHECK(chars.c_str() != nullptr); 85 OsrVisitor visitor(soa.Self(), chars.c_str()); 118 CHECK(chars.c_str() != nullptr); 120 ProfilingInfoVisitor visitor(soa.Self(), chars.c_str()); 158 CHECK(chars.c_str() != nullptr); 160 OsrCheckVisitor visitor(soa.Self(), chars.c_str());
|
/art/runtime/arch/mips/ |
H A D | instruction_set_features_mips_test.cc | 30 EXPECT_STREQ("fpu32,mips2", mips_features->GetFeatureString().c_str());
|
/art/runtime/arch/x86_64/ |
H A D | instruction_set_features_x86_64_test.cc | 31 x86_64_features->GetFeatureString().c_str());
|
/art/test/ti-agent/ |
H A D | agent_startup.cc | 31 BindFunctions(jvmti_env, env, name.c_str(), classLoader);
|
/art/cmdline/ |
H A D | cmdline.h | 49 std::string system_filename(GetSystemImageFilename(location.c_str(), isa)); 50 if (OS::FileExists(system_filename.c_str())) { 69 if (GetDalvikCacheFilename(location.c_str(), dalvik_cache.c_str(), 101 options.push_back(std::make_pair(boot_image_option.c_str(), nullptr)); 156 const char* filename = output_name_.c_str(); 172 fprintf(stderr, "%s\n", error_msg.c_str()); 184 fprintf(stderr, "%s\n", error_msg.c_str()); 260 if (GetInstructionSetFromString(parent_dir_name.c_str()) != kNone) { 270 boot_image_location.c_str()); [all...] |
/art/test/common/ |
H A D | runtime_state.cc | 148 CHECK(chars.c_str() != nullptr); 150 chars.c_str(), kRuntimePointerSize); 165 CHECK(chars.c_str() != nullptr); 167 chars.c_str(), kRuntimePointerSize); 186 CHECK(chars.c_str() != nullptr); 188 chars.c_str(), kRuntimePointerSize); 191 chars.c_str(), kRuntimePointerSize); 193 DCHECK(method != nullptr) << "Unable to find method called " << chars.c_str(); 223 CHECK(chars.c_str() != nullptr); 225 chars.c_str(), kRuntimePointerSiz [all...] |