Home
last modified time | relevance | path

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

1234567891011

/art/compiler/utils/
Dassembler_thumb_test_expected.cc.inc5 " a: 9000 str r0, [sp, #0]\n",
6 " c: 9121 str r1, [sp, #132] ; 0x84\n",
8 " 12: 9223 str r2, [sp, #140] ; 0x8c\n",
9 " 14: 9324 str r3, [sp, #144] ; 0x90\n",
22 " 3c: 9008 str r0, [sp, #32]\n",
23 " 3e: 901f str r0, [sp, #124] ; 0x7c\n",
24 " 40: 9021 str r0, [sp, #132] ; 0x84\n",
25 " 42: 90ff str r0, [sp, #1020] ; 0x3fc\n",
26 " 44: f8cd 0400 str.w r0, [sp, #1024] ; 0x400\n",
27 " 48: f8cd cffc str.w ip, [sp, #4092] ; 0xffc\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/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/638-checker-inline-cache-intrinsic/src/
DMain.java68 $noinline$inlineMonomorphic(str); in test()
71 $noinline$stringEquals(str); in test()
76 if ($noinline$inlineMonomorphic(str) != 'x') { in test()
92 static String str = "xyz"; field in Main
/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/tools/
Ddt_fds_forward.py95 print("Starting select on " + str(sources))
99 print("Local_sock has data: " + str(buf))
101 print("listening on " + str(sock))
112 print("Unknown data received from socket " + str(buf))
117 print("connection accepted from " + str(addr))
135 jdwp_ops + "transport=dt_fd_forward,address=" + str(remote_sock.fileno())
142 print("Running " + str(full_cmd))
156 parser.add_argument("--host", type=str, default="localhost",
158 parser.add_argument("--debug-lib", type=str, default="libjdwp.so",
160 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/testrunner/
Drun_build_test_target.py72 sys.stdout.write(str(build_command) + '\n')
81 build_command += ' -j' + str(n_threads)
85 sys.stdout.write(str(build_command) + '\n')
97 cmd += ['-j' + str(n_threads)]
102 sys.stdout.write(str(cmd) + '\n')
115 run_test_command += list(map(lambda a: a.format(SOONG_OUT_DIR=str(out_dir)), test_flags))
130 sys.stdout.write(str(run_test_command) + '\n')
/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()
/art/test/044-proxy/src/
DMain.java47 public static String replaceProxyClassNamesForOutput(String str) { in replaceProxyClassNamesForOutput() argument
49 str = str.replace(key, proxyClassNameMap.get(key)); in replaceProxyClassNamesForOutput()
51 return str; in replaceProxyClassNamesForOutput()
/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/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/libdexfile/external/include/art_api/
Ddex_file_support.h53 explicit DexString(const char* str = "")
54 : ext_string_(MakeExtDexFileString(str, std::strlen(str))) {} in ext_string_() argument
55 explicit DexString(std::string_view str) in DexString() argument
56 : ext_string_(MakeExtDexFileString(str.data(), str.size())) {} in DexString()
95 static const struct ExtDexFileString* MakeExtDexFileString(const char* str, size_t size) {
99 return g_ExtDexFileMakeString(str, size);
/art/compiler/utils/x86_64/
Dassembler_x86_64_test.cc647 std::ostringstream str; in shll_fn() local
652 str << "shll %cl, %" << assembler_test->GetSecondaryRegisterName(*reg) << "\n"; in shll_fn()
654 return str.str(); in shll_fn()
668 std::ostringstream str; in shlq_fn() local
673 str << "shlq %cl, %" << assembler_test->GetRegisterName(*reg) << "\n"; in shlq_fn()
675 return str.str(); in shlq_fn()
689 std::ostringstream str; in shrl_fn() local
694 str << "shrl %cl, %" << assembler_test->GetSecondaryRegisterName(*reg) << "\n"; in shrl_fn()
696 return str.str(); in shrl_fn()
709 std::ostringstream str; in shrq_fn() local
[all …]
/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/runtime/gc/
Dreference_queue_test.cc73 LOG(INFO) << oss.str(); in TEST_F()
88 oss.str(""); in TEST_F()
90 LOG(INFO) << oss.str(); in TEST_F()
93 oss.str(""); in TEST_F()
95 LOG(INFO) << oss.str(); in TEST_F()
/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