Home
last modified time | relevance | path

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

12

/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/libs/net/common/hostdevice/com/android/testutils/
DMiscAsserts.kt33 fun <T> assertLength(expected: Int, got: Array<T>) = got.size.let { len -> in len()
34 assertEquals(expected, len, "Expected array of length $expected, but was $len for $got") in len()
57 fun assertStringContains(got: String, want: String) { in assertStringContains()
58 assertTrue(got.contains(want), "$got did not contain \"${want}\"") in assertStringContains()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DNetdEventListenerServiceTest.java120 String got = events2[i+1]; in testWakeupEventLogging() local
121 assertStringContains(got, "WakeupEvent"); in testWakeupEventLogging()
122 assertStringContains(got, "wlan0"); in testWakeupEventLogging()
123 assertStringContains(got, "uid: " + uids[i]); in testWakeupEventLogging()
138 String got = events3[i]; in testWakeupEventLogging() local
139 assertStringContains(got, "WakeupEvent"); in testWakeupEventLogging()
140 assertStringContains(got, "wlan0"); in testWakeupEventLogging()
141 assertStringContains(got, "uid: " + uid); in testWakeupEventLogging()
187 String got = flushStatistics(); in testWakeupStatsLogging() local
261 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/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/base/tests/net/java/com/android/internal/util/
DBitUtilsTest.java149 int[] got = unpackBits(tc.packedBits); in testBitsPacking() local
156 + Arrays.toString(got), in testBitsPacking()
157 Arrays.equals(tc.bits, got)); in testBitsPacking()
160 long got = packBits(tc.bits); in testBitsPacking() local
167 + got, in testBitsPacking()
169 got); in testBitsPacking()
/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/core/tests/coretests/src/android/util/
DLocalLogTest.java93 String got = gotLines[i]; in verifyAllLines() local
94 String msg = String.format("%s did not contain %s", quote(got), quote(want)); in verifyAllLines()
95 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()
/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/base/tests/net/java/android/net/
DMacAddressTest.java68 int got = MacAddress.macAddressType(t.addr); in testMacAddrTypes() local
70 Arrays.toString(t.addr), t.expectedType, got); in testMacAddrTypes()
71 assertEquals(msg, t.expectedType, got); in testMacAddrTypes()
73 if (got != MacAddress.TYPE_UNKNOWN) { in testMacAddrTypes()
74 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/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.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/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Dsingle_source_script.rscript66 rsDebug("got ", actual);
/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/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Dsingle_source_script.rscript68 rsDebug("got ", actual);
/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