Lines Matching refs:err
24 media_status_t translate_error(status_t err) { in translate_error() argument
26 if (err == OK) { in translate_error()
28 } else if (err == ERROR_END_OF_STREAM) { in translate_error()
30 } else if (err == ERROR_IO) { in translate_error()
32 } else if (err == ERROR_MALFORMED) { in translate_error()
34 } else if (err == INVALID_OPERATION) { in translate_error()
36 } else if (err == UNKNOWN_ERROR) { in translate_error()
40 ALOGE("sf error code: %d", err); in translate_error()
44 status_t reverse_translate_error(media_status_t err) { in reverse_translate_error() argument
46 if (err == AMEDIA_OK) { in reverse_translate_error()
48 } else if (err == AMEDIA_ERROR_END_OF_STREAM) { in reverse_translate_error()
50 } else if (err == AMEDIA_ERROR_IO) { in reverse_translate_error()
52 } else if (err == AMEDIA_ERROR_WOULD_BLOCK) { in reverse_translate_error()
54 } else if (err == AMEDIA_ERROR_MALFORMED) { in reverse_translate_error()
56 } else if (err == AMEDIA_ERROR_INVALID_OPERATION) { in reverse_translate_error()
58 } else if (err == AMEDIA_ERROR_UNKNOWN) { in reverse_translate_error()
62 ALOGE("ndk error code: %d", err); in reverse_translate_error()