Home
last modified time | relevance | path

Searched refs:oss (Results 1 – 25 of 40) sorted by relevance

12

/art/libartbase/base/
Dhex_dump_test.cc35 std::ostringstream oss; in TEST() local
36 oss << HexDump(test_text, strlen(test_text), false, ""); in TEST()
37 EXPECT_STREQ(oss.str().c_str(), in TEST()
44 std::ostringstream oss; in TEST() local
45 oss << HexDump(test_text, strlen(test_text), false, ""); in TEST()
46 EXPECT_STREQ(oss.str().c_str(), in TEST()
56 std::ostringstream oss; in TEST() local
57 oss << HexDump(&g16byte_aligned_number, 8, true, ""); in TEST()
59 EXPECT_STREQ(oss.str().c_str() + (kBitsPerIntPtrT / 4), in TEST()
65 std::ostringstream oss; in TEST() local
[all …]
Dhash_set_test.cc47 std::ostringstream oss; in RandomString() local
49 oss << static_cast<char>('A' + PRand() % 64); in RandomString()
52 oss << " " << unique_number_++; // Relies on ' ' < 'A' in RandomString()
53 return oss.str(); in RandomString()
/art/runtime/gc/
Dverification.cc34 std::ostringstream oss; in DumpRAMAroundAddress() local
38 oss << " adjacent_ram="; in DumpRAMAroundAddress()
42 oss << "|"; in DumpRAMAroundAddress()
45 oss << std::hex << std::setfill('0') << std::setw(2) << static_cast<uintptr_t>(*ptr); in DumpRAMAroundAddress()
48 oss << " <invalid address>"; in DumpRAMAroundAddress()
50 return oss.str(); in DumpRAMAroundAddress()
54 std::ostringstream oss; in DumpObjectInfo() local
55 oss << tag << "=" << addr; in DumpObjectInfo()
59 oss << " klass=" << klass; in DumpObjectInfo()
61 oss << "(" << klass->PrettyClass() << ")"; in DumpObjectInfo()
[all …]
Dreference_queue_test.cc71 std::ostringstream oss; in TEST_F() local
72 queue.Dump(oss); in TEST_F()
73 LOG(INFO) << oss.str(); in TEST_F()
88 oss.str(""); in TEST_F()
89 queue.Dump(oss); in TEST_F()
90 LOG(INFO) << oss.str(); in TEST_F()
93 oss.str(""); in TEST_F()
94 queue.Dump(oss); in TEST_F()
95 LOG(INFO) << oss.str(); in TEST_F()
Dheap_verification_test.cc179 std::ostringstream oss; in TEST_F() local
180 oss << arr.Get(); in TEST_F()
181 EXPECT_NE(path.find(oss.str()), std::string::npos); in TEST_F()
/art/runtime/
Dreference_table_test.cc88 std::ostringstream oss; in TEST_F() local
89 rt.Dump(oss); in TEST_F()
90 EXPECT_NE(oss.str().find("(empty)"), std::string::npos) << oss.str(); in TEST_F()
106 std::ostringstream oss; in TEST_F() local
107 rt.Dump(oss); 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()
117 std::ostringstream oss; in TEST_F() local
118 rt.Dump(oss); in TEST_F()
119 EXPECT_NE(oss.str().find(StringPrintf("Last %zd entries (of %zd):", in TEST_F()
[all …]
Ddebug_print.cc37 std::ostringstream oss; in DescribeSpace() local
44 oss << "image;" << ispace->GetName() << ";" in DescribeSpace()
49 oss << "continuous;" << cs->GetName(); in DescribeSpace()
55 oss << "discontinuous;" << ds->GetName(); in DescribeSpace()
57 oss << "invalid"; in DescribeSpace()
60 return oss.str(); in DescribeSpace()
64 std::ostringstream oss; in DescribeLoaders() local
77 oss << "BootClassLoader"; // This would be unexpected. in DescribeLoaders()
81 oss << loader_separator << loader->GetClass()->PrettyDescriptor() in DescribeLoaders()
90 oss << "[hit:" << DescribeSpace(klass) << "]"; in DescribeLoaders()
[all …]
Dgc_root-inl.h45 std::ostringstream oss; in ToString() local
46 Describe(oss); in ToString()
47 return oss.str(); in ToString()
Dindirect_reference_table.cc259 std::ostringstream oss; in Add() local
260 oss << "JNI ERROR (app bug): " << kind_ << " table overflow " in Add()
263 *error_msg = oss.str(); in Add()
269 std::ostringstream oss; in Add() local
270 oss << "JNI ERROR (app bug): " << kind_ << " table overflow " in Add()
274 *error_msg = oss.str(); in Add()
280 std::ostringstream oss; in Add() local
281 oss << "JNI ERROR (app bug): " << kind_ << " table overflow " in Add()
285 *error_msg = oss.str(); in Add()
Dindirect_reference_table_test.cc35 std::ostringstream oss; in CheckDump() local
36 irt->Dump(oss); in CheckDump()
38 EXPECT_EQ(oss.str().find("java.lang.Object"), std::string::npos) << oss.str(); in CheckDump()
40 EXPECT_NE(oss.str().find("1 of java.lang.Object"), std::string::npos) << oss.str(); in CheckDump()
42 EXPECT_NE(oss.str().find(StringPrintf("%zd of java.lang.Object (%zd unique instances)", in CheckDump()
47 << oss.str(); in CheckDump()
Dmonitor.cc364 std::ostringstream oss; in PrettyContentionInfo() local
365 oss << "monitor contention with owner " << owner_name << " (" << owner_tid << ")"; in PrettyContentionInfo()
367 oss << " at " << owners_method->PrettyMethod(); in PrettyContentionInfo()
368 oss << "(" << owners_filename << ":" << owners_line_number << ")"; in PrettyContentionInfo()
370 oss << " waiters=" << num_waiters; in PrettyContentionInfo()
371 return oss.str(); in PrettyContentionInfo()
439 std::ostringstream oss; in Lock() local
442 oss << PrettyContentionInfo(name, in Lock()
453 oss << " blocking from " in Lock()
456 ATraceBegin(oss.str().c_str()); in Lock()
[all …]
Dthread_list.cc370 std::ostringstream oss; in RunCheckpoint() local
371 thread->ShortDump(oss); in RunCheckpoint()
372 return std::string("Waiting for suspension of thread ") + oss.str(); in RunCheckpoint()
751 std::ostringstream oss; in SuspendAllInternal() local
757 oss << std::endl << "Thread not suspended: " << *thread; in SuspendAllInternal()
763 << oss.str(); in SuspendAllInternal()
1391 std::ostringstream oss; in Register() local
1392 self->ShortDump(oss); // We don't hold the mutator_lock_ yet and so cannot call Dump. in Register()
1393 LOG(INFO) << "ThreadList::Register() " << *self << "\n" << oss.str(); in Register()
/art/test/ti-stress/
Dstress.cc387 std::ostringstream oss; in GetName() local
388 oss << name << " (value: \"" << val << "\")"; in GetName()
389 name = oss.str(); in GetName()
400 std::ostringstream oss; in GetValOf() local
408 oss << val.b; in GetValOf()
409 return oss.str(); in GetValOf()
411 oss << val.c; in GetValOf()
412 return oss.str(); in GetValOf()
414 oss << val.s; in GetValOf()
415 return oss.str(); in GetValOf()
[all …]
/art/test/ti-agent/
Dcommon_helper.cc93 std::ostringstream oss; in GetJavaValueByType() local
94 oss << "(" << type << ")L" << name << ";"; in GetJavaValueByType()
95 std::string args = oss.str(); in GetJavaValueByType()
/art/tools/timeout_dumper/
Dtimeout_dumper.cc549 std::ostringstream oss; in DumpThread() local
550 oss << prefix << StringPrintf("#%02zu pc ", it->num); in DumpThread()
553 oss << StringPrintf(kIs64Bit ? "%016" PRIx64 " ???" : "%08" PRIx64 " ???", it->pc); in DumpThread()
555 oss << StringPrintf(kIs64Bit ? "%016" PRIx64 " " : "%08" PRIx64 " ", it->rel_pc); in DumpThread()
557 oss << StringPrintf("<anonymous:%" PRIx64 ">", it->map.start); in DumpThread()
559 oss << it->map.name; in DumpThread()
562 oss << StringPrintf(" (offset %" PRIx64 ")", it->map.offset); in DumpThread()
564 oss << " ("; in DumpThread()
566 oss << it->func_name; in DumpThread()
568 oss << "+" << it->func_offset; in DumpThread()
[all …]
/art/test/906-iterate-heap/
Diterate_heap.cc258 std::ostringstream oss; in Java_art_Test906_iterateThroughHeapPrimitiveArray() local
259 oss << *tag_ptr in Java_art_Test906_iterateThroughHeapPrimitiveArray()
293 oss << android::base::StringPrintf("%02x", data[i]); in Java_art_Test906_iterateThroughHeapPrimitiveArray()
295 oss << "')"; in Java_art_Test906_iterateThroughHeapPrimitiveArray()
300 p->data += oss.str(); in Java_art_Test906_iterateThroughHeapPrimitiveArray()
369 std::ostringstream oss; in Java_art_Test906_iterateThroughHeapPrimitiveFields() local
370 oss << *tag_ptr in Java_art_Test906_iterateThroughHeapPrimitiveFields()
383 oss << android::base::StringPrintf("%016" PRIx64, val); in Java_art_Test906_iterateThroughHeapPrimitiveFields()
388 p->data += oss.str(); in Java_art_Test906_iterateThroughHeapPrimitiveFields()
/art/runtime/gc/accounting/
Dmod_union_table_test.cc134 std::ostream& operator<<(std::ostream& oss, ModUnionTableFactory::TableType type) { in operator <<() argument
137 oss << "CardCache"; in operator <<()
141 oss << "ReferenceCache"; in operator <<()
148 return oss; in operator <<()
242 std::ostringstream oss; in RunTest() local
243 table->Dump(oss); in RunTest()
/art/runtime/gc/space/
Dlarge_object_space_test.cc109 std::ostringstream oss; in LargeObjectTest() local
110 los->Dump(oss); in LargeObjectTest()
111 LOG(INFO) << oss.str(); in LargeObjectTest()
/art/oatdump/
Doatdump_test.h338 std::ostringstream oss; in Exec() local
341 oss << "Did not find prefix " << expected_prefixes[i] << std::endl; in Exec()
346 oss << "Processed bytes " << total << ":" << std::endl; in Exec()
351 : (::testing::AssertionFailure() << oss.str() << error_buf.data()); in Exec()
/art/openjdkjvmti/
Dti_field.cc97 std::ostringstream oss; in GetFieldName() local
99 oss << str_array->Get(i)->ToModifiedUtf8(); in GetFieldName()
101 std::string output_string = oss.str(); in GetFieldName()
/art/compiler/utils/
Ddedupe_set-inl.h215 std::ostringstream oss;
216 oss << set_name << " lock " << i;
217 shards_[i].reset(new Shard(alloc, oss.str()));
/art/libdexfile/dex/
Ddex_file.cc153 std::ostringstream oss; in CheckMagicAndVersion() local
154 oss << "Unrecognized magic number in " << GetLocation() << ":" in CheckMagicAndVersion()
159 *error_msg = oss.str(); in CheckMagicAndVersion()
163 std::ostringstream oss; in CheckMagicAndVersion() local
164 oss << "Unrecognized version number in " << GetLocation() << ":" in CheckMagicAndVersion()
169 *error_msg = oss.str(); in CheckMagicAndVersion()
/art/runtime/interpreter/
Dinterpreter_common.h589 std::ostringstream oss; in TraceExecution() local
590 oss << shadow_frame.GetMethod()->PrettyMethod() in TraceExecution()
596 oss << android::base::StringPrintf(" vreg%u=0x%08X", i, raw_value); in TraceExecution()
600 oss << "/java.lang.String \"" << ref_value->AsString()->ToModifiedUtf8() << "\""; in TraceExecution()
602 oss << "/" << ref_value->PrettyTypeOf(); in TraceExecution()
606 TRACE_LOG << oss.str() << "\n"; in TraceExecution()
/art/test/913-heaps/
Dheaps.cc656 std::ostringstream oss; in Java_art_Test913_followReferencesPrimitiveArray() local
657 oss << *tag_ptr in Java_art_Test913_followReferencesPrimitiveArray()
691 oss << android::base::StringPrintf("%02x", data[i]); in Java_art_Test913_followReferencesPrimitiveArray()
693 oss << "')"; in Java_art_Test913_followReferencesPrimitiveArray()
698 p->data += oss.str(); in Java_art_Test913_followReferencesPrimitiveArray()
772 std::ostringstream oss; in Java_art_Test913_followReferencesPrimitiveFields() local
773 oss << *tag_ptr in Java_art_Test913_followReferencesPrimitiveFields()
786 oss << android::base::StringPrintf("%016" PRIx64, val); in Java_art_Test913_followReferencesPrimitiveFields()
791 p->data += oss.str(); in Java_art_Test913_followReferencesPrimitiveFields()
/art/imgdiag/
Dimgdiag.cc107 std::ostringstream oss; in PrettyFieldValue() local
110 oss << object->GetFieldObject<mirror::Object, kVerifyNone, kWithoutReadBarrier>( in PrettyFieldValue()
115 oss << static_cast<bool>(object->GetFieldBoolean<kVerifyNone>(field->GetOffset())); in PrettyFieldValue()
119 oss << static_cast<int32_t>(object->GetFieldByte<kVerifyNone>(field->GetOffset())); in PrettyFieldValue()
123 oss << object->GetFieldChar<kVerifyNone>(field->GetOffset()); in PrettyFieldValue()
127 oss << object->GetFieldShort<kVerifyNone>(field->GetOffset()); in PrettyFieldValue()
131 oss << object->GetField32<kVerifyNone>(field->GetOffset()); in PrettyFieldValue()
135 oss << object->GetField64<kVerifyNone>(field->GetOffset()); in PrettyFieldValue()
139 oss << object->GetField32<kVerifyNone>(field->GetOffset()); in PrettyFieldValue()
143 oss << object->GetField64<kVerifyNone>(field->GetOffset()); in PrettyFieldValue()
[all …]

12