/art/test/2047-checker-const-string-length/src/ |
D | Main.java | 48 String str = ""; in $noinline$testLengthEmptyString() local 49 return str.length(); in $noinline$testLengthEmptyString() 67 String str = ""; in $noinline$testLengthEmptyStringWithInline() local 68 return $inline$returnLength(str); in $noinline$testLengthEmptyStringWithInline() 88 String str = "2047-checker-const-string-length"; in $noinline$testLengthBssString() local 89 return str.length(); in $noinline$testLengthBssString() 109 String str = "2047-checker-const-string-length"; in $noinline$testLengthBssStringWithInline() local 110 return $inline$returnLength(str); in $noinline$testLengthBssStringWithInline() 113 private static int $inline$returnLength(String str) { in $inline$returnLength() argument 114 return str.length(); in $inline$returnLength() [all …]
|
/art/compiler/utils/ |
D | assembler_thumb_test_expected.cc.inc | 5 " a: 9000 str r0, [sp]\n" 6 " c: 9119 str r1, [sp, #100]\n" 8 " 12: 921b str r2, [sp, #108]\n" 9 " 14: 931c str r3, [sp, #112]\n" 21 " 38: 9008 str r0, [sp, #32]\n" 22 " 3a: 901f str r0, [sp, #124]\n" 23 " 3c: 9021 str r0, [sp, #132]\n" 24 " 3e: 90ff str r0, [sp, #1020]\n" 25 " 40: f8cd 0400 str.w r0, [sp, #1024]\n" 26 " 44: f8cd cffc str.w r12, [sp, #4092]\n" [all …]
|
D | assembler_test.h | 38 constexpr size_t ConstexprStrLen(char const* str, size_t count = 0) { 39 return ('\0' == str[0]) ? count : ConstexprStrLen(str+1, count+1); 211 std::string str; variable 227 str += base; 228 str += "\n"; 232 return str; 246 std::string str; in RepeatTemplatedRegistersImmBits() local 264 str += base; in RepeatTemplatedRegistersImmBits() 265 str += "\n"; in RepeatTemplatedRegistersImmBits() 270 return str; in RepeatTemplatedRegistersImmBits() [all …]
|
/art/runtime/ |
D | reference_table_test.cc | 95 EXPECT_NE(oss.str().find("(empty)"), std::string::npos) << oss.str(); in TEST_F() 113 EXPECT_NE(oss.str().find("1 of java.lang.String"), std::string::npos) << oss.str(); in TEST_F() 114 EXPECT_EQ(oss.str().find("short[]"), std::string::npos) << oss.str(); in TEST_F() 124 EXPECT_NE(oss.str().find(StringPrintf("Last %zd entries (of %zd):", in TEST_F() 127 std::string::npos) << oss.str(); in TEST_F() 128 EXPECT_NE(oss.str().find("1 of java.lang.String"), std::string::npos) << oss.str(); in TEST_F() 130 EXPECT_NE(oss.str().find("1 of short[]"), std::string::npos) << oss.str(); in TEST_F() 132 EXPECT_NE(oss.str().find(StringPrintf("%zd of short[] (1 unique instances)", i + 1)), in TEST_F() 133 std::string::npos) << oss.str(); in TEST_F() 143 EXPECT_EQ(oss.str().find("java.lang.String"), std::string::npos) << oss.str(); in TEST_F() [all …]
|
/art/test/597-deopt-new-string/src/ |
D | Main.java | 51 String str = new String(arr, 0, arr.length); in $noinline$run0() local 52 if (!str.equals("abc")) { in $noinline$run0() 53 System.out.println("Failure 1! " + str); in $noinline$run0() 56 return str; in $noinline$run0() 76 String str = $noinline$run0(); in run() local 77 if (!str.equals("abc")) { in run() 78 System.out.println("Failure 2! " + str); in run()
|
/art/tools/ahat/src/test/com/android/ahat/ |
D | InstanceTest.java | 43 AhatInstance str = dump.getDumpedAhatInstance("basicString"); in asStringBasic() local 44 assertEquals("hello, world", str.asString()); in asStringBasic() 50 AhatInstance str = dump.getDumpedAhatInstance("nonAscii"); in asStringNonAscii() local 51 assertEquals("Sigma (Ʃ) is not ASCII", str.asString()); in asStringNonAscii() 57 AhatInstance str = dump.getDumpedAhatInstance("embeddedZero"); in asStringEmbeddedZero() local 58 assertEquals("embedded\0...", str.asString()); in asStringEmbeddedZero() 64 AhatInstance str = dump.getDumpedAhatInstance("charArray"); in asStringCharArray() local 65 assertEquals("char thing", str.asString()); in asStringCharArray() 71 AhatInstance str = dump.getDumpedAhatInstance("basicString"); in asStringTruncated() local 72 assertEquals("hello", str.asString(5)); in asStringTruncated() [all …]
|
/art/tools/ahat/src/main/com/android/ahat/ |
D | DocString.java | 36 public static DocString text(String str) { in text() argument 38 return doc.append(str); in text() 82 public DocString append(DocString str) { in append() argument 83 mStringBuilder.append(str.html()); in append() 91 public static DocString added(DocString str) { in added() argument 94 string.mStringBuilder.append(str.html()); in added() 103 public static DocString added(String str) { in added() argument 104 return added(text(str)); in added() 111 public static DocString removed(DocString str) { in removed() argument 114 string.mStringBuilder.append(str.html()); in removed() [all …]
|
/art/test/638-checker-inline-cache-intrinsic/src/ |
D | Main.java | 92 $noinline$inlineMonomorphic(str); in test() 93 $noinline$stringEquals(str); in test() 94 $noinline$inlinePolymorphic(str); in test() 101 if ($noinline$inlineMonomorphic(str) != 'x') { in test() 104 if ($noinline$inlinePolymorphic(str) != 'x') { in test() 123 static String str = "xyz"; field in Main
|
/art/libartbase/base/ |
D | indenter_test.cc | 28 EXPECT_EQ(output.str(), ""); in TEST() 31 EXPECT_EQ(output.str(), "\t\thello"); in TEST() 34 EXPECT_EQ(output.str(), "\t\thello\n\t\thello again"); in TEST() 37 EXPECT_EQ(output.str(), "\t\thello\n\t\thello again\n"); in TEST()
|
D | hex_dump_test.cc | 37 EXPECT_STREQ(oss.str().c_str(), in TEST() 46 EXPECT_STREQ(oss.str().c_str(), in TEST() 59 EXPECT_STREQ(oss.str().c_str() + (kBitsPerIntPtrT / 4), in TEST() 67 EXPECT_STREQ(oss.str().c_str(), in TEST()
|
/art/test/2237-checker-inline-multidex/src-multidex/ |
D | Multi.java | 18 public static String $inline$NeedsEnvironmentMultiDex(String str) { in $inline$NeedsEnvironmentMultiDex() argument 21 return sb.append(str).toString(); in $inline$NeedsEnvironmentMultiDex() 42 public static int $inline$TryCatch(String str) { in $inline$TryCatch() argument 44 return Integer.parseInt(str); in $inline$TryCatch()
|
/art/tools/ |
D | dt_fds_forward.py | 96 print("Starting select on " + str(sources)) 100 print("Local_sock has data: " + str(buf)) 102 print("listening on " + str(sock)) 115 print("Unknown data received from socket " + str(buf)) 120 print("connection accepted from " + str(addr)) 138 jdwp_ops + "transport=dt_fd_forward,address=" + str(remote_sock.fileno()) 145 print("Running " + str(full_cmd)) 159 parser.add_argument("--host", type=str, default="localhost", 161 parser.add_argument("--debug-lib", type=str, default="libjdwp.so", 163 parser.add_argument("--debug-options", type=str, default="server=y,suspend=y,",
|
D | stream-trace-converter.py | 116 str = input.read(stringLength) 117 self._methods.append(str) 118 print 'New method: %s' % str 123 str = input.read(stringLength) 124 self._threads.append('%d\t%s\n' % (tid, str)) 125 print 'New thread: %d/%s' % (tid, str) 129 str = input.read(summaryLength) 130 self._summary = str 131 print 'Summary: \"%s\"' % str
|
/art/test/622-checker-bce-regressions/src/ |
D | Main.java | 45 static public void $noinline$regressionTest123284765(String str) { in $noinline$regressionTest123284765() argument 47 int l = str.length(); in $noinline$regressionTest123284765() 49 str.charAt(l); in $noinline$regressionTest123284765() 53 expectEquals(34, str.length()); in $noinline$regressionTest123284765()
|
/art/test/testrunner/ |
D | run_build_test_target.py | 80 sys.stdout.write(str(clean_command) + '\n') 91 sys.stdout.write(str(build_command) + '\n') 100 build_command += ' -j' + str(n_threads) 104 sys.stdout.write(str(build_command) + '\n') 116 cmd += ['-j' + str(n_threads)] 121 sys.stdout.write(str(cmd) + '\n') 135 run_test_command += list(map(lambda a: a.format(SOONG_OUT_DIR=str(out_dir)), test_flags)) 152 sys.stdout.write(str(run_test_command) + '\n')
|
/art/test/542-inline-trycatch/src/ |
D | Main.java | 25 private static int $inline$SingleBlock(String str) throws NumberFormatException { in $inline$SingleBlock() argument 26 return Integer.parseInt(str); in $inline$SingleBlock() 31 private static int $inline$MultipleBlocks(String str, boolean is_hex) in $inline$MultipleBlocks() argument 33 return is_hex ? Integer.parseInt(str, 16) : Integer.parseInt(str); in $inline$MultipleBlocks()
|
/art/cmdline/ |
D | memory_representation.h | 50 static std::string str; in Name() local 51 if (str.empty()) { in Name() 52 str = "Memory<" + std::to_string(kDivisor) + '>'; in Name() 55 return str.c_str(); in Name()
|
D | cmdline_types.h | 198 static std::string str; 199 if (str.empty()) { 200 str = "Memory with granularity of " + std::to_string(Divisor) + " bytes"; 202 return str.c_str(); 208 Result Parse(const std::string& str) { 211 double value = strtod(str.c_str(), &end); 214 return Result::Failure("Failed to parse double from " + str); 218 "Failed to parse double from " + str + "; overflow/underflow occurred"); 229 static inline CmdlineParseResult<T> ParseNumeric(const std::string& str) { 233 const char* begin = str.c_str(); [all …]
|
/art/test/044-proxy/src/ |
D | Main.java | 48 public static String replaceProxyClassNamesForOutput(String str) { in replaceProxyClassNamesForOutput() argument 50 str = str.replace(key, proxyClassNameMap.get(key)); in replaceProxyClassNamesForOutput() 52 return str; in replaceProxyClassNamesForOutput()
|
/art/tools/veridex/ |
D | hidden_api.cc | 33 for (std::string str; std::getline(in, str);) { in HiddenApi() local 34 std::vector<std::string> values = android::base::Split(str, ","); in HiddenApi() 40 LOG(ERROR) << "Unknown ApiList flag: " << str; in HiddenApi() 89 return ss.str(); in GetApiMethodName() 100 return ss.str(); in GetApiFieldName()
|
/art/test/2246-trace-stream/src/ |
D | BaseTraceParser.java | 161 String str = ""; in eventTypeToString() local 163 str += "."; in eventTypeToString() 168 str += ".>>"; in eventTypeToString() 172 str += "<<"; in eventTypeToString() 176 str += "<<E"; in eventTypeToString() 179 str += "??"; in eventTypeToString() 182 return str; in eventTypeToString() 203 String str = eventTypeToString(eventType, threadId) + " " + threadIdMap.get(threadId) in ProcessEventEntry() local 213 return str; in ProcessEventEntry()
|
/art/tools/dexanalyze/ |
D | dexanalyze_strings.cc | 81 size_t AddString(uint16_t prefix, const std::string& str) { in AddString() argument 85 EncodeUnsignedLeb128(&chars_, str.length()); in AddString() 86 const uint8_t* ptr = reinterpret_cast<const uint8_t*>(&str[0]); in AddString() 87 chars_.insert(chars_.end(), ptr, ptr + str.length()); in AddString() 153 size_t AddString(const std::string& str) { in AddString() argument 155 EncodeUnsignedLeb128(&chars_, str.length()); in AddString() 156 const uint8_t* ptr = reinterpret_cast<const uint8_t*>(&str[0]); in AddString() 157 chars_.insert(chars_.end(), ptr, ptr + str.length()); in AddString() 187 MatchTrie* Add(const std::string& str) { in Add() argument 190 for (uint8_t c : str) { in Add() [all …]
|
/art/tools/jvmti-agents/field-counts/ |
D | count-fields.py | 39 parser.add_argument("-S", "--serial", metavar="SERIAL", type=str, 121 targetdir = str('/data/data/{}/code_cache'.format(str(name).strip())) 133 device.shell(['am', 'attach-agent', str(pid), mkcmd(target32)]) 134 device.shell(['am', 'attach-agent', str(pid), mkcmd(target64)]) 155 out.append((str(data[0]), str(data[1]), str(data[2]), int(data[3]), int(data[4]))) 158 print("pid: " + pid + " -> " + str(out))
|
/art/runtime/native/ |
D | string_array_utils.h | 31 inline const char* GetStringCStr(const char* str) { return str; } in GetStringCStr() argument 32 inline const char* GetStringCStr(const std::string& str) { return str.c_str(); } in GetStringCStr() argument
|
/art/compiler/utils/x86_64/ |
D | assembler_x86_64_test.cc | 655 std::ostringstream str; in shll_fn() local 660 str << "shll %cl, %" << assembler_test->GetSecondaryRegisterName(reg) << "\n"; in shll_fn() 662 return str.str(); in shll_fn() 676 std::ostringstream str; in shlq_fn() local 681 str << "shlq %cl, %" << assembler_test->GetRegisterName(reg) << "\n"; in shlq_fn() 683 return str.str(); in shlq_fn() 697 std::ostringstream str; in shrl_fn() local 702 str << "shrl %cl, %" << assembler_test->GetSecondaryRegisterName(reg) << "\n"; in shrl_fn() 704 return str.str(); in shrl_fn() 717 std::ostringstream str; in shrq_fn() local [all …]
|