Home
last modified time | relevance | path

Searched refs:DBinderSessionObject (Results 1 – 17 of 17) sorted by relevance

/ohos5.0/foundation/communication/ipc/ipc/native/src/core/source/
H A Ddbinder_session_object.cpp25 DBinderSessionObject::DBinderSessionObject(const std::string &serviceName, in DBinderSessionObject() function in OHOS::DBinderSessionObject
31 DBinderSessionObject::~DBinderSessionObject() in ~DBinderSessionObject()
36 void DBinderSessionObject::CloseDatabusSession() in CloseDatabusSession()
93 uint64_t DBinderSessionObject::GetStubIndex() const in GetStubIndex()
98 uint32_t DBinderSessionObject::GetFlatSessionLen() in GetFlatSessionLen()
105 int32_t DBinderSessionObject::GetSocketId() const in GetSocketId()
115 uint32_t DBinderSessionObject::GetTokenId() const in GetTokenId()
120 void DBinderSessionObject::SetPeerPid(int peerPid) in SetPeerPid()
125 void DBinderSessionObject::SetPeerUid(int peerUid) in SetPeerUid()
130 int DBinderSessionObject::GetPeerPid() const in GetPeerPid()
[all …]
H A Dipc_process_skeleton.cpp516 uint32_t IPCProcessSkeleton::GetDBinderIdleHandle(std::shared_ptr<DBinderSessionObject> session) in GetDBinderIdleHandle()
530 std::shared_ptr<DBinderSessionObject>>(tempHandle, session)).second; in GetDBinderIdleHandle()
540 std::shared_ptr<DBinderSessionObject> IPCProcessSkeleton::ProxyDetachDBinderSession(uint32_t handle, in ProxyDetachDBinderSession()
545 std::shared_ptr<DBinderSessionObject> tmp = nullptr; in ProxyDetachDBinderSession()
563 …sSkeleton::ProxyAttachDBinderSession(uint32_t handle, std::shared_ptr<DBinderSessionObject> object) in ProxyAttachDBinderSession()
567 …auto result = proxyToSession_.insert(std::pair<uint32_t, std::shared_ptr<DBinderSessionObject>>(ha… in ProxyAttachDBinderSession()
575 std::shared_ptr<DBinderSessionObject> IPCProcessSkeleton::ProxyQueryDBinderSession(uint32_t handle) in ProxyQueryDBinderSession()
648 std::shared_ptr<DBinderSessionObject> IPCProcessSkeleton::QuerySessionByInfo(const std::string &nam… in QuerySessionByInfo()
686 …ssSkeleton::StubAttachDBinderSession(uint32_t handle, std::shared_ptr<DBinderSessionObject> object) in StubAttachDBinderSession()
691 …dbinderSessionObjects_.insert(std::pair<uint32_t, std::shared_ptr<DBinderSessionObject>>(handle, o… in StubAttachDBinderSession()
[all …]
H A Dipc_object_proxy.cpp888 auto dbinderSession = std::make_shared<DBinderSessionObject>( in MakeDBinderTransSession()
1013 …std::shared_ptr<DBinderSessionObject> toBeDelete = current->ProxyDetachDBinderSession(handle_, thi… in ReleaseDatabusProto()
H A Dmessage_parcel.cpp136 std::shared_ptr<DBinderSessionObject> sessionOfPeer = current->ProxyQueryDBinderSession(handle); in WriteDBinderProxy()
/ohos5.0/foundation/communication/ipc/ipc/native/src/mock/include/
H A Ddbinder_databus_invoker.h28 class DBinderDatabusInvoker : public DBinderBaseInvoker<DBinderSessionObject> {
55 bool UpdateClientSession(std::shared_ptr<DBinderSessionObject> sessionObject) override;
59 std::shared_ptr<DBinderSessionObject> sessionObject) override;
74 int OnSendMessage(std::shared_ptr<DBinderSessionObject> sessionOfPeer) override;
77 std::shared_ptr<DBinderSessionObject> NewSessionOfBinderProxy(uint32_t handle,
78 std::shared_ptr<DBinderSessionObject> session) override;
80 std::shared_ptr<DBinderSessionObject> session, const std::string &localDeviceID);
81 std::shared_ptr<DBinderSessionObject> QuerySessionOfBinderProxy(uint32_t handle,
82 std::shared_ptr<DBinderSessionObject> session) override;
101 const std::shared_ptr<DBinderSessionObject> sessionObject);
[all …]
/ohos5.0/foundation/communication/ipc/ipc/native/test/unittest/common/
H A Dipc_binder_databus_invoker_unittest.cpp278 std::shared_ptr<DBinderSessionObject> remoteSession =
295 std::shared_ptr<DBinderSessionObject> remoteSession =
332 std::shared_ptr<DBinderSessionObject> remoteSession =
347 std::shared_ptr<DBinderSessionObject> remoteSession =
821 std::shared_ptr<DBinderSessionObject> session =
835 std::shared_ptr<DBinderSessionObject> session =
940 std::shared_ptr<DBinderSessionObject> session =
961 std::shared_ptr<DBinderSessionObject> session =
981 std::shared_ptr<DBinderSessionObject> session =
1035 std::shared_ptr<DBinderSessionObject> session =
[all …]
H A Ddbinder_session_object_unittest.cpp66 DBinderSessionObject object(serviceName, serverDeviceId, STUB_INDEX, nullptr, TOKEN_ID);
82 DBinderSessionObject object(serviceName, serverDeviceId, STUB_INDEX, nullptr, TOKEN_ID);
99 DBinderSessionObject object(serviceName, serverDeviceId, STUB_INDEX, nullptr, TOKEN_ID);
114 DBinderSessionObject object(serviceName, serverDeviceId, STUB_INDEX, nullptr, TOKEN_ID);
127DBinderSessionObject object("testserviceName", "testserverDeviceId", STUB_INDEX, nullptr, TOKEN_ID…
140DBinderSessionObject object("testserviceName", "testserverDeviceId", STUB_INDEX, nullptr, TOKEN_ID…
153DBinderSessionObject object("testserviceName", "testserverDeviceId", STUB_INDEX, nullptr, TOKEN_ID…
166DBinderSessionObject object("testserviceName", "testserverDeviceId", STUB_INDEX, nullptr, TOKEN_ID…
179DBinderSessionObject object("testserviceName", "testserverDeviceId", STUB_INDEX, nullptr, TOKEN_ID…
192DBinderSessionObject object("testserviceName", "testserverDeviceId", STUB_INDEX, nullptr, TOKEN_ID…
[all …]
H A Dipc_process_skeleton_unittest.cpp301 std::shared_ptr<DBinderSessionObject> remoteSession =
302 std::make_shared<DBinderSessionObject>(serverName, deviceId, 1, nullptr, 1);
321 std::shared_ptr<DBinderSessionObject> remoteSession =
322 std::make_shared<DBinderSessionObject>(serverName, deviceId, 1, nullptr, 1);
342 std::shared_ptr<DBinderSessionObject> remoteSession =
343 std::make_shared<DBinderSessionObject>(serverName, deviceId, 1, nullptr, 1);
361 auto object = std::make_shared<DBinderSessionObject>(name, deviceId, 1, nullptr, 1);
385 std::pair<uint32_t, std::shared_ptr<DBinderSessionObject>>(handler, object));
408 std::pair<uint32_t, std::shared_ptr<DBinderSessionObject>>(handler, object));
431 std::pair<uint32_t, std::shared_ptr<DBinderSessionObject>>(handler, object));
[all …]
H A Dipc_object_proxy_unittest.cpp913 auto dbinderSessionObject = std::make_shared<DBinderSessionObject>(
1078 auto dbinderSessionObject = std::make_shared<DBinderSessionObject>(
1120 auto dbinderSessionObject = std::make_shared<DBinderSessionObject>(
1161 auto dbinderSessionObject = std::make_shared<DBinderSessionObject>(
1239 auto dbinderSessionObject = std::make_shared<DBinderSessionObject>(
1299 auto dbinderSessionObject = std::make_shared<DBinderSessionObject>(
H A Dmessage_parcel_unittest.cpp113 …auto dbinderSessionObject = std::make_shared<DBinderSessionObject>("name", "deviceId", 1, nullptr,…
/ohos5.0/foundation/communication/ipc/ipc/native/src/mock/source/
H A Ddbinder_databus_invoker.cpp57 std::shared_ptr<DBinderSessionObject> session) in NewSessionOfBinderProxy()
93 std::shared_ptr<DBinderSessionObject> session, const std::string &localDeviceID) in GetSessionForProxy()
131 std::shared_ptr<DBinderSessionObject> connectSession = in GetSessionForProxy()
169 std::shared_ptr<DBinderSessionObject> session) in QuerySessionOfBinderProxy()
233 std::shared_ptr<DBinderSessionObject> sessionObject = std::make_shared<DBinderSessionObject>( in OnReceiveNewConnection()
451 const std::shared_ptr<DBinderSessionObject> connectSession, uint32_t binderVersion) in FlattenSession()
512 return std::make_shared<DBinderSessionObject>( in UnFlattenSession()
761 std::shared_ptr<DBinderSessionObject> session = QueryClientSessionObject(socketId); in CheckAndSetCallerInfo()
835 const std::shared_ptr<DBinderSessionObject> sessionObject) in MakeDefaultServerSessionObject()
861 const std::shared_ptr<DBinderSessionObject> sessionObject) in ConnectRemoteObject2Session()
[all …]
H A Dbinder_invoker.cpp350 std::shared_ptr<DBinderSessionObject> session = current->ProxyQueryDBinderSession(flat->handle); in AddCommAuth()
/ohos5.0/foundation/communication/ipc/ipc/native/src/core/include/
H A Ddbinder_session_object.h48 class DBinderSessionObject {
51 explicit DBinderSessionObject(const std::string &serviceName, const std::string &serverDeviceId,
53 ~DBinderSessionObject();
74 DISALLOW_COPY_AND_MOVE(DBinderSessionObject);
H A Dipc_process_skeleton.h131 …std::shared_ptr<DBinderSessionObject> ProxyDetachDBinderSession(uint32_t handle, IPCObjectProxy *p…
132 bool ProxyAttachDBinderSession(uint32_t handle, std::shared_ptr<DBinderSessionObject> object);
133 std::shared_ptr<DBinderSessionObject> ProxyQueryDBinderSession(uint32_t handle);
136 …std::shared_ptr<DBinderSessionObject> QuerySessionByInfo(const std::string &name, const std::strin…
156 uint32_t GetDBinderIdleHandle(std::shared_ptr<DBinderSessionObject> session);
165 std::shared_ptr<DBinderSessionObject> StubQueryDBinderSession(uint32_t handle);
166 bool StubAttachDBinderSession(uint32_t handle, std::shared_ptr<DBinderSessionObject> object);
276 std::map<uint32_t, std::shared_ptr<DBinderSessionObject>> proxyToSession_;
277 std::map<uint32_t, std::shared_ptr<DBinderSessionObject>> dbinderSessionObjects_;
/ohos5.0/foundation/communication/ipc/ipc/native/test/fuzztest/core/ipcprocessskeleton_fuzzer/
H A Dipcprocessskeleton_fuzzer.cpp372 std::shared_ptr<DBinderSessionObject> object = std::make_shared<DBinderSessionObject>( in ProxyAttachToDetachDBinderSessionTest()
411 std::shared_ptr<DBinderSessionObject> object = std::make_shared<DBinderSessionObject>( in ProxyMoveDBinderSessionTest()
437 std::shared_ptr<DBinderSessionObject> object = std::make_shared<DBinderSessionObject>( in QueryProxyBySocketIdTest001()
759 std::shared_ptr<DBinderSessionObject> object = std::make_shared<DBinderSessionObject>( in QueryHandleByDatabusSessionTest()
785 std::shared_ptr<DBinderSessionObject> object = std::make_shared<DBinderSessionObject>( in StubAttachToDetachDBinderSessionTest()
949 std::shared_ptr<DBinderSessionObject> session = nullptr; in GetDBinderIdleHandleTest()
/ohos5.0/foundation/communication/ipc/ipc/native/test/fuzztest/mock/dbinderdatabusinvoker_fuzzer/
H A Ddbinderdatabusinvoker_fuzzer.cpp67 std::shared_ptr<DBinderSessionObject> testPeer = nullptr; in QueryClientSessionObjectTest()
83 std::shared_ptr<DBinderSessionObject> testPeer = nullptr; in QueryServerSessionObjectTest()
/ohos5.0/foundation/communication/ipc/interfaces/innerkits/ipc_core/
H A Dlibipc_core_map55 OHOS::DBinderSessionObject*;