Lines Matching refs:holder
77 std::shared_ptr<CasPlugin> holder(plugin); in init() local
78 std::atomic_store(&mPluginHolder, holder); in init()
125 std::shared_ptr<CasPlugin> holder = std::atomic_load(&mPluginHolder); in setPluginStatusUpdateCallback() local
126 if (holder.get() == nullptr) { in setPluginStatusUpdateCallback()
129 return toStatus(holder->setStatusCallback(&CasImpl::StatusUpdate)); in setPluginStatusUpdateCallback()
134 std::shared_ptr<CasPlugin> holder = std::atomic_load(&mPluginHolder); in setPrivateData() local
135 if (holder.get() == nullptr) { in setPrivateData()
138 return toStatus(holder->setPrivateData(pvtData)); in setPrivateData()
145 std::shared_ptr<CasPlugin> holder = std::atomic_load(&mPluginHolder); in openSession() local
147 if (holder.get() != nullptr) { in openSession()
148 err = holder->openSession(&sessionId); in openSession()
149 holder.reset(); in openSession()
162 std::shared_ptr<CasPlugin> holder = std::atomic_load(&mPluginHolder); in openSession_1_2() local
164 if (holder.get() != nullptr) { in openSession_1_2()
165 err = holder->openSession(static_cast<uint32_t>(intent), static_cast<uint32_t>(mode), in openSession_1_2()
167 holder.reset(); in openSession_1_2()
178 std::shared_ptr<CasPlugin> holder = std::atomic_load(&mPluginHolder); in setSessionPrivateData() local
179 if (holder.get() == nullptr) { in setSessionPrivateData()
182 return toStatus(holder->setSessionPrivateData(sessionId, pvtData)); in setSessionPrivateData()
187 std::shared_ptr<CasPlugin> holder = std::atomic_load(&mPluginHolder); in closeSession() local
188 if (holder.get() == nullptr) { in closeSession()
191 return toStatus(holder->closeSession(sessionId)); in closeSession()
196 std::shared_ptr<CasPlugin> holder = std::atomic_load(&mPluginHolder); in processEcm() local
197 if (holder.get() == nullptr) { in processEcm()
201 return toStatus(holder->processEcm(sessionId, ecm)); in processEcm()
206 std::shared_ptr<CasPlugin> holder = std::atomic_load(&mPluginHolder); in processEmm() local
207 if (holder.get() == nullptr) { in processEmm()
211 return toStatus(holder->processEmm(emm)); in processEmm()
216 std::shared_ptr<CasPlugin> holder = std::atomic_load(&mPluginHolder); in sendEvent() local
217 if (holder.get() == nullptr) { in sendEvent()
221 status_t err = holder->sendEvent(event, arg, eventData); in sendEvent()
228 std::shared_ptr<CasPlugin> holder = std::atomic_load(&mPluginHolder); in sendSessionEvent() local
229 if (holder.get() == nullptr) { in sendSessionEvent()
233 status_t err = holder->sendSessionEvent(sessionId, event, arg, eventData); in sendSessionEvent()
239 std::shared_ptr<CasPlugin> holder = std::atomic_load(&mPluginHolder); in provision() local
240 if (holder.get() == nullptr) { in provision()
244 return toStatus(holder->provision(String8(provisionString.c_str()))); in provision()
249 std::shared_ptr<CasPlugin> holder = std::atomic_load(&mPluginHolder); in refreshEntitlements() local
250 if (holder.get() == nullptr) { in refreshEntitlements()
254 status_t err = holder->refreshEntitlements(refreshType, refreshData); in refreshEntitlements()
261 std::shared_ptr<CasPlugin> holder(nullptr); in release() local
262 std::atomic_store(&mPluginHolder, holder); in release()