Home
last modified time | relevance | path

Searched refs:holder (Results 1 – 9 of 9) 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()
107 std::shared_ptr<CasPlugin> holder = std::atomic_load(&mPluginHolder); in setSessionPrivateData() local
[all …]
DDescramblerImpl.cpp67 std::shared_ptr<DescramblerPlugin> holder = std::atomic_load(&mPluginHolder); in setMediaCasSession() local
68 if (holder.get() == nullptr) { in setMediaCasSession()
72 return toStatus(holder->setMediaCasSession(sessionId)); in setMediaCasSession()
77 std::shared_ptr<DescramblerPlugin> holder = std::atomic_load(&mPluginHolder); in requiresSecureDecoderComponent() local
78 if (holder.get() == nullptr) { in requiresSecureDecoderComponent()
82 return holder->requiresSecureDecoderComponent(mime.c_str()); in requiresSecureDecoderComponent()
172 std::shared_ptr<DescramblerPlugin> holder = std::atomic_load(&mPluginHolder); in descramble() local
173 if (holder.get() == nullptr) { in descramble()
182 int32_t result = holder->descramble( in descramble()
193 holder.reset(); in descramble()
[all …]
/hardware/interfaces/cas/aidl/default/
DCasImpl.cpp71 shared_ptr<CasPlugin> holder(plugin); in init() local
72 atomic_store(&mPluginHolder, holder); in init()
115 shared_ptr<CasPlugin> holder = atomic_load(&mPluginHolder); in setPluginStatusUpdateCallback() local
116 if (holder.get() == nullptr) { in setPluginStatusUpdateCallback()
119 return toStatus(holder->setStatusCallback(&CasImpl::StatusUpdate)); in setPluginStatusUpdateCallback()
124 shared_ptr<CasPlugin> holder = atomic_load(&mPluginHolder); in setPrivateData() local
125 if (holder.get() == nullptr) { in setPrivateData()
128 return toStatus(holder->setPrivateData(pvtData)); in setPrivateData()
134 shared_ptr<CasPlugin> holder = atomic_load(&mPluginHolder); in openSessionDefault() local
136 if (holder.get() != nullptr) { in openSessionDefault()
[all …]
DDescramblerImpl.cpp59 shared_ptr<DescramblerPlugin> holder = atomic_load(&mPluginHolder); in setMediaCasSession() local
60 if (holder.get() == nullptr) { in setMediaCasSession()
64 return toStatus(holder->setMediaCasSession(in_sessionId)); in setMediaCasSession()
69 shared_ptr<DescramblerPlugin> holder = atomic_load(&mPluginHolder); in requiresSecureDecoderComponent() local
70 if (holder.get() == nullptr) { in requiresSecureDecoderComponent()
74 *_aidl_return = holder->requiresSecureDecoderComponent(in_mime.c_str()); in requiresSecureDecoderComponent()
162 shared_ptr<DescramblerPlugin> holder = atomic_load(&mPluginHolder); in descramble() local
163 if (holder.get() == nullptr) { in descramble()
171 holder->descramble(dstBuffer.getTag() != DestinationBuffer::Tag::nonsecureMemory, in descramble()
176 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(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(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/gfxstream/
DLICENSE823 3. Neither the name of the copyright holder nor the names of its contributors may be used to endors…