Home
last modified time | relevance | path

Searched refs:str (Results 1 – 25 of 268) sorted by relevance

1234567891011

/art/compiler/utils/
Dassembler_thumb_test_expected.cc.inc5 " a: 00 90 str r0, [sp]\n"
6 " c: 1d 91 str r1, [sp, #116]\n"
8 " 12: 1f 92 str r2, [sp, #124]\n"
9 " 14: 20 93 str r3, [sp, #128]\n"
22 " 3c: 08 90 str r0, [sp, #32]\n"
23 " 3e: 1f 90 str r0, [sp, #124]\n"
24 " 40: 21 90 str r0, [sp, #132]\n"
25 " 42: ff 90 str r0, [sp, #1020]\n"
26 " 44: cd f8 00 04 str.w r0, [sp, #1024]\n"
27 " 48: cd f8 fc cf str.w r12, [sp, #4092]\n"
[all …]
Dassembler_test.h36 constexpr size_t ConstexprStrLen(char const* str, size_t count = 0) {
37 return ('\0' == str[0]) ? count : ConstexprStrLen(str+1, count+1);
191 std::string str; variable
219 std::string imm_string = sreg.str();
223 if (str.size() > 0) {
224 str += "\n";
226 str += base;
231 str += "\n";
232 return str;
246 std::string str; in RepeatTemplatedRegistersImmBits() local
[all …]
/art/test/597-deopt-new-string/src/
DMain.java51 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/runtime/
Dreference_table_test.cc90 EXPECT_NE(oss.str().find("(empty)"), std::string::npos) << oss.str(); in TEST_F()
108 EXPECT_NE(oss.str().find("1 of java.lang.String"), std::string::npos) << oss.str(); in TEST_F()
109 EXPECT_EQ(oss.str().find("short[]"), std::string::npos) << oss.str(); in TEST_F()
119 EXPECT_NE(oss.str().find(StringPrintf("Last %zd entries (of %zd):", in TEST_F()
122 std::string::npos) << oss.str(); in TEST_F()
123 EXPECT_NE(oss.str().find("1 of java.lang.String"), std::string::npos) << oss.str(); in TEST_F()
125 EXPECT_NE(oss.str().find("1 of short[]"), std::string::npos) << oss.str(); in TEST_F()
127 EXPECT_NE(oss.str().find(StringPrintf("%zd of short[] (1 unique instances)", i + 1)), in TEST_F()
128 std::string::npos) << oss.str(); in TEST_F()
138 EXPECT_EQ(oss.str().find("java.lang.String"), std::string::npos) << oss.str(); in TEST_F()
[all …]
Dstring_builder_append.cc71 ObjPtr<mirror::String> str) REQUIRES_SHARED(Locks::mutator_lock_);
165 ObjPtr<mirror::String> str) { in AppendString() argument
166 size_t length = dchecked_integral_cast<size_t>(str->GetLength()); in AppendString()
168 if (sizeof(CharType) == sizeof(uint8_t) || str->IsCompressed()) { in AppendString()
169 DCHECK(str->IsCompressed()); in AppendString()
170 const uint8_t* value = str->GetValueCompressed(); in AppendString()
175 const uint16_t* value = str->GetValue(); in AppendString()
216 Handle<mirror::String> str = in CalculateLengthWithFlag() local
218 if (str != nullptr) { in CalculateLengthWithFlag()
219 length += str->GetLength(); in CalculateLengthWithFlag()
[all …]
/art/tools/ahat/src/test/com/android/ahat/
DInstanceTest.java41 AhatInstance str = dump.getDumpedAhatInstance("basicString"); in asStringBasic() local
42 assertEquals("hello, world", str.asString()); in asStringBasic()
48 AhatInstance str = dump.getDumpedAhatInstance("nonAscii"); in asStringNonAscii() local
49 assertEquals("Sigma (Ʃ) is not ASCII", str.asString()); in asStringNonAscii()
55 AhatInstance str = dump.getDumpedAhatInstance("embeddedZero"); in asStringEmbeddedZero() local
56 assertEquals("embedded\0...", str.asString()); in asStringEmbeddedZero()
62 AhatInstance str = dump.getDumpedAhatInstance("charArray"); in asStringCharArray() local
63 assertEquals("char thing", str.asString()); in asStringCharArray()
69 AhatInstance str = dump.getDumpedAhatInstance("basicString"); in asStringTruncated() local
70 assertEquals("hello", str.asString(5)); in asStringTruncated()
[all …]
/art/tools/ahat/src/main/com/android/ahat/
DDocString.java36 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/
DMain.java92 $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/
Dindenter_test.cc28 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()
Dhex_dump_test.cc37 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/542-inline-trycatch/src/
DMain.java25 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()
39 private static int $noinline$TryCatch(String str) { in $noinline$TryCatch() argument
41 return Integer.parseInt(str); in $noinline$TryCatch()
/art/test/testrunner/
Drun_build_test_target.py74 sys.stdout.write(str(clean_command) + '\n')
85 sys.stdout.write(str(build_command) + '\n')
94 build_command += ' -j' + str(n_threads)
98 sys.stdout.write(str(build_command) + '\n')
110 cmd += ['-j' + str(n_threads)]
115 sys.stdout.write(str(cmd) + '\n')
128 run_test_command += list(map(lambda a: a.format(SOONG_OUT_DIR=str(out_dir)), test_flags))
145 sys.stdout.write(str(run_test_command) + '\n')
/art/tools/
Ddt_fds_forward.py96 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,",
Dstream-trace-converter.py116 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/
DMain.java45 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/cmdline/
Dmemory_representation.h50 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()
Dcmdline_types.h197 static std::string str;
198 if (str.empty()) {
199 str = "Memory with granularity of " + std::to_string(Divisor) + " bytes";
201 return str.c_str();
207 Result Parse(const std::string& str) {
210 double value = strtod(str.c_str(), &end);
213 return Result::Failure("Failed to parse double from " + str);
217 "Failed to parse double from " + str + "; overflow/underflow occurred");
228 static inline CmdlineParseResult<T> ParseNumeric(const std::string& str) {
232 const char* begin = str.c_str();
[all …]
/art/tools/veridex/
Dhidden_api.cc32 for (std::string str; std::getline(in, str);) { in HiddenApi() local
33 std::vector<std::string> values = android::base::Split(str, ","); in HiddenApi()
38 CHECK(success) << "Unknown ApiList flag: " << str; in HiddenApi()
80 return ss.str(); in GetApiMethodName()
91 return ss.str(); in GetApiFieldName()
/art/test/044-proxy/src/
DMain.java48 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/dexanalyze/
Ddexanalyze_strings.cc81 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/
Dcount-fields.py39 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/interpreter/
Dinterpreter_intrinsics.cc189 ObjPtr<mirror::String> str = shadow_frame->GetVRegReference(arg[0])->AsString(); in MterpStringCharAt() local
190 int length = str->GetLength(); in MterpStringCharAt()
196 if (str->IsCompressed()) { in MterpStringCharAt()
197 res = str->GetValueCompressed()[index]; in MterpStringCharAt()
199 res = str->GetValue()[index]; in MterpStringCharAt()
213 ObjPtr<mirror::String> str = shadow_frame->GetVRegReference(arg[0])->AsString(); in MterpStringCompareTo() local
218 result_register->SetI(str->CompareTo(arg1->AsString())); in MterpStringCompareTo()
230 ObjPtr<mirror::String> str = shadow_frame->GetVRegReference(arg[0])->AsString(); \
236 result_register->SetI(str->FastIndexOf(ch, starting_pos)); \
254 ObjPtr<mirror::String> str = shadow_frame->GetVRegReference(arg[0])->AsString(); \
[all …]
/art/compiler/debug/dwarf/
Ddwarf_test.h101 std::string str(line); in Objdump()
102 if (str.back() == '\n') { in Objdump()
103 str.pop_back(); in Objdump()
105 std::replace(str.begin(), str.end(), '\t', ' '); in Objdump()
106 lines.push_back(str); in Objdump()
/art/compiler/utils/x86_64/
Dassembler_x86_64_test.cc642 std::ostringstream str; in shll_fn() local
647 str << "shll %cl, %" << assembler_test->GetSecondaryRegisterName(*reg) << "\n"; in shll_fn()
649 return str.str(); in shll_fn()
663 std::ostringstream str; in shlq_fn() local
668 str << "shlq %cl, %" << assembler_test->GetRegisterName(*reg) << "\n"; in shlq_fn()
670 return str.str(); in shlq_fn()
684 std::ostringstream str; in shrl_fn() local
689 str << "shrl %cl, %" << assembler_test->GetSecondaryRegisterName(*reg) << "\n"; in shrl_fn()
691 return str.str(); in shrl_fn()
704 std::ostringstream str; in shrq_fn() local
[all …]
/art/tools/jvmti-agents/field-null-percent/
Dcheck-null-fields.py38 parser.add_argument("-S", "--serial", metavar="SERIAL", type=str,
120 device.shell(['am', 'attach-agent', str(pid), bit32])
121 device.shell(['am', 'attach-agent', str(pid), bit64])
137 out.append((str(data[0]), str(data[1]), int(data[2]), int(data[3])))
140 print("pid: " + pid + " -> " + str(out))

1234567891011