/art/runtime/gc/ |
H A D | heap_test.cc | 55 mirror::String* string = mirror::String::AllocFromModifiedUtf8(soa.Self(), "hello, world!"); local 57 array->Set<false>(j, string);
|
/art/tools/ |
H A D | generate-operator-out.py | 22 import string namespace
|
H A D | cpplint.py | 85 import string namespace 205 'runtime/string', 261 'string', 'strstream', 'strstream.h', 'tempbuf.h', 'tree.h', 'typeinfo', 410 """Matches the string with the pattern, caching the compiled regexp.""" 420 """Searches the string for the pattern, caching the compiled regexp.""" 507 The empty string if the header is in the right order, or an 560 self.errors_by_category = {} # string to int dict storing error counts 588 filters: A string of comma-separated filters (eg "+whitespace/indent"). 668 filters: A string of comma-separated filters (eg "whitespace/indent"). 873 category: A string use [all...] |
/art/test/100-reflect2/src/ |
H A D | Main.java | 255 private static void ZBCDLFIJSV(boolean z, byte b, char c, double d, String string, float f, int i, long l, short s) { argument 256 System.out.println(z + " " + b + " " + c + " " + d + " " + " " + string + " " + f + " " + i + " " + l + " " + s);
|
/art/compiler/driver/ |
H A D | compiler_driver_test.cc | 113 const mirror::String* string = dex_cache->GetResolvedString(i); local 114 EXPECT_TRUE(string != NULL) << "string_idx=" << i;
|
/art/runtime/mirror/ |
H A D | string.cc | 17 #include "string-inl.h" 80 String* string = Alloc(self, utf16_length); local 81 if (UNLIKELY(string == nullptr)) { 84 CharArray* array = const_cast<CharArray*>(string->GetCharArray()); 91 string->SetHashCode(hash_code); 93 string->ComputeHashCode(); 95 return string; 106 String* string = Alloc(self, utf16_length); local 107 if (UNLIKELY(string == nullptr)) { 111 const_cast<uint16_t*>(string 128 String* string = down_cast<String*>(GetJavaLangString()->AllocObject(self)); local [all...] |
H A D | object_test.cc | 41 #include "string-inl.h" 62 Handle<String> string( 64 ASSERT_EQ(expected_utf16_length, string->GetLength()); 65 ASSERT_TRUE(string->GetCharArray() != NULL); 66 ASSERT_TRUE(string->GetCharArray()->GetData() != NULL); 67 // strlen is necessary because the 1-character string "\x00\x00" is interpreted as "" 68 ASSERT_TRUE(string->Equals(utf8_in) || (expected_utf16_length == 1 && strlen(utf8_in) == 0)); 69 ASSERT_TRUE(string->Equals(StringPiece(utf8_in)) || (expected_utf16_length == 1 && strlen(utf8_in) == 0)); 71 EXPECT_EQ(utf16_expected[i], string->CharAt(i)); 73 EXPECT_EQ(expected_hash, string 567 Class* string = class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/String;"); local [all...] |
/art/runtime/verifier/ |
H A D | reg_type_test.cc | 407 std::string expected = "Unresolved Reference: java.lang.DoesNotExist"; 458 RegType& string = cache_new.JavaLangString(); local 460 EXPECT_TRUE(string.Merge(Object, &cache_new).IsJavaLangObject());
|
/art/compiler/ |
H A D | image_writer.cc | 52 #include "mirror/string-inl.h" 71 bool ImageWriter::Write(const std::string& image_filename, 73 const std::string& oat_filename, 74 const std::string& oat_location) { 87 std::string error_msg; 233 std::string error_msg; 267 mirror::String* string = obj->AsString(); local 268 const uint16_t* utf16_string = string->GetCharArray()->GetData() + string->GetOffset(); 276 if (UNLIKELY(string [all...] |
/art/runtime/native/ |
H A D | dalvik_system_VMRuntime.cc | 142 static const char* DefaultToDot(const std::string& class_path) { 216 typedef std::map<std::string, mirror::String*> StringTable; 222 mirror::String* string = const_cast<mirror::Object*>(*root)->AsString(); local 223 table[string->ToModifiedUtf8()] = string; 230 mirror::String* string = dex_cache->GetResolvedString(string_idx); local 231 if (string != NULL) { 236 string = strings[utf8]; 237 if (string == NULL) { 240 // LOG(INFO) << "VMRuntime.preloadDexCaches resolved string 387 mirror::String* string = dex_cache->GetResolvedString(i); local [all...] |
/art/oatdump/ |
H A D | oatdump.cc | 22 #include <string> 275 std::string error_msg; 303 std::string error_msg; 362 std::string error_msg; 1029 std::string image_filename = image_space_.GetImageFilename(); 1030 std::string oat_location = ImageHeader::GetOatLocationFromImageLocation(image_filename); 1033 std::string error_msg; 1124 mirror::String* string = value->AsString(); local 1125 os << StringPrintf("%p String: %s\n", string, 1126 PrintableString(string [all...] |
/art/runtime/ |
H A D | check_jni.cc | 33 #include "mirror/string-inl.h" 71 std::string msg; 132 std::string class_name(method->GetDeclaringClassDescriptor()); 133 if (!vm->trace.empty() && class_name.find(vm->trace) != std::string::npos) { 365 * The format string is a sequence of the following characters, 416 std::string msg; 537 std::string methodName(PrettyMethod(traceMethod, false)); 809 std::string type(PrettyTypeOf(exception)); 831 " string: '%s'", errorKind, utf8, bytes); 1485 static jsize GetStringLength(JNIEnv* env, jstring string) { argument 1504 ReleaseStringChars(JNIEnv* env, jstring string, const jchar* chars) argument 1520 GetStringUTFLength(JNIEnv* env, jstring string) argument 1525 GetStringUTFChars(JNIEnv* env, jstring string, jboolean* isCopy) argument 1537 ReleaseStringUTFChars(JNIEnv* env, jstring string, const char* utf) argument 1729 ReleaseStringCritical(JNIEnv* env, jstring string, const jchar* carray) argument [all...] |
H A D | elf_file.cc | 132 std::string* error_msg) { 149 ElfFile* ElfFile::Open(File* file, int prot, int flags, std::string* error_msg) { 157 bool ElfFile::Setup(int prot, int flags, std::string* error_msg) { 325 byte** target, std::string* error_msg) { 366 bool ElfFile::CheckSectionsExist(std::string* error_msg) const { 435 bool ElfFile::SetMap(MemMap* map, std::string* error_msg) { 753 const byte* ElfFile::FindDynamicSymbolAddress(const std::string& symbol_name) const { 767 const Elf32_Sym* ElfFile::FindDynamicSymbol(const std::string& symbol_name) const { 829 const std::string& symbol_name, 908 const std::string 930 byte* string = strings + i; local [all...] |
H A D | class_linker.cc | 24 #include <string> 62 #include "mirror/string-inl.h" 103 std::string temp; 336 // Set up array classes for string, field, method 599 std::string* error_msg) { 601 std::string dex2oat(Runtime::Current()->GetCompilerExecutable()); 604 std::string boot_image_option("--boot-image="); 614 std::string dex_file_option("--dex-file="); 617 std::string oat_fd_option("--oat-fd="); 620 std::string oat_location_optio 5175 mirror::String* string = intern_table_->InternStrong(utf16_length, utf8_data); local [all...] |
/art/runtime/hprof/ |
H A D | hprof.cc | 21 * heap, and some analysis tools require that the class and string data 31 #include <string.h> 443 // Write the string and class tables, and any stack traces, to the header. 482 std::string msg(StringPrintf("Couldn't dump heap; writing \"%s\" failed: %s", 538 // ID: class name string ID 551 for (std::pair<std::string, HprofStringId> p : strings_) { 552 const std::string& string = p.first; local 561 // ID: ID for this string 562 // U1*: UTF8 characters for string (NO 611 LookupStringId(const char* string) argument 615 LookupStringId(const std::string& string) argument [all...] |