platform_system_core/liblog/tests
Tom Cherry 9158984894 liblog: display valid utf8 characters with 'printable' log format
This started as a change to use mbrtowc() instead of
utf8_character_length() as mbrtowc() does everything that
utf8_character_length() intends to do, but is a libc function. The
change was further intended to add unit tests to ensure that these
functions operate as intended.

It turns out that utf8_character_length() returned an error for the
utf8 characters that I tested, so this also has the side effect of
allowing valid utf8 characters to be printed in the 'printable' log
format, which was the original intention.

Also, print the binary data as hex instead of octal, since it is a
more suitable choice.

Test: new unit tests, existing unit tests, logcat -v printable
Change-Id: I4cc95aee81519411ef47892ca74eb31117c972d2
2019-04-29 09:14:37 -07:00
..
Android.bp liblog: display valid utf8 characters with 'printable' log format 2019-04-29 09:14:37 -07:00
AndroidTest.xml Actually add right instant app boilerplate. 2019-01-29 17:12:35 -08:00
libc_test.cpp liblog: simplify socket_local_client() and always use CLOEXEC 2019-02-12 12:53:19 -08:00
liblog_benchmark.cpp liblog: simplify socket_local_client() and always use CLOEXEC 2019-02-12 12:53:19 -08:00
liblog_test.cpp liblog: simplify socket_local_client() and always use CLOEXEC 2019-02-12 12:53:19 -08:00
liblog_test_default.cpp liblog: test: *.android_errorWriteWithinfoLog__android_logger_list_read__* 2017-03-17 10:41:39 -07:00
liblog_test_stderr.cpp liblog: test: *.android_errorWriteWithinfoLog__android_logger_list_read__* 2017-03-17 10:41:39 -07:00
log_id_test.cpp Small liblog test fixes & readability improvements. 2017-08-25 14:53:21 +01:00
log_radio_test.cpp liblog: simplify socket_local_client() and always use CLOEXEC 2019-02-12 12:53:19 -08:00
log_read_test.cpp liblog: expect content only if ro.logd.kernel is enabled 2018-06-05 07:43:15 -07:00
log_system_test.cpp liblog: simplify socket_local_client() and always use CLOEXEC 2019-02-12 12:53:19 -08:00
log_time_test.cpp Use #pragma one for all liblog includes 2019-01-16 10:49:45 -08:00
log_wrap_test.cpp Reading from logd in WRAP mode is expected to take a long time, 2017-08-25 18:21:36 +01:00
logprint_test.cpp liblog: display valid utf8 characters with 'printable' log format 2019-04-29 09:14:37 -07:00