Home
last modified time | relevance | path

Searched refs:oldSession (Results 1 - 3 of 3) sorted by relevance

/foundation/communication/ipc/services/dbinder/dbinder_service/src/
H A Ddbinder_service.cpp933 bool DBinderService::IsSameSession(std::shared_ptr<struct SessionInfo> oldSession, in IsSameSession() argument
936 if ((oldSession->stubIndex != newSession->stubIndex) || (oldSession->toPort != newSession->toPort) in IsSameSession()
937 || (oldSession->fromPort != newSession->fromPort) || (oldSession->type != newSession->type) in IsSameSession()
938 || (oldSession->serviceName != newSession->serviceName)) { in IsSameSession()
941 if (strncmp(oldSession->deviceIdInfo.fromDeviceId, newSession->deviceIdInfo.fromDeviceId, DEVICEID_LENGTH) != 0 in IsSameSession()
942 || strncmp(oldSession->deviceIdInfo.toDeviceId, newSession->deviceIdInfo.toDeviceId, DEVICEID_LENGTH) != 0) { in IsSameSession()
1012 std::shared_ptr<struct SessionInfo> oldSession = QuerySessionObject(QueryStubPtr(replyMessage->stub)); in MakeSessionByReplyMessage() local
1013 if (oldSession ! in MakeSessionByReplyMessage()
[all...]
/foundation/communication/ipc/services/dbinder/test/unittest/
H A Ddbinder_service_unittest.cpp1372 std::shared_ptr<struct SessionInfo> oldSession= std::make_shared<struct SessionInfo>(); in HWTEST_F() local
1373 EXPECT_NE(oldSession.get(), nullptr); in HWTEST_F()
1376 oldSession->stubIndex = 1; in HWTEST_F()
1377 oldSession->toPort = 2; in HWTEST_F()
1378 oldSession->fromPort = 3; in HWTEST_F()
1379 oldSession->type = 4; in HWTEST_F()
1380 oldSession->serviceName[0] = 't'; in HWTEST_F()
1388 EXPECT_EQ(dBinderService->IsSameSession(oldSession, newSession), false); in HWTEST_F()
1391 EXPECT_EQ(dBinderService->IsSameSession(oldSession, newSession), false); in HWTEST_F()
1394 EXPECT_EQ(dBinderService->IsSameSession(oldSession, newSessio in HWTEST_F()
[all...]
/foundation/communication/ipc/interfaces/innerkits/libdbinder/include/
H A Ddbinder_service.h365 bool IsSameSession(std::shared_ptr<struct SessionInfo> oldSession, std::shared_ptr<struct SessionInfo> newSession);

Completed in 5 milliseconds