Home
last modified time | relevance | path

Searched refs:strings (Results 1 – 25 of 28) sorted by relevance

12

/art/runtime/base/
Dhash_set_test.cc85 std::vector<std::string> strings; in TEST_F() local
88 strings.push_back(RandomString(10)); in TEST_F()
89 hash_set.Insert(strings[i]); in TEST_F()
90 auto it = hash_set.Find(strings[i]); in TEST_F()
92 ASSERT_EQ(*it, strings[i]); in TEST_F()
94 ASSERT_EQ(strings.size(), hash_set.Size()); in TEST_F()
97 auto it = hash_set.Find(strings[i]); in TEST_F()
99 ASSERT_EQ(*it, strings[i]); in TEST_F()
104 auto it = hash_set.Find(strings[i]); in TEST_F()
108 auto it = hash_set.Find(strings[i]); in TEST_F()
[all …]
/art/test/098-ddmc/
Dexpected.txt2 … of message: 15 number of class name strings: 0 number of method name strings: 0 number of source …
14 … of message: 15 number of class name strings: 0 number of method name strings: 0 number of source …
23 … of message: 15 number of class name strings: 0 number of method name strings: 0 number of source …
/art/test/003-omnibus-opcodes/src/
DArray.java74 static void checkStrings(String[] strings) { in checkStrings() argument
75 Main.assertTrue(strings[0].equals("zero")); in checkStrings()
76 Main.assertTrue(strings[1].equals("one")); in checkStrings()
77 Main.assertTrue(strings[2].equals("two")); in checkStrings()
78 Main.assertTrue(strings[3].equals("three")); in checkStrings()
79 Main.assertTrue(strings[4].equals("four")); in checkStrings()
189 String[] strings; in checkNegAlloc() local
200 strings = new String[count]; in checkNegAlloc()
/art/runtime/mirror/
Ddex_cache.cc63 mirror::StringDexCacheType* strings = (dex_file->NumStringIds() == 0u) ? nullptr : in InitializeDexCache() local
113 DCHECK_ALIGNED(strings, alignof(StringDexCacheType)) << in InitializeDexCache()
120 CHECK_EQ(strings[i].load(std::memory_order_relaxed).index, 0u); in InitializeDexCache()
121 CHECK(strings[i].load(std::memory_order_relaxed).object.IsNull()); in InitializeDexCache()
142 if (strings != nullptr) { in InitializeDexCache()
143 mirror::StringDexCachePair::Initialize(strings); in InitializeDexCache()
156 strings, in InitializeDexCache()
173 StringDexCacheType* strings, in Init() argument
188 CHECK_EQ(num_strings != 0u, strings != nullptr); in Init()
197 SetStrings(strings); in Init()
Ddex_cache.h317 void SetStrings(StringDexCacheType* strings) ALWAYS_INLINE REQUIRES_SHARED(Locks::mutator_lock_) { in SetStrings() argument
318 SetFieldPtr<false>(StringsOffset(), strings); in SetStrings()
437 StringDexCacheType* strings,
/art/tools/ahat/test/
DDiffTest.java100 HprofStringBuilder strings = new HprofStringBuilder(0); in nullClassObj() local
105 records.add(new HprofLoadClass(0, 0, stringClassObjectId, 0, strings.get("java.lang.String"))); in nullClassObj()
109 new HprofInstanceField(strings.get("count"), HprofType.TYPE_INT), in nullClassObj()
110 new HprofInstanceField(strings.get("hashCode"), HprofType.TYPE_INT), in nullClassObj()
111 new HprofInstanceField(strings.get("offset"), HprofType.TYPE_INT), in nullClassObj()
112 new HprofInstanceField(strings.get("value"), HprofType.TYPE_OBJECT)})); in nullClassObj()
127 AhatSnapshot snapshot = SnapshotBuilder.makeSnapshot(strings, records); in nullClassObj()
DSnapshotBuilder.java38 public static AhatSnapshot makeSnapshot(HprofStringBuilder strings, List<HprofRecord> records) in makeSnapshot() argument
44 actualRecords.addAll(strings.getStringRecords()); in makeSnapshot()
DInstanceTest.java377 HprofStringBuilder strings = new HprofStringBuilder(0); in asStringEmbedded() local
382 records.add(new HprofLoadClass(0, 0, stringClassObjectId, 0, strings.get("java.lang.String"))); in asStringEmbedded()
386 new HprofInstanceField(strings.get("count"), HprofType.TYPE_INT), in asStringEmbedded()
387 new HprofInstanceField(strings.get("hashCode"), HprofType.TYPE_INT), in asStringEmbedded()
388 new HprofInstanceField(strings.get("offset"), HprofType.TYPE_INT), in asStringEmbedded()
389 new HprofInstanceField(strings.get("value"), HprofType.TYPE_OBJECT)})); in asStringEmbedded()
404 AhatSnapshot snapshot = SnapshotBuilder.makeSnapshot(strings, records); in asStringEmbedded()
/art/test/617-clinit-oome/
Dinfo.txt1 Regression test for encoded static strings caussing OOME b/30690988
/art/test/626-set-resolved-string/
Dinfo.txt3 strings it references are strongly interned.
/art/build/
Dcodegen.go36 hostArches = strings.Split(e, " ")
43 deviceArches = strings.Split(e, " ")
Dmakevars.go45 ctx.Strict("ART_TEST_LIST_"+name, strings.Join(testMap[name], " "))
/art/test/109-suspend-check/src/
DMain.java156 private String[] strings = { "a", "b", "c", "d" }; field in InfiniteWhileLoopWithIntrinsic
162 sum += strings[i & 3].length(); in run()
/art/runtime/verifier/
Dverifier_deps.cc189 static bool FindExistingStringId(const std::vector<std::string>& strings, in FindExistingStringId() argument
192 uint32_t num_extra_ids = strings.size(); in FindExistingStringId()
194 if (strings[i] == str) { in FindExistingStringId()
666 const std::vector<std::string>& strings) { in EncodeStringVector() argument
667 EncodeUnsignedLeb128(out, strings.size()); in EncodeStringVector()
668 for (const std::string& str : strings) { in EncodeStringVector()
678 std::vector<std::string>* strings) { in DecodeStringVector() argument
679 DCHECK(strings->empty()); in DecodeStringVector()
681 strings->reserve(num_strings); in DecodeStringVector()
685 strings->emplace_back(std::string(string_start)); in DecodeStringVector()
[all …]
/art/test/021-string2/src/
DMain.java83 String[] strings = test.split("/"); in main() local
84 Assert.assertEquals(4, strings.length); in main()
136 String[] strings = { in testCompareToAndEquals() local
323 int length = strings.length; in testCompareToAndEquals()
326 String lhs = strings[i]; in testCompareToAndEquals()
328 String rhs = strings[j]; in testCompareToAndEquals()
/art/test/074-gc-thrash/src/
DMain.java166 String strings[] = new String[ARRAY_SIZE]; in run() local
170 strings[idx] = makeString(idx); in run()
/art/runtime/native/
Ddalvik_system_VMRuntime.cc299 Handle<mirror::DexCache> dex_cache, dex::StringIndex string_idx, StringTable& strings) in PreloadDexCachesResolveString() argument
307 string = strings[utf8]; in PreloadDexCachesResolveString()
513 StringTable strings; in VMRuntime_preloadDexCaches() local
515 PreloadDexCachesStringsVisitor visitor(&strings); in VMRuntime_preloadDexCaches()
528 PreloadDexCachesResolveString(dex_cache, dex::StringIndex(j), strings); in VMRuntime_preloadDexCaches()
/art/runtime/
Ddex_file_test.cc455 const char* strings[] = { "LGetMethodSignature;", "Ljava/lang/Float;", "Ljava/lang/Object;", in TEST_F() local
457 for (size_t i = 0; strings[i] != nullptr; i++) { in TEST_F()
458 const char* str = strings[i]; in TEST_F()
/art/test/956-methodhandles/src/
DMain.java1040 public VariableArityTester(String s0, String... strings) { update(s0, strings); } in VariableArityTester() argument
1062 public String update(String s0, String... strings) { return lastResult = tally(s0, strings); } in update() argument
1089 public static String tally(String s0, String... strings) { in tally() argument
1090 return s0 + ", " + Arrays.toString(strings); in tally()
1118 public static Object getAsObject(String[] strings) { in getAsObject() argument
1119 return (Object) strings; in getAsObject()
/art/test/100-reflect2/src/
DMain.java248 private static String concat(String[] strings) { in concat() argument
250 for (String s : strings) { in concat()
/art/tools/ahat/
DREADME.txt111 Take into account 'count' and 'offset' when displaying strings.
/art/runtime/gc/space/
Dimage_space.cc1235 mirror::StringDexCacheType* strings = dex_cache->GetStrings(); in RelocateInPlace() local
1236 if (strings != nullptr) { in RelocateInPlace()
1237 mirror::StringDexCacheType* new_strings = fixup_adapter.ForwardObject(strings); in RelocateInPlace()
1238 if (strings != new_strings) { in RelocateInPlace()
/art/tools/dexfuzz/
DREADME120 NOTE: DEX files with unicode strings are not fully supported yet, and DEX files with
/art/test/959-invoke-polymorphic-accessors/src/
DMain.java672 String [] strings = { "octopus", "crab" }; in main() local
673 for (String s : strings) { in main()
/art/cmdline/
DREADME.md16 generate a type-safe value parser that process a user-provided list of strings (`argv`). Currently,

12