/art/runtime/base/ |
H A D | hash_set_test.cc | 85 std::vector<std::string> strings; local 88 strings.push_back(RandomString(10)); 89 hash_set.Insert(strings[i]); 90 auto it = hash_set.Find(strings[i]); 92 ASSERT_EQ(*it, strings[i]); 94 ASSERT_EQ(strings.size(), hash_set.Size()); 95 // Try to erase the odd strings. 97 auto it = hash_set.Find(strings[i]); 99 ASSERT_EQ(*it, strings[i]); 104 auto it = hash_set.Find(strings[ 118 std::vector<std::string> strings; local 146 std::vector<std::string> strings; local 163 std::vector<std::string> strings = {"a", "b", "c", "d", "e", "f", "g"}; local 220 std::vector<std::string> strings; local [all...] |
/art/runtime/ |
H A D | utils_test.cc | 275 std::vector<std::string> strings; local 277 strings.clear(); 278 EXPECT_EQ("", Join(strings, ':')); 280 strings.clear(); 281 strings.push_back("foo"); 282 EXPECT_EQ("foo", Join(strings, ':')); 284 strings.clear(); 285 strings.push_back(""); 286 strings.push_back("foo"); 287 EXPECT_EQ(":foo", Join(strings, ' [all...] |
H A D | dex_file_test.cc | 283 const char* strings[] = { "LGetMethodSignature;", "Ljava/lang/Float;", "Ljava/lang/Object;", local 285 for (size_t i = 0; strings[i] != nullptr; i++) { 286 const char* str = strings[i];
|
H A D | utils.cc | 924 std::string Join(const std::vector<StringT>& strings, char separator) { argument 925 if (strings.empty()) { 929 std::string result(strings[0]); 930 for (size_t i = 1; i < strings.size(); ++i) { 932 result += strings[i]; 938 template std::string Join<std::string>(const std::vector<std::string>& strings, char separator); 939 template std::string Join<const char*>(const std::vector<const char*>& strings, char separator); 974 // pthread_setname_np fails rather than truncating long strings.
|
H A D | utils.h | 217 // strings. Empty strings will be omitted. 223 // Joins a vector of strings into a single string, using the given separator. 224 template <typename StringT> std::string Join(const std::vector<StringT>& strings, char separator);
|
H A D | elf_file.cc | 948 uint8_t* strings = Begin() + string_section.sh_offset; local 949 uint8_t* string = strings + i;
|
H A D | class_linker.cc | 420 // InitializePrimitiveClass until line 459, but strings (and 1291 GcRoot<mirror::String>* const strings = local 1294 DCHECK(strings[j].IsNull()); 1296 std::copy_n(image_resolved_strings, num_strings, strings); 1297 dex_cache->SetStrings(strings); 1479 GcRoot<mirror::String>* strings = klass->GetDexCacheStrings(); local 1480 if (strings != nullptr) { 1483 reinterpret_cast<uint8_t*>(strings) - space_->Begin())) 1485 // Dex caches have already been updated, so take the strings pointer from there. 1487 DCHECK_NE(strings, new_string 2089 GcRoot<mirror::String>* strings = (dex_file.NumStringIds() == 0u) ? nullptr : local [all...] |
/art/runtime/mirror/ |
H A D | dex_cache.cc | 36 GcRoot<String>* strings, 47 CHECK_EQ(num_strings != 0u, strings != nullptr); 54 SetStrings(strings); 34 Init(const DexFile* dex_file, String* location, GcRoot<String>* strings, uint32_t num_strings, GcRoot<Class>* resolved_types, uint32_t num_resolved_types, ArtMethod** resolved_methods, uint32_t num_resolved_methods, ArtField** resolved_fields, uint32_t num_resolved_fields, size_t pointer_size) argument
|
H A D | dex_cache.h | 51 GcRoot<String>* strings, 140 void SetStrings(GcRoot<String>* strings) ALWAYS_INLINE SHARED_REQUIRES(Locks::mutator_lock_) { 141 SetFieldPtr<false>(StringsOffset(), strings); local
|
H A D | dex_cache-inl.h | 133 GcRoot<mirror::String>* strings = GetStrings(); local 135 visitor.VisitRootIfNonNull(strings[i].AddressWithoutBarrier());
|
H A D | class-inl.h | 1086 // Update dex cache strings. 1087 GcRoot<mirror::String>* strings = GetDexCacheStrings(); local 1088 GcRoot<mirror::String>* new_strings = visitor(strings); 1089 if (strings != new_strings) {
|
/art/test/003-omnibus-opcodes/src/ |
H A D | Array.java | 74 static void checkStrings(String[] strings) { argument 75 Main.assertTrue(strings[0].equals("zero")); 76 Main.assertTrue(strings[1].equals("one")); 77 Main.assertTrue(strings[2].equals("two")); 78 Main.assertTrue(strings[3].equals("three")); 79 Main.assertTrue(strings[4].equals("four")); 189 String[] strings; 200 strings = new String[count];
|
/art/test/021-string2/src/ |
H A D | Main.java | 82 String[] strings = test.split("/"); 83 Assert.assertEquals(4, strings.length);
|
/art/test/109-suspend-check/src/ |
H A D | Main.java | 156 private String[] strings = { "a", "b", "c", "d" }; field in class:InfiniteWhileLoopWithIntrinsic 162 sum += strings[i & 3].length();
|
/art/test/074-gc-thrash/src/ |
H A D | Main.java | 167 String strings[] = new String[ARRAY_SIZE]; 171 strings[idx] = makeString(idx);
|
/art/runtime/native/ |
H A D | dalvik_system_VMRuntime.cc | 283 Handle<mirror::DexCache> dex_cache, uint32_t string_idx, StringTable& strings) 291 string = strings[utf8]; 496 StringTable strings; local 498 PreloadDexCachesStringsVisitor visitor(&strings); 511 PreloadDexCachesResolveString(dex_cache, j, strings); 556 LOG(INFO) << StringPrintf("VMRuntime.preloadDexCaches strings total=%d before=%d after=%d",
|
/art/test/100-reflect2/src/ |
H A D | Main.java | 248 private static String concat(String[] strings) { argument 250 for (String s : strings) {
|
/art/runtime/gc/space/ |
H A D | image_space.cc | 1056 GcRoot<mirror::String>* strings = dex_cache->GetStrings(); local 1057 if (strings != nullptr) { 1058 GcRoot<mirror::String>* new_strings = fixup_adapter.ForwardObject(strings); 1059 if (strings != new_strings) {
|
/art/test/082-inline-execute/src/ |
H A D | Main.java | 456 String[] strings = test.split("/"); 457 Assert.assertEquals(4, strings.length);
|
/art/runtime/arch/arm/ |
H A D | quick_entrypoints_arm.S | 987 * path check for hit in strings cache has already been performed. 1725 1: @ Same strings, return. 1778 * on long strings (but preserve incoming alignment)
|