/art/libartbase/base/ |
D | hash_set_test.cc | 87 std::vector<std::string> strings; in TEST_F() local 90 strings.push_back(RandomString(10)); in TEST_F() 91 hash_set.insert(strings[i]); in TEST_F() 92 auto it = hash_set.find(strings[i]); in TEST_F() 94 ASSERT_EQ(*it, strings[i]); in TEST_F() 96 ASSERT_EQ(strings.size(), hash_set.size()); in TEST_F() 99 auto it = hash_set.find(strings[i]); in TEST_F() 101 ASSERT_EQ(*it, strings[i]); in TEST_F() 106 auto it = hash_set.find(strings[i]); in TEST_F() 110 auto it = hash_set.find(strings[i]); in TEST_F() [all …]
|
/art/tools/dexanalyze/ |
D | dexanalyze_strings.cc | 74 void Build(const std::vector<std::string>& strings); 338 void PrefixStrings::Builder::Build(const std::vector<std::string>& strings) { in Build() argument 340 for (size_t i = 0; i < strings.size(); ++i) { in Build() 343 CHECK_GT(strings[i], strings[i - 1]); in Build() 344 len = std::max(len, PrefixLen(strings[i], strings[i - 1])); in Build() 346 if (i < strings.size() - 1) { in Build() 347 len = std::max(len, PrefixLen(strings[i], strings[i + 1])); in Build() 351 prefixe_trie->Add(strings[i].substr(0, len))->value_ = 1u; in Build() 402 for (const std::string& str : strings) { in Build() 448 void AnalyzeStrings::ProcessStrings(const std::vector<std::string>& strings) { in ProcessStrings() argument [all …]
|
D | dexanalyze_strings.h | 49 void ProcessStrings(const std::vector<std::string>& strings); 50 template <typename Strings> void Benchmark(const Strings& strings,
|
/art/test/003-omnibus-opcodes/src/ |
D | Array.java | 74 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/build/ |
D | makevars.go | 59 ctx.Strict("ART_TEST_LIST_"+name, strings.Join(testMap[name], " ")) 68 ctx.Strict("ART_TESTCASES_CONTENT", strings.Join(copy_cmds, " ")) 77 ctx.Strict("ART_TESTCASES_PREBUILT_CONTENT", strings.Join(copy_cmds, " "))
|
D | codegen.go | 48 hostArches = strings.Split(e, " ") 55 deviceArches = strings.Split(e, " ")
|
D | art.go | 332 path := strings.Split(ctx.Path().String(), "/") 334 dst := strings.Join(path[len(path)-2:], "/")
|
/art/test/617-clinit-oome/ |
D | info.txt | 1 Regression test for encoded static strings caussing OOME b/30690988
|
/art/test/176-app-image-string/ |
D | info.txt | 1 Regression test for strings being wrongly interned in images.
|
/art/test/2047-checker-const-string-length/ |
D | info.txt | 1 Tests that we optimize String's length()/isEmpty() for constant strings.
|
/art/test/626-set-resolved-string/ |
D | info.txt | 3 strings it references are strongly interned.
|
/art/test/109-suspend-check/src/ |
D | Main.java | 156 private String[] strings = { "a", "b", "c", "d" }; field in InfiniteWhileLoopWithIntrinsic 162 sum += strings[i & 3].length(); in run()
|
/art/runtime/verifier/ |
D | verifier_deps.cc | 124 static bool FindExistingStringId(const std::vector<std::string>& strings, in FindExistingStringId() argument 127 uint32_t num_extra_ids = strings.size(); in FindExistingStringId() 129 if (strings[i] == str) { in FindExistingStringId() 465 const std::vector<std::string>& strings) { in EncodeStringVector() argument 469 out->resize(out->size() + (strings.size() + 1) * sizeof(uint32_t)); in EncodeStringVector() 470 (reinterpret_cast<uint32_t*>(out->data() + offsets_index))[0] = strings.size(); in EncodeStringVector() 472 for (const std::string& str : strings) { in EncodeStringVector() 488 std::vector<std::string>* strings) { in DecodeStringVector() argument 489 DCHECK(strings->empty()); in DecodeStringVector() 492 strings->reserve(num_strings); in DecodeStringVector() [all …]
|
/art/tools/ahat/src/main/com/android/ahat/heapdump/ |
D | Parser.java | 195 UnDenseMap<String> strings = new UnDenseMap<String>("String"); in parseInternal() local 196 strings.put(0, "???"); in parseInternal() 217 strings.put(id, str); in parseInternal() 226 String rawClassName = strings.get(classNameStringId); in parseInternal() 257 strings.get(methodNameStringId), in parseInternal() 258 strings.get(methodSignatureStringId), in parseInternal() 259 strings.get(methodFileNameStringId), in parseInternal() 368 String obfName = strings.get(hprof.getId()); in parseInternal() 379 String name = map.getFieldName(obj.getName(), strings.get(hprof.getId())); in parseInternal() 553 heaps.setCurrentHeap(strings.get(stringId)); in parseInternal()
|
/art/test/074-gc-thrash/src/ |
D | Main.java | 166 String strings[] = new String[ARRAY_SIZE]; in run() local 170 strings[idx] = makeString(idx); in run()
|
/art/test/021-string2/src/ |
D | Main.java | 82 String[] strings = test.split("/"); in main() local 83 Assert.assertEquals(4, strings.length); in main() 135 String[] strings = { in testCompareToAndEquals() local 322 int length = strings.length; in testCompareToAndEquals() 325 String lhs = strings[i]; in testCompareToAndEquals() 327 String rhs = strings[j]; in testCompareToAndEquals()
|
/art/runtime/mirror/ |
D | dex_cache-inl.h | 156 auto* strings = GetStrings(); in ClearString() local 157 if (UNLIKELY(strings == nullptr)) { in ClearString() 160 strings->Clear(string_idx.index_); in ClearString()
|
/art/libdexfile/dex/ |
D | art_dex_file_loader_test.cc | 285 const char* strings[] = { "LGetMethodSignature;", "Ljava/lang/Float;", "Ljava/lang/Object;", in TEST_F() local 287 for (size_t i = 0; strings[i] != nullptr; i++) { in TEST_F() 288 const char* str = strings[i]; in TEST_F()
|
/art/test/100-reflect2/src/ |
D | Main.java | 248 private static String concat(String[] strings) { in concat() argument 250 for (String s : strings) { in concat()
|
/art/test/956-methodhandles/src/ |
D | Main.java | 1253 public VariableArityTester(String s0, String... strings) { update(s0, strings); } in VariableArityTester() argument 1275 public String update(String s0, String... strings) { return lastResult = tally(s0, strings); } in update() argument 1302 public static String tally(String s0, String... strings) { in tally() argument 1303 return s0 + ", " + Arrays.toString(strings); in tally() 1331 public static Object getAsObject(String[] strings) { in getAsObject() argument 1332 return (Object) strings; in getAsObject()
|
/art/tools/ahat/ |
D | README.txt | 139 Take into account 'count' and 'offset' when displaying strings.
|
/art/runtime/ |
D | runtime_image.cc | 1324 mirror::GcRootArray<mirror::String>* strings = cache->GetStringsArray(); in CopyDexCache() local 1329 strings); in CopyDexCache() 1331 reinterpret_cast<mirror::DexCache*>(copy)->SetStringsArray(strings); in CopyDexCache() 1336 if (strings != nullptr) { in CopyDexCache() 1338 ObjPtr<mirror::String> str = strings->Get(i); in CopyDexCache()
|
D | elf_file.cc | 943 uint8_t* strings = Begin() + string_section.sh_offset; in GetString() local 944 uint8_t* string = strings + i; in GetString()
|
/art/tools/dexfuzz/ |
D | README | 118 NOTE: DEX files with unicode strings are not fully supported yet, and DEX files with
|
/art/test/959-invoke-polymorphic-accessors/src/ |
D | Main.java | 689 String [] strings = { "octopus", "crab" }; in main() local 690 for (String s : strings) { in main()
|