Lines Matching refs:connect
79 void CallContainer::AddCallRecord(const sptr<IAbilityConnection> & connect, in AddCallRecord() argument
83 CHECK_POINTER(connect); in AddCallRecord()
84 CHECK_POINTER(connect->AsObject()); in AddCallRecord()
86 auto record = RemoveCallRecordMap(connect->AsObject()); in AddCallRecord()
88 RemoveConnectDeathRecipient(connect); in AddCallRecord()
91 AddConnectDeathRecipient(connect); in AddCallRecord()
92 callRecord->SetConCallBack(connect); in AddCallRecord()
93 InsertCallRecordMap(connect->AsObject(), callRecord); in AddCallRecord()
99 std::shared_ptr<CallRecord> CallContainer::GetCallRecord(const sptr<IAbilityConnection> & connect) … in GetCallRecord()
101 CHECK_POINTER_AND_RETURN(connect, nullptr); in GetCallRecord()
102 CHECK_POINTER_AND_RETURN(connect->AsObject(), nullptr); in GetCallRecord()
104 auto record = FindCallRecordMap(connect->AsObject()); in GetCallRecord()
108 bool CallContainer::RemoveCallRecord(const sptr<IAbilityConnection> & connect) in RemoveCallRecord() argument
111 CHECK_POINTER_AND_RETURN(connect, false); in RemoveCallRecord()
112 CHECK_POINTER_AND_RETURN(connect->AsObject(), false); in RemoveCallRecord()
114 auto record = RemoveCallRecordMap(connect->AsObject()); in RemoveCallRecord()
117 RemoveConnectDeathRecipient(connect); in RemoveCallRecord()
188 void CallContainer::AddConnectDeathRecipient(const sptr<IAbilityConnection> &connect) in AddConnectDeathRecipient() argument
190 CHECK_POINTER(connect); in AddConnectDeathRecipient()
191 CHECK_POINTER(connect->AsObject()); in AddConnectDeathRecipient()
192 auto it = deathRecipientMap_.find(connect->AsObject()); in AddConnectDeathRecipient()
205 if (!connect->AsObject()->AddDeathRecipient(deathRecipient)) { in AddConnectDeathRecipient()
208 deathRecipientMap_.emplace(connect->AsObject(), deathRecipient); in AddConnectDeathRecipient()
212 void CallContainer::RemoveConnectDeathRecipient(const sptr<IAbilityConnection> &connect) in RemoveConnectDeathRecipient() argument
214 CHECK_POINTER(connect); in RemoveConnectDeathRecipient()
215 CHECK_POINTER(connect->AsObject()); in RemoveConnectDeathRecipient()
216 auto it = deathRecipientMap_.find(connect->AsObject()); in RemoveConnectDeathRecipient()
224 bool CallContainer::IsExistConnection(const sptr<IAbilityConnection> &connect) in IsExistConnection() argument
226 return FindCallRecordMap(connect->AsObject()) != nullptr; in IsExistConnection()