Searched refs:string (Results 1 - 25 of 219) sorted by relevance

123456789

/art/runtime/base/
H A Dstringprintf.h21 #include <string>
25 // Returns a string corresponding to printf-like formatting of the arguments.
26 std::string StringPrintf(const char* fmt, ...)
30 void StringAppendF(std::string* dst, const char* fmt, ...)
34 void StringAppendV(std::string* dst, const char* format, va_list ap);
H A Dtiming_logger.h24 #include <string>
36 explicit CumulativeLogger(const std::string& name);
46 void SetName(const std::string& name);
50 typedef std::map<std::string, Histogram<uint64_t> *> Histograms;
51 typedef std::map<std::string, Histogram<uint64_t> *>::const_iterator HistogramsIterator;
53 void AddPair(const std::string &label, uint64_t delta_time)
59 std::string name_;
60 const std::string lock_name_;
H A Dlogging.cc31 static std::string* gCmdLine = NULL;
32 static std::string* gProgramInvocationName = NULL;
33 static std::string* gProgramInvocationShortName = NULL;
48 // We need to parse a string that looks like
66 gCmdLine = new std::string(argv[0]);
71 gProgramInvocationName = new std::string(argv[0]);
73 gProgramInvocationShortName = new std::string((last_slash != NULL) ? last_slash + 1 : argv[0]);
76 gCmdLine = new std::string("<unset>");
83 std::vector<std::string> specs;
87 std::string spe
[all...]
H A Dstringprintf.cc23 void StringAppendV(std::string* dst, const char* format, va_list ap) {
65 std::string StringPrintf(const char* fmt, ...) {
68 std::string result;
74 void StringAppendF(std::string* dst, const char* format, ...) {
/art/compiler/
H A Doutput_stream.h22 #include <string>
36 explicit OutputStream(const std::string& location) : location_(location) {}
40 const std::string& GetLocation() const {
49 const std::string location_;
H A Dcompiled_method.h20 #include <string>
43 const std::string& elf_object, const std::string &symbol);
76 const std::string& GetSymbol() const;
90 const std::string symbol_;
121 CompiledMethod(CompilerDriver& driver, InstructionSet instruction_set, const std::string& code,
122 const std::vector<uint8_t>& gc_map, const std::string& symbol);
125 CompiledMethod(CompilerDriver& driver, InstructionSet instruction_set, const std::string& code,
126 const std::string& symbol);
H A Delf_writer_mclinker.h45 const std::string& android_root,
53 const std::string& android_root,
65 void AddRuntimeInputs(const std::string& android_root, bool is_host);
87 SafeMap<const std::string*, const std::string*> added_symbols_;
91 SafeMap<const std::string*, uint32_t> symbol_to_compiled_code_offset_;
H A Delf_writer_quick.h30 const std::string& android_root,
38 const std::string& android_root,
/art/runtime/
H A Dutils.h22 #include <string>
163 static inline std::string PrintableChar(uint16_t ch) {
164 std::string result;
175 // Returns an ASCII string corresponding to the given UTF-8 string.
177 std::string PrintableString(const std::string& utf8);
180 bool StartsWith(const std::string& s, const char* prefix);
183 bool EndsWith(const std::string& s, const char* suffix);
190 std::string PrettyDescripto
[all...]
H A Dstrutil.h20 #include <string.h>
H A Dreference_table_test.cc36 EXPECT_NE(oss.str().find("(empty)"), std::string::npos) << oss.str();
54 EXPECT_NE(oss.str().find("1 of java.lang.String"), std::string::npos) << oss.str();
55 EXPECT_EQ(oss.str().find("short[]"), std::string::npos) << oss.str();
68 std::string::npos) << oss.str();
69 EXPECT_NE(oss.str().find("1 of java.lang.String"), std::string::npos) << oss.str();
71 EXPECT_NE(oss.str().find("1 of short[]"), std::string::npos) << oss.str();
74 std::string::npos) << oss.str();
84 EXPECT_EQ(oss.str().find("java.lang.String"), std::string::npos) << oss.str();
94 EXPECT_EQ(oss.str().find("short[]"), std::string::npos) << oss.str();
96 EXPECT_NE(oss.str().find("1 of short[]"), std::string
[all...]
H A Dutils.cc34 #include "mirror/string.h"
72 std::string GetThreadName(pid_t tid) {
73 std::string result;
103 bool ReadFileToString(const std::string& file_name, std::string* result) {
122 std::string GetIsoDate() {
218 std::string PrettyDescriptor(const mirror::String* java_descriptor) {
225 std::string PrettyDescriptor(const mirror::Class* klass) {
232 std::string PrettyDescriptor(const std::string
[all...]
H A Doat_file.h20 #include <string>
41 static std::string DexFilenameToOdexFilename(const std::string& location);
45 static OatFile* Open(const std::string& filename,
46 const std::string& location,
55 static OatFile* OpenWritable(File* file, const std::string& location);
59 const std::string& location);
63 const std::string& GetLocation() const {
176 const std::string& GetDexFileLocation() const {
192 const std::string
[all...]
H A Dsignal_catcher.h35 explicit SignalCatcher(const std::string& stack_trace_file);
47 void Output(const std::string& s);
52 std::string stack_trace_file_;
/art/runtime/verifier/
H A Dinstruction_flags.cc19 #include <string.h>
24 std::string InstructionFlags::ToString() const {
H A Dreg_type.h29 #include <string>
206 const std::string& GetDescriptor() const {
223 virtual std::string Dump() const SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) = 0;
273 RegType(mirror::Class* klass, const std::string& descriptor, uint16_t cache_id)
284 const std::string descriptor_;
301 std::string Dump() const SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
307 static ConflictType* CreateInstance(mirror::Class* klass, const std::string& descriptor,
315 ConflictType(mirror::Class* klass, const std::string& descriptor, uint16_t cache_id)
331 std::string Dump() const SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
337 static UndefinedType* CreateInstance(mirror::Class* klass, const std::string
[all...]
/art/runtime/base/unix_file/
H A Dfd_file.h21 #include <string>
36 explicit FdFile(int fd, const std::string& path);
46 bool Open(const std::string& file_path, int flags);
47 bool Open(const std::string& file_path, int flags, mode_t mode);
60 std::string GetPath() const;
67 std::string file_path_;
H A Dstring_file.h22 #include <string>
30 // A RandomAccessFile implementation backed by a std::string. (That is, all data is
52 std::string data_;
H A Drandom_access_file_test.h22 #include <string>
43 std::string GetTmpPath(const std::string& name) {
44 std::string path;
52 static bool ReadString(RandomAccessFile* f, std::string* s) {
73 const std::string content("hello");
79 void TestReadContent(const std::string& content, RandomAccessFile* file) {
87 ASSERT_EQ(std::string(buf.get(), content.size()), content);
93 ASSERT_EQ(std::string(buf.get(), short_request),
101 ASSERT_EQ(std::string(bu
[all...]
/art/compiler/llvm/
H A Dllvm_compilation_unit.h32 #include <string>
74 void SetBitcodeFileName(const std::string& bitcode_filename) {
97 const std::string& GetElfObject() const {
118 std::string bitcode_filename_;
120 std::string elf_object_;
127 void DumpBitcodeToString(std::string& str_buffer);
129 bool MaterializeToString(std::string& str_buffer);
H A Dcompiler_llvm.h28 #include <string>
73 void SetBitcodeFileName(std::string const& filename) {
80 CompiledMethod* CompileGBCMethod(DexCompilationUnit* dex_compilation_unit, std::string* func);
94 std::string bitcode_filename_;
/art/compiler/sea_ir/ir/
H A Dsea_node.h35 // - an id and corresponding string representation.
50 // Returns the id of the current block as string
51 const std::string& StringId() const {
68 std::string string_id_;
/art/runtime/gc/space/
H A Dspace.cc25 Space::Space(const std::string& name, GcRetentionPolicy gc_retention_policy)
38 DiscontinuousSpace::DiscontinuousSpace(const std::string& name,
H A Dimage_space.h48 static ImageSpace* Create(const std::string& image)
63 const std::string GetImageFilename() const {
87 static ImageSpace* Init(const std::string& image, bool validate_oat_file)
102 ImageSpace(const std::string& name, MemMap* mem_map, accounting::SpaceBitmap* live_bitmap);
/art/runtime/mirror/
H A Dstring.cc17 #include "string.h"
120 String* string = Alloc(self, GetJavaLangString(), utf16_length); local
121 if (string == NULL) {
125 CharArray* array = const_cast<CharArray*>(string->GetCharArray());
133 string->SetHashCode(hash_code);
135 string->ComputeHashCode();
137 return string;
150 String* string = Alloc(self, GetJavaLangString(), utf16_length); local
151 if (string == NULL) {
155 const_cast<uint16_t*>(string
172 String* string = down_cast<String*>(java_lang_String->AllocObject(self)); local
[all...]

Completed in 1601 milliseconds

123456789