android_system_core/include
Mark Salyzyn bd1ad049b2 liblog: event log list logging handler
Based off an initial request and effort by williamluh@google.com

- Added the following functions:

* Composing and Writing:

android_log_context create_android_logger(uint32_t tag)

int android_log_write_list_begin(android_log_context ctx)
int android_log_write_list_end(android_log_context ctx)

int android_log_write_int32(android_log_context ctx, int32_t value)
int android_log_write_int64(android_log_context ctx, int64_t value)
int android_log_write_string8(android_log_context ctx, const char *value)
int android_log_write_float32(android_log_context ctx, float value)

int android_log_write_list(android_log_context ctx, log_id_t id)

* Reading and Interpreting:

android_log_context create_android_log_parser(const char *msg, size_t len)

android_log_list_element android_log_read_next(android_log_context ctx)
android_log_list_element android_log_peek_next(android_log_context ctx)

* Destroy context used above:

int android_log_destroy(android_log_context *ctx);

- Added unit gTests

We moved implemented android_log_buffer_to_string() to the test since
it is an alternate for already existing logprint functionality.
Please move into liblog should it be of some common use, otherwise
as is it is a good means of stessing the reading and interpreting
handlers.

Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 19235719
Change-Id: I4aa1927e8e6a75f0a129d15a27c891cf1ccd4f5c
2016-02-22 16:04:41 -08:00
..
android log: Fix warning with __USE_MINGW_ANSI_STDIO 2014-06-12 13:19:51 -07:00
backtrace Revert "Revert "Revert "Revert "Add BacktraceOffline for offline backtracing."""" 2015-09-22 04:46:57 +00:00
binderwrapper libbinderwrapper: Add BinderWrapper::GetOrCreateInstance() 2016-01-04 12:56:27 -08:00
cutils libcutils/fastboot: improve multi-buffer write. 2016-02-03 10:01:38 -08:00
log liblog: event log list logging handler 2016-02-22 16:04:41 -08:00
mincrypt Add support for ECDSA P-256 with SHA256 2013-10-09 17:04:50 -07:00
nativebridge LibNativeBridge: Version 2 2015-05-31 16:58:24 -07:00
private uid for codec process 2016-01-25 07:49:39 -08:00
system Name the pixel format and transform enums 2015-12-17 13:58:19 -08:00
sysutils Revert "Sigh, more vendors linking against hidden APIs." 2015-03-20 23:51:36 +00:00
usbhost libusbhost: Add usb_device_get_version() 2015-04-29 13:04:10 -07:00
utils libutils: add String8 and String16 std_string utility methods 2016-02-18 17:04:23 -08:00
ziparchive Allow setting an arbitrary alignment for an entry. 2016-01-19 13:55:53 -08:00