/frameworks/av/media/codec2/tests/aidl/ |
D | GraphicsTracker_test.cpp | 242 if (res != C2_OK) { in queueBuffer() 325 ASSERT_EQ(C2_OK, ret); in TEST_F() 336 ASSERT_EQ(C2_OK, ret); in TEST_F() 365 ASSERT_EQ(C2_OK, ret); in TEST_F() 377 ASSERT_EQ(C2_OK, ret); in TEST_F() 392 ASSERT_EQ(C2_OK, ret); in TEST_F() 408 ASSERT_EQ(C2_OK, ret); in TEST_F() 418 ASSERT_EQ(C2_OK, ret); in TEST_F() 423 ASSERT_EQ(C2_OK, ret); in TEST_F() 462 ASSERT_EQ(C2_OK, mTracker->configureGraphics(mProducer, generation)); in TEST_F() [all …]
|
/frameworks/av/media/codec2/hal/hidl/1.0/vts/functional/component/ |
D | VtsHalMediaC2V1_0TargetComponentTest.cpp | 145 ASSERT_EQ(err, C2_OK); in TEST_P() 149 ASSERT_EQ(err, C2_OK); in TEST_P() 152 ASSERT_EQ(err, C2_OK); in TEST_P() 161 ASSERT_EQ(err, C2_OK); in TEST_P() 168 ASSERT_EQ(err, C2_OK); in TEST_P() 178 c2_status_t err = C2_OK; in TEST_P() 185 ASSERT_EQ(err, C2_OK); in TEST_P() 193 EXPECT_EQ(err, C2_OK); in TEST_P() 195 ASSERT_EQ(err, C2_OK); in TEST_P() 209 ASSERT_EQ(mComponent->start(), C2_OK); in TEST_P() [all …]
|
/frameworks/av/media/codec2/hal/aidl/ |
D | ComponentInterface.cpp | 61 c2_status_t err = C2_OK; in config() 73 c2_status_t err1 = C2_OK; in config() 77 if (err1 != C2_OK) { in config() 80 c2_status_t err2 = C2_OK; in config() 86 if ((err == C2_OK) && (kind.value == C2Component::KIND_ENCODER)) { in config() 106 return err1 != C2_OK ? err1 : err2; in config() 114 c2_status_t err = C2_OK; in query() 128 c2_status_t err1 = C2_OK; in query() 132 c2_status_t err2 = C2_OK; in query() 138 return err1 != C2_OK ? err1 : err2; in query() [all …]
|
D | Component.cpp | 233 c2_status_t err = C2_OK; in queue() 239 if (err != C2_OK) { in queue() 248 if (err == C2_OK) { in queue() 275 if (c2res == C2_OK) { in flush() 284 if (c2res == C2_OK) { in flush() 294 if (res == C2_OK) { in drain() 319 return C2_OK; in config() 330 return C2_OK; in query() 337 return C2_OK; in querySupportedParams() 345 return C2_OK; in querySupportedValues() [all …]
|
/frameworks/av/media/codec2/hal/hidl/1.0/utils/ |
D | ComponentInterface.cpp | 60 c2_status_t err = C2_OK; in config() 72 c2_status_t err1 = C2_OK; in config() 76 if (err1 != C2_OK) { in config() 79 c2_status_t err2 = C2_OK; in config() 85 if ((err == C2_OK) && (kind.value == C2Component::KIND_ENCODER)) { in config() 105 return err1 != C2_OK ? err1 : err2; in config() 113 c2_status_t err = C2_OK; in query() 127 c2_status_t err1 = C2_OK; in query() 131 c2_status_t err2 = C2_OK; in query() 137 return err1 != C2_OK ? err1 : err2; in query() [all …]
|
/frameworks/av/media/codec2/hal/hidl/1.0/vts/functional/audio/ |
D | VtsHalMediaC2V1_0TargetAudioEncTest.cpp | 72 CHECK_EQ(store->fetchAllocator(C2AllocatorStore::DEFAULT_LINEAR, &mLinearAllocator), C2_OK); in SetUp() 80 ASSERT_EQ(c2err, C2_OK) << "Query media type failed"; in SetUp() 88 mWorkResult = C2_OK; in SetUp() 178 ASSERT_EQ(status, C2_OK) << "Query max buffer size info failed"; in getInputMaxBufSize() 211 if (c2err != C2_OK && queried.size() == 0) { in validateComponent() 233 if (status == C2_OK && failures.size() == 0u) return true; in setupConfigParam() 244 ASSERT_EQ(c2err, C2_OK) << "Query channel count info failed"; in getChannelCount() 282 ASSERT_EQ(c2err, C2_OK) << "Query sample rate info failed"; in getSampleRate() 294 if (c2err == C2_OK && queried.size() == 1) { in getSamplesPerFrame() 304 ASSERT_EQ(c2err, C2_OK) << "Query max buffer size info failed"; in getSamplesPerFrame() [all …]
|
D | VtsHalMediaC2V1_0TargetAudioDecTest.cpp | 97 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() 263 if (c2err != C2_OK && queried.size() == 0) { in validateComponent() 286 if (c2err != C2_OK || validValueInfos.size() != 2) { in isLargeAudioFrameSupported() 341 return C2_OK; in configureLargeFrameParams() 344 if (c2_err != C2_OK) { in configureLargeFrameParams() 348 if (c2_err != C2_OK) { in configureLargeFrameParams() 359 if (status != C2_OK || failures.size() != 0u) { in configureLargeFrameParams() 375 if (status == C2_OK && failures.size() == 0u) return true; in setupConfigParam() [all …]
|
/frameworks/av/media/codec2/hal/hidl/1.0/vts/functional/video/ |
D | VtsHalMediaC2V1_0TargetVideoEncTest.cpp | 74 C2_OK); in SetUp() 83 ASSERT_EQ(c2err, C2_OK) << "Query media type failed"; in SetUp() 103 ASSERT_EQ(getMaxMinResolutionSupported(), C2_OK); in SetUp() 173 if (work->result != C2_OK) mFailedWorkReceived++; in handleWorkDone() 258 if (c2err != C2_OK && queried.size() == 0) { in validateComponent() 274 c2_status_t status = C2_OK; in setupConfigParam() 290 if (status != C2_OK || failures.size() != 0u) return false; in setupConfigParam() 341 c2_status_t err = C2_OK; in encodeNFrames() 401 if (err != C2_OK) { in encodeNFrames() 410 if (view.error() != C2_OK) { in encodeNFrames() [all …]
|
D | VtsHalMediaC2V1_0TargetVideoDecTest.cpp | 123 CHECK_EQ(store->fetchAllocator(C2AllocatorStore::DEFAULT_LINEAR, &mLinearAllocator), C2_OK); in SetUp() 131 ASSERT_EQ(c2err, C2_OK) << "Query media type failed"; in SetUp() 138 mWorkResult = C2_OK; in SetUp() 372 if (c2err != C2_OK && queried.size() == 0) { in validateComponent() 426 ASSERT_EQ(poolRet, C2_OK) << "setOutputSurface failed"; in setOutputSurface() 449 ASSERT_EQ(err, C2_OK) << "setOutputSurface failed, surfMode: " << surfStr; in setOutputSurface() 507 ASSERT_EQ(C2_OK, linearPool->fetchLinearBlock( in decodeNFrames() 514 if (view.error() != C2_OK) { in decodeNFrames() 533 ASSERT_EQ(component->queue(&items), C2_OK); in decodeNFrames() 593 if (status == C2_OK && failures.size() == 0u) { in configPixelFormat() [all …]
|
/frameworks/av/media/codec2/vndk/ |
D | C2AllocatorBlob.cpp | 47 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 …]
|
D | C2Store.cpp | 175 if (res != C2_OK) { in fetchAllocator() 183 return C2_OK; in fetchAllocator() 208 if (res == C2_OK) { in UseComponentStoreForIonAllocator() 209 if (query[0].status == C2_OK) { in UseComponentStoreForIonAllocator() 219 if (query[1].status == C2_OK) { in UseComponentStoreForIonAllocator() 234 if (res == C2_OK) { in UseComponentStoreForIonAllocator() 264 if (res == C2_OK) { in UseComponentStoreForDmaBufAllocator() 265 if (query[0].status == C2_OK) { in UseComponentStoreForDmaBufAllocator() 275 if (query[1].status == C2_OK) { in UseComponentStoreForDmaBufAllocator() 293 if (res == C2_OK) { in UseComponentStoreForDmaBufAllocator() [all …]
|
/frameworks/av/media/codec2/hal/plugin/ |
D | FilterWrapper.cpp | 63 if (err != C2_OK) { in takeFilters() 152 c2_status_t result = C2_OK; in query_vb() 183 if (err != C2_OK && err != C2_BAD_INDEX) { in query_vb() 220 if (err != C2_OK) { in query_vb() 241 c2_status_t result = C2_OK; in config_vb() 251 if (err != C2_OK) { in config_vb() 277 if (err != C2_OK) { in config_vb() 302 if (result != C2_OK) { in querySupportedParams_nb() 311 if (err != C2_OK) { in querySupportedParams_nb() 335 if (result != C2_OK && result != C2_BAD_INDEX) { in querySupportedValues_vb() [all …]
|
/frameworks/av/media/codec2/hal/client/ |
D | GraphicBufferAllocator.cpp | 55 if (ret == C2_OK) { in allocate() 72 if (ret == C2_OK) { in getWaitableFd() 83 c2_status_t ret = C2_OK; in configure() 86 if (ret != C2_OK) { in configure() 93 if (ret != C2_OK) { in configure() 102 if (ret != C2_OK) { in updateMaxDequeueBufferCount() 129 if (ret != C2_OK) { in deallocate()
|
D | client.cpp | 210 return C2_OK; in GetC2Status() 380 if (status != C2_OK && status != C2_BAD_INDEX) { in query() 464 if (status != C2_OK && status != C2_BAD_INDEX) { in config() 501 if (status != C2_OK) { in querySupportedParams() 542 if (status != C2_OK) { in querySupportedValues() 641 if (status != C2_OK) { in query() 703 if (status == C2_OK && indices.size() != numQueried) { in query() 721 if (status != C2_OK) { in config() 750 if (status != C2_OK) { in querySupportedParams() 780 if (status != C2_OK) { in querySupportedValues() [all …]
|
D | GraphicsTracker.cpp | 49 return C2_OK; in retrieveAHardwareBufferId() 321 return C2_OK; in configureGraphics() 342 return C2_OK; in configureMaxDequeueCount() 346 return C2_OK; in configureMaxDequeueCount() 408 return C2_OK; in configureMaxDequeueCount() 544 return C2_OK; in getWaitableFd() 572 return C2_OK; in requestAllocate() 585 if (res == C2_OK) { in commitAllocate() 662 return C2_OK; in _allocate() 728 return C2_OK; in _allocate() [all …]
|
/frameworks/av/media/codec2/components/raw/ |
D | C2SoftRawDec.cpp | 121 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/ |
D | C2SoftG711Dec.cpp | 115 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/ |
D | C2Fuzzer.cpp | 166 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() 248 c2_status_t status = C2_OK; in decodeFrames() 279 if (status != C2_OK || block == nullptr) { in decodeFrames() 284 if (view.error() != C2_OK) { in decodeFrames() 295 if (status != C2_OK) { in decodeFrames()
|
/frameworks/av/media/codec2/hal/common/ |
D | MultiAccessUnitHelper.cpp | 108 if (res == C2_OK && sampleRate.value > 0 && channelCount.value > 0) { in getDecoderSampleRateAndChannelCount() 212 if (C2_OK != mInterface->config(config, C2_MAY_BLOCK, &failures)) { in tryReconfigure() 243 return C2_OK; in error() 255 return C2_OK; in error() 260 c2_status_t c2res = C2_OK; in flush() 415 return C2_OK; in scatter() 442 c2_status_t res = C2_OK; in gather() 449 if (work->result != C2_OK in gather() 469 if (workResult != C2_OK) { in gather() 473 } else if (C2_OK != (res = processWorklets(*frame, work, addOutWork))) { in gather() [all …]
|
/frameworks/av/media/codec2/components/gsm/ |
D | C2SoftGsmDec.cpp | 111 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/tests/benchmark/src/native/encoder/ |
D | C2Encoder.cpp | 74 C2_OK) { in createCodec2Component() 98 if (status != C2_OK && inParams.size() == 0) { in getInputMaxBufSize() 139 c2_status_t status = C2_OK; in encodeFrames() 186 if (status != C2_OK || !block) { in encodeFrames() 191 if (view.error() != C2_OK) { in encodeFrames() 203 if (status != C2_OK || !block) { in encodeFrames() 208 if (view.error() != C2_OK) { in encodeFrames() 231 if (status != C2_OK) { in encodeFrames()
|
/frameworks/av/media/codec2/tests/vndk/ |
D | C2BufferTest.cpp | 250 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/opus/ |
D | C2SoftOpusEnc.cpp | 156 int err = C2_OK; in configureEncoder() 236 return C2_OK; in configureEncoder() 282 return C2_OK; in onStop() 327 work->result = C2_OK; in process() 340 c2_status_t err = C2_OK; in process() 357 if (initEncoder() != C2_OK) { in process() 373 if (err != C2_OK) { in process() 408 work->result = C2_OK; in process() 569 if (err != C2_OK) { in drainInternal() 597 work->result = C2_OK; in drainInternal() [all …]
|
/frameworks/av/media/codec2/components/amr_nb_wb/ |
D | C2SoftAmrNbEnc.cpp | 143 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()
|
/frameworks/av/media/codec2/components/mpeg4_h263/ |
D | C2SoftMpeg4Enc.cpp | 344 return C2_OK; in onStop() 352 return C2_OK; in onStop() 373 return C2_OK; in onFlush_sm() 441 return C2_OK; in initEncParams() 446 return C2_OK; in initEncoder() 455 if (C2_OK != err) { in initEncoder() 469 return C2_OK; in initEncoder() 476 work->result = C2_OK; in process() 485 if (!mStarted && C2_OK != initEncoder()) { in process() 495 if (err != C2_OK) { in process() [all …]
|