Home
last modified time | relevance | path

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

12345678910

/art/runtime/
Ddex2oat_environment_test.h50 UniqueCPtr<const char[]> android_data_real(realpath(android_data_.c_str(), nullptr)); in SetUp()
56 ASSERT_EQ(0, mkdir(scratch_dir_.c_str(), 0700)); in SetUp()
60 ASSERT_EQ(0, mkdir(odex_oat_dir_.c_str(), 0700)); in SetUp()
63 ASSERT_EQ(0, mkdir(odex_dir_.c_str(), 0700)); in SetUp()
68 ASSERT_TRUE(OS::FileExists(GetSystemImageFile().c_str())) in SetUp()
70 ASSERT_TRUE(OS::FileExists(GetDexSrc1().c_str())) in SetUp()
72 ASSERT_TRUE(OS::FileExists(GetStrippedDexSrc1().c_str())) in SetUp()
74 … ASSERT_FALSE(DexFile::GetMultiDexChecksums(GetStrippedDexSrc1().c_str(), &checksums, &error_msg)) in SetUp()
76 ASSERT_TRUE(OS::FileExists(GetDexSrc2().c_str())) in SetUp()
83 ASSERT_TRUE(DexFile::Open(GetMultiDexSrc1().c_str(), in SetUp()
[all …]
Doat_file_assistant_test.cc59 if (chmod(dex_parent_.c_str(), 0555) != 0) { in ScopedNonWritable()
65 bool IsSuccessful() { return is_valid_ && (access(dex_parent_.c_str(), W_OK) != 0); } in IsSuccessful()
69 if (chmod(dex_parent_.c_str(), 0777) != 0) { in ~ScopedNonWritable()
90 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
112 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F()
137 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
167 ASSERT_EQ(0, symlink(scratch_dir.c_str(), link.c_str())); in TEST_F()
170 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
198 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F()
204 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); in TEST_F()
[all …]
Dcommon_throws.cc70 self->ThrowNewException(exception_descriptor, msg.str().c_str()); in ThrowException()
88 self->ThrowNewWrappedException(exception_descriptor, msg.str().c_str()); in ThrowWrappedException()
96 ArtMethod::PrettyMethod(method).c_str()).c_str()); in ThrowAbstractMethodError()
103 /* with_signature */ true).c_str()).c_str()); in ThrowAbstractMethodError()
116 StringPrintf("length=%d; index=%d", length, index).c_str()); in ThrowArrayIndexOutOfBoundsException()
125 mirror::Class::PrettyDescriptor(element_class).c_str(), in ThrowArrayStoreException()
126 mirror::Class::PrettyDescriptor(array_class).c_str()).c_str()); in ThrowArrayStoreException()
150 mirror::Class::PrettyDescriptor(src_type).c_str(), in ThrowClassCastException()
151 mirror::Class::PrettyDescriptor(dest_type).c_str()).c_str()); in ThrowClassCastException()
163 ThrowException("Ljava/lang/ClassCircularityError;", c, msg.str().c_str()); in ThrowClassCircularityError()
[all …]
Delf_file.cc112 file->GetPath().c_str(), file->Fd(), strerror(errno)); in Setup()
119 file->GetPath().c_str()); in Setup()
133 file->GetPath().c_str(), in Setup()
143 sizeof(Elf_Ehdr), file->GetPath().c_str()); in Setup()
153 file->GetPath().c_str(), in Setup()
156 *error_msg = StringPrintf("Failed to map ELF program headers: %s", error_msg->c_str()); in Setup()
168 file->GetPath().c_str(), in Setup()
171 *error_msg = StringPrintf("Failed to map ELF file: %s", error_msg->c_str()); in Setup()
192 file->GetPath().c_str()); in Setup()
200 file->GetPath().c_str()); in Setup()
[all …]
Doat_file.cc199 vdex_filename.c_str(), in LoadVdex()
200 error_msg->c_str()); in LoadVdex()
213 file_path.c_str(), in ComputeFields()
214 symbol_error_msg.c_str()); in ComputeFields()
230 file_path.c_str(), in ComputeFields()
231 symbol_error_msg.c_str()); in ComputeFields()
244 *error_msg = StringPrintf("Failed to find oatbasslastword symbol in '%s'", file_path.c_str()); in ComputeFields()
313 GetLocation().c_str(), in Setup()
314 cause.c_str()); in Setup()
323 GetLocation().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()
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()
Ddex_file_test.cc306 std::unique_ptr<const DexFile> raw(OpenDexFileBase64(kRawDex, tmp.GetFilename().c_str())); in TEST_F()
313 OpenDexFileInMemoryBase64(kRawDex, tmp.GetFilename().c_str(), 0x00d87910U, true); in TEST_F()
319 std::unique_ptr<const DexFile> raw(OpenDexFileBase64(kRawDex38, tmp.GetFilename().c_str())); in TEST_F()
328 const char* location = tmp.GetFilename().c_str(); in TEST_F()
340 const char* location = tmp.GetFilename().c_str(); in TEST_F()
360 …EXPECT_TRUE(DexFile::GetMultiDexChecksums(GetLibCoreDexFileNames()[0].c_str(), &checksums, &error_… in TEST_F()
370 EXPECT_TRUE(DexFile::GetMultiDexChecksums(multidex_file.c_str(), in TEST_F()
378 EXPECT_EQ(dexes[0]->GetLocation(), DexFile::GetMultiDexLocation(0, multidex_file.c_str())); in TEST_F()
381 EXPECT_EQ(dexes[1]->GetLocation(), DexFile::GetMultiDexLocation(1, multidex_file.c_str())); in TEST_F()
536 const char* dex_location = dex_location_str.c_str(); in TEST_F()
[all …]
Dreflection.cc217 PrettyDescriptor(found_descriptor).c_str()).c_str()); in ThrowIllegalPrimitiveArgumentException()
250 m->PrettyMethod(false).c_str(), in BuildArgArrayFromObjectArray()
252 mirror::Class::PrettyDescriptor(dst_class).c_str(), in BuildArgArrayFromObjectArray()
253 mirror::Object::PrettyTypeOf(arg.Get()).c_str()).c_str()); in BuildArgArrayFromObjectArray()
279 ArtMethod::PrettyMethod(m, false).c_str(), \ in BuildArgArrayFromObjectArray()
282 mirror::Object::PrettyTypeOf(arg.Get()).c_str()).c_str()); \ in BuildArgArrayFromObjectArray()
436 m->PrettyMethod().c_str()); in CheckMethodArguments()
635 classes_size, arg_count).c_str()); in InvokeMethod()
649 calling_class == nullptr ? "null" : calling_class->PrettyClass().c_str(), in InvokeMethod()
650 PrettyJavaAccessFlags(m->GetAccessFlags()).c_str(), in InvokeMethod()
[all …]
/art/compiler/optimizing/
Dinduction_var_analysis_test.cc268 EXPECT_STREQ("((1) * i + (0)):PrimInt", GetInductionInfo(store->InputAt(1), 0).c_str()); in TEST_F()
269 EXPECT_STREQ("((1) * i + (1)):PrimInt", GetInductionInfo(increment_[0], 0).c_str()); in TEST_F()
275 EXPECT_STREQ("((100) (TC-loop) ((0) < (100)))", GetTripCount(0).c_str()); in TEST_F()
300 EXPECT_STREQ("((1) * i + (100)):PrimInt", GetInductionInfo(add, 0).c_str()); in TEST_F()
301 EXPECT_STREQ("(( - (1)) * i + (100)):PrimInt", GetInductionInfo(sub, 0).c_str()); in TEST_F()
302 EXPECT_STREQ("((100) * i + (0)):PrimInt", GetInductionInfo(mul, 0).c_str()); in TEST_F()
303 EXPECT_STREQ("((2) * i + (0)):PrimInt", GetInductionInfo(shl, 0).c_str()); in TEST_F()
304 EXPECT_STREQ("(( - (1)) * i + (0)):PrimInt", GetInductionInfo(neg, 0).c_str()); in TEST_F()
330 GetInductionInfo(k_header, 0).c_str()); in TEST_F()
332 GetInductionInfo(store1->InputAt(1), 0).c_str()); in TEST_F()
[all …]
Dparallel_move_test.cc191 ASSERT_STREQ("(1 -> 2) (0 -> 1)", resolver.GetMessage().c_str()); in TYPED_TEST()
193 ASSERT_STREQ("(1 -> 2) (0 -> 1)", resolver.GetMessage().c_str()); in TYPED_TEST()
202 ASSERT_STREQ("(2 -> 3) (1 -> 2) (1 -> 4) (0 -> 1)", resolver.GetMessage().c_str()); in TYPED_TEST()
204 ASSERT_STREQ("(2 -> 3) (1 -> 2) (0 -> 1) (2 -> 4)", resolver.GetMessage().c_str()); in TYPED_TEST()
218 ASSERT_STREQ("(1 <-> 0)", resolver.GetMessage().c_str()); in TYPED_TEST()
220 ASSERT_STREQ("(1 -> T0) (0 -> 1) (T0 -> 0)", resolver.GetMessage().c_str()); in TYPED_TEST()
229 ASSERT_STREQ("(1 -> 2) (1 <-> 0)", resolver.GetMessage().c_str()); in TYPED_TEST()
231 ASSERT_STREQ("(1 -> 2) (0 -> 1) (2 -> 0)", resolver.GetMessage().c_str()); in TYPED_TEST()
240 ASSERT_STREQ("(0 -> 2) (1 <-> 0)", resolver.GetMessage().c_str()); in TYPED_TEST()
242 ASSERT_STREQ("(0 -> 2) (1 -> 0) (2 -> 1)", resolver.GetMessage().c_str()); in TYPED_TEST()
[all …]
Dside_effects_test.cc205 SideEffects::None().ToString().c_str()); in TEST()
208 SideEffects::All().ToString().c_str()); in TEST()
211 SideEffects::AllWrites().ToString().c_str()); in TEST()
214 SideEffects::AllReads().ToString().c_str()); in TEST()
217 SideEffects::FieldWriteOfType(Primitive::kPrimNot, false).ToString().c_str()); in TEST()
220 SideEffects::FieldWriteOfType(Primitive::kPrimNot, true).ToString().c_str()); in TEST()
223 SideEffects::ArrayWriteOfType(Primitive::kPrimBoolean).ToString().c_str()); in TEST()
226 SideEffects::ArrayWriteOfType(Primitive::kPrimChar).ToString().c_str()); in TEST()
229 SideEffects::ArrayWriteOfType(Primitive::kPrimShort).ToString().c_str()); in TEST()
232 SideEffects::FieldReadOfType(Primitive::kPrimByte, false).ToString().c_str()); in TEST()
[all …]
/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/runtime/native/
Ddalvik_system_DexFile.cc137 const char* c_str() const { in c_str() function in art::NullableScopedUtfChars
178 ThrowWrappedIOException("%s", error_message.c_str()); in AllocateDexMemoryMap()
196 ThrowWrappedIOException("%s", error_message.c_str()); in CreateDexFile()
268 if (sourceName.c_str() == nullptr) { in DexFile_openDexFileNative()
278 dex_files = runtime->GetOatFileManager().OpenDexFilesFromOat(sourceName.c_str(), in DexFile_openDexFileNative()
303 ThrowWrappedIOException("%s", it->c_str()); in DexFile_openDexFileNative()
367 if (class_name.c_str() == nullptr) { in DexFile_defineClassNative()
371 const std::string descriptor(DotToDescriptor(class_name.c_str())); in DexFile_defineClassNative()
372 const size_t hash(ComputeModifiedUtf8Hash(descriptor.c_str())); in DexFile_defineClassNative()
375 OatDexFile::FindClassDef(*dex_file, descriptor.c_str(), hash); in DexFile_defineClassNative()
[all …]
Djava_lang_VMClassLoader.cc67 if (name.c_str() == nullptr) { in VMClassLoader_findLoadedClass()
73 std::string descriptor(DotToDescriptor(name.c_str())); in VMClassLoader_findLoadedClass()
74 const size_t descriptor_hash = ComputeModifiedUtf8Hash(descriptor.c_str()); in VMClassLoader_findLoadedClass()
78 descriptor.c_str(), in VMClassLoader_findLoadedClass()
95 c->PrettyDescriptor().c_str()); in VMClassLoader_findLoadedClass()
109 descriptor.c_str(), in VMClassLoader_findLoadedClass()
140 ScopedLocalRef<jstring> javaPath(env, env->NewStringUTF(location.c_str())); in VMClassLoader_getBootClassPathEntries()
/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/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/runtime/base/
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/runtime/arch/x86/
Dinstruction_set_features_x86_test.cc31 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()
/art/cmdline/
Dcmdline.h49 std::string system_filename(GetSystemImageFilename(location.c_str(), isa)); in LocationToFilename()
50 if (OS::FileExists(system_filename.c_str())) { in LocationToFilename()
69 if (GetDalvikCacheFilename(location.c_str(), dalvik_cache.c_str(), in LocationToFilename()
101 options.push_back(std::make_pair(boot_image_option.c_str(), nullptr)); in StartRuntime()
156 const char* filename = output_name_.c_str(); in Parse()
172 fprintf(stderr, "%s\n", error_msg.c_str()); in Parse()
184 fprintf(stderr, "%s\n", error_msg.c_str()); in Parse()
260 if (GetInstructionSetFromString(parent_dir_name.c_str()) != kNone) { in ParseCheckBootImage()
270 boot_image_location.c_str()); in ParseCheckBootImage()
281 fprintf(stderr, "%s", GetUsage().c_str()); in PrintUsage()
[all …]
/art/test/570-checker-osr/
Dosr.cc69 CHECK(chars.c_str() != nullptr); in Java_Main_isInOsrCode()
71 OsrVisitor visitor(soa.Self(), chars.c_str()); in Java_Main_isInOsrCode()
84 CHECK(chars.c_str() != nullptr); in Java_Main_isInInterpreter()
86 OsrVisitor visitor(soa.Self(), chars.c_str()); in Java_Main_isInInterpreter()
119 CHECK(chars.c_str() != nullptr); in Java_Main_ensureHasProfilingInfo()
121 ProfilingInfoVisitor visitor(soa.Self(), chars.c_str()); in Java_Main_ensureHasProfilingInfo()
159 CHECK(chars.c_str() != nullptr); in Java_Main_ensureHasOsrCode()
161 OsrCheckVisitor visitor(soa.Self(), chars.c_str()); in Java_Main_ensureHasOsrCode()
/art/test/common/
Druntime_state.cc148 CHECK(chars.c_str() != nullptr); in Java_Main_isAotCompiled()
150 chars.c_str(), kRuntimePointerSize); in Java_Main_isAotCompiled()
165 CHECK(chars.c_str() != nullptr); in Java_Main_isJitCompiled()
167 chars.c_str(), kRuntimePointerSize); in Java_Main_isJitCompiled()
186 CHECK(chars.c_str() != nullptr); in Java_Main_ensureJitCompiled()
188 chars.c_str(), kRuntimePointerSize); in Java_Main_ensureJitCompiled()
191 chars.c_str(), kRuntimePointerSize); in Java_Main_ensureJitCompiled()
193 DCHECK(method != nullptr) << "Unable to find method called " << chars.c_str(); in Java_Main_ensureJitCompiled()
223 CHECK(chars.c_str() != nullptr); in Java_Main_hasSingleImplementation()
225 chars.c_str(), kRuntimePointerSize); in Java_Main_hasSingleImplementation()
[all …]
/art/runtime/gc/space/
Dimage_space_fs.h45 if (!OS::DirectoryExists(dir.c_str())) { in DeleteDirectoryContents()
48 DIR* c_dir = opendir(dir.c_str()); in DeleteDirectoryContents()
60 std::string file = android::base::StringPrintf("%s/%s", dir.c_str(), name); in DeleteDirectoryContents()
66 if (rmdir(file.c_str()) != 0) { in DeleteDirectoryContents()
75 if (unlink(file.c_str()) != 0) { in DeleteDirectoryContents()
113 const char* file_name = boot_marker.c_str(); in MarkZygoteStart()
/art/runtime/arch/arm64/
Dinstruction_set_features_arm64_test.cc31 EXPECT_STREQ("a53", arm64_features->GetFeatureString().c_str()); in TEST()
39 EXPECT_STREQ("a53", cortex_a57_features->GetFeatureString().c_str()); in TEST()
47 EXPECT_STREQ("a53", cortex_a73_features->GetFeatureString().c_str()); in TEST()
55 EXPECT_STREQ("-a53", cortex_a35_features->GetFeatureString().c_str()); in TEST()
65 EXPECT_STREQ("-a53", kryo_features->GetFeatureString().c_str()); in TEST()
/art/compiler/utils/
Dtest_dex_file_builder_test.cc35 EXPECT_STREQ(dex_location, dex_file->GetLocation().c_str()); in TEST()
71 EXPECT_STREQ("[I TestClass.intField", dex_file->PrettyField(0u).c_str()); in TEST()
76 dex_file->PrettyMethod(0u).c_str()); in TEST()
78 dex_file->PrettyMethod(1u).c_str()); in TEST()

12345678910