/art/build/ |
H A D | Android.common_utils.mk | 21 # Convert a string into an uppercase string. 23 # $(1): a string which should be made uppercase 24 art-string-to-uppercase = $(shell echo $(1) | tr '[:lower:]' '[:upper:]')
|
/art/runtime/gc/ |
H A D | heap_test.cc | 56 mirror::String* string = mirror::String::AllocFromModifiedUtf8(soa.Self(), "hello, world!"); local 58 array->Set<false>(j, string);
|
/art/tools/ |
H A D | analyze-init-failures.py | 23 import string namespace
|
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/runtime/native/ |
H A D | java_lang_DexCache.cc | 72 jobject string) { 75 dex_cache->SetResolvedString(string_index, soa.Decode<mirror::String*>(string)); 71 DexCache_setResolvedString(JNIEnv* env, jobject javaDexCache, jint string_index, jobject string) argument
|
H A D | dalvik_system_VMRuntime.cc | 157 static const char* DefaultToDot(const std::string& class_path) { 258 typedef std::map<std::string, mirror::String*> StringTable; 266 mirror::String* string = root->AsString(); local 267 table_->operator[](string->ToModifiedUtf8()) = string; 278 mirror::String* string = dex_cache->GetResolvedString(string_idx); local 279 if (string != nullptr) { 284 string = strings[utf8]; 285 if (string == nullptr) { 288 // LOG(INFO) << "VMRuntime.preloadDexCaches resolved string 437 mirror::String* string = dex_cache->GetResolvedString(j); local [all...] |
/art/cmdline/ |
H A D | token_range.h | 22 #include <string> 36 // Short-hand for a vector of strings. A single string and a token is synonymous. 37 using TokenList = std::vector<std::string>; 111 // Create a token range by splitting a string. Each separator gets their own token. 114 static TokenRange Split(const std::string& string, std::initializer_list<char> separators) { argument 117 std::string tok; 118 for (auto&& c : string) { 128 new_token_list.push_back(std::string() + sep); 164 const std::string [all...] |
H A D | cmdline_types.h | 26 #include <string> 37 // The default specialization will always fail parsing the type from a string. 50 Result Parse(const std::string& args) { 77 Result Parse(const std::string& options) { 86 const std::string s; 88 std::vector<std::string> pairs; 93 for (const std::string& jdwp_option : pairs) { 94 std::string::size_type equals_pos = jdwp_option.find('='); 95 if (equals_pos == std::string::npos) { 119 Result ParseJdwpOption(const std::string [all...] |
/art/compiler/driver/ |
H A D | compiler_driver_test.cc | 114 const mirror::String* string = dex_cache->GetResolvedString(i); local 115 EXPECT_TRUE(string != nullptr) << "string_idx=" << i; 185 std::unordered_set<std::string>* GetCompiledMethods() OVERRIDE { 186 return new std::unordered_set<std::string>({ 219 std::unique_ptr<std::unordered_set<std::string>> expected(GetCompiledMethods()); 223 std::string name = PrettyMethod(&m, true);
|
/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/tools/dexfuzz/src/dexfuzz/program/ |
H A D | IdCreator.java | 117 Log.errorAndQuit("Did not create necessary descriptor string before finding " 131 private int findStringDataInsertionPoint(String string) { argument 134 if (stringData.getSize() > 0 && stringData.getString().compareTo(string) >= 0) { 182 // Search for (or create) the string representing the method name. 261 // Search for (or create) the string representing the class descriptor. 321 private int createString(String string) { argument 329 int newStringIdx = findStringDataInsertionPoint(string); 333 newStringData.setSize(string.length()); 334 newStringData.setString(string); 369 string, newStringId 379 findString(String string) argument 396 findOrCreateString(String string) argument [all...] |
/art/runtime/mirror/ |
H A D | string-inl.h | 25 #include "string.h" 38 // Sets string count in the allocation code path to ensure it is guarded by a CAS. 47 String* string = down_cast<String*>(obj); local 48 string->SetCount(count_); 55 // Sets string count and value in the allocation code path to ensure it is guarded by a CAS. 66 String* string = down_cast<String*>(obj); local 67 string->SetCount(count_); 68 uint16_t* value = string->GetValue(); 82 // Sets string count and value in the allocation code path to ensure it is guarded by a CAS. 93 String* string local 116 String* string = down_cast<String*>(obj); local 174 String* string = Alloc<kIsInstrumented>(self, byte_length, allocator_type, visitor); local 188 AllocFromString(Thread* self, int32_t string_length, Handle<String> string, int32_t offset, gc::AllocatorType allocator_type) argument [all...] |
H A D | string.cc | 17 #include "string-inl.h" 27 #include "string-inl.h" 81 String* String::AllocFromStrings(Thread* self, Handle<String> string, Handle<String> string2) { argument 82 int32_t length = string->GetLength(); 91 memcpy(new_value, string->GetValue(), length * sizeof(uint16_t)); 100 String* string = Alloc<true>(self, utf16_length, allocator_type, visitor); local 101 if (UNLIKELY(string == nullptr)) { 104 uint16_t* array = string->GetValue(); 106 return string; 119 String* string local [all...] |
H A D | object_test.cc | 40 #include "string-inl.h" 61 Handle<String> string( 63 ASSERT_EQ(expected_utf16_length, string->GetLength()); 64 ASSERT_TRUE(string->GetValue() != nullptr); 65 // strlen is necessary because the 1-character string "\x00\x00" is interpreted as "" 66 ASSERT_TRUE(string->Equals(utf8_in) || (expected_utf16_length == 1 && strlen(utf8_in) == 0)); 67 ASSERT_TRUE(string->Equals(StringPiece(utf8_in)) || 70 EXPECT_EQ(utf16_expected[i], string->CharAt(i)); 72 EXPECT_EQ(expected_hash, string->GetHashCode()); 407 // Test the empty string 593 Class* string = class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/String;"); local [all...] |
/art/runtime/verifier/ |
H A D | reg_type_test.cc | 417 std::string expected = "Unresolved Reference: java.lang.DoesNotExist"; 468 const RegType& string = cache_new.JavaLangString(); local 470 EXPECT_TRUE(string.Merge(Object, &cache_new).IsJavaLangObject());
|
/art/runtime/interpreter/ |
H A D | unstarted_runtime.cc | 37 #include "mirror/string-inl.h" 59 std::string msg; 70 const std::string& method_name, bool initialize_class, 74 std::string descriptor(DotToDescriptor(className->ToModifiedUtf8().c_str())); 105 std::string type(PrettyTypeOf(self->GetException())); 276 std::string type(PrettyTypeOf(self->GetException())); 417 std::string caller(PrettyMethod(shadow_frame->GetLink()->GetMethod())); 432 std::string caller2(PrettyMethod(shadow_frame->GetLink()->GetLink()->GetMethod())); 616 std::string error_msg(StringPrintf("Array out of bounds in peekArray: %d/%d vs %d", 662 std::string canonica 754 mirror::String* string = shadow_frame->GetVRegReference(arg_offset)->AsString(); local 773 mirror::String* string = shadow_frame->GetVRegReference(arg_offset)->AsString(); local 786 mirror::String* string = shadow_frame->GetVRegReference(arg_offset)->AsString(); local 844 mirror::String* string = shadow_frame->GetVRegReference(arg_offset)->AsString(); local [all...] |
/art/compiler/ |
H A D | image_writer.cc | 55 #include "mirror/string-inl.h" 131 bool ImageWriter::Write(const std::string& image_filename, 132 const std::string& oat_filename, 133 const std::string& oat_location) { 143 std::string error_msg; 523 std::string error_msg; 558 mirror::String* string = obj->AsString(); local 559 const uint16_t* utf16_string = string->GetValue(); 560 size_t utf16_length = static_cast<size_t>(string->GetLength()); 574 // This string occur [all...] |
/art/runtime/ |
H A D | dex_file.cc | 23 #include <string.h> 39 #include "mirror/string.h" 59 static int OpenAndReadMagic(const char* filename, uint32_t* magic, std::string* error_msg) { 79 bool DexFile::GetChecksum(const char* filename, uint32_t* checksum, std::string* error_msg) { 86 std::string file_part_storage; 130 bool DexFile::Open(const char* filename, const char* location, std::string* error_msg, 157 std::string error_msg; 168 std::string error_msg; 212 std::string* error_msg) { 261 bool DexFile::OpenZip(int fd, const std::string 623 FindStringId(const uint16_t* string, size_t length) const argument [all...] |
H A D | elf_file.cc | 142 std::string* error_msg, uint8_t* requested_base) { 162 File* file, int prot, int flags, std::string* error_msg) { 173 bool ElfFileImpl<ElfTypes>::Setup(int prot, int flags, std::string* error_msg) { 343 uint8_t** target, std::string* error_msg) { 387 bool ElfFileImpl<ElfTypes>::CheckSectionsExist(std::string* error_msg) const { 471 bool ElfFileImpl<ElfTypes>::SetMap(MemMap* map, std::string* error_msg) { 810 const std::string& symbol_name) const { 828 const std::string& symbol_name) const { 899 Elf_Word section_type, const std::string& symbol_name, bool build_map) { 980 Elf_Word section_type, const std::string 1003 uint8_t* string = strings + i; local [all...] |
H A D | check_jni.cc | 35 #include "mirror/string-inl.h" 310 * The format string is a sequence of the following characters, 359 std::string msg; 371 std::string methodName(PrettyMethod(traceMethod, false)); 407 std::string msg; 422 std::string methodName(PrettyMethod(traceMethod, false)); 787 std::string* msg) 841 void TraceNonHeapValue(char fmt, JniValueType arg, std::string* msg) { 1089 " string: '%s'", errorKind, utf8, bytes); 2055 // TODO: stale? show pointer and truncate string 2064 GetStringLength(JNIEnv* env, jstring string) argument 2078 GetStringUTFLength(JNIEnv* env, jstring string) argument 2092 GetStringChars(JNIEnv* env, jstring string, jboolean* is_copy) argument 2097 GetStringUTFChars(JNIEnv* env, jstring string, jboolean* is_copy) argument 2102 GetStringCritical(JNIEnv* env, jstring string, jboolean* is_copy) argument 2107 ReleaseStringChars(JNIEnv* env, jstring string, const jchar* chars) argument 2111 ReleaseStringUTFChars(JNIEnv* env, jstring string, const char* utf) argument 2115 ReleaseStringCritical(JNIEnv* env, jstring string, const jchar* chars) argument 2119 GetStringRegion(JNIEnv* env, jstring string, jsize start, jsize len, jchar* buf) argument 2133 GetStringUTFRegion(JNIEnv* env, jstring string, jsize start, jsize len, char* buf) argument 3059 GetStringCharsInternal(const char* function_name, JNIEnv* env, jstring string, jboolean* is_copy, bool utf, bool critical) argument 3099 ReleaseStringCharsInternal(const char* function_name, JNIEnv* env, jstring string, const void* chars, bool utf, bool critical) argument [all...] |
H A D | class_linker.cc | 23 #include <string> 72 #include "mirror/string-inl.h" 112 // No exc class ~ no <init>-with-string. 143 std::string temp; 161 std::string temp; 419 // Set up array classes for string, field, method 781 std::string error; 838 bool ClassLinker::HasCollisions(const OatFile* oat_file, std::string* error_msg) { 904 std::vector<std::string>* error_msgs) { 916 std::string error_ms 5291 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> 507 // Write the string and class tables, and any stack traces, to the header. 525 // ID: class name string ID 534 for (const std::pair<std::string, HprofStringId>& p : strings_) { 535 const std::string& string = p.first; local 541 // ID: ID for this string 542 // U1*: UTF8 characters for string (NOT null terminated) 545 __ AddUtf8String(string 583 LookupStringId(const char* string) argument 587 LookupStringId(const std::string& string) argument [all...] |
/art/oatdump/ |
H A D | oatdump.cc | 24 #include <string> 110 explicit OatSymbolizer(const OatFile* oat_file, const std::string& output_name) : 161 std::string error_msg; 274 std::string pretty_name = PrettyMethod(dex_method_idx, dex_file, true); 301 const std::string output_name_; 503 std::string error_msg; 532 std::string error_msg; 592 std::string error_msg; 606 if (DescriptorToDot(descriptor).find(options_.class_filter_) == std::string::npos) { 634 std::string error_ms 1585 mirror::String* string = value->AsString(); local [all...] |