Home
last modified time | relevance | path

Searched refs:holder (Results 1 – 7 of 7) sorted by relevance

/hardware/interfaces/cas/1.0/default/
DCasImpl.cpp61 std::shared_ptr<CasPlugin> holder(plugin); in init() local
62 std::atomic_store(&mPluginHolder, holder); in init()
81 std::shared_ptr<CasPlugin> holder = std::atomic_load(&mPluginHolder); in setPrivateData() local
82 if (holder.get() == nullptr) { in setPrivateData()
85 return toStatus(holder->setPrivateData(pvtData)); in setPrivateData()
92 std::shared_ptr<CasPlugin> holder = std::atomic_load(&mPluginHolder); in openSession() local
94 if (holder.get() != nullptr) { in openSession()
95 err = holder->openSession(&sessionId); in openSession()
96 holder.reset(); in openSession()
108 std::shared_ptr<CasPlugin> holder = std::atomic_load(&mPluginHolder); in setSessionPrivateData() local
[all …]
DDescramblerImpl.cpp68 std::shared_ptr<DescramblerPlugin> holder = std::atomic_load(&mPluginHolder); in setMediaCasSession() local
69 if (holder.get() == nullptr) { in setMediaCasSession()
73 return toStatus(holder->setMediaCasSession(sessionId)); in setMediaCasSession()
78 std::shared_ptr<DescramblerPlugin> holder = std::atomic_load(&mPluginHolder); in requiresSecureDecoderComponent() local
79 if (holder.get() == nullptr) { in requiresSecureDecoderComponent()
83 return holder->requiresSecureDecoderComponent(String8(mime.c_str())); in requiresSecureDecoderComponent()
173 std::shared_ptr<DescramblerPlugin> holder = std::atomic_load(&mPluginHolder); in descramble() local
174 if (holder.get() == nullptr) { in descramble()
183 int32_t result = holder->descramble( in descramble()
194 holder.reset(); in descramble()
[all …]
/hardware/interfaces/cas/1.2/default/
DCasImpl.cpp77 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()
[all …]
DDescramblerImpl.cpp64 std::shared_ptr<DescramblerPlugin> holder = std::atomic_load(&mPluginHolder); in setMediaCasSession() local
65 if (holder.get() == nullptr) { in setMediaCasSession()
69 return toStatus(holder->setMediaCasSession(sessionId)); in setMediaCasSession()
73 std::shared_ptr<DescramblerPlugin> holder = std::atomic_load(&mPluginHolder); in requiresSecureDecoderComponent() local
74 if (holder.get() == nullptr) { in requiresSecureDecoderComponent()
78 return holder->requiresSecureDecoderComponent(String8(mime.c_str())); in requiresSecureDecoderComponent()
163 std::shared_ptr<DescramblerPlugin> holder = std::atomic_load(&mPluginHolder); in descramble() local
164 if (holder.get() == nullptr) { in descramble()
173 holder->descramble(dstBuffer.type != BufferType::SHARED_MEMORY, in descramble()
178 holder.reset(); in descramble()
[all …]
/hardware/interfaces/cas/1.1/default/
DCasImpl.cpp66 std::shared_ptr<CasPlugin> holder(plugin); in init() local
67 std::atomic_store(&mPluginHolder, holder); in init()
103 std::shared_ptr<CasPlugin> holder = std::atomic_load(&mPluginHolder); in setPrivateData() local
104 if (holder.get() == nullptr) { in setPrivateData()
107 return toStatus(holder->setPrivateData(pvtData)); in setPrivateData()
114 std::shared_ptr<CasPlugin> holder = std::atomic_load(&mPluginHolder); in openSession() local
116 if (holder.get() != nullptr) { in openSession()
117 err = holder->openSession(&sessionId); in openSession()
118 holder.reset(); in openSession()
129 std::shared_ptr<CasPlugin> holder = std::atomic_load(&mPluginHolder); in setSessionPrivateData() local
[all …]
DDescramblerImpl.cpp64 std::shared_ptr<DescramblerPlugin> holder = std::atomic_load(&mPluginHolder); in setMediaCasSession() local
65 if (holder.get() == nullptr) { in setMediaCasSession()
69 return toStatus(holder->setMediaCasSession(sessionId)); in setMediaCasSession()
73 std::shared_ptr<DescramblerPlugin> holder = std::atomic_load(&mPluginHolder); in requiresSecureDecoderComponent() local
74 if (holder.get() == nullptr) { in requiresSecureDecoderComponent()
78 return holder->requiresSecureDecoderComponent(String8(mime.c_str())); in requiresSecureDecoderComponent()
163 std::shared_ptr<DescramblerPlugin> holder = std::atomic_load(&mPluginHolder); in descramble() local
164 if (holder.get() == nullptr) { in descramble()
173 holder->descramble(dstBuffer.type != BufferType::SHARED_MEMORY, in descramble()
178 holder.reset(); in descramble()
[all …]
/hardware/google/av/media/sfplugin/
DCodec2Buffer.cpp620 std::unique_ptr<const C2GraphicView> holder; in Allocate() local
641 holder = std::move(view); in Allocate()