/frameworks/base/tests/net/java/com/android/internal/util/ |
H A D | RingBufferTest.java | 182 static <T> void assertArraysEqual(T[] expected, T[] got) { argument 183 if (expected.length != got.length) { 184 fail(Arrays.toString(expected) + " and " + Arrays.toString(got) 189 if (!Objects.equals(expected[i], got[i])) { 190 fail(Arrays.toString(expected) + " and " + Arrays.toString(got)
|
/frameworks/base/tools/aapt/tests/ |
H A D | CrunchCache_test.cpp | 18 void expectEqual(int got, int expected, const char* desc) { argument 20 cout << "Got " << got << ", expected " << expected << "..."; 21 cout << ( (got == expected) ? "PASSED" : "FAILED") << endl; 22 errno += ((got == expected) ? 0 : 1);
|
/frameworks/compile/mclinker/lib/Target/Mips/ |
H A D | MipsGOTPLT.cpp | 35 GOTPLTEntry* got = &(llvm::cast<GOTPLTEntry>((*it))); local 36 *buffer = static_cast<uint32_t>(got->getValue()); 37 result += got->size();
|
H A D | MipsGOT.cpp | 496 Mips32GOTEntry* got = &(llvm::cast<Mips32GOTEntry>((*it))); local 497 *buffer = static_cast<uint32_t>(got->getValue()); 498 result += got->size(); 531 Mips64GOTEntry* got = &(llvm::cast<Mips64GOTEntry>((*it))); local 532 *buffer = static_cast<uint64_t>(got->getValue()); 533 result += got->size();
|
H A D | MipsRelocator.cpp | 602 MipsGOT& got = getTarget().getGOT(); local 607 Fragment* got_entry = got.lookupLocalEntry(rsym, entryValue); 614 got_entry = got.consumeLocal(); 616 if (got.isPrimaryGOTConsumed()) 619 got.setEntryValue(got_entry, entryValue); 621 got.recordLocalEntry(rsym, entryValue, got_entry); 629 MipsGOT& got = getTarget().getGOT(); local 634 Fragment* got_entry = got.lookupGlobalEntry(rsym); 641 got_entry = got.consumeGlobal(); 643 if (got 656 MipsGOT& got = getTarget().getGOT(); local 674 MipsGOT& got = getTarget().getGOT(); local 690 MipsGOT& got = getTarget().getGOT(); local 970 MipsGOT& got = pParent.getTarget().getGOT(); local [all...] |
H A D | MipsLDBackend.cpp | 188 // set .got size 189 // when building shared object, the .got section is must. 1268 // initialize .got 1269 LDSection& got = fileFormat->getGOT(); local 1270 m_pGOT = new Mips32GOT(got); 1272 // initialize .got.plt 1313 // initialize .got 1314 LDSection& got = fileFormat->getGOT(); local 1315 m_pGOT = new Mips64GOT(got); 1317 // initialize .got [all...] |
/frameworks/base/cmds/incident_helper/tests/ |
H A D | PsParser_test.cpp | 56 PsProto got; local 215 got.ParseFromString(GetCapturedStdout()); 218 if (got.processes_size() != expected.processes_size()) { 219 fprintf(stderr, "Got %d processes, want %d\n", got.processes_size(), expected.processes_size()); 222 int n = got.processes_size(); 224 PsProto::Process g = got.processes(i);
|
/frameworks/compile/mclinker/lib/Target/ARM/ |
H A D | ARMGOT.cpp | 118 ARMGOTEntry* got = NULL; local 121 got = &(llvm::cast<ARMGOTEntry>((*it))); 122 *buffer = static_cast<uint32_t>(got->getValue());
|
H A D | ARMLDBackend.cpp | 177 // initialize .got 178 LDSection& got = file_format->getGOT(); local 179 m_pGOT = new ARMGOT(got); 291 // set .got size 292 // when building shared object, the .got section is must 365 // define symbol _GLOBAL_OFFSET_TABLE_ when .got create 626 // If the input section's size is zero, we got a NULL region.
|
/frameworks/compile/mclinker/lib/Target/AArch64/ |
H A D | AArch64GOT.cpp | 121 AArch64GOTEntry* got = NULL; local 124 got = &(llvm::cast<AArch64GOTEntry>((*it))); 125 *buffer = static_cast<uint64_t>(got->getValue());
|
H A D | AArch64LDBackend.cpp | 93 // initialize .got 94 LDSection& got = file_format->getGOT(); local 95 m_pGOT = new AArch64GOT(got); 97 // when -z now is given, there will be only one .got section (contains 98 // both GOTPLT and normal GOT entries), create GOT0 for .got section and 99 // set m_pGOTPLT to the same .got 103 // Otherwise, got should be seperated to two sections, .got and .got.plt 104 // initialize .got [all...] |
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
H A D | IpConnectivityMetricsTest.java | 107 List<ConnectivityMetricsEvent> got = verifyEvents(3); 108 assertEventsEqual(expectedEvent(1), got.get(0)); 109 assertEventsEqual(expectedEvent(2), got.get(1)); 110 assertEventsEqual(expectedEvent(3), got.get(2)); 130 List<ConnectivityMetricsEvent> got = verifyEvents(nCallers * nEvents, 200); 131 Collections.sort(got, EVENT_COMPARATOR); 132 Iterator<ConnectivityMetricsEvent> iter = got.iterator(); 663 byte[] got = Base64.decode(output, Base64.DEFAULT); 665 IpConnectivityLogClass.IpConnectivityLog.parseFrom(got); 688 static void assertEventsEqual(ConnectivityMetricsEvent expected, ConnectivityMetricsEvent got) { argument [all...] |
H A D | NetdEventListenerServiceTest.java | 125 String got = events2[i+1]; 126 assertContains(got, "WakeupEvent"); 127 assertContains(got, "wlan0"); 128 assertContains(got, "uid: " + uids[i]); 143 String got = events3[i]; 144 assertContains(got, "WakeupEvent"); 145 assertContains(got, "wlan0"); 146 assertContains(got, "uid: " + uid); 192 String got = flushStatistics(); 266 assertEquals(want, got); 538 assertContains(String got, String want) argument [all...] |
/frameworks/base/tests/net/java/android/net/dhcp/ |
H A D | DhcpPacketTest.java | 486 private void assertDhcpErrorCodes(int expected, int got) { argument 487 assertEquals(Integer.toHexString(expected), Integer.toHexString(got));
|
/frameworks/compile/mclinker/lib/Target/X86/ |
H A D | X86LDBackend.cpp | 87 // set .got.plt and .got sizes 88 // when building shared object, the .got section is must 349 // initialize .got 350 LDSection& got = file_format->getGOT(); local 351 m_pGOT = new X86_32GOT(got); 353 // initialize .got.plt 456 // set .got.plt size 463 // set .got size 473 X86_32GOTEntry* got local 496 X86_32GOTEntry* got = 0; local 617 LDSection& got = file_format->getGOT(); local 658 X86_64GOTEntry* got = 0; local 681 X86_64GOTEntry* got = 0; local [all...] |
/frameworks/base/tests/net/java/android/net/apf/ |
H A D | ApfTest.java | 125 private static void assertReturnCodesEqual(int expected, int got) { argument 126 assertEquals(label(expected), label(got)); 1419 RaEvent got = lastRaEvent(captor.getAllValues()); 1420 if (!raEventEquals(expected, got)) { 1421 assertEquals(expected, got); // fail for printing an assertion error message. 1426 RaEvent got = null; 1429 got = (RaEvent) ev; 1432 return got; 1672 public void assertEqualsIp(String expected, int got) throws Exception { argument 1674 assertEquals(want, got); [all...] |
/frameworks/compile/mclinker/lib/Target/Hexagon/ |
H A D | HexagonLDBackend.cpp | 89 // set .got.plt and .got sizes 90 // when building shared object, the .got section is must 292 // set .got.plt size 299 // set .got size 309 HexagonGOTEntry* got = 0; local 315 got = &(llvm::cast<HexagonGOTEntry>((*it))); 316 *buffer = static_cast<uint32_t>(got->getValue()); 358 HexagonGOTEntry* got = 0; local 365 got 409 LDSection& got = file_format->getGOT(); local [all...] |
/frameworks/compile/mclinker/lib/Target/ |
H A D | GNULDBackend.cpp | 2203 // It seems that compiler think .got and .got.plt are continuous (w/o 2204 // any padding between). If .got is the last section in PT_RELRO and 2205 // it's not continuous to its next section (i.e. .got.plt), we need to 2206 // add padding in front of .got instead. 2208 LDSection& got = getOutputFormat()->getGOT(); local 2209 if ((getSectionOrder(got) == SHO_RELRO_LAST) && 2210 (got.addr() + got.size() < vma)) { 2211 uint64_t diff = vma - got [all...] |
/frameworks/native/libs/binder/ |
H A D | Parcel.cpp | 2237 int got = readFileDescriptor(); local 2239 if (got == BAD_TYPE) { 2243 val->reset(fcntl(got, F_DUPFD_CLOEXEC, 0));
|
/frameworks/base/tests/net/java/com/android/server/ |
H A D | ConnectivityServiceTest.java | 3736 fail("expected no broadcast, but got CONNECTIVITY_ACTION broadcast"); 4154 private static <T> void assertLength(int expected, T[] got) { argument 4155 int length = got.length; 4157 expected, length, Arrays.toString(got)), expected, length); 4164 } catch (Exception got) { 4165 if (!got.getClass().equals(expected)) { 4166 fail("Expected exception of type " + expected + " but got " + got);
|
/frameworks/base/tools/aapt/ |
H A D | ResourceTable.cpp | 2557 bool got = getItemValue(attrID, e->getBag().valueAt(i).bagKeyId, &val); local 2558 if (!got) {
|