| 70 | #include <android/log.h> |
| 71 | |
| 72 | void AndroidPrintf(DebugReportBits level, const std::string &message) { |
| 73 | switch (level) { |
| 74 | default: |
| 75 | case DEBUG_REPORT_DEBUG_BIT: |
| 76 | case DEBUG_REPORT_NOTIFICATION_BIT: |
| 77 | __android_log_print(ANDROID_LOG_INFO, "Profiles", "%s", message.c_str()); |
| 78 | break; |
| 79 | case DEBUG_REPORT_WARNING_BIT: |
| 80 | __android_log_print(ANDROID_LOG_DEBUG, "Profiles", "%s", message.c_str()); |
| 81 | break; |
| 82 | case DEBUG_REPORT_ERROR_BIT: |
| 83 | __android_log_print(ANDROID_LOG_ERROR, "Profiles", "%s", message.c_str()); |
| 84 | break; |
| 85 | } |
| 86 | } |
| 87 | #endif |
| 88 | |
| 89 | const char *GetLogPrefix(DebugReportBits report) { |