/frameworks/av/media/extractors/ogg/ |
H A D | OggExtractor.cpp | 267 status_t err = mExtractor->mImpl->seekToTime(seekTimeUs); local 268 if (err != OK) { 269 return err; 274 status_t err = mExtractor->mImpl->readNextPacket(&packet); local 276 if (err != OK) { 277 return err; 377 status_t err = findNextPage(prevGuess, &prevPageOffset); local 378 if (err == ERROR_END_OF_STREAM) { 382 } else if (err != OK) { 383 return err; 472 status_t err = findNextPage(offset, &pageOffset); local 578 status_t err = _readNextPacket(&mBuf, /* calcVorbisTimestamp = */false); local 604 status_t err = _readNextPacket(out, /* calcVorbisTimestamp = */false); local 837 status_t err; local 1076 int err = _vorbis_unpack_comment(&mVc, &bits); local [all...] |
/frameworks/av/media/libaudioclient/ |
H A D | AudioRecord.cpp | 992 status_t err = obtainBuffer(&audioBuffer, local 994 if (err < 0) { 998 if (err == TIMED_OUT || err == -EINTR) { 999 err = WOULD_BLOCK; 1001 return ssize_t(err); 1172 status_t err = obtainBuffer(&audioBuffer, requested, NULL, &nonContig); local 1173 LOG_ALWAYS_FATAL_IF((err != NO_ERROR) != (audioBuffer.frameCount == 0), 1174 "obtainBuffer() err=%d frameCount=%zu", err, audioBuffe [all...] |
/frameworks/av/media/libaudiohal/4.0/ |
H A D | StreamHalHidl.cpp | 233 int err = requestPriority( local 236 ALOGE_IF(err, "failed to set priority %d for pid %d tid %d; error %d", 237 mHalThreadPriority, threadPid, threadId, err); 239 return err == 0;
|
/frameworks/av/media/libmedia/ |
H A D | IMediaPlayer.cpp | 195 status_t err = reply.readInt32(); local 196 if (err == OK) { 197 err = buffering->readFromParcel(&reply); 199 return err; 252 status_t err = reply.readInt32(); local 253 if (err == OK) { 260 return err; 280 status_t err = reply.readInt32(); local 281 if (err == OK) { 289 return err; 441 status_t err; local 470 status_t err; local 706 status_t err = getBufferingSettings(&buffering); local 749 status_t err = getPlaybackSettings(&rate); local 773 status_t err = getSyncSettings(&sync, &videoFps); local [all...] |
H A D | mediaplayer.cpp | 126 status_t err = UNKNOWN_ERROR; local 142 err = NO_ERROR; 152 return err; 160 status_t err = BAD_VALUE; local 169 err = attachNewPlayer(player); 172 return err; 178 status_t err = UNKNOWN_ERROR; local 186 err = attachNewPlayer(player); 188 return err; 194 status_t err local 439 status_t err = mPlayer->setPlaybackSettings(rate); local 551 status_t err = mPlayer->getDuration(&durationMs); local [all...] |
/frameworks/av/media/libmediaplayer2/ |
H A D | mediaplayer2.cpp | 509 status_t err = player->initCheck(); local 510 if (err != NO_ERROR) { 511 ALOGE("Failed to create player object, initCheck failed(%d)", err); 512 return err; 522 err = player->setDataSource(dsd); 523 if (err != OK) { 524 ALOGE("setDataSource error: %d", err); 525 return err; 643 status_t err = native_window_api_disconnect( local 646 if (err ! 667 status_t err = native_window_api_connect(anw, NATIVE_WINDOW_API_MEDIA); local 683 status_t err = mPlayer->setVideoSurfaceTexture(nww); local 692 status_t err = native_window_api_disconnect(anw, NATIVE_WINDOW_API_MEDIA); local 755 status_t err = setAudioAttributes_l(*mAudioAttributesParcel); local 897 status_t err = mPlayer->setPlaybackSettings(rate); local 1022 status_t err = mPlayer->getDuration(&durationMs); local [all...] |
/frameworks/av/media/libmediaplayer2/nuplayer2/ |
H A D | GenericSource2.cpp | 173 status_t err; local 176 err = mExtractor->setDataSource(mDataSourceWrapper->getAMediaDataSource()); 178 err = mExtractor->setDataSource(fd, offset, length); 181 if (err != OK) { 219 err = trackExtractor->setDataSource(mDataSourceWrapper->getAMediaDataSource()); 221 err = trackExtractor->setDataSource(fd, offset, length); 406 status_t err = initFromDataSource(); local 408 if (err != OK) { 410 notifyPreparedAndCleanup(err); 417 err 458 notifyPreparedAndCleanup(status_t err) argument 529 status_t err = UNKNOWN_ERROR; local 1073 status_t err = msg->postAndAwaitResponse(&response); local 1088 status_t err = doSeek(seekTimeUs, (MediaPlayer2SeekMode)mode); local 1317 status_t err = extractor->getSampleFormat(format); local [all...] |
H A D | NuPlayer2Decoder.cpp | 123 status_t err = msg->postAndAwaitResponse(&response); local 124 if (err == OK && response != NULL) { 125 CHECK(response->findInt32("err", &err)); 127 return err; 185 status_t err; local 186 CHECK(msg->findInt32("err", &err)); 188 mIsAudio ? "audio" : "video", err); 190 handleError(err); 215 status_t err; local 236 int32_t err = INVALID_OPERATION; local 331 status_t err; local 503 status_t err = OK; local 537 status_t err = OK; local 581 status_t err = OK; local 603 handleError(int32_t err) argument 882 status_t err = mSource->dequeueAccessUnit(mIsAudio, &accessUnit); local 1024 status_t err = mCodec->queueInputBuffer( local 1105 status_t err; local 1137 status_t err; local [all...] |
H A D | NuPlayer2Driver.cpp | 96 static const char *kPlayerError = "android.media.mediaplayer.err"; 384 status_t err = mPlayer->setPlaybackSettings(rate); local 385 if (err == OK) { 396 err = start_l(); 399 return err; 645 ALOGE("Failed to retrieve the requested method to invoke, err(%d)", ret); 976 void NuPlayer2Driver::notifySetDataSourceCompleted(int64_t /* srcId */, status_t err) { argument 981 mAsyncResult = err; 982 mState = (err == OK) ? STATE_UNPREPARED : STATE_IDLE; 986 void NuPlayer2Driver::notifyPrepareCompleted(int64_t srcId, status_t err) { argument [all...] |
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | NuPlayerDecoder.cpp | 125 status_t err = msg->postAndAwaitResponse(&response); local 126 if (err == OK && response != NULL) { 127 CHECK(response->findInt32("err", &err)); 129 return err; 187 status_t err; local 188 CHECK(msg->findInt32("err", &err)); 190 mIsAudio ? "audio" : "video", err); 192 handleError(err); 217 status_t err; local 234 int32_t err = INVALID_OPERATION; local 320 status_t err; local 483 status_t err = OK; local 517 status_t err = OK; local 560 status_t err = OK; local 582 handleError(int32_t err) argument 863 status_t err = mSource->dequeueAccessUnit(mIsAudio, &accessUnit); local 1005 status_t err = mCodec->queueInputBuffer( local 1086 status_t err; local 1127 status_t err; local [all...] |
H A D | NuPlayerDriver.cpp | 59 static const char *kPlayerError = "android.media.mediaplayer.err"; 339 status_t err = prepare_l(); local 341 if (err != OK) { 342 return err; 440 status_t err = mPlayer->setPlaybackSettings(rate); local 441 if (err == OK) { 453 err = start_l(); 456 return err; 1022 void NuPlayerDriver::notifySetDataSourceCompleted(status_t err) { argument 1027 mAsyncResult = err; 1032 notifyPrepareCompleted(status_t err) argument [all...] |
/frameworks/av/media/libstagefright/ |
H A D | CameraSource.cpp | 537 status_t err = OK; local 539 err = initWithCameraAccess(camera, proxy, cameraId, clientName, clientUid, clientPid, 543 return err; 631 status_t err = OK; local 633 if ((err = isCameraAvailable(camera, proxy, cameraId, 636 return err; 639 if ((err = isCameraColorFormatSupported(params)) != OK) { 640 return err; 645 if ((err = configureCamera(¶ms, 648 return err; 724 status_t err; local 822 status_t err; local [all...] |
/frameworks/av/media/libstagefright/bqhelper/ |
H A D | GraphicBufferSource.cpp | 353 status_t err = mConsumer->consumerDisconnect(); local 354 if (err != NO_ERROR) { 355 ALOGW("consumerDisconnect failed: %d", err); 654 int err = UNKNOWN_ERROR; local 667 // set err to OK so that the skipped frame can still be saved as the lastest frame 668 err = OK; 670 err = submitBuffer_l(item); // this takes shared ownership of the acquired buffer on succeess 674 if (err != OK) { 709 status_t err = submitBuffer_l(mLatestBuffer); local 710 if (err ! 832 status_t err = mComponent->submitBuffer( local 862 status_t err = mComponent->submitEos(codecBufferId); local 879 status_t err = mConsumer->acquireBuffer(&bi, 0); local 958 status_t err = acquireBuffer_l(&buffer); local 1088 status_t err = mConsumer->setMaxAcquiredBufferCount(bufferCount); local 1226 status_t err = mFrameDropper->setMaxFrameRate(maxFps); local [all...] |
/frameworks/av/media/libstagefright/foundation/ |
H A D | ANetworkSession.cpp | 125 void notifyError(bool send, status_t err, const char *detail); 261 status_t err; local 275 err = OK; 277 err = -errno; 279 err = -ECONNRESET; 305 } while (err == OK); 307 if (err == -EAGAIN) { 308 err = OK; 311 if (err != OK) { 313 notifyError(false /* send */, err, "Recvfro 334 status_t err = OK; local 544 status_t err; local 594 int err; local 641 status_t err = OK; local 769 notifyError( bool send, status_t err, const char *detail) argument 811 status_t err = mThread->run("ANetworkSession", ANDROID_PRIORITY_AUDIO); local 962 status_t err = OK; local 1174 status_t err = OK; local 1207 status_t err = session->sendRequest(data, size, timeValid, timeUs); local 1333 status_t err = MakeSocketNonBlocking(clientSocket); local 1373 status_t err = session->readMore(); local 1382 status_t err = session->writeMore(); local [all...] |
/frameworks/av/media/libstagefright/httplive/ |
H A D | M3UParser.cpp | 346 status_t err = group->selectTrack(ii, select); local 347 if (err == OK) { 350 return err; 584 status_t err = OK; local 590 err = parseMetaData(line, &mMeta, "target-duration"); 595 err = parseMetaData(line, &mMeta, "media-sequence"); 600 err = parseCipherInfo(line, &itemMeta, mBaseURI); 609 err = parseMetaDataDuration(line, &itemMeta, "durationUs"); 615 err = parseDiscontinuitySequence(line, &seq); 616 if (err 740 status_t err = ParseInt32(line.c_str() + colonPos + 1, &x); local 764 status_t err = ParseDouble(line.c_str() + colonPos + 1, &x); local 1274 status_t err = ParseInt32(line.c_str() + colonPos + 1, &x); local [all...] |
/frameworks/av/media/libstagefright/mpeg2ts/ |
H A D | ESQueue.cpp | 1036 status_t err; local 1044 while ((err = getNextNALUnit(&data, &size, &nalStart, &nalSize)) == OK) { 1205 if (err != (status_t)-EAGAIN) { 1206 ALOGE("Unexpeted err");
|
/frameworks/av/media/ndk/ |
H A D | NdkMediaCodec.cpp | 43 static media_status_t translate_error(status_t err) { argument 44 if (err == OK) { 46 } else if (err == -EAGAIN) { 49 ALOGE("sf error code: %d", err); 240 status_t err; local 243 if (!msg->findInt32("err", &err)) { 244 ALOGE("CB_ERROR: err is expected."); 253 err, actionCode, detail.c_str()); 261 translate_error(err), 383 status_t err = mData->mCodec->getName(&compName); local 415 status_t err = mData->mCodec->configure(nativeFormat, surface, local 431 status_t err = mData->mCodec->setCallback(mData->mAsyncNotify); local 650 status_t err = mData->mCodec->createInputSurface(&igbp); local 721 status_t err = mData->mCodec->signalEndOfInputStream(); local 768 status_t err = codec->mCodec->queueSecureInputBuffer(idx, local [all...] |
H A D | NdkMediaDrm.cpp | 176 status_t err = drm->createPlugin(uuid, nullPackageName); local 178 if (err != OK) {
|
/frameworks/av/services/audiopolicy/service/ |
H A D | AudioPolicyService.cpp | 398 int err = data.readFileDescriptor(); local 413 status = shellCommand(in, out, err, args); 427 status_t AudioPolicyService::shellCommand(int in, int out, int err, Vector<String16>& args) { argument 431 if (in == BAD_TYPE || out == BAD_TYPE || err == BAD_TYPE) { 435 return handleSetUidState(args, err); 437 return handleResetUidState(args, err); 439 return handleGetUidState(args, out, err); 444 printHelp(err); 448 status_t AudioPolicyService::handleSetUidState(Vector<String16>& args, int err) { argument 453 dprintf(err, "Unknow 467 handleResetUidState(Vector<String16>& args, int err) argument 479 handleGetUidState(Vector<String16>& args, int out, int err) argument [all...] |
/frameworks/base/cmds/incidentd/src/ |
H A D | Section.cpp | 83 status_t err = -EBADF; local 101 err = privacyBuffer.strip(spec); 102 if (err != NO_ERROR) return err; // it means the privacyBuffer data is corrupted. 107 err = write_section_header(request->fd, id, privacyBuffer.size()); 108 if (err != NO_ERROR) { 109 request->err = err; 112 err = privacyBuffer.flush(request->fd); 113 if (err ! 297 status_t err = write_report_requests(this->id, buffer, requests); local 394 status_t err = write_report_requests(this->id, buffer, requests); local 430 status_t err = data->section->BlockingCall(data->pipe.writeFd().get()); local 445 status_t err = NO_ERROR; local 612 status_t err = write_report_requests(this->id, buffer, requests); local 717 status_t err = android_logger_list_read(loggers.get(), &msg); local 841 status_t err = NO_ERROR; local [all...] |
/frameworks/base/cmds/statsd/src/ |
H A D | StatsService.cpp | 206 int err = data.readFileDescriptor(); local 218 FILE* ferr = fdopen(err, "w"); 223 err = command(fin, fout, ferr, args); 224 resultReceiver->send(err); 292 status_t StatsService::command(FILE* in, FILE* out, FILE* err, Vector<String8>& args) { argument 302 return cmd_config(in, out, err, args); 310 return cmd_dump_report(out, err, args); 484 status_t StatsService::cmd_config(FILE* in, FILE* out, FILE* err, Vector<String8>& args) { argument 512 fprintf(err, 530 fprintf(err, "Erro 566 cmd_dump_report(FILE* out, FILE* err, const Vector<String8>& args) argument [all...] |
/frameworks/base/core/java/android/os/ |
H A D | Binder.java | 526 ParcelFileDescriptor err = data.readFileDescriptor(); 534 err != null ? err.getFileDescriptor() : out.getFileDescriptor(), 540 IoUtils.closeQuietly(err); 623 * @param err The raw file descriptor that command error messages should be written to. 631 @Nullable FileDescriptor err, 634 onShellCommand(in, out, err, args, callback, resultReceiver); 646 @Nullable FileDescriptor err, 649 FileOutputStream fout = new FileOutputStream(err != null ? err 630 shellCommand(@ullable FileDescriptor in, @Nullable FileDescriptor out, @Nullable FileDescriptor err, @NonNull String[] args, @Nullable ShellCallback callback, @NonNull ResultReceiver resultReceiver) argument 645 onShellCommand(@ullable FileDescriptor in, @Nullable FileDescriptor out, @Nullable FileDescriptor err, @NonNull String[] args, @Nullable ShellCallback callback, @NonNull ResultReceiver resultReceiver) argument 1170 shellCommand(FileDescriptor in, FileDescriptor out, FileDescriptor err, String[] args, ShellCallback callback, ResultReceiver resultReceiver) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_database_SQLiteConnection.cpp | 135 int err = sqlite3_open_v2(path.string(), &db, sqliteFlags, NULL); local 136 if (err != SQLITE_OK) { 137 throw_sqlite3_exception_errcode(env, err, "Could not open database"); 142 int err = sqlite3_db_config(db, SQLITE_DBCONFIG_LOOKASIDE, NULL, lookasideSz, lookasideCnt); local 143 if (err != SQLITE_OK) { 144 ALOGE("sqlite3_db_config(..., %d, %d) failed: %d", lookasideSz, lookasideCnt, err); 159 err = sqlite3_busy_timeout(db, BUSY_TIMEOUT_MS); 160 if (err != SQLITE_OK) { 167 err = register_android_functions(db, UTF16_STORAGE); 168 if (err) { 194 int err = sqlite3_close(connection->db); local 270 int err = sqlite3_create_function_v2(connection->db, name, numArgs, SQLITE_UTF16, local 288 int err = register_localized_collators(connection->db, locale, UTF16_STORAGE); local 303 int err = sqlite3_prepare16_v2(connection->db, local 380 int err = sqlite3_bind_null(statement, index); local 391 int err = sqlite3_bind_int64(statement, index, value); local 402 int err = sqlite3_bind_double(statement, index, value); local 415 int err = sqlite3_bind_text16(statement, index, value, valueLength * sizeof(jchar), local 430 int err = sqlite3_bind_blob(statement, index, value, valueLength, SQLITE_TRANSIENT); local 442 int err = sqlite3_reset(statement); local 452 int err = sqlite3_step(statement); local 475 int err = executeNonQuery(env, connection, statement); local 484 int err = executeNonQuery(env, connection, statement); local 490 int err = sqlite3_step(statement); local 502 int err = executeOneRowQuery(env, connection, statement); local 514 int err = executeOneRowQuery(env, connection, statement); local 564 int err = executeOneRowQuery(env, connection, statement); local 707 int err = sqlite3_step(statement); local [all...] |
H A D | android_hardware_camera2_CameraMetadata.cpp | 507 status_t err; local 508 if ((err = metadata->readFromParcel(parcelNative)) != OK) { 510 "Failed to read from parcel (error code %d)", err); 528 status_t err; local 529 if ((err = metadata->writeToParcel(parcelNative)) != OK) { 531 "Failed to write to parcel (error code %d)", err); 856 status_t err = getService(NAME, /*out*/&cameraService); local 858 if (err != OK) { 860 strerror(-err), err); [all...] |
H A D | android_media_AudioRecord.cpp | 788 status_t err = lpRecord->getMetrics(item); local 789 if (err != OK) {
|