Lines Matching refs:codec
1576 JNIEnv *env, jobject thiz, const sp<JMediaCodec> &codec, bool release = true) { in setMediaCodec() argument
1578 if (codec != NULL) { in setMediaCodec()
1579 codec->incStrong(thiz); in setMediaCodec()
1592 env->CallVoidMethod(thiz, gFields.setAndUnlockContextID, (jlong)codec.get()); in setMediaCodec()
1598 sp<JMediaCodec> codec = (JMediaCodec *)env->CallLongMethod(thiz, gFields.lockAndGetContextID); in getMediaCodec() local
1599 env->CallVoidMethod(thiz, gFields.setAndUnlockContextID, (jlong)codec.get()); in getMediaCodec()
1600 return codec; in getMediaCodec()
1605 sp<JMediaCodec> codec = setMediaCodec(env, thiz, nullptr, false /* release */); in android_media_MediaCodec_release() local
1606 if (codec != NULL) { in android_media_MediaCodec_release()
1607 codec->releaseAsync(); in android_media_MediaCodec_release()
1623 static std::string GetExceptionMessage(const sp<JMediaCodec> &codec, const char *msg) { in GetExceptionMessage() argument
1624 if (codec == NULL) { in GetExceptionMessage()
1627 return codec->getExceptionMessage(msg); in GetExceptionMessage()
1633 const sp<JMediaCodec> &codec = NULL) { in throwExceptionAsNecessary() argument
1650 GetExceptionMessage(codec, msg).c_str()); in throwExceptionAsNecessary()
1656 GetExceptionMessage(codec, msg).c_str()); in throwExceptionAsNecessary()
1663 GetExceptionMessage(codec, msg).c_str(), in throwExceptionAsNecessary()
1669 GetExceptionMessage(codec, msg).c_str()); in throwExceptionAsNecessary()
1675 JNIEnv *env, status_t err, const sp<JMediaCodec> &codec, in throwExceptionAsNecessary() argument
1677 return throwExceptionAsNecessary(env, err, actionCode, NULL, NULL, codec); in throwExceptionAsNecessary()
1684 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_native_enableOnFirstTunnelFrameReadyListener() local
1686 if (codec == NULL || codec->initCheck() != OK) { in android_media_MediaCodec_native_enableOnFirstTunnelFrameReadyListener()
1687 throwExceptionAsNecessary(env, INVALID_OPERATION, codec); in android_media_MediaCodec_native_enableOnFirstTunnelFrameReadyListener()
1691 status_t err = codec->enableOnFirstTunnelFrameReadyListener(enabled); in android_media_MediaCodec_native_enableOnFirstTunnelFrameReadyListener()
1693 throwExceptionAsNecessary(env, err, codec); in android_media_MediaCodec_native_enableOnFirstTunnelFrameReadyListener()
1700 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_native_enableOnFrameRenderedListener() local
1702 if (codec == NULL || codec->initCheck() != OK) { in android_media_MediaCodec_native_enableOnFrameRenderedListener()
1703 throwExceptionAsNecessary(env, INVALID_OPERATION, codec); in android_media_MediaCodec_native_enableOnFrameRenderedListener()
1707 status_t err = codec->enableOnFrameRenderedListener(enabled); in android_media_MediaCodec_native_enableOnFrameRenderedListener()
1709 throwExceptionAsNecessary(env, err, codec); in android_media_MediaCodec_native_enableOnFrameRenderedListener()
1716 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_native_setCallback() local
1718 if (codec == NULL || codec->initCheck() != OK) { in android_media_MediaCodec_native_setCallback()
1719 throwExceptionAsNecessary(env, INVALID_OPERATION, codec); in android_media_MediaCodec_native_setCallback()
1723 status_t err = codec->setCallback(cb); in android_media_MediaCodec_native_setCallback()
1725 throwExceptionAsNecessary(env, err, codec); in android_media_MediaCodec_native_setCallback()
1736 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_native_configure() local
1738 if (codec == NULL || codec->initCheck() != OK) { in android_media_MediaCodec_native_configure()
1739 throwExceptionAsNecessary(env, INVALID_OPERATION, codec); in android_media_MediaCodec_native_configure()
1775 err = codec->configure(format, bufferProducer, crypto, descrambler, flags); in android_media_MediaCodec_native_configure()
1777 throwExceptionAsNecessary(env, err, codec); in android_media_MediaCodec_native_configure()
1784 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_native_setSurface() local
1786 if (codec == NULL || codec->initCheck() != OK) { in android_media_MediaCodec_native_setSurface()
1787 throwExceptionAsNecessary(env, INVALID_OPERATION, codec); in android_media_MediaCodec_native_setSurface()
1805 status_t err = codec->setSurface(bufferProducer); in android_media_MediaCodec_native_setSurface()
1806 throwExceptionAsNecessary(env, err, codec); in android_media_MediaCodec_native_setSurface()
1812 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_native_detachOutputSurface() local
1814 if (codec == NULL || codec->initCheck() != OK) { in android_media_MediaCodec_native_detachOutputSurface()
1815 throwExceptionAsNecessary(env, INVALID_OPERATION, codec); in android_media_MediaCodec_native_detachOutputSurface()
1819 status_t err = codec->detachOutputSurface(); in android_media_MediaCodec_native_detachOutputSurface()
1820 throwExceptionAsNecessary(env, err, codec); in android_media_MediaCodec_native_detachOutputSurface()
1922 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_setInputSurface() local
1923 if (codec == NULL || codec->initCheck() != OK) { in android_media_MediaCodec_setInputSurface()
1924 throwExceptionAsNecessary(env, INVALID_OPERATION, codec); in android_media_MediaCodec_setInputSurface()
1936 status_t err = codec->setInputSurface(persistentSurface); in android_media_MediaCodec_setInputSurface()
1938 throwExceptionAsNecessary(env, err, codec); in android_media_MediaCodec_setInputSurface()
1946 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_createInputSurface() local
1947 if (codec == NULL || codec->initCheck() != OK) { in android_media_MediaCodec_createInputSurface()
1948 throwExceptionAsNecessary(env, INVALID_OPERATION, codec); in android_media_MediaCodec_createInputSurface()
1954 status_t err = codec->createInputSurface(&bufferProducer); in android_media_MediaCodec_createInputSurface()
1956 throwExceptionAsNecessary(env, err, codec); in android_media_MediaCodec_createInputSurface()
1968 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_start() local
1970 if (codec == NULL || codec->initCheck() != OK) { in android_media_MediaCodec_start()
1971 throwExceptionAsNecessary(env, INVALID_OPERATION, codec); in android_media_MediaCodec_start()
1975 status_t err = codec->start(); in android_media_MediaCodec_start()
1977 throwExceptionAsNecessary(env, err, codec); in android_media_MediaCodec_start()
1983 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_stop() local
1985 if (codec == NULL || codec->initCheck() != OK) { in android_media_MediaCodec_stop()
1986 throwExceptionAsNecessary(env, INVALID_OPERATION, codec); in android_media_MediaCodec_stop()
1990 status_t err = codec->stop(); in android_media_MediaCodec_stop()
1992 throwExceptionAsNecessary(env, err, codec); in android_media_MediaCodec_stop()
1998 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_reset() local
2000 if (codec == NULL || codec->initCheck() != OK) { in android_media_MediaCodec_reset()
2001 throwExceptionAsNecessary(env, INVALID_OPERATION, codec); in android_media_MediaCodec_reset()
2005 status_t err = codec->reset(); in android_media_MediaCodec_reset()
2014 throwExceptionAsNecessary(env, err, codec); in android_media_MediaCodec_reset()
2020 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_flush() local
2022 if (codec == NULL || codec->initCheck() != OK) { in android_media_MediaCodec_flush()
2023 throwExceptionAsNecessary(env, INVALID_OPERATION, codec); in android_media_MediaCodec_flush()
2027 status_t err = codec->flush(); in android_media_MediaCodec_flush()
2029 throwExceptionAsNecessary(env, err, codec); in android_media_MediaCodec_flush()
2042 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_queueInputBuffer() local
2044 if (codec == NULL || codec->initCheck() != OK) { in android_media_MediaCodec_queueInputBuffer()
2045 throwExceptionAsNecessary(env, INVALID_OPERATION, codec); in android_media_MediaCodec_queueInputBuffer()
2051 status_t err = codec->queueInputBuffer( in android_media_MediaCodec_queueInputBuffer()
2056 codec->getExceptionMessage(errorDetailMsg.c_str()).c_str()); in android_media_MediaCodec_queueInputBuffer()
2127 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_queueInputBuffers() local
2128 if (codec == NULL || codec->initCheck() != OK || objArray == NULL) { in android_media_MediaCodec_queueInputBuffers()
2129 throwExceptionAsNecessary(env, INVALID_OPERATION, codec); in android_media_MediaCodec_queueInputBuffers()
2145 err = codec->queueInputBuffers( in android_media_MediaCodec_queueInputBuffers()
2154 codec->getExceptionMessage(errorDetailMsg.c_str()).c_str()); in android_media_MediaCodec_queueInputBuffers()
2368 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_queueSecureInputBuffer() local
2370 if (codec == NULL || codec->initCheck() != OK) { in android_media_MediaCodec_queueSecureInputBuffer()
2371 throwExceptionAsNecessary(env, INVALID_OPERATION, codec); in android_media_MediaCodec_queueSecureInputBuffer()
2497 err = codec->queueSecureInputBuffer( in android_media_MediaCodec_queueSecureInputBuffer()
2523 codec->getExceptionMessage(errorDetailMsg.c_str()).c_str(), codec->getCrypto()); in android_media_MediaCodec_queueSecureInputBuffer()
2578 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_queueSecureInputBuffers() local
2580 if (codec == NULL || codec->initCheck() != OK) { in android_media_MediaCodec_queueSecureInputBuffers()
2581 throwExceptionAsNecessary(env, INVALID_OPERATION, codec); in android_media_MediaCodec_queueSecureInputBuffers()
2606 err = codec->queueSecureInputBuffers( in android_media_MediaCodec_queueSecureInputBuffers()
2616 codec->getExceptionMessage(errorDetailMsg.c_str()).c_str(), codec->getCrypto()); in android_media_MediaCodec_queueSecureInputBuffers()
2965 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_native_queueLinearBlock() local
2967 if (codec == nullptr || codec->initCheck() != OK) { in android_media_MediaCodec_native_queueLinearBlock()
2968 throwExceptionAsNecessary(env, INVALID_OPERATION, codec); in android_media_MediaCodec_native_queueLinearBlock()
2993 codec->getExceptionMessage(errorDetailMsg.c_str()).c_str()); in android_media_MediaCodec_native_queueLinearBlock()
3005 if (codec->hasCryptoOrDescrambler()) { in android_media_MediaCodec_native_queueLinearBlock()
3020 if (codec->hasCryptoOrDescrambler()) { in android_media_MediaCodec_native_queueLinearBlock()
3046 err = codec->queueEncryptedLinearBlock( in android_media_MediaCodec_native_queueLinearBlock()
3068 err = codec->queueBuffer( in android_media_MediaCodec_native_queueLinearBlock()
3073 codec->getExceptionMessage(errorDetailMsg.c_str()).c_str()); in android_media_MediaCodec_native_queueLinearBlock()
3081 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_native_queueHardwareBuffer() local
3083 if (codec == NULL || codec->initCheck() != OK) { in android_media_MediaCodec_native_queueHardwareBuffer()
3084 throwExceptionAsNecessary(env, INVALID_OPERATION, codec); in android_media_MediaCodec_native_queueHardwareBuffer()
3130 err = codec->queueBuffer( in android_media_MediaCodec_native_queueHardwareBuffer()
3134 codec->getExceptionMessage(errorDetailMsg.c_str()).c_str()); in android_media_MediaCodec_native_queueHardwareBuffer()
3141 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_native_getOutputFrame() local
3143 if (codec == NULL || codec->initCheck() != OK) { in android_media_MediaCodec_native_getOutputFrame()
3144 throwExceptionAsNecessary(env, INVALID_OPERATION, codec); in android_media_MediaCodec_native_getOutputFrame()
3148 status_t err = codec->getOutputFrame(env, frame, index); in android_media_MediaCodec_native_getOutputFrame()
3150 throwExceptionAsNecessary(env, err, codec); in android_media_MediaCodec_native_getOutputFrame()
3158 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_dequeueInputBuffer() local
3160 if (codec == NULL || codec->initCheck() != OK) { in android_media_MediaCodec_dequeueInputBuffer()
3161 throwExceptionAsNecessary(env, INVALID_OPERATION, codec); in android_media_MediaCodec_dequeueInputBuffer()
3166 status_t err = codec->dequeueInputBuffer(&index, timeoutUs); in android_media_MediaCodec_dequeueInputBuffer()
3172 return throwExceptionAsNecessary(env, err, codec); in android_media_MediaCodec_dequeueInputBuffer()
3179 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_dequeueOutputBuffer() local
3181 if (codec == NULL || codec->initCheck() != OK) { in android_media_MediaCodec_dequeueOutputBuffer()
3182 throwExceptionAsNecessary(env, INVALID_OPERATION, codec); in android_media_MediaCodec_dequeueOutputBuffer()
3187 status_t err = codec->dequeueOutputBuffer( in android_media_MediaCodec_dequeueOutputBuffer()
3194 return throwExceptionAsNecessary(env, err, codec); in android_media_MediaCodec_dequeueOutputBuffer()
3202 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_releaseOutputBuffer() local
3204 if (codec == NULL || codec->initCheck() != OK) { in android_media_MediaCodec_releaseOutputBuffer()
3205 throwExceptionAsNecessary(env, INVALID_OPERATION, codec); in android_media_MediaCodec_releaseOutputBuffer()
3209 status_t err = codec->releaseOutputBuffer(index, render, updatePTS, timestampNs); in android_media_MediaCodec_releaseOutputBuffer()
3211 throwExceptionAsNecessary(env, err, codec); in android_media_MediaCodec_releaseOutputBuffer()
3218 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_signalEndOfInputStream() local
3219 if (codec == NULL || codec->initCheck() != OK) { in android_media_MediaCodec_signalEndOfInputStream()
3220 throwExceptionAsNecessary(env, INVALID_OPERATION, codec); in android_media_MediaCodec_signalEndOfInputStream()
3224 status_t err = codec->signalEndOfInputStream(); in android_media_MediaCodec_signalEndOfInputStream()
3226 throwExceptionAsNecessary(env, err, codec); in android_media_MediaCodec_signalEndOfInputStream()
3233 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_getFormatNative() local
3235 if (codec == NULL || codec->initCheck() != OK) { in android_media_MediaCodec_getFormatNative()
3236 throwExceptionAsNecessary(env, INVALID_OPERATION, codec); in android_media_MediaCodec_getFormatNative()
3241 status_t err = codec->getFormat(env, input, &format); in android_media_MediaCodec_getFormatNative()
3247 throwExceptionAsNecessary(env, err, codec); in android_media_MediaCodec_getFormatNative()
3256 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_getOutputFormatForIndexNative() local
3258 if (codec == NULL || codec->initCheck() != OK) { in android_media_MediaCodec_getOutputFormatForIndexNative()
3259 throwExceptionAsNecessary(env, INVALID_OPERATION, codec); in android_media_MediaCodec_getOutputFormatForIndexNative()
3264 status_t err = codec->getOutputFormat(env, index, &format); in android_media_MediaCodec_getOutputFormatForIndexNative()
3270 throwExceptionAsNecessary(env, err, codec); in android_media_MediaCodec_getOutputFormatForIndexNative()
3279 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_getBuffers() local
3281 if (codec == NULL || codec->initCheck() != OK) { in android_media_MediaCodec_getBuffers()
3282 throwExceptionAsNecessary(env, INVALID_OPERATION, codec); in android_media_MediaCodec_getBuffers()
3287 status_t err = codec->getBuffers(env, input, &buffers); in android_media_MediaCodec_getBuffers()
3295 throwExceptionAsNecessary(env, err, codec); in android_media_MediaCodec_getBuffers()
3305 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_getBuffer() local
3307 if (codec == NULL || codec->initCheck() != OK) { in android_media_MediaCodec_getBuffer()
3308 throwExceptionAsNecessary(env, INVALID_OPERATION, codec); in android_media_MediaCodec_getBuffer()
3313 status_t err = codec->getBuffer(env, input, index, &buffer); in android_media_MediaCodec_getBuffer()
3321 throwExceptionAsNecessary(env, err, codec); in android_media_MediaCodec_getBuffer()
3331 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_getImage() local
3333 if (codec == NULL || codec->initCheck() != OK) { in android_media_MediaCodec_getImage()
3334 throwExceptionAsNecessary(env, INVALID_OPERATION, codec); in android_media_MediaCodec_getImage()
3339 status_t err = codec->getImage(env, input, index, &image); in android_media_MediaCodec_getImage()
3347 throwExceptionAsNecessary(env, err, codec); in android_media_MediaCodec_getImage()
3357 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_getName() local
3359 if (codec == NULL || codec->initCheck() != OK) { in android_media_MediaCodec_getName()
3360 throwExceptionAsNecessary(env, INVALID_OPERATION, codec); in android_media_MediaCodec_getName()
3365 status_t err = codec->getName(env, &name); in android_media_MediaCodec_getName()
3371 throwExceptionAsNecessary(env, err, codec); in android_media_MediaCodec_getName()
3380 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_getOwnCodecInfo() local
3382 if (codec == NULL || codec->initCheck() != OK) { in android_media_MediaCodec_getOwnCodecInfo()
3383 throwExceptionAsNecessary(env, INVALID_OPERATION, codec); in android_media_MediaCodec_getOwnCodecInfo()
3388 status_t err = codec->getCodecInfo(env, &codecInfoObj); in android_media_MediaCodec_getOwnCodecInfo()
3394 throwExceptionAsNecessary(env, err, codec); in android_media_MediaCodec_getOwnCodecInfo()
3404 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_native_getMetrics() local
3405 if (codec == NULL || codec->initCheck() != OK) { in android_media_MediaCodec_native_getMetrics()
3407 GetExceptionMessage(codec, NULL).c_str()); in android_media_MediaCodec_native_getMetrics()
3414 status_t err = codec->getMetrics(env, item); in android_media_MediaCodec_native_getMetrics()
3433 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_setParameters() local
3435 if (codec == NULL || codec->initCheck() != OK) { in android_media_MediaCodec_setParameters()
3436 throwExceptionAsNecessary(env, INVALID_OPERATION, codec); in android_media_MediaCodec_setParameters()
3444 err = codec->setParameters(params); in android_media_MediaCodec_setParameters()
3447 throwExceptionAsNecessary(env, err, codec); in android_media_MediaCodec_setParameters()
3452 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_setVideoScalingMode() local
3454 if (codec == NULL || codec->initCheck() != OK) { in android_media_MediaCodec_setVideoScalingMode()
3455 throwExceptionAsNecessary(env, INVALID_OPERATION, codec); in android_media_MediaCodec_setVideoScalingMode()
3466 codec->setVideoScalingMode(mode); in android_media_MediaCodec_setVideoScalingMode()
3471 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_setAudioPresentation() local
3473 if (codec == NULL || codec->initCheck() != OK) { in android_media_MediaCodec_setAudioPresentation()
3474 throwExceptionAsNecessary(env, INVALID_OPERATION, codec); in android_media_MediaCodec_setAudioPresentation()
3478 codec->selectAudioPresentation((int32_t)presentationId, (int32_t)programId); in android_media_MediaCodec_setAudioPresentation()
3483 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_getSupportedVendorParameters() local
3485 if (codec == NULL || codec->initCheck() != OK) { in android_media_MediaCodec_getSupportedVendorParameters()
3486 throwExceptionAsNecessary(env, INVALID_OPERATION, codec); in android_media_MediaCodec_getSupportedVendorParameters()
3491 status_t status = codec->querySupportedVendorParameters(env, &ret); in android_media_MediaCodec_getSupportedVendorParameters()
3493 throwExceptionAsNecessary(env, status, codec); in android_media_MediaCodec_getSupportedVendorParameters()
3501 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_getParameterDescriptor() local
3503 if (codec == NULL || codec->initCheck() != OK) { in android_media_MediaCodec_getParameterDescriptor()
3504 throwExceptionAsNecessary(env, INVALID_OPERATION, codec); in android_media_MediaCodec_getParameterDescriptor()
3509 status_t status = codec->describeParameter(env, name, &ret); in android_media_MediaCodec_getParameterDescriptor()
3518 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_subscribeToVendorParameters() local
3520 if (codec == NULL || codec->initCheck() != OK) { in android_media_MediaCodec_subscribeToVendorParameters()
3521 throwExceptionAsNecessary(env, INVALID_OPERATION, codec); in android_media_MediaCodec_subscribeToVendorParameters()
3525 status_t status = codec->subscribeToVendorParameters(env, names); in android_media_MediaCodec_subscribeToVendorParameters()
3527 throwExceptionAsNecessary(env, status, codec); in android_media_MediaCodec_subscribeToVendorParameters()
3534 sp<JMediaCodec> codec = getMediaCodec(env, thiz); in android_media_MediaCodec_unsubscribeFromVendorParameters() local
3536 if (codec == NULL || codec->initCheck() != OK) { in android_media_MediaCodec_unsubscribeFromVendorParameters()
3537 throwExceptionAsNecessary(env, INVALID_OPERATION, codec); in android_media_MediaCodec_unsubscribeFromVendorParameters()
3541 status_t status = codec->unsubscribeFromVendorParameters(env, names); in android_media_MediaCodec_unsubscribeFromVendorParameters()
3543 throwExceptionAsNecessary(env, status, codec); in android_media_MediaCodec_unsubscribeFromVendorParameters()
3910 sp<JMediaCodec> codec = new JMediaCodec(env, thiz, tmp, nameIsType, encoder, pid, uid); in android_media_MediaCodec_native_setup() local
3912 const status_t err = codec->initCheck(); in android_media_MediaCodec_native_setup()
3943 codec->registerSelf(); in android_media_MediaCodec_native_setup()
3945 setMediaCodec(env, thiz, codec); in android_media_MediaCodec_native_setup()