Home
last modified time | relevance | path

Searched refs:C2_OK (Results 1 – 25 of 92) sorted by relevance

1234

/frameworks/av/media/codec2/hidl/1.0/vts/functional/component/
DVtsHalMediaC2V1_0TargetComponentTest.cpp144 ASSERT_EQ(err, C2_OK); in TEST_P()
148 ASSERT_EQ(err, C2_OK); in TEST_P()
151 ASSERT_EQ(err, C2_OK); in TEST_P()
160 ASSERT_EQ(err, C2_OK); in TEST_P()
167 ASSERT_EQ(err, C2_OK); in TEST_P()
177 c2_status_t err = C2_OK; in TEST_P()
184 ASSERT_EQ(err, C2_OK); in TEST_P()
192 EXPECT_EQ(err, C2_OK); in TEST_P()
194 ASSERT_EQ(err, C2_OK); in TEST_P()
208 ASSERT_EQ(mComponent->start(), C2_OK); in TEST_P()
[all …]
/frameworks/av/media/codec2/hidl/plugin/
DFilterWrapper.cpp68 if (err != C2_OK) { in takeFilters()
151 c2_status_t result = C2_OK; in query_vb()
182 if (err != C2_OK && err != C2_BAD_INDEX) { in query_vb()
219 if (err != C2_OK) { in query_vb()
240 c2_status_t result = C2_OK; in config_vb()
250 if (err != C2_OK) { in config_vb()
276 if (err != C2_OK) { in config_vb()
301 if (result != C2_OK) { in querySupportedParams_nb()
310 if (err != C2_OK) { in querySupportedParams_nb()
334 if (result != C2_OK && result != C2_BAD_INDEX) { in querySupportedValues_vb()
[all …]
/frameworks/av/media/codec2/hidl/1.0/vts/functional/audio/
DVtsHalMediaC2V1_0TargetAudioEncTest.cpp71 CHECK_EQ(store->fetchAllocator(C2AllocatorStore::DEFAULT_LINEAR, &mLinearAllocator), C2_OK); in SetUp()
78 ASSERT_EQ(c2err, C2_OK) << "Query media type failed"; in SetUp()
86 mWorkResult = C2_OK; in SetUp()
176 ASSERT_EQ(status, C2_OK) << "Query max buffer size info failed"; in getInputMaxBufSize()
209 if (c2err != C2_OK && queried.size() == 0) { in validateComponent()
231 if (status == C2_OK && failures.size() == 0u) return true; in setupConfigParam()
242 ASSERT_EQ(c2err, C2_OK) << "Query channel count info failed"; in getChannelCount()
280 ASSERT_EQ(c2err, C2_OK) << "Query sample rate info failed"; in getSampleRate()
292 if (c2err == C2_OK && queried.size() == 1) { in getSamplesPerFrame()
302 ASSERT_EQ(c2err, C2_OK) << "Query max buffer size info failed"; in getSamplesPerFrame()
[all …]
DVtsHalMediaC2V1_0TargetAudioDecTest.cpp98 CHECK_EQ(store->fetchAllocator(C2AllocatorStore::DEFAULT_LINEAR, &mLinearAllocator), C2_OK); in SetUp()
105 ASSERT_EQ(c2err, C2_OK) << "Query media type failed"; in SetUp()
113 mWorkResult = C2_OK; in SetUp()
244 if (c2err != C2_OK && queried.size() == 0) { in validateComponent()
266 if (status == C2_OK && failures.size() == 0u) return true; in setupConfigParam()
282 ASSERT_EQ(status, C2_OK) << "Query sample rate and channel count info failed"; in getInputChannelInfo()
365 ASSERT_EQ(C2_OK, in decodeNFrames()
372 if (view.error() != C2_OK) { in decodeNFrames()
392 ASSERT_EQ(component->queue(&items), C2_OK); in decodeNFrames()
434 ASSERT_EQ(mComponent->start(), C2_OK); in TEST_P()
[all …]
/frameworks/av/media/codec2/hidl/1.0/vts/functional/video/
DVtsHalMediaC2V1_0TargetVideoEncTest.cpp72 C2_OK); in SetUp()
79 ASSERT_EQ(c2err, C2_OK) << "Query media type failed"; in SetUp()
99 ASSERT_EQ(getMaxMinResolutionSupported(), C2_OK); in SetUp()
169 if (work->result != C2_OK) mFailedWorkReceived++; in handleWorkDone()
254 if (c2err != C2_OK && queried.size() == 0) { in validateComponent()
270 c2_status_t status = C2_OK; in setupConfigParam()
286 if (status != C2_OK || failures.size() != 0u) return false; in setupConfigParam()
337 c2_status_t err = C2_OK; in encodeNFrames()
397 if (err != C2_OK) { in encodeNFrames()
406 if (view.error() != C2_OK) { in encodeNFrames()
[all …]
DVtsHalMediaC2V1_0TargetVideoDecTest.cpp121 CHECK_EQ(store->fetchAllocator(C2AllocatorStore::DEFAULT_LINEAR, &mLinearAllocator), C2_OK); in SetUp()
128 ASSERT_EQ(c2err, C2_OK) << "Query media type failed"; in SetUp()
135 mWorkResult = C2_OK; in SetUp()
371 if (c2err != C2_OK && queried.size() == 0) { in validateComponent()
433 ASSERT_EQ(err, C2_OK) << "setOutputSurface failed"; in setOutputSurface()
487 ASSERT_EQ(C2_OK, linearPool->fetchLinearBlock( in decodeNFrames()
494 if (view.error() != C2_OK) { in decodeNFrames()
513 ASSERT_EQ(component->queue(&items), C2_OK); in decodeNFrames()
573 if (status == C2_OK && failures.size() == 0u) { in configPixelFormat()
614 ASSERT_EQ(mComponent->start(), C2_OK); in TEST_P()
[all …]
/frameworks/av/media/codec2/vndk/
DC2AllocatorBlob.cpp47 return C2_OK; in GetCapacityFromHandle()
107 return C2_OK; in map()
112 if (err != C2_OK) { in map()
122 return C2_OK; in map()
143 return C2_OK; in unmap()
186 if (status != C2_OK) { in newLinearAllocation()
193 return C2_OK; in newLinearAllocation()
210 if (status != C2_OK) { in priorLinearAllocation()
218 if (status != C2_OK) { in priorLinearAllocation()
224 return C2_OK; in priorLinearAllocation()
[all …]
DC2Store.cpp164 if (res != C2_OK) { in fetchAllocator()
172 return C2_OK; in fetchAllocator()
197 if (res == C2_OK) { in UseComponentStoreForIonAllocator()
198 if (query[0].status == C2_OK) { in UseComponentStoreForIonAllocator()
208 if (query[1].status == C2_OK) { in UseComponentStoreForIonAllocator()
223 if (res == C2_OK) { in UseComponentStoreForIonAllocator()
253 if (res == C2_OK) { in UseComponentStoreForDmaBufAllocator()
254 if (query[0].status == C2_OK) { in UseComponentStoreForDmaBufAllocator()
264 if (query[1].status == C2_OK) { in UseComponentStoreForDmaBufAllocator()
282 if (res == C2_OK) { in UseComponentStoreForDmaBufAllocator()
[all …]
DC2AllocatorIon.cpp143 if (mInit != C2_OK) { in Impl()
238 return C2_OK; in unmap()
256 if (mInit == C2_OK) { in ~Impl()
286 c2_status_t err = C2_OK; in mapInternal()
356 c2_status_t err = C2_OK; in mapInternal()
482 : mInit(C2_OK), in C2AllocatorIon()
499 if (mInit == C2_OK) { in ~C2AllocatorIon()
540 c2_status_t res = C2_OK; in mapUsage()
584 if (mInit != C2_OK) { in newLinearAllocation()
599 if (ret == C2_OK) { in newLinearAllocation()
[all …]
DC2PlatformStorePluginLoader.cpp72 return C2_OK; in createBlockPool()
89 if (res != C2_OK) { in createAllocator()
94 return C2_OK; in createAllocator()
/frameworks/av/media/codec2/components/raw/
DC2SoftRawDec.cpp121 return C2_OK; in onInit()
126 return C2_OK; in onStop()
144 work->result = C2_OK; in process()
173 return C2_OK; in drain()
180 return C2_OK; in drain()
198 return C2_OK; in createComponent()
209 return C2_OK; in createInterface()
/frameworks/av/media/codec2/components/g711/
DC2SoftG711Dec.cpp115 return C2_OK; in onInit()
120 return C2_OK; in onStop()
138 work->result = C2_OK; in process()
181 if (err != C2_OK) { in process()
217 return C2_OK; in drain()
224 return C2_OK; in drain()
241 return C2_OK; in createComponent()
251 return C2_OK; in createInterface()
/frameworks/av/media/codec2/fuzzer/
DC2Fuzzer.cpp166 if (status != C2_OK) { in initDecoder()
180 if (status != C2_OK) { in initDecoder()
185 if (status != C2_OK) { in initDecoder()
192 if (status != C2_OK) { in initDecoder()
216 if (status != C2_OK) { in initDecoder()
227 if (status != C2_OK) { in initDecoder()
247 c2_status_t status = C2_OK; in decodeFrames()
277 if (status != C2_OK || block == nullptr) { in decodeFrames()
282 if (view.error() != C2_OK) { in decodeFrames()
293 if (status != C2_OK) { in decodeFrames()
/frameworks/av/media/tests/benchmark/src/native/encoder/
DC2Encoder.cpp72 C2_OK) { in createCodec2Component()
96 if (status != C2_OK && inParams.size() == 0) { in getInputMaxBufSize()
137 c2_status_t status = C2_OK; in encodeFrames()
184 if (status != C2_OK || !block) { in encodeFrames()
189 if (view.error() != C2_OK) { in encodeFrames()
201 if (status != C2_OK || !block) { in encodeFrames()
206 if (view.error() != C2_OK) { in encodeFrames()
229 if (status != C2_OK) { in encodeFrames()
/frameworks/av/media/codec2/hidl/client/
Dclient.cpp308 if (status != C2_OK && status != C2_BAD_INDEX) { in query()
392 if (status != C2_OK && status != C2_BAD_INDEX) { in config()
429 if (status != C2_OK) { in querySupportedParams()
470 if (status != C2_OK) { in querySupportedValues()
673 if (status != C2_OK) { in createComponent()
689 if (status != C2_OK) { in createComponent()
704 if (status != C2_OK) { in createComponent()
717 } else if (status != C2_OK) { in createComponent()
733 if (status != C2_OK) { in createComponent()
753 if (status != C2_OK) { in createInterface()
[all …]
/frameworks/av/media/codec2/components/opus/
DC2SoftOpusEnc.cpp158 int err = C2_OK; in configureEncoder()
238 return C2_OK; in configureEncoder()
283 return C2_OK; in onStop()
328 work->result = C2_OK; in process()
341 c2_status_t err = C2_OK; in process()
358 if (initEncoder() != C2_OK) { in process()
372 if (err != C2_OK) { in process()
407 work->result = C2_OK; in process()
568 if (err != C2_OK) { in drainInternal()
596 work->result = C2_OK; in drainInternal()
[all …]
DC2SoftOpusDec.cpp110 return err == OK ? C2_OK : C2_NO_MEMORY; in onInit()
126 return C2_OK; in onStop()
158 return C2_OK; in onFlush_sm()
167 return C2_OK; in drain()
174 return C2_OK; in drain()
212 work->result = C2_OK; in process()
382 if (err != C2_OK) { in process()
454 return C2_OK; in createComponent()
465 return C2_OK; in createInterface()
/frameworks/av/media/codec2/components/gsm/
DC2SoftGsmDec.cpp111 return C2_OK; in onInit()
125 return C2_OK; in onStop()
172 work->result = C2_OK; in process()
212 if (err != C2_OK) { in process()
250 return C2_OK; in drain()
257 return C2_OK; in drain()
275 return C2_OK; in createComponent()
286 return C2_OK; in createInterface()
/frameworks/av/media/codec2/components/mpeg4_h263/
DC2SoftMpeg4Enc.cpp261 return C2_OK; in onStop()
269 return C2_OK; in onStop()
290 return C2_OK; in onFlush_sm()
358 return C2_OK; in initEncParams()
363 return C2_OK; in initEncoder()
372 if (C2_OK != err) { in initEncoder()
386 return C2_OK; in initEncoder()
393 work->result = C2_OK; in process()
402 if (!mStarted && C2_OK != initEncoder()) { in process()
412 if (err != C2_OK) { in process()
[all …]
/frameworks/av/media/codec2/tests/vndk/
DC2BufferTest.cpp250 if (err != C2_OK) { in allocateLinear()
265 if (err != C2_OK) { in mapLinear()
280 ASSERT_EQ(C2_OK, mLinearAllocation->unmap(mAddr, mSize, nullptr)); in unmapLinear()
296 if (err != C2_OK) { in allocateGraphic()
311 if (err != C2_OK) { in mapGraphic()
325 ASSERT_EQ(C2_OK, mGraphicAllocation->unmap(mAddrGraphic, mMappedRect, nullptr)); in unmapGraphic()
335 ASSERT_EQ(store->fetchAllocator(C2AllocatorStore::DEFAULT_LINEAR, mLinearAllocator), C2_OK); in getLinearAllocator()
379 ASSERT_EQ(C2_OK, blockPool->fetchLinearBlock( in TEST_F()
387 ASSERT_EQ(C2_OK, writeView.error()); in TEST_F()
412 ASSERT_EQ(C2_OK, readView.error()); in TEST_F()
[all …]
/frameworks/av/media/codec2/components/amr_nb_wb/
DC2SoftAmrNbEnc.cpp143 return C2_OK; in onInit()
163 return C2_OK; in onStop()
185 work->result = C2_OK; in process()
217 if (err != C2_OK) { in process()
291 return C2_OK; in drain()
299 return C2_OK; in drain()
317 return C2_OK; in createComponent()
329 return C2_OK; in createInterface()
DC2SoftAmrDec.cpp139 return err == OK ? C2_OK : C2_NO_MEMORY; in onInit()
151 return C2_OK; in onStop()
243 work->result = C2_OK; in process()
299 if (err != C2_OK) { in process()
384 return C2_OK; in drain()
390 return C2_OK; in drain()
407 return C2_OK; in createComponent()
418 return C2_OK; in createInterface()
/frameworks/av/media/codec2/components/avc/
DC2SoftAvcEnc.cpp608 return C2_OK; in onInit()
612 return C2_OK; in onStop()
633 return C2_OK; in onFlush_sm()
684 return C2_OK; in setDimensions()
707 return C2_OK; in setNumCores()
733 return C2_OK; in setFrameRate()
760 return C2_OK; in setIpeParams()
784 return C2_OK; in setBitRate()
808 return C2_OK; in setFrameType()
874 return C2_OK; in setQp()
[all …]
/frameworks/av/media/codec2/components/flac/
DC2SoftFlacEnc.cpp149 return err == OK ? C2_OK : C2_CORRUPTED; in onInit()
180 if (C2_OK != status) return status; in onStop()
184 return C2_OK; in onStop()
201 work->result = C2_OK; in process()
260 if (err != C2_OK) { in process()
304 if (eos && (C2_OK != drain(DRAIN_COMPONENT_WITH_EOS, pool))) { in process()
426 return C2_OK; in drain()
443 return C2_OK; in drain()
461 return C2_OK; in createComponent()
472 return C2_OK; in createInterface()
/frameworks/av/media/tests/benchmark/src/native/decoder/
DC2Decoder.cpp57 C2_OK) { in createCodec2Component()
78 c2_status_t status = C2_OK; in decodeFrames()
114 if (status != C2_OK || block == nullptr) { in decodeFrames()
120 if (view.error() != C2_OK) { in decodeFrames()
135 if (status != C2_OK) { in decodeFrames()

1234