Home | History | Annotate | Download | only in android

Lines Matching refs:code

136 // Macro used in a switch statement to convert a PlayerCommand code into its
143 // Convert a command code into a string for logging purposes.
144 // @param code Of the command.
146 const char *PlayerCommandCodeToString(PlayerCommand::Code code) {
147 switch (code) {
166 default: return "UNKNOWN PlayerCommand code";
171 // Map a PV status code to a message type (error/info/nop)
172 // @param status PacketVideo status code as defined in pvmf_return_codes.h
184 // Map a PV status to an error/info code.
185 // @param status PacketVideo status code as defined in pvmf_return_codes.h
186 // @return the corresponding android error/info code.
213 status_t enqueueCommand(PlayerCommand* code);
215 // Dequeues a code from MediaPlayer and gives it to PVPlayer.
249 // Finish up a non-async code in such a way that
425 // make a copy of this semaphore for special handling of the PLAYER_QUIT code
429 // Add the code to the queue.
433 // save code, since command will be deleted by the standard completion function
434 int code = command->code();
446 if (code == PlayerCommand::PLAYER_QUIT) {
464 // when a code has been enqueued for us).
495 LOGV("Send player code: %d", command->code());
497 switch (command->code()) {
593 LOGE("Unexpected code %d", command->code());
603 LOGV("async code failed");
607 LOGV("Command failed: %d", command->code());
1234 switch (command->code()) {
1271 // Ignore cancelled code return status (PVMFErrCancelled), since it is not an error.
1272 LOGE("Command (%d) was cancelled", command->code());
1276 // Try to map the PV error code to an Android one.
1300 // TODO: Map more of the PV error code into the Android Media Player ones.
1449 return PlayerCommandCodeToString(code());
1566 // a sequence of commands and only the PLAYER_PREPARE code needs
1674 // The only code needed to run is PLAYER_PREPARE.
1738 LOGE("failed to cancel all exiting PV player engine commands with error code (%d)", ret);
1744 LOGE("failed to reset PV player engine with error code (%d)", ret);