Home
last modified time | relevance | path

Searched refs:serverId (Results 1 – 2 of 2) sorted by relevance

/frameworks/native/cmds/lshal/
Dtest.cpp257 static uint64_t getPtr(pid_t serverId) { return 10000 + serverId; } in getPtr() argument
258 static std::vector<pid_t> getClients(pid_t serverId) { in getClients() argument
259 return {serverId + 1, serverId + 3}; in getClients()
261 static PidInfo getPidInfoFromId(pid_t serverId) { in getPidInfoFromId() argument
263 info.refPids[getPtr(serverId)] = getClients(serverId); in getPidInfoFromId()
264 info.threadUsage = 10 + serverId; in getPidInfoFromId()
265 info.threadCount = 20 + serverId; in getPidInfoFromId()
268 static std::string getInterfaceName(pid_t serverId) { in getInterfaceName() argument
269 return "a.h.foo" + std::to_string(serverId) + "@" + std::to_string(serverId) + ".0::IFoo"; in getInterfaceName()
271 static std::string getInstanceName(pid_t serverId) { in getInstanceName() argument
[all …]
/frameworks/native/libs/binder/tests/
DbinderLibTest.cpp431 int32_t serverId[3]; in TEST_F() local
433 data.writeInt32(ARRAY_SIZE(serverId)); in TEST_F()
434 for (size_t i = 0; i < ARRAY_SIZE(serverId); i++) { in TEST_F()
438 server = addServer(&serverId[i]); in TEST_F()
454 EXPECT_EQ(ARRAY_SIZE(serverId), (size_t)count); in TEST_F()
461 EXPECT_EQ(serverId[i], id); in TEST_F()
474 int32_t serverId[3]; in TEST_F() local
476 data.writeInt32(ARRAY_SIZE(serverId)); in TEST_F()
477 for (size_t i = 0; i < ARRAY_SIZE(serverId); i++) { in TEST_F()
482 server = addServer(&serverId[i]); in TEST_F()
[all …]