Lines Matching refs:err

299     status_t err = mCodec->dequeueOutputBuffer(
302 if (err != OK) {
303 return err;
331 status_t err;
332 err = input ? mCodec->getInputFormat(&msg) : mCodec->getOutputFormat(&msg);
333 if (err != OK) {
334 return err;
342 status_t err;
343 if ((err = mCodec->getOutputFormat(index, &msg)) != OK) {
344 return err;
354 status_t err =
359 if (err != OK) {
360 return err;
373 err = createByteBufferFromABuffer(
375 if (err != OK) {
376 return err;
433 status_t err =
438 if (err != OK) {
439 return err;
450 status_t err =
455 if (err != OK) {
456 return err;
478 err = createByteBufferFromABuffer(
480 if (err != OK) {
485 err = createByteBufferFromABuffer(
487 if (err != OK) {
544 status_t err = mCodec->getName(&name);
546 if (err != OK) {
547 return err;
566 JNIEnv *env, status_t err, int32_t actionCode, const char *msg = NULL) {
575 env, env->NewStringUTF(msg != NULL ? msg : String8::format("Error %#x", err)));
590 return (jthrowable)env->NewObject(clazz.get(), ctor, err, actionCode, msgObj.get());
640 int32_t err, actionCode;
641 CHECK(msg->findInt32("err", &err));
645 obj = (jobject)createCodecException(env, err, actionCode);
733 static void throwCodecException(JNIEnv *env, status_t err, int32_t actionCode, const char *msg) {
734 jthrowable exception = createCodecException(env, err, actionCode, msg);
738 static void throwCryptoException(JNIEnv *env, status_t err, const char *msg) {
750 switch (err) {
752 err = gCryptoErrorCodes.cryptoErrorNoKey;
755 err = gCryptoErrorCodes.cryptoErrorKeyExpired;
758 err = gCryptoErrorCodes.cryptoErrorResourceBusy;
761 err = gCryptoErrorCodes.cryptoErrorInsufficientOutputProtection;
768 (jthrowable)env->NewObject(clazz.get(), constructID, err, msgObj);
774 JNIEnv *env, status_t err, int32_t actionCode = ACTION_CODE_FATAL,
776 switch (err) {
794 if (isCryptoError(err)) {
795 throwCryptoException(env, err, msg);
798 throwCodecException(env, err, actionCode, msg);
814 status_t err = codec->setCallback(cb);
816 throwExceptionAsNecessary(env, err);
834 status_t err = ConvertKeyValueArraysToMessage(env, keys, values, &format);
836 if (err != OK) {
860 err = codec->configure(format, bufferProducer, crypto, flags);
862 throwExceptionAsNecessary(env, err);
877 status_t err = codec->createInputSurface(&bufferProducer);
878 if (err != NO_ERROR) {
879 throwExceptionAsNecessary(env, err);
898 status_t err = codec->start();
900 throwExceptionAsNecessary(env, err, ACTION_CODE_FATAL, "start failed");
913 status_t err = codec->stop();
915 throwExceptionAsNecessary(env, err);
928 status_t err = codec->reset();
929 if (err != OK) {
935 err = UNKNOWN_ERROR;
937 throwExceptionAsNecessary(env, err);
950 status_t err = codec->flush();
952 throwExceptionAsNecessary(env, err);
974 status_t err = codec->queueInputBuffer(
978 env, err, ACTION_CODE_FATAL, errorDetailMsg.empty() ? NULL : errorDetailMsg.c_str());
1017 status_t err = OK;
1024 err = -EINVAL;
1027 err = -EINVAL;
1030 err = -ERANGE;
1033 err = -ERANGE;
1037 err = -EINVAL;
1075 if (err == OK && keyObj != NULL) {
1077 err = -EINVAL;
1084 if (err == OK && ivObj != NULL) {
1086 err = -EINVAL;
1095 if (err == OK) {
1096 err = codec->queueSecureInputBuffer(
1120 env, err, ACTION_CODE_FATAL, errorDetailMsg.empty() ? NULL : errorDetailMsg.c_str());
1135 status_t err = codec->dequeueInputBuffer(&index, timeoutUs);
1137 if (err == OK) {
1141 return throwExceptionAsNecessary(env, err);
1156 status_t err = codec->dequeueOutputBuffer(
1159 if (err == OK) {
1163 return throwExceptionAsNecessary(env, err);
1178 status_t err = codec->releaseOutputBuffer(index, render, updatePTS, timestampNs);
1180 throwExceptionAsNecessary(env, err);
1193 status_t err = codec->signalEndOfInputStream();
1195 throwExceptionAsNecessary(env, err);
1210 status_t err = codec->getFormat(env, input, &format);
1212 if (err == OK) {
1216 throwExceptionAsNecessary(env, err);
1233 status_t err = codec->getOutputFormat(env, index, &format);
1235 if (err == OK) {
1239 throwExceptionAsNecessary(env, err);
1256 status_t err = codec->getBuffers(env, input, &buffers);
1258 if (err == OK) {
1263 if (err != NO_MEMORY) {
1264 throwExceptionAsNecessary(env, err);
1282 status_t err = codec->getBuffer(env, input, index, &buffer);
1284 if (err == OK) {
1289 if (err != NO_MEMORY) {
1290 throwExceptionAsNecessary(env, err);
1308 status_t err = codec->getImage(env, input, index, &image);
1310 if (err == OK) {
1315 if (err != NO_MEMORY) {
1316 throwExceptionAsNecessary(env, err);
1334 status_t err = codec->getName(env, &name);
1336 if (err == OK) {
1340 throwExceptionAsNecessary(env, err);
1357 status_t err = ConvertKeyValueArraysToMessage(env, keys, vals, &params);
1359 if (err == OK) {
1360 err = codec->setParameters(params);
1363 throwExceptionAsNecessary(env, err);
1475 const status_t err = codec->initCheck();
1476 if (err == NAME_NOT_FOUND) {
1479 String8::format("Failed to initialize %s, error %#x", tmp, err));
1482 } else if (err != OK) {
1485 String8::format("Failed to find matching codec %s, error %#x", tmp, err));