Files
android/libwvdrmengine/cdm/util/include
Alex Dale 36dc9bb97b Extended Android file store error logs.
[ Merge of http://go/wvgerrit/120763 ]

This change introduces additional logging information for files and
file system operations on Android.

File reading and writing will attempt to make sense of |errno| and
log useful information.   In the event that the file must be closed,
the file stat will be printed.

Failures in determining the file size will print potential reasons for
the encountered error.

This partly restructures the File interface implementation to use file
descriptors instead of the C standard libraries FILE handle.  This is
done to ensure that |errno| is set to an expected value.

This change also introduces the utility functions SafeWrite() and
SafeRead() to handle common, retriable errors.

Bug: 178232354
Test: Android MediaDrm GTS and Android file-based unittests
Change-Id: I15a3c47a271098c9edb4bd9f619ed1a12dca6143
2021-04-09 14:23:24 -07:00
..
2020-10-21 12:54:20 -07:00
2020-10-21 12:54:20 -07:00
2020-10-21 12:54:20 -07:00
2021-03-08 15:22:56 -08:00
2020-10-21 12:54:20 -07:00
2020-10-21 12:54:20 -07:00
2021-03-10 18:49:57 -08:00