Lines Matching defs:err

123     status_t err = msg->postAndAwaitResponse(&response);
124 if (err == OK && response != NULL) {
125 CHECK(response->findInt32("err", &err));
127 return err;
185 status_t err;
186 CHECK(msg->findInt32("err", &err));
188 mIsAudio ? "audio" : "video", err);
190 handleError(err);
215 status_t err;
216 if (msg->findInt32("err", &err) && err != OK) {
217 ALOGE("Renderer reported 0x%x when changing audio output format", err);
218 handleError(err);
236 int32_t err = INVALID_OPERATION;
246 err = native_window_api_disconnect(nww->getANativeWindow(),
248 if (err == OK) {
249 err = mCodec->setOutputSurface(nww);
250 ALOGI_IF(err, "codec setOutputSurface returned: %d", err);
251 if (err == OK) {
260 if (err != OK) {
269 response->setInt32("err", err);
331 status_t err;
334 err = native_window_api_disconnect(mNativeWindow->getANativeWindow(),
339 ALOGW_IF(err != OK, "failed to disconnect from surface: %d", err);
352 err = mCodec->configure(
358 if (err != OK) {
359 ALOGE("Failed to configure [%s] decoder (err=%d)", mComponentName.c_str(), err);
362 handleError(err);
394 err = mCodec->start();
395 if (err != OK) {
396 ALOGE("Failed to start [%s] decoder (err=%d)", mComponentName.c_str(), err);
399 handleError(err);
503 status_t err = OK;
505 err = mCodec->flush();
510 if (err != OK) {
511 ALOGE("failed to flush [%s] (err=%d)", mComponentName.c_str(), err);
512 handleError(err);
537 status_t err = OK;
543 err = mCodec->release();
560 if (err != OK) {
561 ALOGE("failed to release [%s] (err=%d)", mComponentName.c_str(), err);
562 handleError(err);
581 status_t err = OK;
582 while (err == OK && !mDequeuedInputBuffers.empty()) {
586 err = fetchInputData(msg);
587 if (err != OK && err != ERROR_END_OF_STREAM) {
599 return err == -EWOULDBLOCK
603 void NuPlayer2::Decoder::handleError(int32_t err)
613 notify->setInt32("err", err);
629 ALOGE("releaseCrypto err: %d", status);
643 ALOGE("onReleaseCrypto No mCodec. err: %d", status);
882 status_t err = mSource->dequeueAccessUnit(mIsAudio, &accessUnit);
884 if (err == -EWOULDBLOCK) {
885 return err;
886 } else if (err != OK) {
887 if (err == INFO_DISCONTINUITY) {
915 err = ERROR_END_OF_STREAM;
919 err = ERROR_END_OF_STREAM;
932 CHECK(err != OK);
934 reply->setInt32("err", err);
1019 CHECK(msg->findInt32("err", &streamErr) || !hasBuffer);
1024 status_t err = mCodec->queueInputBuffer(
1030 if (err == OK) {
1033 streamErr = err;
1034 // err will not be ERROR_END_OF_STREAM
1038 ALOGE("Stream error for [%s] (err=%d), EOS %s queued",
1041 err == OK ? "successfully" : "unsuccessfully");
1105 status_t err;
1107 err = mCodec->queueSecureInputBuffer(
1115 err = mCodec->queueInputBuffer(
1123 if (err != OK) {
1124 ALOGE("onInputBufferFetched: queue%sInputBuffer failed for [%s] (err=%d)",
1126 mComponentName.c_str(), err);
1127 handleError(err);
1137 status_t err;
1154 err = NO_INIT;
1158 err = mCodec->releaseOutputBufferAtTime(bufferIx, timestampNs);
1161 err = mCodec->releaseOutputBuffer(bufferIx, false /* render */);
1163 if (err != OK) {
1164 ALOGE("failed to release output buffer for [%s] (err=%d)",
1165 mComponentName.c_str(), err);
1166 handleError(err);