Home
last modified time | relevance | path

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

12

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/examples/
Dadd_person_test.go25 got, err := promptForAddress(strings.NewReader(in))
29 if got.Id != 12345 {
30 t.Errorf("promptForAddress(%q) got %d, want ID %d", in, got.Id, 12345)
32 if got.Name != "Example Name" {
33 t.Errorf("promptForAddress(%q) => want name %q, got %q", "Example Name", got.Name)
35 if got.Email != "name@example.com" {
36 t.Errorf("promptForAddress(%q) => want email %q, got %q", "name@example.com", got.Email)
45 if len(got.Phones) != len(want) {
46 t.Errorf("want %d phone numbers, got %d", len(want), len(got.Phones))
48 phones := len(got.Phones)
[all …]
Dlist_people_test.go24 got := buf.String()
30 if got != want {
31 t.Errorf("writePerson(%s) =>\n\t%q, want %q", p.String(), got, want)
97 got := strings.Split(buf.String(), "\n")
98 if len(got) != len(want) {
103 len(got),
106 lines := len(got)
111 if got[i] != want[i] {
116 got[i],
/frameworks/base/tests/net/common/java/android/net/metrics/
DIpConnectivityLogTest.java77 List<ConnectivityMetricsEvent> got = verifyEvents(6); in testLoggingEvents() local
78 assertEventsEqual(makeExpectedEvent(got.get(0).timestamp, 0, 0, null), got.get(0)); in testLoggingEvents()
79 assertEventsEqual(makeExpectedEvent(FAKE_TIME_STAMP, 0, 0, null), got.get(1)); in testLoggingEvents()
80 assertEventsEqual(makeExpectedEvent(got.get(2).timestamp, FAKE_NET_ID, in testLoggingEvents()
81 TRANSPORT_WIFI, null), got.get(2)); in testLoggingEvents()
82 assertEventsEqual(makeExpectedEvent(got.get(3).timestamp, FAKE_NET_ID, in testLoggingEvents()
83 TRANSPORT_WIFI, null), got.get(3)); in testLoggingEvents()
84 assertEventsEqual(makeExpectedEvent(got.get(4).timestamp, 0, 0, FAKE_INTERFACE_NAME), in testLoggingEvents()
85 got.get(4)); in testLoggingEvents()
87 TRANSPORT_WIFI, FAKE_INTERFACE_NAME), got.get(5)); in testLoggingEvents()
[all …]
/frameworks/base/tests/net/java/com/android/server/connectivity/
DNetdEventListenerServiceTest.java119 String got = events2[i+1]; in testWakeupEventLogging() local
120 assertContains(got, "WakeupEvent"); in testWakeupEventLogging()
121 assertContains(got, "wlan0"); in testWakeupEventLogging()
122 assertContains(got, "uid: " + uids[i]); in testWakeupEventLogging()
137 String got = events3[i]; in testWakeupEventLogging() local
138 assertContains(got, "WakeupEvent"); in testWakeupEventLogging()
139 assertContains(got, "wlan0"); in testWakeupEventLogging()
140 assertContains(got, "uid: " + uid); in testWakeupEventLogging()
186 String got = flushStatistics(); in testWakeupStatsLogging() local
260 assertEquals(want, got); in testWakeupStatsLogging()
[all …]
DIpConnectivityEventBuilderTest.java507 IpConnectivityEvent got = IpConnectivityEventBuilder.toProto(stats); in testWakeupStatsSerialization() local
543 verifySerialization(want, got); in testWakeupStatsSerialization()
554 byte[] got = IpConnectivityEventBuilder.serialize(0, Arrays.asList(input)); in verifySerialization()
555 IpConnectivityLog log = IpConnectivityLog.parseFrom(got); in verifySerialization()
DIpConnectivityMetricsTest.java610 byte[] got = Base64.decode(output, Base64.DEFAULT); in verifySerialization()
612 IpConnectivityLogClass.IpConnectivityLog.parseFrom(got); in verifySerialization()
/frameworks/base/tests/net/java/android/net/util/
DSharedLogTest.java88 String got = lines[i]; in verifyLogLines() local
90 assertTrue(String.format("'%s' did not contain '%s'", got, want), got.endsWith(want)); in verifyLogLines()
91 assertTrue(String.format("'%s' did not contain a %s timestamp", got, TIMESTAMP), in verifyLogLines()
92 got.replaceFirst(TIMESTAMP_PATTERN, TIMESTAMP).contains(TIMESTAMP)); in verifyLogLines()
/frameworks/base/tools/aapt/tests/
DCrunchCache_test.cpp18 void expectEqual(int got, int expected, const char* desc) { in expectEqual() argument
20 cout << "Got " << got << ", expected " << expected << "..."; in expectEqual()
21 cout << ( (got == expected) ? "PASSED" : "FAILED") << endl; in expectEqual()
22 errno += ((got == expected) ? 0 : 1); in expectEqual()
/frameworks/compile/mclinker/lib/Target/X86/
DX86LDBackend.cpp350 LDSection& got = file_format->getGOT(); in initTargetSections() local
351 m_pGOT = new X86_32GOT(got); in initTargetSections()
473 X86_32GOTEntry* got = 0; in emitGOTSectionData() local
479 got = &(llvm::cast<X86_32GOTEntry>((*it))); in emitGOTSectionData()
480 *buffer = static_cast<uint32_t>(got->getValue()); in emitGOTSectionData()
496 X86_32GOTEntry* got = 0; in emitGOTPLTSectionData() local
503 got = &(llvm::cast<X86_32GOTEntry>((*it))); in emitGOTPLTSectionData()
504 *buffer = static_cast<uint32_t>(got->getValue()); in emitGOTPLTSectionData()
617 LDSection& got = file_format->getGOT(); in initTargetSections() local
618 m_pGOT = new X86_64GOT(got); in initTargetSections()
[all …]
/frameworks/compile/mclinker/lib/Target/Mips/
DMipsGOTPLT.cpp35 GOTPLTEntry* got = &(llvm::cast<GOTPLTEntry>((*it))); in emit() local
36 *buffer = static_cast<uint32_t>(got->getValue()); in emit()
37 result += got->size(); in emit()
DMipsRelocator.cpp602 MipsGOT& got = getTarget().getGOT(); in getLocalGOTEntry() local
607 Fragment* got_entry = got.lookupLocalEntry(rsym, entryValue); in getLocalGOTEntry()
614 got_entry = got.consumeLocal(); in getLocalGOTEntry()
616 if (got.isPrimaryGOTConsumed()) in getLocalGOTEntry()
619 got.setEntryValue(got_entry, entryValue); in getLocalGOTEntry()
621 got.recordLocalEntry(rsym, entryValue, got_entry); in getLocalGOTEntry()
629 MipsGOT& got = getTarget().getGOT(); in getGlobalGOTEntry() local
634 Fragment* got_entry = got.lookupGlobalEntry(rsym); in getGlobalGOTEntry()
641 got_entry = got.consumeGlobal(); in getGlobalGOTEntry()
643 if (got.isPrimaryGOTConsumed()) in getGlobalGOTEntry()
[all …]
DMipsGOT.cpp496 Mips32GOTEntry* got = &(llvm::cast<Mips32GOTEntry>((*it))); in emit() local
497 *buffer = static_cast<uint32_t>(got->getValue()); in emit()
498 result += got->size(); in emit()
531 Mips64GOTEntry* got = &(llvm::cast<Mips64GOTEntry>((*it))); in emit() local
532 *buffer = static_cast<uint64_t>(got->getValue()); in emit()
533 result += got->size(); in emit()
/frameworks/base/tests/net/java/com/android/internal/util/
DRingBufferTest.java181 static <T> void assertArraysEqual(T[] expected, T[] got) { in assertArraysEqual() argument
182 if (expected.length != got.length) { in assertArraysEqual()
183 fail(Arrays.toString(expected) + " and " + Arrays.toString(got) in assertArraysEqual()
188 if (!Objects.equals(expected[i], got[i])) { in assertArraysEqual()
189 fail(Arrays.toString(expected) + " and " + Arrays.toString(got) in assertArraysEqual()
/frameworks/base/core/tests/coretests/src/android/util/
DLocalLogTest.java83 String got = gotLines[i]; in verifyAllLines() local
84 String msg = String.format("%s did not contain %s", quote(got), quote(want)); in verifyAllLines()
85 assertTrue(msg, got.contains(want)); in verifyAllLines()
/frameworks/compile/mclinker/lib/Target/ARM/
DARMGOT.cpp118 ARMGOTEntry* got = NULL; in emit() local
121 got = &(llvm::cast<ARMGOTEntry>((*it))); in emit()
122 *buffer = static_cast<uint32_t>(got->getValue()); in emit()
/frameworks/compile/mclinker/lib/Target/AArch64/
DAArch64GOT.cpp121 AArch64GOTEntry* got = NULL; in emit() local
124 got = &(llvm::cast<AArch64GOTEntry>((*it))); in emit()
125 *buffer = static_cast<uint64_t>(got->getValue()); in emit()
/frameworks/base/core/java/com/android/internal/util/
DTokenBucket.java110 int got = mAvailable; in get() local
112 return got; in get()
/frameworks/compile/mclinker/include/mcld/LD/
DDiagGOTPLT.inc3 "%0 is not a dynamic symbol, do not put it in global got",
4 "%0 is not a dynamic symbol, do not put it in global got")
/frameworks/base/tests/net/java/android/net/
DMacAddressTest.java66 int got = MacAddress.macAddressType(t.addr); in testMacAddrTypes() local
68 Arrays.toString(t.addr), t.expectedType, got); in testMacAddrTypes()
69 assertEquals(msg, t.expectedType, got); in testMacAddrTypes()
71 if (got != MacAddress.TYPE_UNKNOWN) { in testMacAddrTypes()
72 assertEquals(got, MacAddress.fromBytes(t.addr).getAddressType()); in testMacAddrTypes()
/frameworks/base/cmds/incident_helper/tests/
DPsParser_test.cpp56 PsProto got; in TEST_F() local
215 got.ParseFromString(GetCapturedStdout()); in TEST_F()
218 if (got.processes_size() != expected.processes_size()) { in TEST_F()
219 … fprintf(stderr, "Got %d processes, want %d\n", got.processes_size(), expected.processes_size()); in TEST_F()
222 int n = got.processes_size(); in TEST_F()
224 PsProto::Process g = got.processes(i); in TEST_F()
/frameworks/base/tests/net/java/com/android/server/
DNsdServiceTest.java171 String got = ""; in verifyDaemonCommand() local
173 got += o + " "; in verifyDaemonCommand()
175 assertEquals(want, got.trim()); in verifyDaemonCommand()
/frameworks/compile/mclinker/lib/Target/Hexagon/
DHexagonLDBackend.cpp309 HexagonGOTEntry* got = 0; in emitGOTSectionData() local
315 got = &(llvm::cast<HexagonGOTEntry>((*it))); in emitGOTSectionData()
316 *buffer = static_cast<uint32_t>(got->getValue()); in emitGOTSectionData()
358 HexagonGOTEntry* got = 0; in emitGOTPLTSectionData() local
365 got = &(llvm::cast<HexagonGOTEntry>((*it))); in emitGOTPLTSectionData()
366 *buffer = static_cast<uint32_t>(got->getValue()); in emitGOTPLTSectionData()
409 LDSection& got = file_format->getGOT(); in initTargetSections() local
410 m_pGOT = new HexagonGOT(got); in initTargetSections()
/frameworks/base/core/java/android/app/backup/
DFullBackup.java180 int got = in.read(buffer, 0, toRead); in restoreFile() local
181 if (got <= 0) { in restoreFile()
188 out.write(buffer, 0, got); in restoreFile()
198 size -= got; in restoreFile()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DTarBackupReader.java674 final int got = readExactly(mInputStream, block, 0, 512); in readTarHeader() local
675 if (got == 0) { in readTarHeader()
678 if (got < 512) { in readTarHeader()
/frameworks/compile/mclinker/lib/Target/
DGNULDBackend.cpp2208 LDSection& got = getOutputFormat()->getGOT(); in setOutputSectionAddress() local
2209 if ((getSectionOrder(got) == SHO_RELRO_LAST) && in setOutputSectionAddress()
2210 (got.addr() + got.size() < vma)) { in setOutputSectionAddress()
2211 uint64_t diff = vma - got.addr() - got.size(); in setOutputSectionAddress()
2212 got.setAddr(vma - got.size()); in setOutputSectionAddress()
2213 got.setOffset(got.offset() + diff); in setOutputSectionAddress()

12