Home
last modified time | relevance | path

Searched refs:c_str (Results 126 – 150 of 294) sorted by relevance

12345678910>>...12

/art/compiler/utils/
Dswap_space_test.cc39 unlink(scratch.GetFilename().c_str()); in SwapTest()
/art/dexlist/
Ddexlist_test.cc45 EXPECT_TRUE(OS::FileExists(file_path.c_str())) << file_path << " should be a valid file path"; in Exec()
/art/runtime/native/
Ddalvik_system_BaseDexClassLoader.cc29 ScopedLocalRef<jstring> jstring(env, env->NewStringUTF(string.c_str())); in append_string()
Ddalvik_system_VMRuntime.cc206 ScopedLocalRef<jstring> str(env, env->NewStringUTF(properties[i].c_str())); in VMRuntime_properties()
223 return class_path.empty() ? "." : class_path.c_str(); in DefaultToDot()
665 if (instruction_set.c_str() == nullptr) { in VMRuntime_isBootClassPathOnDisk()
668 InstructionSet isa = GetInstructionSetFromString(instruction_set.c_str()); in VMRuntime_isBootClassPathOnDisk()
671 std::string message(StringPrintf("Instruction set %s is invalid.", instruction_set.c_str())); in VMRuntime_isBootClassPathOnDisk()
672 env->ThrowNew(iae.get(), message.c_str()); in VMRuntime_isBootClassPathOnDisk()
714 Runtime::Current()->SetProcessPackageName(package_name.c_str()); in VMRuntime_setProcessPackageName()
719 Runtime::Current()->SetProcessDataDirectory(data_dir.c_str()); in VMRuntime_setProcessDataDirectory()
767 return ClassLoaderContext::IsValidEncoding(encoded_class_loader_context.c_str()); in VMRuntime_isValidClassLoaderContext()
Djava_lang_Class.cc181 if (name.c_str() == nullptr) { in Class_classForName()
188 if (!IsValidBinaryClassName(name.c_str())) { in Class_classForName()
190 "Invalid name: %s", name.c_str()); in Class_classForName()
194 std::string descriptor(DotToDescriptor(name.c_str())); in Class_classForName()
200 hs.NewHandle(class_linker->FindClass(soa.Self(), descriptor.c_str(), class_loader))); in Class_classForName()
523 ThrowNoSuchFieldException(h_klass.Get(), name_str.c_str()); in Class_getDeclaredField()
906 klass->PrettyClass().c_str()); in Class_newInstance()
916 klass->PrettyClass().c_str(), caller->PrettyClass().c_str()); in Class_newInstance()
926 klass->PrettyClass().c_str()); in Class_newInstance()
956 constructor->PrettyMethod().c_str(), caller->PrettyClass().c_str()); in Class_newInstance()
/art/runtime/
Dreference_table.cc109 std::string msg(StringPrintf("%5zd of %s", total, className.c_str())); in DumpSummaryLine()
198 StringAppendF(&extras, " \"%s\"", utf8.c_str()); in Dump()
200 StringAppendF(&extras, " \"%.16s... (%d chars)", utf8.c_str(), s->GetLength()); in Dump()
207 extras = StringPrintf(" (referent is a %s)", referent->PrettyTypeOf().c_str()); in Dump()
Dplugin.cc40 void* res = dlopen(library_.c_str(), RTLD_LAZY); in Load()
Dtrace.cc320 Thread::Current()->ThrowNewException("Ljava/lang/RuntimeException;", msg.c_str()); in Start()
337 Thread::Current()->ThrowNewException("Ljava/lang/RuntimeException;", msg.c_str()); in Start()
676 WriteToBuf(reinterpret_cast<const uint8_t*>(header.c_str()), header.length()); in FinishTracing()
683 memcpy(data.data(), header.c_str(), header.length()); in FinishTracing()
693 if (!trace_file_->WriteFully(header.c_str(), header.length()) || in FinishTracing()
697 ThrowRuntimeException("%s", detail.c_str()); in FinishTracing()
840 PrettyDescriptor(method->GetDeclaringClassDescriptor()).c_str(), method->GetName(), in GetMethodLine()
841 method->GetSignature().ToString().c_str(), method->GetDeclaringClassSourceFile()); in GetMethodLine()
971 WriteToBuf(reinterpret_cast<const uint8_t*>(method_line.c_str()), method_line.length()); in LogMethodTraceEvent()
983 WriteToBuf(reinterpret_cast<const uint8_t*>(thread_name.c_str()), thread_name.length()); in LogMethodTraceEvent()
Dnative_stack_dump.cc257 addr2linePath.c_str(), in Addr2line()
262 map_src.c_str(), in Addr2line()
288 FILE* stream = popen(cmd.c_str(), "r"); in RunCommand()
Dparsed_options.cc584 UsageMessage(stdout, "%s\n", parse_result.GetMessage().c_str()); in DoParse()
587 Usage("%s\n", parse_result.GetMessage().c_str()); in DoParse()
590 Usage("%s\n", parse_result.GetMessage().c_str()); in DoParse()
690 (boot_class_path != nullptr) ? boot_class_path->Join().c_str() : "<nil>", in DoParse()
692 boot_class_path_locations->Join().c_str()); in DoParse()
750 UsageMessage(stream, oss.str().c_str()); in Usage()
Dcommon_runtime_test.cc257 std::vector<std::unique_ptr<const DexFile>> dex_files = OpenTestDexFiles(dex_name.c_str()); in LoadDexInWellKnownClassLoader()
461 art_file.reset(OS::CreateEmptyFile((use_fd_prefix + ".art").c_str())); in CompileBootImage()
462 vdex_file.reset(OS::CreateEmptyFile((use_fd_prefix + ".vdex").c_str())); in CompileBootImage()
463 oat_file.reset(OS::CreateEmptyFile((use_fd_prefix + ".oat").c_str())); in CompileBootImage()
557 CHECK(dex_file_loader.Open(dex.c_str(), in VisitDexes()
614 Check(expected_text.c_str()); in Check()
/art/tools/signal_dumper/
Dsignal_dumper.cc99 if (access(path.c_str(), X_OK) == 0) { in FindAddr2line()
106 if (access(path.c_str(), X_OK) == 0) { in FindAddr2line()
117 if (access(path.c_str(), X_OK) == 0) { in FindAddr2line()
297 addr2line.c_str(), in Addr2line()
302 map_src.c_str(), in Addr2line()
335 std::unique_ptr<DIR, int (*)(DIR*)> d(opendir(task_path.c_str()), closedir); in PtraceSiblings()
/art/test/1972-jni-id-swap-indices/
Djni_id.cc48 return env->NewStringUTF(oss.str().c_str()); in Java_Main_GetJniType()
/art/test/667-jit-jni-stub/
Djit_jni_stub_test.cc44 jmethodID method = env->GetStaticMethodID(klass, name.c_str(), "()V"); in Java_Main_callThrough()
/art/runtime/base/
Dtiming_logger.cc44 lock_(new Mutex(lock_name_.c_str(), kDefaultMutexLevel, true)) { in CumulativeLogger()
99 Histogram<uint64_t> candidate(label.c_str()); in AddPair()
104 histogram = new Histogram<uint64_t>(label.c_str(), kInitialBucketSize, max_buckets); in AddPair()
/art/test/912-classes/
Dclasses.cc289 return env->NewStringUTF(gEvents[i].c_str()); in Java_art_Test912_getClassLoadMessages()
315 name.c_str(), in ClassLoadCallback()
316 thread_name.c_str())); in ClassLoadCallback()
338 name.c_str(), in ClassPrepareCallback()
339 thread_name.c_str(), in ClassPrepareCallback()
340 cur_thread_name.c_str())); in ClassPrepareCallback()
391 ScopedLocalRef<jobject> thread_name(env, env->NewStringUTF(name_str.c_str())); in RunEventThread()
/art/oatdump/
Doatdump.cc145 std::unique_ptr<File> elf_file(OS::CreateEmptyFile(output_name_.c_str())); in Symbolize()
594 if (!OS::FileExists(vdex_filename.c_str())) { in Dump()
595 os << "File " << vdex_filename.c_str() << " does not exist\n"; in Dump()
630 bool result = dex_layout.ProcessDexFile(vdex_dex_file->GetLocation().c_str(), in Dump()
754 std::unique_ptr<const File> file(OS::OpenFileForReading(vdex_filename.c_str())); in OpenVdexUnquicken()
773 vdex_filename.c_str(), in OpenVdexUnquicken()
886 os << StringPrintf("location: %s\n", oat_dex_file.GetDexFileLocation().c_str()); in DumpOatDexFile()
1045 std::unique_ptr<File> file(OS::CreateEmptyFile(out_dex_path.c_str())); in ExportDexFile()
1063 os << StringPrintf("Dex file exported at %s (%zd bytes)\n", out_dex_path.c_str(), fsize); in ExportDexFile()
1125 class_method_index, pretty_method.c_str(), in DumpOatMethod()
[all …]
/art/compiler/jit/
Djit_compiler.cc82 const char* str = option.c_str() + strlen("--instruction-set-variant="); in ParseCompilerOptions()
90 const char* str = option.c_str() + strlen("--instruction-set-features="); in ParseCompilerOptions()
/art/runtime/mirror/
Darray-alloc-inl.h137 array_class->PrettyDescriptor().c_str(), in Alloc()
138 component_count).c_str()); in Alloc()
/art/profman/
Dprofile_assistant.cc127 flocks_[i] = LockedFile::Open(filenames[i].c_str(), O_RDWR, /* block= */ true, error); in Init()
201 reference_profile_file.c_str(), O_RDWR, /* block= */ true, &error); in ProcessProfiles()
/art/tools/jvmti-agents/wrapagentproperties/
Dwrapagentproperties.cc65 dlopen_handle(dlopen(agent_lib.c_str(), RTLD_LAZY)), in ProxyJavaVM()
150 strcpy(*out, val.c_str()); in WrapGetSystemProperty()
188 strcpy(out_prop_ptr[i], p.c_str()); in WrapGetSystemProperties()
254 return ((start == StartType::OnLoad) ? vm->load : vm->attach)(vm, options.c_str(), reserved); in CallNextAgent()
/art/dexlayout/
Ddexlayout.cc429 back_descriptor, name, type_descriptor.c_str(), width, index); in IndexString()
461 method = StringPrintf("%s.%s:%s", back_descriptor, name, type_descriptor.c_str()); in IndexString()
468 method.c_str(), proto.c_str(), width, index, width, secondary_index); in IndexString()
777 fprintf(out_file_, "<implements name=\"%s\">\n</implements>\n", dot.c_str()); in DumpInterface()
1036 code_offset, code_offset, dot.c_str(), name, type_descriptor.c_str()); in DumpBytecodes()
1172 char* type_descriptor = strdup(GetSignatureForProtoId(method_id->Proto()).c_str()); in DumpMethod()
1188 GetHiddenapiFlagStr(hiddenapi_flags).c_str()); in DumpMethod()
1211 fprintf(out_file_, "<constructor name=\"%s\"\n", dot.c_str()); in DumpMethod()
1213 fprintf(out_file_, " type=\"%s\"\n", dot.c_str()); in DumpMethod()
1222 fprintf(out_file_, " return=\"%s\"\n", dot.c_str()); in DumpMethod()
[all …]
/art/libdexfile/dex/
Ddex_file_verifier.cc854 ErrorStringPrintf("%s", error_msg.c_str()); in CheckClassDataItemField()
910 ErrorStringPrintf("%s", error_msg.c_str()); in CheckClassDataItemMethod()
1093 failure_reason_ = StringPrintf("Bad encoded_array value: %s", failure_reason_.c_str()); in CheckEncodedArray()
3336 GetFieldDescription(begin_, header_, idx).c_str(), in CheckFieldAccessFlags()
3338 PrettyJavaAccessFlags(field_access_flags).c_str()); in CheckFieldAccessFlags()
3356 GetFieldDescription(begin_, header_, idx).c_str(), in CheckFieldAccessFlags()
3358 PrettyJavaAccessFlags(field_access_flags).c_str()); in CheckFieldAccessFlags()
3368 GetFieldDescription(begin_, header_, idx).c_str(), in CheckFieldAccessFlags()
3370 PrettyJavaAccessFlags(field_access_flags).c_str()); in CheckFieldAccessFlags()
3383 GetFieldDescription(begin_, header_, idx).c_str(), in CheckFieldAccessFlags()
[all …]
/art/runtime/gc/space/
Dmalloc_space.cc67 StringPrintf("allocspace %s live-bitmap %d", name.c_str(), static_cast<int>(bitmap_index)), in MallocSpace()
72 StringPrintf("allocspace %s mark-bitmap %d", name.c_str(), static_cast<int>(bitmap_index)), in MallocSpace()
109 MemMap mem_map = MemMap::MapAnonymous(name.c_str(), in CreateMemMap()
/art/cmdline/
Dcmdline_types.h101 size_t val = ParseMemoryOption(arg.c_str(), Divisor);
184 return str.c_str();
193 double value = strtod(str.c_str(), &end);
215 const char* begin = str.c_str();
426 return str.c_str();
436 const char* pos = args.c_str();

12345678910>>...12