Adds check/exception handling for logging stats to external storage in Cts Sensor Tests
- Checks if external storage is available and writable before making
directory structure, logs a warning message if not writable.
- Handle IOException with warning message to avoid test crash for
directory/file write fails.
Bug:122847403
Test: Run test CtsSensorTestCases on Pixel/AAE platforms.
Merged-In: I931ad95cc742f20f765a465c2b6a4abd5706adee
Change-Id: Iefbf51f9e07fcc9d18985bf7bab8c970e0edec44
1 file changed