Home
last modified time | relevance | path

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

12

/frameworks/base/tests/net/java/com/android/server/connectivity/
DNetdEventListenerServiceTest.java102 String got = events2[i+1]; in testWakeupEventLogging() local
103 assertContains(got, "WakeupEvent"); in testWakeupEventLogging()
104 assertContains(got, "wlan0"); in testWakeupEventLogging()
105 assertContains(got, "uid: " + uids[i]); in testWakeupEventLogging()
120 String got = events3[i]; in testWakeupEventLogging() local
121 assertContains(got, "WakeupEvent"); in testWakeupEventLogging()
122 assertContains(got, "wlan0"); in testWakeupEventLogging()
123 assertContains(got, "uid: " + uid); in testWakeupEventLogging()
154 String got = flushStatistics(); in testWakeupStatsLogging() local
190 assertEquals(want, got); in testWakeupStatsLogging()
[all …]
DIpConnectivityMetricsTest.java95 List<ConnectivityMetricsEvent> got = verifyEvents(3); in testLoggingEvents() local
96 assertEventsEqual(expectedEvent(1), got.get(0)); in testLoggingEvents()
97 assertEventsEqual(expectedEvent(2), got.get(1)); in testLoggingEvents()
98 assertEventsEqual(expectedEvent(3), got.get(2)); in testLoggingEvents()
118 List<ConnectivityMetricsEvent> got = verifyEvents(nCallers * nEvents, 200); in testLoggingEventsWithMultipleCallers() local
119 Collections.sort(got, EVENT_COMPARATOR); in testLoggingEventsWithMultipleCallers()
120 Iterator<ConnectivityMetricsEvent> iter = got.iterator(); in testLoggingEventsWithMultipleCallers()
487 byte[] got = Base64.decode(output, Base64.DEFAULT); in verifySerialization()
489 IpConnectivityLogClass.IpConnectivityLog.parseFrom(got); in verifySerialization()
512 static void assertEventsEqual(ConnectivityMetricsEvent expected, ConnectivityMetricsEvent got) { in assertEventsEqual() argument
[all …]
DIpConnectivityEventBuilderTest.java517 IpConnectivityEvent got = IpConnectivityEventBuilder.toProto(stats); in testWakeupStatsSerialization() local
538 verifySerialization(want, got); in testWakeupStatsSerialization()
549 byte[] got = IpConnectivityEventBuilder.serialize(0, Arrays.asList(input)); in verifySerialization()
550 IpConnectivityLog log = IpConnectivityLog.parseFrom(got); in verifySerialization()
/frameworks/base/tests/net/java/android/net/util/
DSharedLogTest.java85 String got = lines[i]; in verifyLogLines() local
87 assertTrue(String.format("'%s' did not contain '%s'", got, want), got.endsWith(want)); in verifyLogLines()
88 assertTrue(String.format("'%s' did not contain a %s timestamp", got, TIMESTAMP), in verifyLogLines()
89 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()
DMipsLDBackend.cpp1269 LDSection& got = fileFormat->getGOT(); in initTargetSections() local
1270 m_pGOT = new Mips32GOT(got); in initTargetSections()
1314 LDSection& got = fileFormat->getGOT(); in initTargetSections() local
1315 m_pGOT = new Mips64GOT(got); in initTargetSections()
/frameworks/base/core/tests/coretests/src/android/util/
DLocalLogTest.java81 String got = gotLines[i]; in verifyAllLines() local
82 String msg = String.format("%s did not contain %s", quote(got), quote(want)); in verifyAllLines()
83 assertTrue(msg, got.contains(want)); in verifyAllLines()
/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()
DAArch64LDBackend.cpp94 LDSection& got = file_format->getGOT(); in initTargetSections() local
95 m_pGOT = new AArch64GOT(got); in initTargetSections()
/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()
DARMLDBackend.cpp178 LDSection& got = file_format->getGOT(); in initTargetSections() local
179 m_pGOT = new ARMGOT(got); in initTargetSections()
/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/com/android/server/
DNsdServiceTest.java161 String got = ""; in verifyDaemonCommand() local
163 got += o + " "; in verifyDaemonCommand()
165 assertEquals(want, got.trim()); in verifyDaemonCommand()
DConnectivityServiceTest.java3440 private static <T> void assertLength(int expected, T[] got) { in assertLength() argument
3441 int length = got.length; in assertLength()
3443 expected, length, Arrays.toString(got)), expected, length); in assertLength()
3450 } catch (Exception got) { in assertException()
3451 if (!got.getClass().equals(expected)) { in assertException()
3452 fail("Expected exception of type " + expected + " but got " + got); in assertException()
/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/tests/net/java/android/net/apf/
DApfTest.java106 private static void assertReturnCodesEqual(int expected, int got) { in assertReturnCodesEqual() argument
107 assertEquals(label(expected), label(got)); in assertReturnCodesEqual()
1081 RaEvent got = lastRaEvent(captor.getAllValues()); in verifyRaEvent() local
1082 if (!raEventEquals(expected, got)) { in verifyRaEvent()
1083 assertEquals(expected, got); // fail for printing an assertion error message. in verifyRaEvent()
1088 RaEvent got = null; in lastRaEvent() local
1091 got = (RaEvent) ev; in lastRaEvent()
1094 return got; in lastRaEvent()
1326 public void assertEqualsIp(String expected, int got) throws Exception { in assertEqualsIp() argument
1328 assertEquals(want, got); in assertEqualsIp()
/frameworks/base/core/java/android/app/backup/
DFullBackup.java173 int got = in.read(buffer, 0, toRead); in restoreFile() local
174 if (got <= 0) { in restoreFile()
181 out.write(buffer, 0, got); in restoreFile()
191 size -= got; in restoreFile()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DTarBackupReader.java672 final int got = readExactly(mInputStream, block, 0, 512); in readTarHeader() local
673 if (got == 0) { in readTarHeader()
676 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()
/frameworks/base/tests/net/java/android/net/dhcp/
DDhcpPacketTest.java472 private void assertDhcpErrorCodes(int expected, int got) { in assertDhcpErrorCodes() argument
473 assertEquals(Integer.toHexString(expected), Integer.toHexString(got)); in assertDhcpErrorCodes()

12